vue-devui 1.0.0-beta.220801 → 1.0.0-beta.220808
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +90 -81
- package/auto-complete/index.umd.js +24 -13
- package/auto-complete/style.css +1 -1
- package/avatar/index.umd.js +1 -1
- package/badge/index.umd.js +1 -1
- package/button/index.es.js +21 -42
- package/button/index.umd.js +9 -9
- package/button/style.css +1 -1
- package/card/index.umd.js +1 -1
- package/checkbox/index.es.js +94 -77
- package/checkbox/index.umd.js +26 -15
- package/collapse/index.es.js +3 -21
- package/collapse/index.umd.js +1 -1
- package/countdown/index.umd.js +1 -1
- package/date-picker-pro/index.es.js +131 -114
- package/date-picker-pro/index.umd.js +23 -12
- package/date-picker-pro/style.css +1 -1
- package/drawer/index.es.js +4 -17
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +4 -22
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +15 -38
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +85 -71
- package/form/index.umd.js +22 -11
- package/fullscreen/index.umd.js +1 -1
- package/grid/index.es.js +7 -20
- package/grid/index.umd.js +1 -1
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +12 -23
- package/image-preview/index.umd.js +1 -1
- package/input/index.es.js +86 -72
- package/input/index.umd.js +24 -13
- package/input-number/index.es.js +1 -16
- package/input-number/index.umd.js +1 -1
- package/layout/index.umd.js +1 -1
- package/loading/index.es.js +15 -38
- package/loading/index.umd.js +1 -1
- package/loading/style.css +1 -1
- package/mention/index.es.js +82 -66
- package/mention/index.umd.js +25 -14
- package/menu/index.es.js +144 -123
- package/menu/index.umd.js +1 -1
- package/menu/style.css +1 -1
- package/message/index.es.js +29 -34
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +12 -44
- package/modal/index.umd.js +1 -1
- package/notification/index.es.js +4 -21
- package/notification/index.umd.js +1 -1
- package/overlay/index.es.js +1 -1
- package/overlay/index.umd.js +1 -1
- package/package.json +1 -1
- package/pagination/index.umd.js +1 -1
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +1 -1
- package/popover/index.umd.js +4 -4
- package/progress/index.umd.js +3 -3
- package/radio/index.es.js +91 -75
- package/radio/index.umd.js +27 -16
- package/radio/style.css +1 -1
- package/rate/index.umd.js +1 -1
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +5 -18
- package/ripple/index.umd.js +1 -1
- package/search/index.es.js +86 -72
- package/search/index.umd.js +26 -15
- package/select/index.es.js +104 -83
- package/select/index.umd.js +26 -15
- package/select/style.css +1 -1
- package/skeleton/index.umd.js +1 -1
- package/slider/index.umd.js +1 -1
- package/splitter/index.es.js +22 -29
- package/splitter/index.umd.js +9 -9
- package/statistic/index.es.js +0 -21
- package/statistic/index.umd.js +1 -1
- package/status/index.umd.js +1 -1
- package/steps/index.umd.js +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +85 -71
- package/switch/index.umd.js +25 -14
- package/switch/style.css +1 -1
- package/table/index.es.js +106 -91
- package/table/index.umd.js +21 -10
- package/table/style.css +1 -1
- package/tabs/index.umd.js +1 -1
- package/tag/index.umd.js +1 -1
- package/textarea/index.es.js +88 -72
- package/textarea/index.umd.js +26 -15
- package/time-picker/index.es.js +97 -88
- package/time-picker/index.umd.js +25 -14
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +104 -83
- package/time-select/index.umd.js +25 -14
- package/time-select/style.css +1 -1
- package/timeline/index.umd.js +1 -1
- package/tooltip/index.es.js +1 -1
- package/tooltip/index.umd.js +4 -4
- package/tree/index.es.js +132 -104
- package/tree/index.umd.js +26 -15
- package/tree/style.css +1 -1
- package/upload/index.es.js +5 -47
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +413 -354
- package/vue-devui.umd.js +32 -21
package/collapse/index.es.js
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
import { defineComponent, provide, reactive, toRefs, createVNode, shallowRef, inject, computed, onMounted, Transition } from "vue";
|
|
21
2
|
const SELECT_TOKEN = Symbol("dCollapse");
|
|
22
3
|
const collapseProps = {
|
|
@@ -102,9 +83,10 @@ var Collapse = defineComponent({
|
|
|
102
83
|
ctx.emit("change", activeLists);
|
|
103
84
|
}
|
|
104
85
|
};
|
|
105
|
-
provide(SELECT_TOKEN, reactive(
|
|
86
|
+
provide(SELECT_TOKEN, reactive({
|
|
87
|
+
...toRefs(props),
|
|
106
88
|
collapseItemClick
|
|
107
|
-
}))
|
|
89
|
+
}));
|
|
108
90
|
return () => {
|
|
109
91
|
var _a, _b;
|
|
110
92
|
return createVNode("div", {
|
package/collapse/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis!="undefined"?globalThis:r||self,e(r.index={},r.Vue))})(this,function(r,e){"use strict";const V=Symbol("dCollapse"),y={modelValue:{type:[String,Number,Array],default:"",required:!0},accordion:{type:Boolean,default:!1}},N={name:{type:[String,Number],default:"",required:!0},title:{type:String,default:""},disabled:{type:Boolean,default:!1}};function p(n,i,s){let c=n;return i&&(c+=`__${i}`),s&&(c+=`--${s}`),c}function h(n,i=!1){const s=i?`.devui-${n}`:`devui-${n}`;return{b:()=>p(s),e:t=>t?p(s,t):"",m:t=>t?p(s,"",t):"",em:(t,u)=>t&&u?p(s,t,u):""}}var I="",g=e.defineComponent({name:"DCollapse",props:y,emits:["change","update:modelValue"],setup(n,i){const s=h("collapse"),c=h("scrollbar"),m=o=>!o&&o!==0?[]:Array.isArray(o)?o:[o],l=o=>{const t=[...m(n.modelValue)],u=t.indexOf(o);if(n.accordion){let f=o;(t[0]||t[0]===0)&&t[0]===o&&(f=""),i.emit("update:modelValue",f),i.emit("change",f)}else u>-1?t.splice(u,1):t.push(o),i.emit("update:modelValue",t),i.emit("change",t)};return e.provide(V,e.reactive({...e.toRefs(n),collapseItemClick:l})),()=>{var o,t;return e.createVNode("div",{class:[s.b(),c.b()]},[(t=(o=i.slots).default)==null?void 0:t.call(o)])}}});const b=()=>{const n={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};return e.createVNode("svg",n,[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{d:"M12.1464466,6.85355339 L8.35355339,10.6464466 C8.15829124,10.8417088 7.84170876,10.8417088 7.64644661,10.6464466 L3.85355339,6.85355339 C3.65829124,6.65829124 3.65829124,6.34170876 3.85355339,6.14644661 C3.94732158,6.05267842 4.07449854,6 4.20710678,6 L11.7928932,6 C12.0690356,6 12.2928932,6.22385763 12.2928932,6.5 C12.2928932,6.63260824 12.2402148,6.7597852 12.1464466,6.85355339 Z","fill-rule":"nonzero"},null)])])};var C=e.defineComponent({name:"DCollapseItem",props:N,setup(n,i){const s=h("collapse"),c=h("collapse-transition"),m=e.shallowRef(),l=e.inject(V,null),o=e.computed(()=>n.disabled?!1:Array.isArray(l==null?void 0:l.modelValue)?Boolean(l==null?void 0:l.modelValue.length)&&(l==null?void 0:l.modelValue.includes(n.name)):Boolean(l==null?void 0:l.modelValue)&&(l==null?void 0:l.modelValue)===n.name),t=a=>{a.preventDefault(),a.stopPropagation(),n.disabled||l==null||l.collapseItemClick(n.name)};e.onMounted(()=>{if(m.value){const a=m.value;o.value&&(a.style.height=`${a.offsetHeight}px`)}});const u=a=>{const d=a;d.style.height="";const w=d.offsetHeight;d.style.height="0px",d.offsetHeight,d.style.height=`${w}px`},f=a=>{const d=a;d.style.height="0px"};return()=>e.createVNode("div",{class:s.e("item")},[e.createVNode("div",{class:[s.e("item-title"),s.m("overflow-ellipsis"),o.value&&s.m("open"),n.disabled&&s.em("item","disabled")],onClick:t},[i.slots.title?i.slots.title():n.title,e.createVNode("span",{class:s.e("open-icon")},[e.createVNode(b,null,null)])]),e.createVNode(e.Transition,{name:c.b(),onEnter:u,onLeave:f},{default:()=>{var a,d;return[o.value&&e.createVNode("div",{ref:m,class:s.e("item-content")},[(d=(a=i.slots).default)==null?void 0:d.call(a)])]}})])}}),v={title:"Collapse \u6298\u53E0\u9762\u677F",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(n){n.component(g.name,g),n.component(C.name,C)}};r.Collapse=g,r.CollapseItem=C,r.collapseItemProps=N,r.collapseProps=y,r.default=v,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/countdown/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(i,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(i=typeof globalThis!="undefined"?globalThis:i||self,u(i.index={},i.Vue))})(this,function(i,u){"use strict";const S={value:{type:Number,required:!0},format:{type:String,default:"HH:mm:ss"},prefix:{type:String,default:""},suffix:{type:String,default:""},valueStyle:{type:Object,default:()=>({})}},M=e=>{const n=new Map([["Y",0],["M",0],["D",0],["H",0],["m",0],["s",0],["S",0]]),t=Math.floor(e/(365*24*60*60*1e3)),o=Math.floor(e/(30*24*60*60*1e3)%12),s=Math.floor(e/(24*60*60*1e3)%30),a=Math.floor(e/(60*60*1e3)%24),d=Math.floor(e/(60*1e3)%60),l=Math.floor(e/1e3%60),w=e%1e3;return n.set("Y",t),n.set("M",o),n.set("D",s),n.set("H",a),n.set("m",d),n.set("s",l),n.set("S",w),n},p=(e,n)=>{const t=new Map([["Y",0],["M",0],["D",0],["H",0],["m",0],["s",0],["S",0]]),o=new Map([["Y",12],["M",30],["D",24],["H",60],["m",60],["s",1e3],["S",1]]);let s=0;for(const a of t.keys())e.has(a)?(t.set(a,(n.get(a)||0)+s),s=0):s+=(n.get(a)||0)*(o.get(a)||0);return!e.has("S")&&(n.get("S")||0)>500&&t.set("s",(t.get("s")||0)+1),t},y=e=>{const n=new Set(["Y","M","D","H","m","s","S"]),t=[];for(let o=0;o<e.length;o++){const s=e[o];t.length===0||t[t.length-1].k!==s||!n.has(s)?t.push({k:s,n:1}):t[t.length-1].n++}return t},T=e=>{const n=new Set(["Y","M","D","H","m","s","S"]),t=new Set;for(let o=0;o<e.length;o++){const s=e[o];n.has(s)&&t.add(s)}return t},D=(e,n)=>{const t=10**n-1;if(e>=t)return e;{const o=n-e.toString().length;let s="";for(let a=0;a<o;a++)s+="0";return s+e}},v=(e,n=0)=>{let t=1,o;const s=Date.now();function a(){const d=Date.now(),l=s+t*n;o=setTimeout(a,n-(d-l)),t+=1,e()}return o=setTimeout(a,n),()=>{clearTimeout(o)}};var k="",h=u.defineComponent({name:"DCountdown",props:S,emits:["onChange","onFinish"],setup(e,n){const t=u.ref(),o=T(e.format),s=y(e.format),a=u.ref(""),d=c=>{const r=new Set(["Y","M","D","H","m","s","S"]),m=s.reduce((f,g)=>r.has(g.k)?f+D(c.get(g.k)||0,g.n):f+g.k,"");a.value=m},l=()=>{const c=new Date(e.value).getTime(),r=c>new Date().getTime()?c-new Date().getTime():0,m=M(r),f=p(o,m);return!n.slots.default&&d(f),n.emit("onChange",{leftTime:r,formatTime:m,legalTime:f}),r},w=()=>{l(),!t.value&&(t.value=v(()=>{var r;l()===0&&(n.emit("onFinish"),(r=t.value)==null||r.call(t),t.value=null)},o.has("S")?100:1e3))};return u.onMounted(()=>{w()}),u.onUnmounted(()=>{var c;(c=t.value)==null||c.call(t)}),()=>u.createVNode("div",{class:"devui-countdown"},[n.slots.default?n.slots.default():u.createVNode("div",{class:"countdown-content",style:e.valueStyle},[u.createVNode("span",{class:"countdown-prefix"},[e.prefix]),u.createVNode("span",{class:"countdown-value"},[a.value]),u.createVNode("span",{class:"countdown-suffix"},[e.suffix])])])}}),H={title:"Countdown \u5012\u8BA1\u65F6",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(e){e.component(h.name,h)}};i.Countdown=h,i.countdownProps=S,i.default=H,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
var __publicField = (obj, key, value) => {
|
|
33
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
|
-
return value;
|
|
35
|
-
};
|
|
36
|
-
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, shallowRef, resolveDynamicComponent, getCurrentInstance, onBeforeMount, isVNode, onUpdated, toRaw, watchEffect, render, resolveDirective, toRef, renderSlot, useSlots } from "vue";
|
|
1
|
+
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, shallowRef, resolveDynamicComponent, getCurrentInstance, onBeforeMount, isVNode, onUpdated, toRaw, watchEffect, render, resolveDirective, toRef, renderSlot, useSlots } from "vue";
|
|
37
2
|
import { onClickOutside } from "@vueuse/core";
|
|
38
3
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
39
4
|
const datePickerProCommonProps = {
|
|
@@ -64,7 +29,7 @@ const datePickerProCommonProps = {
|
|
|
64
29
|
default: "date"
|
|
65
30
|
}
|
|
66
31
|
};
|
|
67
|
-
const datePickerProProps =
|
|
32
|
+
const datePickerProProps = {
|
|
68
33
|
modelValue: {
|
|
69
34
|
type: [Date, String],
|
|
70
35
|
default: ""
|
|
@@ -72,9 +37,10 @@ const datePickerProProps = __spreadValues({
|
|
|
72
37
|
placeholder: {
|
|
73
38
|
type: String,
|
|
74
39
|
default: ""
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
40
|
+
},
|
|
41
|
+
...datePickerProCommonProps
|
|
42
|
+
};
|
|
43
|
+
const datePickerProPanelProps = {
|
|
78
44
|
visible: {
|
|
79
45
|
type: Boolean,
|
|
80
46
|
default: false
|
|
@@ -89,8 +55,9 @@ const datePickerProPanelProps = __spreadValues({
|
|
|
89
55
|
focusType: {
|
|
90
56
|
type: String,
|
|
91
57
|
default: "start"
|
|
92
|
-
}
|
|
93
|
-
|
|
58
|
+
},
|
|
59
|
+
...datePickerProCommonProps
|
|
60
|
+
};
|
|
94
61
|
const timerPickerPanelProps = {
|
|
95
62
|
visible: {
|
|
96
63
|
type: Boolean,
|
|
@@ -123,7 +90,7 @@ var dayjs_min = { exports: {} };
|
|
|
123
90
|
}, p: function(t2) {
|
|
124
91
|
return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
125
92
|
}, u: function(t2) {
|
|
126
|
-
return
|
|
93
|
+
return void 0 === t2;
|
|
127
94
|
} }, v = "en", D = {};
|
|
128
95
|
D[v] = M;
|
|
129
96
|
var p = function(t2) {
|
|
@@ -132,7 +99,7 @@ var dayjs_min = { exports: {} };
|
|
|
132
99
|
var i2;
|
|
133
100
|
if (!e2)
|
|
134
101
|
return v;
|
|
135
|
-
if (typeof e2
|
|
102
|
+
if ("string" == typeof e2) {
|
|
136
103
|
var s2 = e2.toLowerCase();
|
|
137
104
|
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
138
105
|
var u2 = e2.split("-");
|
|
@@ -146,7 +113,7 @@ var dayjs_min = { exports: {} };
|
|
|
146
113
|
}, w = function(t2, e2) {
|
|
147
114
|
if (p(t2))
|
|
148
115
|
return t2.clone();
|
|
149
|
-
var n2 = typeof e2
|
|
116
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
|
150
117
|
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
151
118
|
}, O = g;
|
|
152
119
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
@@ -160,13 +127,13 @@ var dayjs_min = { exports: {} };
|
|
|
160
127
|
return m2.parse = function(t2) {
|
|
161
128
|
this.$d = function(t3) {
|
|
162
129
|
var e2 = t3.date, n2 = t3.utc;
|
|
163
|
-
if (
|
|
130
|
+
if (null === e2)
|
|
164
131
|
return new Date(NaN);
|
|
165
132
|
if (O.u(e2))
|
|
166
133
|
return new Date();
|
|
167
134
|
if (e2 instanceof Date)
|
|
168
135
|
return new Date(e2);
|
|
169
|
-
if (typeof e2
|
|
136
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
170
137
|
var r2 = e2.match(l);
|
|
171
138
|
if (r2) {
|
|
172
139
|
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
@@ -308,6 +275,17 @@ var dayjs_min = { exports: {} };
|
|
|
308
275
|
});
|
|
309
276
|
})(dayjs_min);
|
|
310
277
|
var dayjs = dayjs_min.exports;
|
|
278
|
+
const DAY_DURATION = 24 * 60 * 60 * 1e3;
|
|
279
|
+
const yearItemHeight = 30;
|
|
280
|
+
const calendarItemHeight = 186;
|
|
281
|
+
const yearListHeight = 305;
|
|
282
|
+
const calendarListHeight = 270;
|
|
283
|
+
const monthPickerHeight = 300;
|
|
284
|
+
const monthCalendarItemHeight = 186;
|
|
285
|
+
const yearPickerHeight = 186;
|
|
286
|
+
const yearCalendarItemHeight = 48;
|
|
287
|
+
const DEFAULT_DATE = "YYYY/MM/DD";
|
|
288
|
+
const DEFAULT_TIME = `${DEFAULT_DATE} HH:mm:ss`;
|
|
311
289
|
const formatDayjsToStr = (date4, format2, type4) => {
|
|
312
290
|
if (!date4) {
|
|
313
291
|
return null;
|
|
@@ -318,7 +296,7 @@ const formatDayjsToStr = (date4, format2, type4) => {
|
|
|
318
296
|
const month = date4.month() + 1 < 10 ? "0" + (date4.month() + 1) : date4.month() + 1;
|
|
319
297
|
return `${date4.year()}-${month}`;
|
|
320
298
|
} else {
|
|
321
|
-
return date4.format(format2);
|
|
299
|
+
return dayjs(date4.format(format2)).isValid() ? date4.format(format2) : date4.format(DEFAULT_DATE);
|
|
322
300
|
}
|
|
323
301
|
};
|
|
324
302
|
const isDateEquals = (pre, cur) => {
|
|
@@ -1123,7 +1101,7 @@ var lodash = { exports: {} };
|
|
|
1123
1101
|
var objectCtorString = funcToString.call(Object2);
|
|
1124
1102
|
var oldDash = root._;
|
|
1125
1103
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1126
|
-
var
|
|
1104
|
+
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
1127
1105
|
var defineProperty = function() {
|
|
1128
1106
|
try {
|
|
1129
1107
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -1133,11 +1111,11 @@ var lodash = { exports: {} };
|
|
|
1133
1111
|
}
|
|
1134
1112
|
}();
|
|
1135
1113
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1136
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
1137
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"),
|
|
1138
|
-
var metaMap =
|
|
1114
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
1115
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
1116
|
+
var metaMap = WeakMap && new WeakMap();
|
|
1139
1117
|
var realNames = {};
|
|
1140
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
|
1118
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
1141
1119
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
1142
1120
|
function lodash2(value) {
|
|
1143
1121
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -2385,7 +2363,7 @@ var lodash = { exports: {} };
|
|
|
2385
2363
|
}
|
|
2386
2364
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2387
2365
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2388
|
-
new
|
|
2366
|
+
new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
|
|
2389
2367
|
return result2;
|
|
2390
2368
|
}
|
|
2391
2369
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -2967,7 +2945,7 @@ var lodash = { exports: {} };
|
|
|
2967
2945
|
object4 = object4.buffer;
|
|
2968
2946
|
other = other.buffer;
|
|
2969
2947
|
case arrayBufferTag:
|
|
2970
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
2948
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
2971
2949
|
return false;
|
|
2972
2950
|
}
|
|
2973
2951
|
return true;
|
|
@@ -3129,7 +3107,7 @@ var lodash = { exports: {} };
|
|
|
3129
3107
|
return result2;
|
|
3130
3108
|
};
|
|
3131
3109
|
var getTag = baseGetTag;
|
|
3132
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
|
3110
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
3133
3111
|
getTag = function(value) {
|
|
3134
3112
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3135
3113
|
if (ctorString) {
|
|
@@ -5846,7 +5824,10 @@ function useFormValidation(itemContexts) {
|
|
|
5846
5824
|
try {
|
|
5847
5825
|
await field.validate("");
|
|
5848
5826
|
} catch (err) {
|
|
5849
|
-
errors =
|
|
5827
|
+
errors = {
|
|
5828
|
+
...errors,
|
|
5829
|
+
...err
|
|
5830
|
+
};
|
|
5850
5831
|
}
|
|
5851
5832
|
}
|
|
5852
5833
|
if (!Object.keys(errors).length) {
|
|
@@ -5903,11 +5884,12 @@ defineComponent({
|
|
|
5903
5884
|
}, {
|
|
5904
5885
|
deep: true
|
|
5905
5886
|
});
|
|
5906
|
-
provide(FORM_TOKEN, reactive(
|
|
5887
|
+
provide(FORM_TOKEN, reactive({
|
|
5888
|
+
...toRefs(props),
|
|
5907
5889
|
emit: ctx.emit,
|
|
5908
5890
|
addItemContext,
|
|
5909
5891
|
removeItemContext
|
|
5910
|
-
}))
|
|
5892
|
+
}));
|
|
5911
5893
|
ctx.expose({
|
|
5912
5894
|
validate,
|
|
5913
5895
|
validateFields,
|
|
@@ -6786,7 +6768,7 @@ var FormControl = defineComponent({
|
|
|
6786
6768
|
}
|
|
6787
6769
|
});
|
|
6788
6770
|
function _extends() {
|
|
6789
|
-
_extends = Object.assign
|
|
6771
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
6790
6772
|
for (var i = 1; i < arguments.length; i++) {
|
|
6791
6773
|
var source = arguments[i];
|
|
6792
6774
|
for (var key in source) {
|
|
@@ -6805,13 +6787,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6805
6787
|
_setPrototypeOf(subClass, superClass);
|
|
6806
6788
|
}
|
|
6807
6789
|
function _getPrototypeOf(o) {
|
|
6808
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
6790
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
6809
6791
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
6810
6792
|
};
|
|
6811
6793
|
return _getPrototypeOf(o);
|
|
6812
6794
|
}
|
|
6813
6795
|
function _setPrototypeOf(o, p) {
|
|
6814
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6796
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
6815
6797
|
o2.__proto__ = p2;
|
|
6816
6798
|
return o2;
|
|
6817
6799
|
};
|
|
@@ -6834,7 +6816,7 @@ function _isNativeReflectConstruct() {
|
|
|
6834
6816
|
}
|
|
6835
6817
|
function _construct(Parent, args, Class) {
|
|
6836
6818
|
if (_isNativeReflectConstruct()) {
|
|
6837
|
-
_construct = Reflect.construct;
|
|
6819
|
+
_construct = Reflect.construct.bind();
|
|
6838
6820
|
} else {
|
|
6839
6821
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
6840
6822
|
var a = [null];
|
|
@@ -7112,9 +7094,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
7112
7094
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
7113
7095
|
}
|
|
7114
7096
|
};
|
|
7097
|
+
var urlReg;
|
|
7098
|
+
var getUrlRegex = function() {
|
|
7099
|
+
if (urlReg) {
|
|
7100
|
+
return urlReg;
|
|
7101
|
+
}
|
|
7102
|
+
var word = "[a-fA-F\\d:]";
|
|
7103
|
+
var b = function b2(options) {
|
|
7104
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
7105
|
+
};
|
|
7106
|
+
var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
|
|
7107
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
7108
|
+
var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
7109
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
7110
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
7111
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
7112
|
+
var ip = function ip2(options) {
|
|
7113
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
7114
|
+
};
|
|
7115
|
+
ip.v4 = function(options) {
|
|
7116
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
7117
|
+
};
|
|
7118
|
+
ip.v6 = function(options) {
|
|
7119
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
7120
|
+
};
|
|
7121
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
7122
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
7123
|
+
var ipv4 = ip.v4().source;
|
|
7124
|
+
var ipv6 = ip.v6().source;
|
|
7125
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
7126
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
7127
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
7128
|
+
var port = "(?::\\d{2,5})?";
|
|
7129
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
7130
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
7131
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
7132
|
+
return urlReg;
|
|
7133
|
+
};
|
|
7115
7134
|
var pattern$2 = {
|
|
7116
7135
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
7117
|
-
url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", "i"),
|
|
7118
7136
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
7119
7137
|
};
|
|
7120
7138
|
var types = {
|
|
@@ -7156,7 +7174,7 @@ var types = {
|
|
|
7156
7174
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
7157
7175
|
},
|
|
7158
7176
|
url: function url(value) {
|
|
7159
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
7177
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
7160
7178
|
},
|
|
7161
7179
|
hex: function hex(value) {
|
|
7162
7180
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -7731,7 +7749,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
7731
7749
|
if (rule.asyncValidator) {
|
|
7732
7750
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
7733
7751
|
} else if (rule.validator) {
|
|
7734
|
-
|
|
7752
|
+
try {
|
|
7753
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
7754
|
+
} catch (error) {
|
|
7755
|
+
console.error == null ? void 0 : console.error(error);
|
|
7756
|
+
if (!options.suppressValidatorError) {
|
|
7757
|
+
setTimeout(function() {
|
|
7758
|
+
throw error;
|
|
7759
|
+
}, 0);
|
|
7760
|
+
}
|
|
7761
|
+
cb(error.message);
|
|
7762
|
+
}
|
|
7735
7763
|
if (res === true) {
|
|
7736
7764
|
cb();
|
|
7737
7765
|
} else if (res === false) {
|
|
@@ -7852,10 +7880,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7852
7880
|
} else {
|
|
7853
7881
|
return rule.trigger === triggerVal;
|
|
7854
7882
|
}
|
|
7855
|
-
}).map((
|
|
7856
|
-
var rule = __objRest(_a, []);
|
|
7857
|
-
return rule;
|
|
7858
|
-
});
|
|
7883
|
+
}).map(({ ...rule }) => rule);
|
|
7859
7884
|
};
|
|
7860
7885
|
const onValidateSuccess = () => {
|
|
7861
7886
|
validateState.value = "success";
|
|
@@ -7928,15 +7953,12 @@ defineComponent({
|
|
|
7928
7953
|
props: formItemProps,
|
|
7929
7954
|
setup(props, ctx) {
|
|
7930
7955
|
const formContext = inject(FORM_TOKEN);
|
|
7931
|
-
const
|
|
7956
|
+
const {
|
|
7932
7957
|
messageType: itemMessageType,
|
|
7933
7958
|
popPosition: itemPopPosition,
|
|
7934
|
-
showFeedback: itemShowFeedback
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
"popPosition",
|
|
7938
|
-
"showFeedback"
|
|
7939
|
-
]);
|
|
7959
|
+
showFeedback: itemShowFeedback,
|
|
7960
|
+
...otherProps
|
|
7961
|
+
} = toRefs(props);
|
|
7940
7962
|
const {
|
|
7941
7963
|
label,
|
|
7942
7964
|
helpTips,
|
|
@@ -7966,7 +7988,8 @@ defineComponent({
|
|
|
7966
7988
|
labelAlign: formContext.labelAlign
|
|
7967
7989
|
}));
|
|
7968
7990
|
provide(LABEL_DATA, labelData);
|
|
7969
|
-
const context = reactive(
|
|
7991
|
+
const context = reactive({
|
|
7992
|
+
...otherProps,
|
|
7970
7993
|
showFeedback,
|
|
7971
7994
|
messageType,
|
|
7972
7995
|
popPosition,
|
|
@@ -7976,7 +7999,7 @@ defineComponent({
|
|
|
7976
7999
|
validate,
|
|
7977
8000
|
resetField,
|
|
7978
8001
|
clearValidate
|
|
7979
|
-
})
|
|
8002
|
+
});
|
|
7980
8003
|
provide(FORM_ITEM_TOKEN, context);
|
|
7981
8004
|
ctx.expose({
|
|
7982
8005
|
resetField,
|
|
@@ -8001,8 +8024,8 @@ defineComponent({
|
|
|
8001
8024
|
"extra-info": extraInfo.value
|
|
8002
8025
|
}, {
|
|
8003
8026
|
default: () => {
|
|
8004
|
-
var
|
|
8005
|
-
return [(_b = (
|
|
8027
|
+
var _a, _b;
|
|
8028
|
+
return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
|
|
8006
8029
|
}
|
|
8007
8030
|
})]);
|
|
8008
8031
|
}
|
|
@@ -8058,7 +8081,7 @@ function usePickerPro(props, ctx, t) {
|
|
|
8058
8081
|
ctx.emit("focus", e);
|
|
8059
8082
|
};
|
|
8060
8083
|
const format2 = computed(() => {
|
|
8061
|
-
return props.showTime ? props.format ||
|
|
8084
|
+
return props.showTime ? props.format || DEFAULT_TIME : props.format || DEFAULT_DATE;
|
|
8062
8085
|
});
|
|
8063
8086
|
const dateValue = computed(() => {
|
|
8064
8087
|
let result;
|
|
@@ -8346,7 +8369,7 @@ function useInputRender(props, ctx) {
|
|
|
8346
8369
|
const slots = ctx.slots;
|
|
8347
8370
|
const inputDisabled = computed(() => disabled.value || (formContext == null ? void 0 : formContext.disabled));
|
|
8348
8371
|
const inputSize = computed(() => (size == null ? void 0 : size.value) || (formContext == null ? void 0 : formContext.size) || "");
|
|
8349
|
-
const
|
|
8372
|
+
const { style, class: customClass, ...otherAttrs } = ctx.attrs;
|
|
8350
8373
|
const customStyle = { style };
|
|
8351
8374
|
const wrapClasses = computed(() => ({
|
|
8352
8375
|
[ns2.e("wrapper")]: true,
|
|
@@ -8685,15 +8708,6 @@ var Input = defineComponent({
|
|
|
8685
8708
|
};
|
|
8686
8709
|
}
|
|
8687
8710
|
});
|
|
8688
|
-
const DAY_DURATION = 24 * 60 * 60 * 1e3;
|
|
8689
|
-
const yearItemHeight = 30;
|
|
8690
|
-
const calendarItemHeight = 186;
|
|
8691
|
-
const yearListHeight = 305;
|
|
8692
|
-
const calendarListHeight = 270;
|
|
8693
|
-
const monthPickerHeight = 300;
|
|
8694
|
-
const monthCalendarItemHeight = 186;
|
|
8695
|
-
const yearPickerHeight = 186;
|
|
8696
|
-
const yearCalendarItemHeight = 48;
|
|
8697
8711
|
function useCalendarSelected(props, ctx) {
|
|
8698
8712
|
const today = ref(new Date());
|
|
8699
8713
|
const calendarRange = ref([]);
|
|
@@ -9393,10 +9407,11 @@ var ResizeObserver$1 = defineComponent({
|
|
|
9393
9407
|
Object.assign(state, size);
|
|
9394
9408
|
if (onResize) {
|
|
9395
9409
|
Promise.resolve().then(() => {
|
|
9396
|
-
onResize(
|
|
9410
|
+
onResize({
|
|
9411
|
+
...size,
|
|
9397
9412
|
offsetWidth,
|
|
9398
9413
|
offsetHeight
|
|
9399
|
-
}
|
|
9414
|
+
}, target);
|
|
9400
9415
|
});
|
|
9401
9416
|
}
|
|
9402
9417
|
}
|
|
@@ -9459,13 +9474,14 @@ var ResizeObserverContainer = defineComponent({
|
|
|
9459
9474
|
position: "relative",
|
|
9460
9475
|
overflow: "hidden"
|
|
9461
9476
|
};
|
|
9462
|
-
innerStyle.value =
|
|
9477
|
+
innerStyle.value = {
|
|
9478
|
+
...innerStyle.value,
|
|
9463
9479
|
transform: `translateY(${offset2.value}px)`,
|
|
9464
9480
|
position: "absolute",
|
|
9465
9481
|
left: 0,
|
|
9466
9482
|
right: 0,
|
|
9467
9483
|
top: 0
|
|
9468
|
-
}
|
|
9484
|
+
};
|
|
9469
9485
|
}
|
|
9470
9486
|
}, {
|
|
9471
9487
|
immediate: true
|
|
@@ -9953,9 +9969,10 @@ var VirtualList = defineComponent({
|
|
|
9953
9969
|
const componentStyle = computed(() => {
|
|
9954
9970
|
let cs = null;
|
|
9955
9971
|
if (props.height) {
|
|
9956
|
-
cs =
|
|
9957
|
-
maxHeight: isVirtual.value ? props.height + "px" : void 0
|
|
9958
|
-
|
|
9972
|
+
cs = {
|
|
9973
|
+
maxHeight: isVirtual.value ? props.height + "px" : void 0,
|
|
9974
|
+
...ScrollStyle
|
|
9975
|
+
};
|
|
9959
9976
|
if (isVirtual.value) {
|
|
9960
9977
|
cs.overflowY = "hidden";
|
|
9961
9978
|
if (state.scrollMoving) {
|
|
@@ -10697,8 +10714,8 @@ defineComponent({
|
|
|
10697
10714
|
});
|
|
10698
10715
|
class View {
|
|
10699
10716
|
constructor() {
|
|
10700
|
-
|
|
10701
|
-
|
|
10717
|
+
this.top = "50%";
|
|
10718
|
+
this.left = "50%";
|
|
10702
10719
|
}
|
|
10703
10720
|
}
|
|
10704
10721
|
const loadingProps = {
|
|
@@ -10716,13 +10733,9 @@ const loadingProps = {
|
|
|
10716
10733
|
};
|
|
10717
10734
|
class LoadingOptions {
|
|
10718
10735
|
constructor() {
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
__publicField(this, "backdrop", true);
|
|
10723
|
-
__publicField(this, "positionType", "relative");
|
|
10724
|
-
__publicField(this, "view", new View());
|
|
10725
|
-
__publicField(this, "zIndex");
|
|
10736
|
+
this.backdrop = true;
|
|
10737
|
+
this.positionType = "relative";
|
|
10738
|
+
this.view = new View();
|
|
10726
10739
|
}
|
|
10727
10740
|
}
|
|
10728
10741
|
var loading = "";
|
|
@@ -10790,7 +10803,7 @@ var Loading = defineComponent({
|
|
|
10790
10803
|
});
|
|
10791
10804
|
const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
|
|
10792
10805
|
function createComponent(component, props, children = null) {
|
|
10793
|
-
const vnode = h(component,
|
|
10806
|
+
const vnode = h(component, { ...props }, children);
|
|
10794
10807
|
const container = document.createElement("div");
|
|
10795
10808
|
vnode[COMPONENT_CONTAINER_SYMBOL] = container;
|
|
10796
10809
|
render(vnode, container);
|
|
@@ -10877,9 +10890,12 @@ const removeAttribute = (el) => {
|
|
|
10877
10890
|
};
|
|
10878
10891
|
const handleProps = (el, vprops) => {
|
|
10879
10892
|
var _a;
|
|
10880
|
-
const props =
|
|
10893
|
+
const props = {
|
|
10894
|
+
...new LoadingOptions(),
|
|
10895
|
+
...vprops
|
|
10896
|
+
};
|
|
10881
10897
|
const loadingTemplateRef = props.loadingTemplateRef;
|
|
10882
|
-
const loadingInstance = createComponent(loadingConstructor,
|
|
10898
|
+
const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
|
|
10883
10899
|
el.style.position = props.positionType;
|
|
10884
10900
|
el.options = props;
|
|
10885
10901
|
el.instance = loadingInstance;
|
|
@@ -11755,7 +11771,7 @@ var DatePickerPro = defineComponent({
|
|
|
11755
11771
|
};
|
|
11756
11772
|
}
|
|
11757
11773
|
});
|
|
11758
|
-
const rangeDatePickerProProps =
|
|
11774
|
+
const rangeDatePickerProProps = {
|
|
11759
11775
|
modelValue: {
|
|
11760
11776
|
type: Array,
|
|
11761
11777
|
default: ["", ""]
|
|
@@ -11767,8 +11783,9 @@ const rangeDatePickerProProps = __spreadValues({
|
|
|
11767
11783
|
separator: {
|
|
11768
11784
|
type: String,
|
|
11769
11785
|
default: "-"
|
|
11770
|
-
}
|
|
11771
|
-
|
|
11786
|
+
},
|
|
11787
|
+
...datePickerProCommonProps
|
|
11788
|
+
};
|
|
11772
11789
|
function useRangePickerPro(props, ctx) {
|
|
11773
11790
|
const formContext = inject(FORM_TOKEN, void 0);
|
|
11774
11791
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|