优化页面
This commit is contained in:
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../../common/assets.js"),a=require("../../../utils/env.js");Math||(r+n)();const n=()=>"./date-table.js",r=()=>"../Icon.js",u=e.defineComponent({__name:"date-picker-panel",props:{type:{type:String,default:"range"},date:{type:e.dayjs_minExports.Dayjs,default:()=>e.dayjs()},startDate:{type:e.dayjs_minExports.Dayjs,default:null},endDate:{type:e.dayjs_minExports.Dayjs,default:null},rangeType:{type:String,default:""},currentOtherPanelValue:{type:e.dayjs_minExports.Dayjs,default:null}},emits:["pick","change"],setup(n,{emit:r}){const u=n,l=r,d=e=>e?["tui-date-picker-panel-"+e,!a.isPC&&"tui-date-picker-panel-h5-"+e]:["tui-date-picker-panel",!a.isPC&&"tui-date-picker-panel-h5"],o=e.ref(),i=e.computed((()=>{var e;return null==(e=o.value)?void 0:e.get("year")})),s=e.computed((()=>{var e;return null==(e=o.value)?void 0:e.format("MMMM")})),c=e.computed((()=>{var e,t,a;const n=(null==(e=u.currentOtherPanelValue)?void 0:e.year())-1,r=null==(t=u.currentOtherPanelValue)?void 0:t.year(n);return"right"===u.rangeType||(null==(a=o.value)?void 0:a.isBefore(r,"year"))})),p=e.computed((()=>{var e,t,a;const n=(null==(e=u.currentOtherPanelValue)?void 0:e.month())-1,r=null==(t=u.currentOtherPanelValue)?void 0:t.month(n);return"right"===u.rangeType||(null==(a=o.value)?void 0:a.isBefore(r,"month"))})),y=e.computed((()=>{var e,t,a;const n=(null==(e=u.currentOtherPanelValue)?void 0:e.year())+1,r=null==(t=u.currentOtherPanelValue)?void 0:t.year(n);return"left"===u.rangeType||(null==(a=o.value)?void 0:a.isAfter(r,"year"))})),h=e.computed((()=>{var e,t,a;const n=(null==(e=u.currentOtherPanelValue)?void 0:e.month())+1,r=null==(t=u.currentOtherPanelValue)?void 0:t.month(n);return"left"===u.rangeType||(null==(a=o.value)?void 0:a.isAfter(r,"month"))}));function f(e){l("pick",e)}function v(t,a){o.value=e.dayjs(o.value.toDate()).add(a,t),l("change",o.value)}return e.onBeforeMount((()=>{switch(u.type){case"single":o.value=(u.date&&(null==(t=e.dayjs(u.date))?void 0:t.isValid())?{date:null==u?void 0:u.date}:{date:e.dayjs()}).date,l("change",o.value);break;case"range":o.value=(()=>{var t;switch(u.rangeType){case"left":return u.startDate&&e.dayjs.isDayjs(u.startDate)?{date:null==u?void 0:u.startDate}:{date:e.dayjs()};case"right":if(u.endDate&&e.dayjs.isDayjs(u.endDate)&&(null==(t=null==u?void 0:u.endDate)?void 0:t.isAfter(u.startDate,"month")))return{date:null==u?void 0:u.endDate};{const t=(u.startDate||e.dayjs()).month();return{date:(u.startDate||e.dayjs()).month(t+1)}}default:return{date:e.dayjs()}}})().date,l("change",o.value)}var t})),(a,n)=>e.e({a:e.unref(y)},e.unref(y)?{b:e.p({file:e.unref(t.dLeftArrowIcon),width:"12px",height:"12px"}),c:e.n(d("icon")),d:e.o$1((e=>v("year",-1)))}:{},{e:e.unref(h)},e.unref(h)?{f:e.p({file:e.unref(t.leftArrowIcon),width:"10px",height:"10px"}),g:e.n(d("icon")),h:e.o$1((e=>v("month",-1)))}:{},{i:e.n(d("body-header-prev")),j:e.t(e.unref(i)),k:e.n(d("body-header-label-item")),l:e.t(e.unref(e.Wt).t(`time.${e.unref(s)}`)),m:e.n(d("body-header-label-item")),n:e.n(d("body-header-label")),o:e.unref(p)},e.unref(p)?{p:e.p({file:e.unref(t.rightArrowIcon),width:"10px",height:"10px"}),q:e.n(d("icon")),r:e.o$1((e=>v("month",1)))}:{},{s:e.unref(c)},e.unref(c)?{t:e.p({file:e.unref(t.dRightArrowIcon),width:"12px",height:"12px"}),v:e.n(d("icon")),w:e.o$1((e=>v("year",1)))}:{},{x:e.n(d("body-header-next")),y:e.n(d("body-header")),z:e.o$1(f),A:e.p({type:u.type,date:u.date,startDate:u.startDate,endDate:u.endDate,currentPanelDate:e.unref(o)}),B:e.n(d("body-content")),C:e.n(d("body")),D:e.n(d("")),E:e.o$1((()=>{}))})}}),l=e._export_sfc(u,[["__scopeId","data-v-b6fd5a74"]]);wx.createComponent(l);
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../../common/assets.js"),a=require("../../../utils/env.js");Math||(r+n)();const n=()=>"./date-table.js",r=()=>"../Icon.js",u=e.defineComponent({__name:"date-picker-panel",props:{type:{type:String,default:"range"},date:{type:e.dayjs_minExports.Dayjs,default:()=>e.dayjs()},startDate:{type:e.dayjs_minExports.Dayjs,default:null},endDate:{type:e.dayjs_minExports.Dayjs,default:null},rangeType:{type:String,default:""},currentOtherPanelValue:{type:e.dayjs_minExports.Dayjs,default:null}},emits:["pick","change"],setup(n,{emit:r}){const u=n,l=r,d=e=>e?["tui-date-picker-panel-"+e,!a.isPC&&"tui-date-picker-panel-h5-"+e]:["tui-date-picker-panel",!a.isPC&&"tui-date-picker-panel-h5"],o=e.ref(),i=e.computed((()=>{var e;return null==(e=o.value)?void 0:e.get("year")})),s=e.computed((()=>{var e;return null==(e=o.value)?void 0:e.format("MMMM")})),c=e.computed((()=>{var e,t,a;const n=(null==(e=u.currentOtherPanelValue)?void 0:e.year())-1,r=null==(t=u.currentOtherPanelValue)?void 0:t.year(n);return"right"===u.rangeType||(null==(a=o.value)?void 0:a.isBefore(r,"year"))})),p=e.computed((()=>{var e,t,a;const n=(null==(e=u.currentOtherPanelValue)?void 0:e.month())-1,r=null==(t=u.currentOtherPanelValue)?void 0:t.month(n);return"right"===u.rangeType||(null==(a=o.value)?void 0:a.isBefore(r,"month"))})),y=e.computed((()=>{var e,t,a;const n=(null==(e=u.currentOtherPanelValue)?void 0:e.year())+1,r=null==(t=u.currentOtherPanelValue)?void 0:t.year(n);return"left"===u.rangeType||(null==(a=o.value)?void 0:a.isAfter(r,"year"))})),h=e.computed((()=>{var e,t,a;const n=(null==(e=u.currentOtherPanelValue)?void 0:e.month())+1,r=null==(t=u.currentOtherPanelValue)?void 0:t.month(n);return"left"===u.rangeType||(null==(a=o.value)?void 0:a.isAfter(r,"month"))}));function v(e){l("pick",e)}function f(t,a){o.value=e.dayjs(o.value.toDate()).add(a,t),l("change",o.value)}return e.onBeforeMount((()=>{switch(u.type){case"single":o.value=(u.date&&(null==(t=e.dayjs(u.date))?void 0:t.isValid())?{date:null==u?void 0:u.date}:{date:e.dayjs()}).date,l("change",o.value);break;case"range":o.value=(()=>{var t;switch(u.rangeType){case"left":return u.startDate&&e.dayjs.isDayjs(u.startDate)?{date:null==u?void 0:u.startDate}:{date:e.dayjs()};case"right":if(u.endDate&&e.dayjs.isDayjs(u.endDate)&&(null==(t=null==u?void 0:u.endDate)?void 0:t.isAfter(u.startDate,"month")))return{date:null==u?void 0:u.endDate};{const t=(u.startDate||e.dayjs()).month();return{date:(u.startDate||e.dayjs()).month(t+1)}}default:return{date:e.dayjs()}}})().date,l("change",o.value)}var t})),(a,n)=>e.e({a:e.unref(y)},e.unref(y)?{b:e.p({file:e.unref(t.dLeftArrowIcon),width:"12px",height:"12px"}),c:e.n(d("icon")),d:e.o$1((e=>f("year",-1)))}:{},{e:e.unref(h)},e.unref(h)?{f:e.p({file:e.unref(t.leftArrowIcon),width:"10px",height:"10px"}),g:e.n(d("icon")),h:e.o$1((e=>f("month",-1)))}:{},{i:e.n(d("body-header-prev")),j:e.t(e.unref(i)),k:e.n(d("body-header-label-item")),l:e.t(e.unref(e.Wt).t(`time.${e.unref(s)}`)),m:e.n(d("body-header-label-item")),n:e.n(d("body-header-label")),o:e.unref(p)},e.unref(p)?{p:e.p({file:e.unref(t.rightArrowIcon),width:"10px",height:"10px"}),q:e.n(d("icon")),r:e.o$1((e=>f("month",1)))}:{},{s:e.unref(c)},e.unref(c)?{t:e.p({file:e.unref(t.dRightArrowIcon),width:"12px",height:"12px"}),v:e.n(d("icon")),w:e.o$1((e=>f("year",1)))}:{},{x:e.n(d("body-header-next")),y:e.n(d("body-header")),z:e.o$1(v),A:e.p({type:u.type,date:u.date,startDate:u.startDate,endDate:u.endDate,currentPanelDate:e.unref(o)}),B:e.n(d("body-content")),C:e.n(d("body")),D:e.n(d("")),E:e.o$1((()=>{}))})}}),l=e._export_sfc(u,[["__scopeId","data-v-4ecd5d3b"]]);wx.createComponent(l);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-b6fd5a74', D]}}" catchmouseup="{{E}}"><view class="{{['data-v-b6fd5a74', C]}}"><view class="{{['data-v-b6fd5a74', y]}}"><view class="{{['data-v-b6fd5a74', i]}}"><view wx:if="{{a}}" class="{{['data-v-b6fd5a74', c]}}" bindtap="{{d}}"><icon wx:if="{{b}}" class="data-v-b6fd5a74" u-i="b6fd5a74-0" bind:__l="__l" u-p="{{b}}"/></view><view wx:if="{{e}}" class="{{['data-v-b6fd5a74', g]}}" bindtap="{{h}}"><icon wx:if="{{f}}" class="data-v-b6fd5a74" u-i="b6fd5a74-1" bind:__l="__l" u-p="{{f}}"/></view></view><view class="{{['data-v-b6fd5a74', n]}}"><view class="{{['data-v-b6fd5a74', k]}}">{{j}}</view><view class="{{['data-v-b6fd5a74', m]}}">{{l}}</view></view><view class="{{['data-v-b6fd5a74', x]}}"><view wx:if="{{o}}" class="{{['data-v-b6fd5a74', q]}}" bindtap="{{r}}"><icon wx:if="{{p}}" class="data-v-b6fd5a74" u-i="b6fd5a74-2" bind:__l="__l" u-p="{{p}}"/></view><view wx:if="{{s}}" class="{{['data-v-b6fd5a74', v]}}" bindtap="{{w}}"><icon wx:if="{{t}}" class="data-v-b6fd5a74" u-i="b6fd5a74-3" bind:__l="__l" u-p="{{t}}"/></view></view></view><view class="{{['data-v-b6fd5a74', B]}}"><date-table wx:if="{{A}}" class="data-v-b6fd5a74" bindpick="{{z}}" u-i="b6fd5a74-4" bind:__l="__l" u-p="{{A}}"/></view></view></view>
|
||||
<view class="{{['data-v-4ecd5d3b', D]}}" catchmouseup="{{E}}"><view class="{{['data-v-4ecd5d3b', C]}}"><view class="{{['data-v-4ecd5d3b', y]}}"><view class="{{['data-v-4ecd5d3b', i]}}"><view wx:if="{{a}}" class="{{['data-v-4ecd5d3b', c]}}" bindtap="{{d}}"><icon wx:if="{{b}}" class="data-v-4ecd5d3b" u-i="4ecd5d3b-0" bind:__l="__l" u-p="{{b}}"/></view><view wx:if="{{e}}" class="{{['data-v-4ecd5d3b', g]}}" bindtap="{{h}}"><icon wx:if="{{f}}" class="data-v-4ecd5d3b" u-i="4ecd5d3b-1" bind:__l="__l" u-p="{{f}}"/></view></view><view class="{{['data-v-4ecd5d3b', n]}}"><view class="{{['data-v-4ecd5d3b', k]}}">{{j}}</view><view class="{{['data-v-4ecd5d3b', m]}}">{{l}}</view></view><view class="{{['data-v-4ecd5d3b', x]}}"><view wx:if="{{o}}" class="{{['data-v-4ecd5d3b', q]}}" bindtap="{{r}}"><icon wx:if="{{p}}" class="data-v-4ecd5d3b" u-i="4ecd5d3b-2" bind:__l="__l" u-p="{{p}}"/></view><view wx:if="{{s}}" class="{{['data-v-4ecd5d3b', v]}}" bindtap="{{w}}"><icon wx:if="{{t}}" class="data-v-4ecd5d3b" u-i="4ecd5d3b-3" bind:__l="__l" u-p="{{t}}"/></view></view></view><view class="{{['data-v-4ecd5d3b', B]}}"><date-table wx:if="{{A}}" class="data-v-4ecd5d3b" bindpick="{{z}}" u-i="4ecd5d3b-4" bind:__l="__l" u-p="{{A}}"/></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.tui-date-picker-panel.data-v-b6fd5a74{width:200px;margin:5px}.tui-date-picker-panel-body.data-v-b6fd5a74{width:200px;display:flex;flex-direction:column}.tui-date-picker-panel-body-header.data-v-b6fd5a74{width:100%;display:flex;flex-direction:row;height:30px;padding:0 5px;box-sizing:border-box}.tui-date-picker-panel-body-header-prev.data-v-b6fd5a74{display:flex;flex-direction:row;cursor:pointer;width:24px}.tui-date-picker-panel-body-header-label.data-v-b6fd5a74{flex:1;display:flex;flex-direction:row;text-align:center;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;color:#666}.tui-date-picker-panel-body-header-label-item.data-v-b6fd5a74{padding:0 5px;color:#666}.tui-date-picker-panel-body-header-next.data-v-b6fd5a74{display:flex;flex-direction:row;cursor:pointer;width:24px}.tui-date-picker-panel-icon.data-v-b6fd5a74{display:flex;justify-content:center;align-items:center;width:12px}
|
||||
.tui-date-picker-panel.data-v-4ecd5d3b{width:200px;margin:5px}.tui-date-picker-panel-body.data-v-4ecd5d3b{width:200px;display:flex;flex-direction:column}.tui-date-picker-panel-body-header.data-v-4ecd5d3b{width:100%;display:flex;flex-direction:row;height:30px;padding:0 5px;box-sizing:border-box}.tui-date-picker-panel-body-header-prev.data-v-4ecd5d3b{display:flex;flex-direction:row;cursor:pointer;width:24px}.tui-date-picker-panel-body-header-label.data-v-4ecd5d3b{flex:1;display:flex;flex-direction:row;text-align:center;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;color:#666}.tui-date-picker-panel-body-header-label-item.data-v-4ecd5d3b{padding:0 5px;color:#666}.tui-date-picker-panel-body-header-next.data-v-4ecd5d3b{display:flex;flex-direction:row;cursor:pointer;width:24px}.tui-date-picker-panel-icon.data-v-4ecd5d3b{display:flex;justify-content:center;align-items:center;width:12px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../utils/env.js"),a=e.defineComponent({__name:"date-table",props:{type:{type:String,default:"range"},currentPanelDate:{type:e.dayjs_minExports.Dayjs,default:()=>e.dayjs()},date:{type:e.dayjs_minExports.Dayjs,default:null},startDate:{type:e.dayjs_minExports.Dayjs,default:null},endDate:{type:e.dayjs_minExports.Dayjs,default:null}},emits:["pick"],setup(a,{emit:l}){const n=a,d=l,r=e.getCurrentInstance(),u=e.ref([[],[],[],[],[],[]]),s=e.ref(e.dayjs(n.currentPanelDate||null)),o=e.ref(e.dayjs(n.date||null)),i=e.ref(e.dayjs(n.startDate||null)),v=e.ref(e.dayjs(n.endDate||null)),c=e.computed((()=>e.dayjs.weekdaysShort())),y=e.computed((()=>c.value.map((e=>e.substring(1))))),p=e.computed((()=>{var e;const t=null==(e=s.value)?void 0:e.startOf("month");return null==t?void 0:t.subtract((null==t?void 0:t.day())||7,"day")})),f=e.computed((()=>{var e,t,a,l,d;const r=u.value,c=y.value.length,f=null==(e=s.value)?void 0:e.startOf("month"),m=(null==f?void 0:f.day())||7,D=null==f?void 0:f.daysInMonth();let Y=1;for(let s=0;s<u.value.length;s++)for(let e=0;e<c;e++){const u=null==(t=p.value)?void 0:t.add(Y,"day"),c=null==u?void 0:u.date(),y="single"===n.type&&(null==u?void 0:u.format("YYYY-MM-DD"))===(null==(a=o.value)?void 0:a.format("YYYY-MM-DD")),f="range"===n.type&&(null==u?void 0:u.format("YYYY-MM-DD"))===(null==(l=i.value)?void 0:l.format("YYYY-MM-DD")),j="range"===n.type&&(null==u?void 0:u.format("YYYY-MM-DD"))===(null==(d=v.value)?void 0:d.format("YYYY-MM-DD")),g=(null==u?void 0:u.isSameOrBefore(v.value,"day"))&&(null==u?void 0:u.isSameOrAfter(i.value,"day"));let M="normal";Y<m?M="prev-month":Y-m>=D&&(M="next-month"),r[s][e]={type:M,date:u,text:c,isSelected:y||f||j,isSelectedStart:f,isSelectedEnd:j,isInRange:g},Y++}return r}));return e.watch((()=>[n.currentPanelDate,n.date,n.startDate,n.endDate]),(()=>{s.value=e.dayjs(n.currentPanelDate||null),o.value=e.dayjs(n.date||null),i.value=e.dayjs(n.startDate||null),v.value=e.dayjs(n.endDate||null),e.nextTick$1((()=>{var e;null==(e=null==r?void 0:r.proxy)||e.$forceUpdate()}))}),{deep:!0,immediate:!0}),(a,l)=>({a:e.f(e.unref(y),((t,a,l)=>({a:e.t(e.unref(e.Wt).t(`time.${t}`)),b:t,c:t+""}))),b:e.f(e.unref(f),((t,a,l)=>({a:e.f(t,((t,a,l)=>({a:e.t(t.text),b:e.n(t.isSelected&&"selected"),c:e.n(t.isSelectedStart&&"selected-start"),d:e.n(t.isSelectedEnd&&"selected-end"),e:e.n(t.isInRange&&"range"),f:e.o$1((e=>{var a;"normal"===(null==(a=t)?void 0:a.type)&&d("pick",a)}),a),g:a,h:e.n(t.type)}))),b:a}))),c:e.n(!e.unref(t.isPC)&&"tui-date-table-h5")})}}),l=e._export_sfc(a,[["__scopeId","data-v-63c282a8"]]);wx.createComponent(l);
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../utils/env.js"),a=e.defineComponent({__name:"date-table",props:{type:{type:String,default:"range"},currentPanelDate:{type:e.dayjs_minExports.Dayjs,default:()=>e.dayjs()},date:{type:e.dayjs_minExports.Dayjs,default:null},startDate:{type:e.dayjs_minExports.Dayjs,default:null},endDate:{type:e.dayjs_minExports.Dayjs,default:null}},emits:["pick"],setup(a,{emit:l}){const n=a,d=l,r=e.getCurrentInstance(),u=e.ref([[],[],[],[],[],[]]),s=e.ref(e.dayjs(n.currentPanelDate||null)),o=e.ref(e.dayjs(n.date||null)),i=e.ref(e.dayjs(n.startDate||null)),v=e.ref(e.dayjs(n.endDate||null)),c=e.computed((()=>e.dayjs.weekdaysShort())),y=e.computed((()=>c.value.map((e=>e.substring(1))))),p=e.computed((()=>{var e;const t=null==(e=s.value)?void 0:e.startOf("month");return null==t?void 0:t.subtract((null==t?void 0:t.day())||7,"day")})),f=e.computed((()=>{var e,t,a,l,d;const r=u.value,c=y.value.length,f=null==(e=s.value)?void 0:e.startOf("month"),m=(null==f?void 0:f.day())||7,D=null==f?void 0:f.daysInMonth();let Y=1;for(let s=0;s<u.value.length;s++)for(let e=0;e<c;e++){const u=null==(t=p.value)?void 0:t.add(Y,"day"),c=null==u?void 0:u.date(),y="single"===n.type&&(null==u?void 0:u.format("YYYY-MM-DD"))===(null==(a=o.value)?void 0:a.format("YYYY-MM-DD")),f="range"===n.type&&(null==u?void 0:u.format("YYYY-MM-DD"))===(null==(l=i.value)?void 0:l.format("YYYY-MM-DD")),j="range"===n.type&&(null==u?void 0:u.format("YYYY-MM-DD"))===(null==(d=v.value)?void 0:d.format("YYYY-MM-DD")),g=(null==u?void 0:u.isSameOrBefore(v.value,"day"))&&(null==u?void 0:u.isSameOrAfter(i.value,"day"));let M="normal";Y<m?M="prev-month":Y-m>=D&&(M="next-month"),r[s][e]={type:M,date:u,text:c,isSelected:y||f||j,isSelectedStart:f,isSelectedEnd:j,isInRange:g},Y++}return r}));return e.watch((()=>[n.currentPanelDate,n.date,n.startDate,n.endDate]),(()=>{s.value=e.dayjs(n.currentPanelDate||null),o.value=e.dayjs(n.date||null),i.value=e.dayjs(n.startDate||null),v.value=e.dayjs(n.endDate||null),e.nextTick$1((()=>{var e;null==(e=null==r?void 0:r.proxy)||e.$forceUpdate()}))}),{deep:!0,immediate:!0}),(a,l)=>({a:e.f(e.unref(y),((t,a,l)=>({a:e.t(e.unref(e.Wt).t(`time.${t}`)),b:t,c:t+""}))),b:e.f(e.unref(f),((t,a,l)=>({a:e.f(t,((t,a,l)=>({a:e.t(t.text),b:e.n(t.isSelected&&"selected"),c:e.n(t.isSelectedStart&&"selected-start"),d:e.n(t.isSelectedEnd&&"selected-end"),e:e.n(t.isInRange&&"range"),f:e.o$1((e=>{var a;"normal"===(null==(a=t)?void 0:a.type)&&d("pick",a)}),a),g:a,h:e.n(t.type)}))),b:a}))),c:e.n(!e.unref(t.isPC)&&"tui-date-table-h5")})}}),l=e._export_sfc(a,[["__scopeId","data-v-f07c449d"]]);wx.createComponent(l);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-63c282a8', 'tui-date-table', c]}}" cellspacing="0" cellpadding="0" role="grid"><view class="tui-date-table-body data-v-63c282a8"><view class="tui-date-table-body-weeks data-v-63c282a8"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="tui-date-table-body-weeks-item data-v-63c282a8" aria-label="{{item.c}}" scope="col">{{item.a}}</view></view><view wx:for="{{b}}" wx:for-item="row" wx:key="b" class="tui-date-table-body-days data-v-63c282a8"><view wx:for="{{row.a}}" wx:for-item="col" wx:key="g" class="{{['data-v-63c282a8', 'tui-date-table-body-days-item', col.h]}}"><view class="{{['data-v-63c282a8', 'tui-date-table-body-days-item-cell', col.b, col.c, col.d, col.e]}}" bindtap="{{col.f}}"><label class="tui-date-table-body-days-item-cell-text data-v-63c282a8">{{col.a}}</label></view></view></view></view></view>
|
||||
<view class="{{['data-v-f07c449d', 'tui-date-table', c]}}" cellspacing="0" cellpadding="0" role="grid"><view class="tui-date-table-body data-v-f07c449d"><view class="tui-date-table-body-weeks data-v-f07c449d"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="tui-date-table-body-weeks-item data-v-f07c449d" aria-label="{{item.c}}" scope="col">{{item.a}}</view></view><view wx:for="{{b}}" wx:for-item="row" wx:key="b" class="tui-date-table-body-days data-v-f07c449d"><view wx:for="{{row.a}}" wx:for-item="col" wx:key="g" class="{{['data-v-f07c449d', 'tui-date-table-body-days-item', col.h]}}"><view class="{{['data-v-f07c449d', 'tui-date-table-body-days-item-cell', col.b, col.c, col.d, col.e]}}" bindtap="{{col.f}}"><label class="tui-date-table-body-days-item-cell-text data-v-f07c449d">{{col.a}}</label></view></view></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.tui-date-table.data-v-63c282a8{border-spacing:0;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;font-size:12px;-webkit-user-select:none;user-select:none;table-layout:fixed;width:100%;box-sizing:border-box}.tui-date-table.data-v-63c282a8:after,.tui-date-table.data-v-63c282a8:before{box-sizing:border-box}.tui-date-table-body.data-v-63c282a8{width:100%;background-color:#fff}.tui-date-table-body-weeks.data-v-63c282a8,.tui-date-table-body-days.data-v-63c282a8{box-sizing:border-box;min-width:0;display:flex;flex-direction:row;justify-content:space-around;overflow:hidden}.tui-date-table-body-weeks.data-v-63c282a8{width:100%}.tui-date-table-body-weeks-item.data-v-63c282a8{color:#666;font-size:12px;font-weight:400px}.tui-date-table-body-days.data-v-63c282a8{color:#000}.tui-date-table-body-days-item-cell.data-v-63c282a8{text-align:center;padding:2px;margin:2px 0}.tui-date-table-body-days-item-cell-text.data-v-63c282a8{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%;-webkit-user-select:none;user-select:none;cursor:pointer;box-sizing:border-box}.tui-date-table-body-days-item .selected.data-v-63c282a8{border-radius:12px}.tui-date-table-body-days-item .selected .tui-date-table-body-days-item-cell-text.data-v-63c282a8{box-sizing:border-box;color:#007aff;border:1px solid #007aff;background-color:#fff}.tui-date-table-body-days-item .range.data-v-63c282a8{background-color:rgba(0,122,255,.2)}.tui-date-table-body-days-item .selected-start.data-v-63c282a8{border-radius:12px 0 0 12px}.tui-date-table-body-days-item .selected-end.data-v-63c282a8{border-radius:0 12px 12px 0}.tui-date-table-body-days-item .selected-start.selected-end.data-v-63c282a8{border-radius:12px}.tui-date-table-body-days .prev-month.data-v-63c282a8,.tui-date-table-body-days .next-month.data-v-63c282a8,.tui-date-table-body-days .prev-month .range.data-v-63c282a8,.tui-date-table-body-days .next-month .range.data-v-63c282a8{color:#666;background-color:#fff}.tui-date-table-body-days .prev-month .selected .tui-date-table-body-days-item-cell-text.data-v-63c282a8,.tui-date-table-body-days .next-month .selected .tui-date-table-body-days-item-cell-text.data-v-63c282a8{box-sizing:border-box;color:#666;border:none}.tui-date-table-h5 .tui-date-table-body-days-item-cell-text.data-v-63c282a8{cursor:none!important}td.data-v-63c282a8,._td.data-v-63c282a8,.tui-date-table-body-days-item.data-v-63c282a8{flex:1}
|
||||
.tui-date-table.data-v-f07c449d{border-spacing:0;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;font-size:12px;-webkit-user-select:none;user-select:none;table-layout:fixed;width:100%;box-sizing:border-box}.tui-date-table.data-v-f07c449d:after,.tui-date-table.data-v-f07c449d:before{box-sizing:border-box}.tui-date-table-body.data-v-f07c449d{width:100%;background-color:#fff}.tui-date-table-body-weeks.data-v-f07c449d,.tui-date-table-body-days.data-v-f07c449d{box-sizing:border-box;min-width:0;display:flex;flex-direction:row;justify-content:space-around;overflow:hidden}.tui-date-table-body-weeks.data-v-f07c449d{width:100%}.tui-date-table-body-weeks-item.data-v-f07c449d{color:#666;font-size:12px;font-weight:400px}.tui-date-table-body-days.data-v-f07c449d{color:#000}.tui-date-table-body-days-item-cell.data-v-f07c449d{text-align:center;padding:2px;margin:2px 0}.tui-date-table-body-days-item-cell-text.data-v-f07c449d{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%;-webkit-user-select:none;user-select:none;cursor:pointer;box-sizing:border-box}.tui-date-table-body-days-item .selected.data-v-f07c449d{border-radius:12px}.tui-date-table-body-days-item .selected .tui-date-table-body-days-item-cell-text.data-v-f07c449d{box-sizing:border-box;color:#007aff;border:1px solid #007aff;background-color:#fff}.tui-date-table-body-days-item .range.data-v-f07c449d{background-color:rgba(0,122,255,.2)}.tui-date-table-body-days-item .selected-start.data-v-f07c449d{border-radius:12px 0 0 12px}.tui-date-table-body-days-item .selected-end.data-v-f07c449d{border-radius:0 12px 12px 0}.tui-date-table-body-days-item .selected-start.selected-end.data-v-f07c449d{border-radius:12px}.tui-date-table-body-days .prev-month.data-v-f07c449d,.tui-date-table-body-days .next-month.data-v-f07c449d,.tui-date-table-body-days .prev-month .range.data-v-f07c449d,.tui-date-table-body-days .next-month .range.data-v-f07c449d{color:#666;background-color:#fff}.tui-date-table-body-days .prev-month .selected .tui-date-table-body-days-item-cell-text.data-v-f07c449d,.tui-date-table-body-days .next-month .selected .tui-date-table-body-days-item-cell-text.data-v-f07c449d{box-sizing:border-box;color:#666;border:none}.tui-date-table-h5 .tui-date-table-body-days-item-cell-text.data-v-f07c449d{cursor:none!important}td.data-v-f07c449d,._td.data-v-f07c449d,.tui-date-table-body-days-item.data-v-f07c449d{flex:1}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../utils/env.js");Math||a();const a=()=>"./date-picker-panel.js",n=e.defineComponent({__name:"index",props:{type:{type:String,default:"range"},rangeTableType:{type:String,default:"one"},startPlaceholder:{type:String,default:()=>e.Wt.t("开始时间")},endPlaceholder:{type:String,default:()=>e.Wt.t("开始时间")},popupPosition:{type:String,default:"bottom"},defaultSingleDate:{type:e.dayjs_minExports.Dayjs,default:null,required:!1}},emits:["pick","change"],setup(a,{emit:n}){e.dayjs.extend(e.localeData),e.dayjs.extend(e.isSameOrAfter),e.dayjs.extend(e.isSameOrBefore),e.dayjs.locale("zh-cn");const l=n,u=a,r=e.ref(!1),i=e.ref("single"===u.type?null==u?void 0:u.defaultSingleDate:null),d=e.ref("single"===u.type?null==u?void 0:u.defaultSingleDate:null),o=e.ref("single"===u.type?null==u?void 0:u.defaultSingleDate:null),p=e.computed((()=>{var e;return null==(e=null==d?void 0:d.value)?void 0:e.format("YYYY/MM/DD")})),s=e.computed((()=>{var e;return null==(e=null==o?void 0:o.value)?void 0:e.format("YYYY/MM/DD")})),v=u.startPlaceholder,f=u.endPlaceholder,c=e.ref(),g=e.ref(),y=e=>{r.value=e},h=e=>{const a=[];return e.forEach((e=>{e?(a.push("tui-date-picker-"+e),!t.isPC&&a.push("tui-date-picker-h5-"+e)):(a.push("tui-date-picker"),!t.isPC&&a.push("tui-date-picker-h5"))})),a},D=e=>{var t,a,n;switch(u.type){case"single":d.value=e.date,o.value=e.date,i.value=e.date,l("change",e),l("pick",i.value),setTimeout((()=>{y(!1)}),300);break;case"range":(null==d?void 0:d.value)?(null==o?void 0:o.value)?(d.value=e.date,o.value=null):((null==(t=null==d?void 0:d.value)?void 0:t.isSameOrBefore(e.date,"day"))?o.value=e.date:(o.value=d.value,d.value=e.date),l("pick",{startDate:null==(a=null==d?void 0:d.value)?void 0:a.startOf("date"),endDate:null==(n=null==o?void 0:o.value)?void 0:n.endOf("date")}),setTimeout((()=>{y(!1)}),200)):d.value=e.date,l("change",{startDate:d.value,endDate:o.value,leftCurrentPanel:c.value,rightCurrentPanel:c.value})}},m=e=>{c.value=e,l("change",{startDate:d.value,endDate:o.value,leftCurrentPanel:c.value,rightCurrentPanel:c.value})},P=e=>{g.value=e,l("change",{startDate:d.value,endDate:o.value,leftCurrentPanel:c.value,rightCurrentPanel:c.value})};return(n,l)=>e.e({a:e.unref(v),b:e.n(h(["input-start"])),c:e.unref(t.isUniFrameWork),d:e.unref(p),e:e.o$1((t=>e.isRef(p)?p.value=t.detail.value:null)),f:"single"!==a.type},(a.type,{}),{g:"single"!==a.type},"single"!==a.type?{h:e.unref(f),i:e.n(h(["input-end"])),j:e.unref(t.isUniFrameWork),k:e.unref(s),l:e.o$1((t=>e.isRef(s)?s.value=t.detail.value:null))}:{},{m:e.n(h(["input"])),n:e.n(e.unref(r)&&h(["input-active"])),o:e.o$1((t=>y(!e.unref(r)))),p:e.unref(r)},e.unref(r)?e.e({q:e.o$1(D),r:e.o$1(m),s:e.p({type:u.type,rangeType:"left",date:e.unref(i),startDate:e.unref(d),endDate:e.unref(o),currentOtherPanelValue:e.unref(g)}),t:"range"===u.type&&e.unref(t.isPC)&&"two"===a.rangeTableType},"range"===u.type&&e.unref(t.isPC)&&"two"===a.rangeTableType?{v:e.o$1(D),w:e.o$1(P),x:e.p({type:u.type,rangeType:"right",date:e.unref(i),startDate:e.unref(d),endDate:e.unref(o),currentOtherPanelValue:e.unref(c)})}:{},{y:e.n(h(["dialog-container","dialog-container-"+a.rangeTableType,"dialog-container-"+a.popupPosition])),z:e.n(h(["dialog"]))}):{},{A:e.n(h([""]))})}}),l=e._export_sfc(n,[["__scopeId","data-v-9e9f915c"]]);wx.createComponent(l);
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../utils/env.js");Math||a();const a=()=>"./date-picker-panel.js",n=e.defineComponent({__name:"index",props:{type:{type:String,default:"range"},rangeTableType:{type:String,default:"one"},startPlaceholder:{type:String,default:()=>e.Wt.t("开始时间")},endPlaceholder:{type:String,default:()=>e.Wt.t("开始时间")},popupPosition:{type:String,default:"bottom"},defaultSingleDate:{type:e.dayjs_minExports.Dayjs,default:null,required:!1}},emits:["pick","change"],setup(a,{emit:n}){e.dayjs.extend(e.localeData),e.dayjs.extend(e.isSameOrAfter),e.dayjs.extend(e.isSameOrBefore),e.dayjs.locale("zh-cn");const l=n,u=a,r=e.ref(!1),i=e.ref("single"===u.type?null==u?void 0:u.defaultSingleDate:null),d=e.ref("single"===u.type?null==u?void 0:u.defaultSingleDate:null),o=e.ref("single"===u.type?null==u?void 0:u.defaultSingleDate:null),p=e.computed((()=>{var e;return null==(e=null==d?void 0:d.value)?void 0:e.format("YYYY/MM/DD")})),s=e.computed((()=>{var e;return null==(e=null==o?void 0:o.value)?void 0:e.format("YYYY/MM/DD")})),v=u.startPlaceholder,f=u.endPlaceholder,c=e.ref(),g=e.ref(),y=e=>{r.value=e},h=e=>{const a=[];return e.forEach((e=>{e?(a.push("tui-date-picker-"+e),!t.isPC&&a.push("tui-date-picker-h5-"+e)):(a.push("tui-date-picker"),!t.isPC&&a.push("tui-date-picker-h5"))})),a},D=e=>{var t,a,n;switch(u.type){case"single":d.value=e.date,o.value=e.date,i.value=e.date,l("change",e),l("pick",i.value),setTimeout((()=>{y(!1)}),300);break;case"range":(null==d?void 0:d.value)?(null==o?void 0:o.value)?(d.value=e.date,o.value=null):((null==(t=null==d?void 0:d.value)?void 0:t.isSameOrBefore(e.date,"day"))?o.value=e.date:(o.value=d.value,d.value=e.date),l("pick",{startDate:null==(a=null==d?void 0:d.value)?void 0:a.startOf("date"),endDate:null==(n=null==o?void 0:o.value)?void 0:n.endOf("date")}),setTimeout((()=>{y(!1)}),200)):d.value=e.date,l("change",{startDate:d.value,endDate:o.value,leftCurrentPanel:c.value,rightCurrentPanel:c.value})}},m=e=>{c.value=e,l("change",{startDate:d.value,endDate:o.value,leftCurrentPanel:c.value,rightCurrentPanel:c.value})},P=e=>{g.value=e,l("change",{startDate:d.value,endDate:o.value,leftCurrentPanel:c.value,rightCurrentPanel:c.value})};return(n,l)=>e.e({a:e.unref(v),b:e.n(h(["input-start"])),c:e.unref(t.isUniFrameWork),d:e.unref(p),e:e.o$1((t=>e.isRef(p)?p.value=t.detail.value:null)),f:"single"!==a.type},(a.type,{}),{g:"single"!==a.type},"single"!==a.type?{h:e.unref(f),i:e.n(h(["input-end"])),j:e.unref(t.isUniFrameWork),k:e.unref(s),l:e.o$1((t=>e.isRef(s)?s.value=t.detail.value:null))}:{},{m:e.n(h(["input"])),n:e.n(e.unref(r)&&h(["input-active"])),o:e.o$1((t=>y(!e.unref(r)))),p:e.unref(r)},e.unref(r)?e.e({q:e.o$1(D),r:e.o$1(m),s:e.p({type:u.type,rangeType:"left",date:e.unref(i),startDate:e.unref(d),endDate:e.unref(o),currentOtherPanelValue:e.unref(g)}),t:"range"===u.type&&e.unref(t.isPC)&&"two"===a.rangeTableType},"range"===u.type&&e.unref(t.isPC)&&"two"===a.rangeTableType?{v:e.o$1(D),w:e.o$1(P),x:e.p({type:u.type,rangeType:"right",date:e.unref(i),startDate:e.unref(d),endDate:e.unref(o),currentOtherPanelValue:e.unref(c)})}:{},{y:e.n(h(["dialog-container","dialog-container-"+a.rangeTableType,"dialog-container-"+a.popupPosition])),z:e.n(h(["dialog"]))}):{},{A:e.n(h([""]))})}}),l=e._export_sfc(n,[["__scopeId","data-v-b0775539"]]);wx.createComponent(l);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-9e9f915c', A]}}"><view class="{{['data-v-9e9f915c', m, n]}}" bindtap="{{o}}"><slot name="start-icon"/><input placeholder="{{a}}" class="{{['data-v-9e9f915c', b]}}" style="pointer-events:none" type="text" readonly="{{true}}" disabled="{{c}}" autocomplete="false" value="{{d}}" bindinput="{{e}}"></input><label wx:if="{{f}}" class="data-v-9e9f915c">-</label><input wx:if="{{g}}" placeholder="{{h}}" class="{{['data-v-9e9f915c', i]}}" style="pointer-events:none" type="text" readonly="{{true}}" disabled="{{j}}" autocomplete="false" value="{{k}}" bindinput="{{l}}"></input><slot name="end-icon"/></view><view wx:if="{{p}}" class="{{['data-v-9e9f915c', z]}}"><view class="{{['data-v-9e9f915c', y]}}"><date-picker-panel wx:if="{{s}}" class="data-v-9e9f915c" bindpick="{{q}}" bindchange="{{r}}" u-i="9e9f915c-0" bind:__l="__l" u-p="{{s}}"/><date-picker-panel wx:if="{{t}}" class="data-v-9e9f915c" bindpick="{{v}}" bindchange="{{w}}" u-i="9e9f915c-1" bind:__l="__l" u-p="{{x}}"/></view></view></view>
|
||||
<view class="{{['data-v-b0775539', A]}}"><view class="{{['data-v-b0775539', m, n]}}" bindtap="{{o}}"><slot name="start-icon"/><input placeholder="{{a}}" class="{{['data-v-b0775539', b]}}" style="pointer-events:none" type="text" readonly="{{true}}" disabled="{{c}}" autocomplete="false" value="{{d}}" bindinput="{{e}}"></input><label wx:if="{{f}}" class="data-v-b0775539">-</label><input wx:if="{{g}}" placeholder="{{h}}" class="{{['data-v-b0775539', i]}}" style="pointer-events:none" type="text" readonly="{{true}}" disabled="{{j}}" autocomplete="false" value="{{k}}" bindinput="{{l}}"></input><slot name="end-icon"/></view><view wx:if="{{p}}" class="{{['data-v-b0775539', z]}}"><view class="{{['data-v-b0775539', y]}}"><date-picker-panel wx:if="{{s}}" class="data-v-b0775539" bindpick="{{q}}" bindchange="{{r}}" u-i="b0775539-0" bind:__l="__l" u-p="{{s}}"/><date-picker-panel wx:if="{{t}}" class="data-v-b0775539" bindpick="{{v}}" bindchange="{{w}}" u-i="b0775539-1" bind:__l="__l" u-p="{{x}}"/></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.tui-date-picker-input.data-v-9e9f915c{min-width:160px;display:flex;flex-direction:row;color:#666;border-radius:5px;font-size:12px}.tui-date-picker-input-start.data-v-9e9f915c,.tui-date-picker-input-end.data-v-9e9f915c{flex:1;color:#666;height:17px;border:none;width:67px;background-color:transparent;font-size:12px;text-align:center}.tui-date-picker-input-start.data-v-9e9f915c:focus,.tui-date-picker-input-end.data-v-9e9f915c:focus{border:none;outline:none}.tui-date-picker-input-start.data-v-9e9f915c::-webkit-input-placeholder,.tui-date-picker-input-end.data-v-9e9f915c::-webkit-input-placeholder{text-align:center}.tui-date-picker-input-start.data-v-9e9f915c::placeholder,.tui-date-picker-input-end.data-v-9e9f915c::placeholder{text-align:center}.tui-date-picker-dialog.data-v-9e9f915c{position:relative}.tui-date-picker-dialog-container.data-v-9e9f915c{position:absolute;display:flex;flex-direction:row;padding:10px;left:5px;background-color:#fff;box-shadow:rgba(0,0,0,.16) 0 3px 6px,rgba(0,0,0,.23) 0 3px 6px;z-index:1000}.tui-date-picker-dialog-container-bottom.data-v-9e9f915c{left:5px}.tui-date-picker-dialog-container-top.data-v-9e9f915c{bottom:30px}.tui-date-picker-dialog-container-one.data-v-9e9f915c{left:-5px}
|
||||
.tui-date-picker-input.data-v-b0775539{min-width:160px;display:flex;flex-direction:row;color:#666;border-radius:5px;font-size:12px}.tui-date-picker-input-start.data-v-b0775539,.tui-date-picker-input-end.data-v-b0775539{flex:1;color:#666;height:17px;border:none;width:67px;background-color:transparent;font-size:12px;text-align:center}.tui-date-picker-input-start.data-v-b0775539:focus,.tui-date-picker-input-end.data-v-b0775539:focus{border:none;outline:none}.tui-date-picker-input-start.data-v-b0775539::-webkit-input-placeholder,.tui-date-picker-input-end.data-v-b0775539::-webkit-input-placeholder{text-align:center}.tui-date-picker-input-start.data-v-b0775539::placeholder,.tui-date-picker-input-end.data-v-b0775539::placeholder{text-align:center}.tui-date-picker-dialog.data-v-b0775539{position:relative}.tui-date-picker-dialog-container.data-v-b0775539{position:absolute;display:flex;flex-direction:row;padding:10px;left:5px;background-color:#fff;box-shadow:rgba(0,0,0,.16) 0 3px 6px,rgba(0,0,0,.23) 0 3px 6px;z-index:1000}.tui-date-picker-dialog-container-bottom.data-v-b0775539{left:5px}.tui-date-picker-dialog-container-top.data-v-b0775539{bottom:30px}.tui-date-picker-dialog-container-one.data-v-b0775539{left:-5px}
|
||||
|
||||
Reference in New Issue
Block a user