index-legacy.4c28d8ad.js 2.6 KB

1
  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,a=[],o=!0,i=!1;try{for(r=r.call(n);!(o=(t=r.next()).done)&&(a.push(t.value),!e||a.length!==e);o=!0);}catch(c){i=!0,u=c}finally{try{o||null==r.return||r.return()}finally{if(i)throw u}}return a}(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(["./utils-legacy.270b3ede.js","./index-legacy.6aa82d51.js","./index-legacy.c1f63540.js"],(function(e){"use strict";var r,t,u,a,o,i,c,l,f,m,s,d,y,p,v,h,g;return{setters:[function(n){r=n.s,t=n.a,u=n.f,a=n.p},function(n){o=n.P},function(n){i=n.t,c=n.N,l=n.w,f=n.d,m=n.R,s=n.y,d=n.Z,y=n.aW,p=n.c,v=n.E,h=n.am,g=n.D}],execute:function(){var b=n(i("time-picker"),1)[0],x=c({},r,{minHour:l(0),maxHour:l(23),minMinute:l(0),maxMinute:l(59),minSecond:l(0),maxSecond:l(59),columnsType:{type:Array,default:function(){return["hour","minute"]}}}),A=f({name:b,props:x,emits:["confirm","cancel","change","update:modelValue"],setup:function(n,e){var r=e.emit,i=e.slots,c=m(n.modelValue),l=s((function(){return n.columnsType.map((function(e){var r=n.filter,u=n.formatter;switch(e){case"hour":return t(+n.minHour,+n.maxHour,e,u,r);case"minute":return t(+n.minMinute,+n.maxMinute,e,u,r);case"second":return t(+n.minSecond,+n.maxSecond,e,u,r);default:return[]}}))}));d(c,(function(e){y(e,n.modelValue)||r("update:modelValue",e)})),d((function(){return n.modelValue}),(function(n){n=u(n,l.value),y(n,c.value)||(c.value=n)}),{immediate:!0});var f=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))},g=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))},b=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 p(o,v({modelValue:c.value,"onUpdate:modelValue":function(n){return c.value=n},columns:l.value,onChange:f,onCancel:g,onConfirm:b},h(n,a)),i)}}});e("T",g(A))}}}))}();