1 |
- !function(){function n(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==r)return;var t,u,o=[],a=!0,c=!1;try{for(r=r.call(n);!(a=(t=r.next()).done)&&(o.push(t.value),!e||o.length!==e);a=!0);}catch(i){c=!0,u=i}finally{try{a||null==r.return||r.return()}finally{if(c)throw u}}return o}(n,r)||function(n,r){if(!n)return;if("string"==typeof n)return e(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return e(n,r)}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}System.register(["./index-legacy.90c82f08.js","./utils-legacy.8e06f916.js","./index-legacy.c8871c95.js"],(function(e){"use strict";var r,t,u,o,a,c,i,l,f,m,s,d,y,p,v,h,g;return{setters:[function(n){r=n.t,t=n.N,u=n.w,o=n.d,a=n.R,c=n.y,i=n.Z,l=n.aW,f=n.c,m=n.E,s=n.am,d=n.D},function(n){y=n.s,p=n.a,v=n.f,h=n.p},function(n){g=n.P}],execute:function(){var w=n(r("time-picker"),1)[0],x=t({},y,{minHour:u(0),maxHour:u(23),minMinute:u(0),maxMinute:u(59),minSecond:u(0),maxSecond:u(59),columnsType:{type:Array,default:function(){return["hour","minute"]}}}),A=o({name:w,props:x,emits:["confirm","cancel","change","update:modelValue"],setup:function(n,e){var r=e.emit,t=e.slots,u=a(n.modelValue),o=c((function(){return n.columnsType.map((function(e){var r=n.filter,t=n.formatter;switch(e){case"hour":return p(+n.minHour,+n.maxHour,e,t,r);case"minute":return p(+n.minMinute,+n.maxMinute,e,t,r);case"second":return p(+n.minSecond,+n.maxSecond,e,t,r);default:throw new Error("[Vant] DatePicker: unsupported columns type: ".concat(e))}}))}));i(u,(function(e){l(e,n.modelValue)||r("update:modelValue",e)})),i((function(){return n.modelValue}),(function(n){n=v(n,o.value),l(n,u.value)||(u.value=n)}),{immediate:!0});var d=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return r.apply(void 0,["change"].concat(e))},y=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return r.apply(void 0,["cancel"].concat(e))},w=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return r.apply(void 0,["confirm"].concat(e))};return function(){return f(g,m({modelValue:u.value,"onUpdate:modelValue":function(n){return u.value=n},columns:o.value,onChange:d,onCancel:y,onConfirm:w},s(n,h)),t)}}});e("T",d(A))}}}))}();
|