@deot/vc-components 1.0.57 → 1.0.59
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/dist/index.cjs +608 -257
- package/dist/index.d.ts +262 -34
- package/dist/index.iife.js +608 -258
- package/dist/index.js +607 -258
- package/dist/index.style.css +2 -2
- package/dist/index.umd.cjs +608 -258
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -7,7 +7,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
7
7
|
if (!message || !target) return;
|
|
8
8
|
message = `[@deot/vc - ${target}]: ${message}`;
|
|
9
9
|
this.message = message;
|
|
10
|
-
/* istanbul ignore next -- @preserve */
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
|
|
@@ -15,31 +14,38 @@ var VcComponents = (function (exports, vue) {
|
|
|
15
14
|
|
|
16
15
|
const nil = void 0;
|
|
17
16
|
const defaults$3 = {
|
|
18
|
-
UploadPicker: {
|
|
19
|
-
enhancer: nil
|
|
20
|
-
},
|
|
21
17
|
Editor: {
|
|
22
18
|
options: nil,
|
|
23
19
|
enhancer: nil
|
|
24
20
|
},
|
|
25
|
-
Theme: {
|
|
26
|
-
variables: VARIABLES
|
|
27
|
-
},
|
|
28
21
|
Portal: {
|
|
29
22
|
install: nil
|
|
30
23
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
line: nil
|
|
24
|
+
RecycleList: {
|
|
25
|
+
renderRefresh: nil,
|
|
26
|
+
renderPlaceholder: nil,
|
|
27
|
+
renderLoading: nil,
|
|
28
|
+
renderComplete: nil,
|
|
29
|
+
renderEmpty: nil
|
|
38
30
|
},
|
|
39
31
|
Snapshot: {
|
|
40
32
|
options: nil,
|
|
41
33
|
source: nil,
|
|
42
34
|
download: nil
|
|
35
|
+
},
|
|
36
|
+
TableColumn: {
|
|
37
|
+
line: nil
|
|
38
|
+
},
|
|
39
|
+
Theme: {
|
|
40
|
+
variables: VARIABLES
|
|
41
|
+
},
|
|
42
|
+
Upload: {
|
|
43
|
+
onRequest: nil,
|
|
44
|
+
onResponse: nil,
|
|
45
|
+
onMessage: nil
|
|
46
|
+
},
|
|
47
|
+
UploadPicker: {
|
|
48
|
+
enhancer: nil
|
|
43
49
|
}
|
|
44
50
|
};
|
|
45
51
|
|
|
@@ -68,7 +74,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
68
74
|
}
|
|
69
75
|
const VcInstance = new Instance();
|
|
70
76
|
|
|
71
|
-
const props$
|
|
77
|
+
const props$1u = {
|
|
72
78
|
tag: {
|
|
73
79
|
type: String,
|
|
74
80
|
default: "div"
|
|
@@ -77,10 +83,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
77
83
|
|
|
78
84
|
/** @jsxImportSource vue */
|
|
79
85
|
|
|
80
|
-
const COMPONENT_NAME$
|
|
86
|
+
const COMPONENT_NAME$2a = 'vc-action-sheet';
|
|
81
87
|
const ActionSheet = /* @__PURE__ */ vue.defineComponent({
|
|
82
|
-
name: COMPONENT_NAME$
|
|
83
|
-
props: props$
|
|
88
|
+
name: COMPONENT_NAME$2a,
|
|
89
|
+
props: props$1u,
|
|
84
90
|
setup(props, {
|
|
85
91
|
slots
|
|
86
92
|
}) {
|
|
@@ -94,7 +100,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
94
100
|
|
|
95
101
|
const MActionSheet = ActionSheet;
|
|
96
102
|
|
|
97
|
-
const props$
|
|
103
|
+
const props$1t = {
|
|
98
104
|
modelValue: {
|
|
99
105
|
type: Boolean,
|
|
100
106
|
default: false
|
|
@@ -372,11 +378,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
372
378
|
|
|
373
379
|
/** @jsxImportSource vue */
|
|
374
380
|
|
|
375
|
-
const COMPONENT_NAME$
|
|
381
|
+
const COMPONENT_NAME$29 = 'vc-affix';
|
|
376
382
|
const Affix = /* @__PURE__ */ vue.defineComponent({
|
|
377
|
-
name: COMPONENT_NAME$
|
|
383
|
+
name: COMPONENT_NAME$29,
|
|
378
384
|
emits: ['update:modelValue'],
|
|
379
|
-
props: props$
|
|
385
|
+
props: props$1t,
|
|
380
386
|
setup(props, {
|
|
381
387
|
slots,
|
|
382
388
|
expose,
|
|
@@ -542,7 +548,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
542
548
|
|
|
543
549
|
const MAffix = Affix;
|
|
544
550
|
|
|
545
|
-
const props$
|
|
551
|
+
const props$1s = {
|
|
546
552
|
modelValue: {
|
|
547
553
|
type: Boolean,
|
|
548
554
|
default: true
|
|
@@ -569,7 +575,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
569
575
|
}
|
|
570
576
|
};
|
|
571
577
|
|
|
572
|
-
const props$
|
|
578
|
+
const props$1r = {
|
|
573
579
|
type: String,
|
|
574
580
|
inherit: {
|
|
575
581
|
type: Boolean,
|
|
@@ -607,7 +613,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
607
613
|
const key = `${prefix}${url}`;
|
|
608
614
|
const cache = window.localStorage.getItem(key);
|
|
609
615
|
let icons = JSON.parse(cache || '""');
|
|
610
|
-
/* istanbul ignore next -- @preserve */
|
|
611
616
|
if (!icons) {
|
|
612
617
|
const data = await new Promise((resolve$) => {
|
|
613
618
|
const request = new XMLHttpRequest();
|
|
@@ -642,7 +647,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
642
647
|
});
|
|
643
648
|
resolve();
|
|
644
649
|
} catch (e) {
|
|
645
|
-
/* istanbul ignore next -- @preserve */
|
|
646
650
|
reject(new VcError("icon", e));
|
|
647
651
|
}
|
|
648
652
|
})();
|
|
@@ -654,7 +658,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
654
658
|
const icons = {};
|
|
655
659
|
setTimeout(() => {
|
|
656
660
|
try {
|
|
657
|
-
/* istanbul ignore next -- @preserve */
|
|
658
661
|
IS_DEV && console.time(url);
|
|
659
662
|
svgStr.replace(svgReg, "$1")?.match(symbolReg)?.forEach(
|
|
660
663
|
(i) => i.replace(basicReg, (_, ...args) => {
|
|
@@ -669,23 +672,19 @@ var VcComponents = (function (exports, vue) {
|
|
|
669
672
|
return "";
|
|
670
673
|
})
|
|
671
674
|
);
|
|
672
|
-
/* istanbul ignore next -- @preserve */
|
|
673
675
|
IS_DEV && console.timeEnd(url);
|
|
674
676
|
resolve(icons);
|
|
675
677
|
} catch (e) {
|
|
676
|
-
/* istanbul ignore next -- @preserve */
|
|
677
678
|
reject(new VcError("icon", e));
|
|
678
679
|
}
|
|
679
680
|
}, 0);
|
|
680
681
|
});
|
|
681
682
|
}
|
|
682
683
|
on(type, fn) {
|
|
683
|
-
/* istanbul ignore next -- @preserve */
|
|
684
684
|
if (typeof type !== "string" || typeof fn !== "function") return this;
|
|
685
685
|
this.events[type] = this.events[type] || [];
|
|
686
686
|
if (this.events[type].length >= 100) {
|
|
687
687
|
delete this.events[type];
|
|
688
|
-
/* istanbul ignore else -- @preserve */
|
|
689
688
|
if (!IS_SERVER$2) {
|
|
690
689
|
throw new VcError("icon", `${type} nonexistent`);
|
|
691
690
|
}
|
|
@@ -694,7 +693,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
694
693
|
return this;
|
|
695
694
|
}
|
|
696
695
|
off(type, fn) {
|
|
697
|
-
/* istanbul ignore next -- @preserve */
|
|
698
696
|
if (typeof type !== "string" || typeof fn !== "function") return this;
|
|
699
697
|
this.events[type] = this.events[type]?.filter((i) => i != fn);
|
|
700
698
|
return this;
|
|
@@ -714,10 +712,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
714
712
|
|
|
715
713
|
/** @jsxImportSource vue */
|
|
716
714
|
|
|
717
|
-
const COMPONENT_NAME$
|
|
715
|
+
const COMPONENT_NAME$28 = 'vc-icon';
|
|
718
716
|
const Icon = /* @__PURE__ */ vue.defineComponent({
|
|
719
|
-
name: COMPONENT_NAME$
|
|
720
|
-
props: props$
|
|
717
|
+
name: COMPONENT_NAME$28,
|
|
718
|
+
props: props$1r,
|
|
721
719
|
setup(props) {
|
|
722
720
|
const viewBox = vue.ref('0 0 1024 1024');
|
|
723
721
|
const path = vue.ref([]);
|
|
@@ -750,7 +748,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
750
748
|
}
|
|
751
749
|
});
|
|
752
750
|
|
|
753
|
-
const props$
|
|
751
|
+
const props$1q = {
|
|
754
752
|
/**
|
|
755
753
|
* 进入/离开持续时间
|
|
756
754
|
* {enter: 300, leave: 300}
|
|
@@ -915,10 +913,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
915
913
|
};
|
|
916
914
|
};
|
|
917
915
|
|
|
918
|
-
const COMPONENT_NAME$
|
|
916
|
+
const COMPONENT_NAME$27 = "vc-transition";
|
|
919
917
|
const Transition = vue.defineComponent({
|
|
920
|
-
name: COMPONENT_NAME$
|
|
921
|
-
props: props$
|
|
918
|
+
name: COMPONENT_NAME$27,
|
|
919
|
+
props: props$1q,
|
|
922
920
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
923
921
|
inheritAttrs: false,
|
|
924
922
|
setup(props, { slots, attrs }) {
|
|
@@ -938,10 +936,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
938
936
|
}
|
|
939
937
|
});
|
|
940
938
|
|
|
941
|
-
const COMPONENT_NAME$
|
|
939
|
+
const COMPONENT_NAME$26 = "vc-transition-collapse";
|
|
942
940
|
const TransitionCollapse = vue.defineComponent({
|
|
943
|
-
name: COMPONENT_NAME$
|
|
944
|
-
props: props$
|
|
941
|
+
name: COMPONENT_NAME$26,
|
|
942
|
+
props: props$1q,
|
|
945
943
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
946
944
|
inheritAttrs: false,
|
|
947
945
|
setup(props, { slots, attrs: _attrs }) {
|
|
@@ -958,7 +956,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
958
956
|
const handleBeforeEnter = (el) => {
|
|
959
957
|
const duration = props.duration.enter || props.duration;
|
|
960
958
|
el.style.transition = getTransitionStyle(duration);
|
|
961
|
-
/* istanbul ignore next -- @preserve */
|
|
962
959
|
if (!el.dataset) {
|
|
963
960
|
el.dataset = {};
|
|
964
961
|
}
|
|
@@ -975,7 +972,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
975
972
|
const next = createNext(done, duration);
|
|
976
973
|
try {
|
|
977
974
|
el.dataset.oldOverflow = el.style.overflow;
|
|
978
|
-
/* istanbul ignore next -- @preserve */
|
|
979
975
|
if (el.scrollHeight !== 0) {
|
|
980
976
|
el.style.height = el.scrollHeight + "px";
|
|
981
977
|
el.style.paddingTop = el.dataset.oldPaddingTop + "px";
|
|
@@ -998,7 +994,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
998
994
|
attrs.onAfterEnter?.(el);
|
|
999
995
|
};
|
|
1000
996
|
const handleBeforeLeave = (el) => {
|
|
1001
|
-
/* istanbul ignore next -- @preserve */
|
|
1002
997
|
if (!el.dataset) {
|
|
1003
998
|
el.dataset = {};
|
|
1004
999
|
}
|
|
@@ -1015,7 +1010,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
1015
1010
|
const next = createNext(done, duration);
|
|
1016
1011
|
try {
|
|
1017
1012
|
const leaveDuration = props.duration.leave || props.duration;
|
|
1018
|
-
/* istanbul ignore next -- @preserve */
|
|
1019
1013
|
if (el.scrollHeight !== 0) {
|
|
1020
1014
|
el.style.transition = getTransitionStyle(leaveDuration);
|
|
1021
1015
|
el.style.height = "0px";
|
|
@@ -1059,11 +1053,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
1059
1053
|
}
|
|
1060
1054
|
});
|
|
1061
1055
|
|
|
1062
|
-
const COMPONENT_NAME$
|
|
1056
|
+
const COMPONENT_NAME$25 = "vc-transition-fade";
|
|
1063
1057
|
const TransitionFade = vue.defineComponent({
|
|
1064
|
-
name: COMPONENT_NAME$
|
|
1058
|
+
name: COMPONENT_NAME$25,
|
|
1065
1059
|
props: {
|
|
1066
|
-
...props$
|
|
1060
|
+
...props$1q,
|
|
1067
1061
|
// inheritAttrs必须是false
|
|
1068
1062
|
style: {
|
|
1069
1063
|
type: Object,
|
|
@@ -1096,11 +1090,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
1096
1090
|
}
|
|
1097
1091
|
});
|
|
1098
1092
|
|
|
1099
|
-
const COMPONENT_NAME$
|
|
1093
|
+
const COMPONENT_NAME$24 = "vc-transition-scale";
|
|
1100
1094
|
const TransitionScale = vue.defineComponent({
|
|
1101
|
-
name: COMPONENT_NAME$
|
|
1095
|
+
name: COMPONENT_NAME$24,
|
|
1102
1096
|
props: {
|
|
1103
|
-
...props$
|
|
1097
|
+
...props$1q,
|
|
1104
1098
|
mode: {
|
|
1105
1099
|
type: String,
|
|
1106
1100
|
default: "both",
|
|
@@ -1138,11 +1132,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
1138
1132
|
}
|
|
1139
1133
|
});
|
|
1140
1134
|
|
|
1141
|
-
const COMPONENT_NAME$
|
|
1135
|
+
const COMPONENT_NAME$23 = "vc-transition-slide";
|
|
1142
1136
|
const TransitionSlide = vue.defineComponent({
|
|
1143
|
-
name: COMPONENT_NAME$
|
|
1137
|
+
name: COMPONENT_NAME$23,
|
|
1144
1138
|
props: {
|
|
1145
|
-
...props$
|
|
1139
|
+
...props$1q,
|
|
1146
1140
|
mode: {
|
|
1147
1141
|
type: String,
|
|
1148
1142
|
default: "left",
|
|
@@ -1180,11 +1174,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
1180
1174
|
}
|
|
1181
1175
|
});
|
|
1182
1176
|
|
|
1183
|
-
const COMPONENT_NAME$
|
|
1177
|
+
const COMPONENT_NAME$22 = "vc-transition-zoom";
|
|
1184
1178
|
const TransitionZoom = vue.defineComponent({
|
|
1185
|
-
name: COMPONENT_NAME$
|
|
1179
|
+
name: COMPONENT_NAME$22,
|
|
1186
1180
|
props: {
|
|
1187
|
-
...props$
|
|
1181
|
+
...props$1q,
|
|
1188
1182
|
mode: {
|
|
1189
1183
|
type: String,
|
|
1190
1184
|
default: "x",
|
|
@@ -1224,7 +1218,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
1224
1218
|
|
|
1225
1219
|
/** @jsxImportSource vue */
|
|
1226
1220
|
|
|
1227
|
-
const COMPONENT_NAME$
|
|
1221
|
+
const COMPONENT_NAME$21 = 'vc-alert';
|
|
1228
1222
|
|
|
1229
1223
|
// [color, borderColor, backgroundColor], -> CSS
|
|
1230
1224
|
const THEME_MAP = {
|
|
@@ -1234,8 +1228,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
1234
1228
|
warning: ['#ffbf00', '#ffe58f', '#fffbe6']
|
|
1235
1229
|
};
|
|
1236
1230
|
const Alert = /* @__PURE__ */ vue.defineComponent({
|
|
1237
|
-
name: COMPONENT_NAME$
|
|
1238
|
-
props: props$
|
|
1231
|
+
name: COMPONENT_NAME$21,
|
|
1232
|
+
props: props$1s,
|
|
1239
1233
|
setup(props, {
|
|
1240
1234
|
slots,
|
|
1241
1235
|
emit
|
|
@@ -1450,7 +1444,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
1450
1444
|
return flatten$1(value, JSON.parse);
|
|
1451
1445
|
};
|
|
1452
1446
|
|
|
1453
|
-
const props$
|
|
1447
|
+
const props$1p = {
|
|
1454
1448
|
// canvas配置参数
|
|
1455
1449
|
options: Object,
|
|
1456
1450
|
width: {
|
|
@@ -1466,10 +1460,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
1466
1460
|
/** @jsxImportSource vue */
|
|
1467
1461
|
|
|
1468
1462
|
const isTouch = typeof document !== 'undefined' && 'ontouchend' in document;
|
|
1469
|
-
const COMPONENT_NAME$
|
|
1463
|
+
const COMPONENT_NAME$20 = 'vc-artboard';
|
|
1470
1464
|
const Artboard = /* @__PURE__ */ vue.defineComponent({
|
|
1471
|
-
name: COMPONENT_NAME$
|
|
1472
|
-
props: props$
|
|
1465
|
+
name: COMPONENT_NAME$20,
|
|
1466
|
+
props: props$1p,
|
|
1473
1467
|
setup(props, {
|
|
1474
1468
|
emit,
|
|
1475
1469
|
expose
|
|
@@ -1672,7 +1666,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
1672
1666
|
|
|
1673
1667
|
const MArtboard = Artboard;
|
|
1674
1668
|
|
|
1675
|
-
const props$
|
|
1669
|
+
const props$1o = {
|
|
1676
1670
|
size: {
|
|
1677
1671
|
type: Number,
|
|
1678
1672
|
default: 28
|
|
@@ -1696,10 +1690,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
1696
1690
|
|
|
1697
1691
|
/** @jsxImportSource vue */
|
|
1698
1692
|
|
|
1699
|
-
const COMPONENT_NAME$
|
|
1693
|
+
const COMPONENT_NAME$1$ = 'vc-spin';
|
|
1700
1694
|
const Spin = /* @__PURE__ */ vue.defineComponent({
|
|
1701
|
-
name: COMPONENT_NAME$
|
|
1702
|
-
props: props$
|
|
1695
|
+
name: COMPONENT_NAME$1$,
|
|
1696
|
+
props: props$1o,
|
|
1703
1697
|
setup(props, {
|
|
1704
1698
|
slots
|
|
1705
1699
|
}) {
|
|
@@ -6771,7 +6765,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
6771
6765
|
});
|
|
6772
6766
|
}
|
|
6773
6767
|
|
|
6774
|
-
const props$
|
|
6768
|
+
const props$1n = {
|
|
6775
6769
|
wait: {
|
|
6776
6770
|
type: Number,
|
|
6777
6771
|
default: 250
|
|
@@ -6787,10 +6781,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
6787
6781
|
exclude: RegExp
|
|
6788
6782
|
};
|
|
6789
6783
|
|
|
6790
|
-
const COMPONENT_NAME$
|
|
6784
|
+
const COMPONENT_NAME$1_ = "vc-debounce";
|
|
6791
6785
|
const Debounce = vue.defineComponent({
|
|
6792
|
-
name: COMPONENT_NAME$
|
|
6793
|
-
props: props$
|
|
6786
|
+
name: COMPONENT_NAME$1_,
|
|
6787
|
+
props: props$1n,
|
|
6794
6788
|
/**
|
|
6795
6789
|
* 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
|
|
6796
6790
|
* 如事件onClick
|
|
@@ -6805,7 +6799,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
6805
6799
|
() => {
|
|
6806
6800
|
const { wait, exclude, include } = props;
|
|
6807
6801
|
const ons = Object.entries(attrs).reduce((pre, [key, callback]) => {
|
|
6808
|
-
/* istanbul ignore else -- @preserve */
|
|
6809
6802
|
if ((!exclude || !exclude.test(key)) && (!include || include.test(key)) && typeof callback === "function") {
|
|
6810
6803
|
pre[key] = debounce(callback, wait, {
|
|
6811
6804
|
leading: true,
|
|
@@ -6831,7 +6824,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
6831
6824
|
}
|
|
6832
6825
|
});
|
|
6833
6826
|
|
|
6834
|
-
const props$
|
|
6827
|
+
const props$1m = {
|
|
6835
6828
|
tag: {
|
|
6836
6829
|
type: String,
|
|
6837
6830
|
default: "button"
|
|
@@ -6863,11 +6856,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
6863
6856
|
|
|
6864
6857
|
/** @jsxImportSource vue */
|
|
6865
6858
|
|
|
6866
|
-
const COMPONENT_NAME$
|
|
6859
|
+
const COMPONENT_NAME$1Z = 'vc-button';
|
|
6867
6860
|
const Button = /* @__PURE__ */ vue.defineComponent({
|
|
6868
|
-
name: COMPONENT_NAME$
|
|
6861
|
+
name: COMPONENT_NAME$1Z,
|
|
6869
6862
|
emits: ['click'],
|
|
6870
|
-
props: props$
|
|
6863
|
+
props: props$1m,
|
|
6871
6864
|
setup(props, {
|
|
6872
6865
|
slots
|
|
6873
6866
|
}) {
|
|
@@ -6928,7 +6921,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
6928
6921
|
}
|
|
6929
6922
|
});
|
|
6930
6923
|
|
|
6931
|
-
const props$
|
|
6924
|
+
const props$1l = {
|
|
6932
6925
|
vertical: {
|
|
6933
6926
|
type: Boolean,
|
|
6934
6927
|
default: false
|
|
@@ -6949,10 +6942,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
6949
6942
|
|
|
6950
6943
|
/** @jsxImportSource vue */
|
|
6951
6944
|
|
|
6952
|
-
const COMPONENT_NAME$
|
|
6945
|
+
const COMPONENT_NAME$1Y = 'vc-button-group';
|
|
6953
6946
|
const ButtonGroup = /* @__PURE__ */ vue.defineComponent({
|
|
6954
|
-
name: COMPONENT_NAME$
|
|
6955
|
-
props: props$
|
|
6947
|
+
name: COMPONENT_NAME$1Y,
|
|
6948
|
+
props: props$1l,
|
|
6956
6949
|
setup(props, {
|
|
6957
6950
|
slots
|
|
6958
6951
|
}) {
|
|
@@ -6976,7 +6969,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
6976
6969
|
const MButton = Button;
|
|
6977
6970
|
const MButtonGroup = ButtonGroup;
|
|
6978
6971
|
|
|
6979
|
-
const props$
|
|
6972
|
+
const props$1k = {
|
|
6980
6973
|
tag: {
|
|
6981
6974
|
type: String,
|
|
6982
6975
|
default: "div"
|
|
@@ -6985,10 +6978,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
6985
6978
|
|
|
6986
6979
|
/** @jsxImportSource vue */
|
|
6987
6980
|
|
|
6988
|
-
const COMPONENT_NAME$
|
|
6981
|
+
const COMPONENT_NAME$1X = 'vc-calendar';
|
|
6989
6982
|
const Calendar$1 = /* @__PURE__ */ vue.defineComponent({
|
|
6990
|
-
name: COMPONENT_NAME$
|
|
6991
|
-
props: props$
|
|
6983
|
+
name: COMPONENT_NAME$1X,
|
|
6984
|
+
props: props$1k,
|
|
6992
6985
|
setup(props, {
|
|
6993
6986
|
slots
|
|
6994
6987
|
}) {
|
|
@@ -7002,7 +6995,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7002
6995
|
|
|
7003
6996
|
const MCalendar = Calendar$1;
|
|
7004
6997
|
|
|
7005
|
-
const props$
|
|
6998
|
+
const props$1j = {
|
|
7006
6999
|
border: {
|
|
7007
7000
|
type: Boolean,
|
|
7008
7001
|
default: true
|
|
@@ -7025,10 +7018,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
7025
7018
|
|
|
7026
7019
|
/** @jsxImportSource vue */
|
|
7027
7020
|
|
|
7028
|
-
const COMPONENT_NAME$
|
|
7021
|
+
const COMPONENT_NAME$1W = 'vc-card';
|
|
7029
7022
|
const Card = /* @__PURE__ */ vue.defineComponent({
|
|
7030
|
-
name: COMPONENT_NAME$
|
|
7031
|
-
props: props$
|
|
7023
|
+
name: COMPONENT_NAME$1W,
|
|
7024
|
+
props: props$1j,
|
|
7032
7025
|
setup(props, {
|
|
7033
7026
|
slots
|
|
7034
7027
|
}) {
|
|
@@ -7054,7 +7047,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7054
7047
|
|
|
7055
7048
|
const MCard = Card;
|
|
7056
7049
|
|
|
7057
|
-
const props$
|
|
7050
|
+
const props$1i = {
|
|
7058
7051
|
tag: {
|
|
7059
7052
|
type: String,
|
|
7060
7053
|
default: "div"
|
|
@@ -7063,10 +7056,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
7063
7056
|
|
|
7064
7057
|
/** @jsxImportSource vue */
|
|
7065
7058
|
|
|
7066
|
-
const COMPONENT_NAME$
|
|
7059
|
+
const COMPONENT_NAME$1V = 'vc-carousel';
|
|
7067
7060
|
const Carousel = /* @__PURE__ */ vue.defineComponent({
|
|
7068
|
-
name: COMPONENT_NAME$
|
|
7069
|
-
props: props$
|
|
7061
|
+
name: COMPONENT_NAME$1V,
|
|
7062
|
+
props: props$1i,
|
|
7070
7063
|
setup(props, {
|
|
7071
7064
|
slots
|
|
7072
7065
|
}) {
|
|
@@ -7137,7 +7130,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
7137
7130
|
const instance = vue.getCurrentInstance();
|
|
7138
7131
|
const regex = new RegExp(`${componentName}$`);
|
|
7139
7132
|
let parent = instance.parent;
|
|
7140
|
-
/* istanbul ignore next -- @preserve */
|
|
7141
7133
|
while (parent && !(parent?.type?.name && regex.test(parent.type.name)) && (!privateKey || !parent?.[privateKey] || !parent?.proxy?.[privateKey])) {
|
|
7142
7134
|
parent = parent.parent || parent?.type?.parent;
|
|
7143
7135
|
}
|
|
@@ -7171,7 +7163,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7171
7163
|
});
|
|
7172
7164
|
};
|
|
7173
7165
|
|
|
7174
|
-
const props$
|
|
7166
|
+
const props$1h = {
|
|
7175
7167
|
// Array, 作为select等数组存放临时值
|
|
7176
7168
|
modelValue: [String, Number, Array],
|
|
7177
7169
|
disabled: {
|
|
@@ -7423,12 +7415,12 @@ var VcComponents = (function (exports, vue) {
|
|
|
7423
7415
|
|
|
7424
7416
|
/** @jsxImportSource vue */
|
|
7425
7417
|
|
|
7426
|
-
const COMPONENT_NAME$
|
|
7418
|
+
const COMPONENT_NAME$1U = 'vc-input';
|
|
7427
7419
|
const Input$1 = /* @__PURE__ */ vue.defineComponent({
|
|
7428
|
-
name: COMPONENT_NAME$
|
|
7420
|
+
name: COMPONENT_NAME$1U,
|
|
7429
7421
|
inheritAttrs: false,
|
|
7430
7422
|
props: {
|
|
7431
|
-
...props$
|
|
7423
|
+
...props$1h,
|
|
7432
7424
|
indicator: {
|
|
7433
7425
|
type: [Boolean, Object],
|
|
7434
7426
|
default: false
|
|
@@ -7530,8 +7522,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
7530
7522
|
}
|
|
7531
7523
|
});
|
|
7532
7524
|
|
|
7533
|
-
const props$
|
|
7534
|
-
...props$
|
|
7525
|
+
const props$1g = {
|
|
7526
|
+
...props$1h,
|
|
7535
7527
|
min: {
|
|
7536
7528
|
type: Number,
|
|
7537
7529
|
default: 0
|
|
@@ -7760,10 +7752,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
7760
7752
|
|
|
7761
7753
|
/** @jsxImportSource vue */
|
|
7762
7754
|
|
|
7763
|
-
const COMPONENT_NAME$
|
|
7755
|
+
const COMPONENT_NAME$1T = 'vc-input-number';
|
|
7764
7756
|
const InputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
7765
|
-
name: COMPONENT_NAME$
|
|
7766
|
-
props: props$
|
|
7757
|
+
name: COMPONENT_NAME$1T,
|
|
7758
|
+
props: props$1g,
|
|
7767
7759
|
inheritAttrs: false,
|
|
7768
7760
|
setup(props, {
|
|
7769
7761
|
slots,
|
|
@@ -7816,8 +7808,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
7816
7808
|
}
|
|
7817
7809
|
});
|
|
7818
7810
|
|
|
7819
|
-
const props$
|
|
7820
|
-
...props$
|
|
7811
|
+
const props$1f = {
|
|
7812
|
+
...props$1h,
|
|
7821
7813
|
enterText: {
|
|
7822
7814
|
type: [Boolean, String],
|
|
7823
7815
|
default: true
|
|
@@ -7826,10 +7818,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
7826
7818
|
|
|
7827
7819
|
/** @jsxImportSource vue */
|
|
7828
7820
|
|
|
7829
|
-
const COMPONENT_NAME$
|
|
7821
|
+
const COMPONENT_NAME$1S = 'vc-input-search';
|
|
7830
7822
|
const InputSearch = /* @__PURE__ */ vue.defineComponent({
|
|
7831
|
-
name: COMPONENT_NAME$
|
|
7832
|
-
props: props$
|
|
7823
|
+
name: COMPONENT_NAME$1S,
|
|
7824
|
+
props: props$1f,
|
|
7833
7825
|
inheritAttrs: false,
|
|
7834
7826
|
setup(props, {
|
|
7835
7827
|
emit,
|
|
@@ -7861,7 +7853,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7861
7853
|
}
|
|
7862
7854
|
});
|
|
7863
7855
|
|
|
7864
|
-
const props$
|
|
7856
|
+
const props$1e = {
|
|
7865
7857
|
modelValue: Boolean,
|
|
7866
7858
|
animation: String,
|
|
7867
7859
|
placement: {
|
|
@@ -7940,7 +7932,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7940
7932
|
"autoWidth",
|
|
7941
7933
|
"always"
|
|
7942
7934
|
];
|
|
7943
|
-
const props$
|
|
7935
|
+
const props$1d = {
|
|
7944
7936
|
trigger: {
|
|
7945
7937
|
type: String,
|
|
7946
7938
|
default: "hover",
|
|
@@ -7958,7 +7950,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7958
7950
|
type: Boolean,
|
|
7959
7951
|
default: true
|
|
7960
7952
|
},
|
|
7961
|
-
...pick(props$
|
|
7953
|
+
...pick(props$1e, wrapperKeys)
|
|
7962
7954
|
};
|
|
7963
7955
|
|
|
7964
7956
|
class Resize {
|
|
@@ -8277,17 +8269,17 @@ var VcComponents = (function (exports, vue) {
|
|
|
8277
8269
|
};
|
|
8278
8270
|
};
|
|
8279
8271
|
|
|
8280
|
-
const props$
|
|
8272
|
+
const props$1c = {
|
|
8281
8273
|
render: {
|
|
8282
8274
|
type: Function,
|
|
8283
8275
|
default: () => null
|
|
8284
8276
|
}
|
|
8285
8277
|
};
|
|
8286
8278
|
|
|
8287
|
-
const COMPONENT_NAME$
|
|
8279
|
+
const COMPONENT_NAME$1R = "vc-customer";
|
|
8288
8280
|
const Customer = vue.defineComponent({
|
|
8289
|
-
name: COMPONENT_NAME$
|
|
8290
|
-
props: props$
|
|
8281
|
+
name: COMPONENT_NAME$1R,
|
|
8282
|
+
props: props$1c,
|
|
8291
8283
|
setup(props, context) {
|
|
8292
8284
|
return () => vue.h(() => {
|
|
8293
8285
|
return props.render(context.attrs, context);
|
|
@@ -8421,7 +8413,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
8421
8413
|
}
|
|
8422
8414
|
}
|
|
8423
8415
|
|
|
8424
|
-
const COMPONENT_NAME$
|
|
8416
|
+
const COMPONENT_NAME$1Q = "vc-portal";
|
|
8425
8417
|
class Portal {
|
|
8426
8418
|
/**
|
|
8427
8419
|
* 清理Portals类型组件
|
|
@@ -8451,7 +8443,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
8451
8443
|
}
|
|
8452
8444
|
}
|
|
8453
8445
|
} catch (e) {
|
|
8454
|
-
/* istanbul ignore next -- @preserve */
|
|
8455
8446
|
throw new VcError("instance", e);
|
|
8456
8447
|
}
|
|
8457
8448
|
}
|
|
@@ -8462,7 +8453,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
8462
8453
|
try {
|
|
8463
8454
|
Portal.leafs.forEach((leaf) => leaf.destroy());
|
|
8464
8455
|
} catch (e) {
|
|
8465
|
-
/* istanbul ignore next -- @preserve */
|
|
8466
8456
|
throw new VcError("instance", e);
|
|
8467
8457
|
}
|
|
8468
8458
|
}
|
|
@@ -8473,7 +8463,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
8473
8463
|
this.wrapper = wrapper;
|
|
8474
8464
|
this.globalOptions = {
|
|
8475
8465
|
...options,
|
|
8476
|
-
name: options?.name || wrapper.name || getUid(COMPONENT_NAME$
|
|
8466
|
+
name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1Q)
|
|
8477
8467
|
};
|
|
8478
8468
|
}
|
|
8479
8469
|
popup(propsData, options) {
|
|
@@ -8535,7 +8525,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
8535
8525
|
return (...args) => {
|
|
8536
8526
|
const done = () => {
|
|
8537
8527
|
const leaf = getLeaf();
|
|
8538
|
-
/* istanbul ignore next -- @preserve */
|
|
8539
8528
|
if (!leaf) {
|
|
8540
8529
|
throw new VcError("portal", "实例不存在或已卸载");
|
|
8541
8530
|
}
|
|
@@ -8572,7 +8561,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
8572
8561
|
...rest
|
|
8573
8562
|
} = options;
|
|
8574
8563
|
let useAllNodes = fragment;
|
|
8575
|
-
const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$
|
|
8564
|
+
const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1Q)}` : name$;
|
|
8576
8565
|
const container = document.createElement(tag);
|
|
8577
8566
|
const root = typeof el === "object" ? el : document.querySelector(el || "body");
|
|
8578
8567
|
!alive && Portal.leafs.get(name)?.destroy();
|
|
@@ -8586,7 +8575,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
8586
8575
|
if (isDestroyed()) return;
|
|
8587
8576
|
onDestroyed?.(...args);
|
|
8588
8577
|
leaf.app?.unmount();
|
|
8589
|
-
/* istanbul ignore else -- @preserve */
|
|
8590
8578
|
if (useAllNodes) {
|
|
8591
8579
|
root?.contains(container) && root.removeChild(container);
|
|
8592
8580
|
} else if (container && container._children) {
|
|
@@ -8607,23 +8595,20 @@ var VcComponents = (function (exports, vue) {
|
|
|
8607
8595
|
} else {
|
|
8608
8596
|
const wrapper = this.wrapper;
|
|
8609
8597
|
const app = vue.createApp({
|
|
8610
|
-
name: COMPONENT_NAME$
|
|
8598
|
+
name: COMPONENT_NAME$1Q,
|
|
8611
8599
|
parent,
|
|
8612
8600
|
setup() {
|
|
8613
8601
|
if (alive) {
|
|
8614
8602
|
const handleExtra = (e) => {
|
|
8615
8603
|
try {
|
|
8616
8604
|
const path = e.path || composedPath(e);
|
|
8617
|
-
/* istanbul ignore else -- @preserve */
|
|
8618
8605
|
if (container && e.target && !container.contains(e.target) && !path?.some((item) => utils.eleInRegExp(item, aliveRegExp))) {
|
|
8619
|
-
/* istanbul ignore else -- @preserve */
|
|
8620
8606
|
if (leaf.wrapper && leaf.wrapper?.[aliveVisibleKey]) {
|
|
8621
8607
|
typeof leaf.wrapper[aliveVisibleKey] === "function" ? leaf.wrapper[aliveVisibleKey](false) : leaf.wrapper[aliveVisibleKey] = false;
|
|
8622
8608
|
}
|
|
8623
8609
|
leaveDelay ? setTimeout($onDestroyed, leaveDelay) : $onDestroyed();
|
|
8624
8610
|
}
|
|
8625
8611
|
} catch (error) {
|
|
8626
|
-
/* istanbul ignore next -- @preserve */
|
|
8627
8612
|
throw new VcError("portal", error);
|
|
8628
8613
|
}
|
|
8629
8614
|
};
|
|
@@ -8714,21 +8699,21 @@ var VcComponents = (function (exports, vue) {
|
|
|
8714
8699
|
}
|
|
8715
8700
|
}
|
|
8716
8701
|
|
|
8717
|
-
const props$
|
|
8702
|
+
const props$1b = {
|
|
8718
8703
|
tag: {
|
|
8719
8704
|
type: String,
|
|
8720
8705
|
default: "div"
|
|
8721
8706
|
}
|
|
8722
8707
|
};
|
|
8723
8708
|
|
|
8724
|
-
const COMPONENT_NAME$
|
|
8709
|
+
const COMPONENT_NAME$1P = 'vc-portal-view';
|
|
8725
8710
|
|
|
8726
8711
|
/**
|
|
8727
8712
|
* 写法不同,但与vue@2.x 保持一致
|
|
8728
8713
|
*/
|
|
8729
8714
|
const PortalView = /* @__PURE__ */ vue.defineComponent({
|
|
8730
|
-
name: COMPONENT_NAME$
|
|
8731
|
-
props: props$
|
|
8715
|
+
name: COMPONENT_NAME$1P,
|
|
8716
|
+
props: props$1b,
|
|
8732
8717
|
setup(props, {
|
|
8733
8718
|
slots
|
|
8734
8719
|
}) {
|
|
@@ -8747,10 +8732,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
8747
8732
|
|
|
8748
8733
|
/** @jsxImportSource vue */
|
|
8749
8734
|
|
|
8750
|
-
const COMPONENT_NAME$
|
|
8735
|
+
const COMPONENT_NAME$1O = 'vc-popover-wrapper';
|
|
8751
8736
|
const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
|
|
8752
|
-
name: COMPONENT_NAME$
|
|
8753
|
-
props: props$
|
|
8737
|
+
name: COMPONENT_NAME$1O,
|
|
8738
|
+
props: props$1e,
|
|
8754
8739
|
emits: ['portal-fulfilled', 'close'],
|
|
8755
8740
|
setup(props, {
|
|
8756
8741
|
emit,
|
|
@@ -9007,10 +8992,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
9007
8992
|
|
|
9008
8993
|
/** @jsxImportSource vue */
|
|
9009
8994
|
|
|
9010
|
-
const COMPONENT_NAME$
|
|
8995
|
+
const COMPONENT_NAME$1N = 'vc-popover';
|
|
9011
8996
|
const Popover$1 = /* @__PURE__ */ vue.defineComponent({
|
|
9012
|
-
name: COMPONENT_NAME$
|
|
9013
|
-
props: props$
|
|
8997
|
+
name: COMPONENT_NAME$1N,
|
|
8998
|
+
props: props$1d,
|
|
9014
8999
|
emits: ['update:modelValue', 'visible-change', 'ready', 'close'],
|
|
9015
9000
|
setup(props, {
|
|
9016
9001
|
emit,
|
|
@@ -9153,9 +9138,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
9153
9138
|
|
|
9154
9139
|
/** @jsxImportSource vue */
|
|
9155
9140
|
|
|
9156
|
-
const COMPONENT_NAME$
|
|
9141
|
+
const COMPONENT_NAME$1M = 'vc-cascader-column';
|
|
9157
9142
|
const CascaderColumn = /* @__PURE__ */ vue.defineComponent({
|
|
9158
|
-
name: COMPONENT_NAME$
|
|
9143
|
+
name: COMPONENT_NAME$1M,
|
|
9159
9144
|
emits: ['click', 'change'],
|
|
9160
9145
|
props: {
|
|
9161
9146
|
data: {
|
|
@@ -9273,9 +9258,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
9273
9258
|
"portal",
|
|
9274
9259
|
"portalClass"
|
|
9275
9260
|
];
|
|
9276
|
-
const props$
|
|
9277
|
-
...pick(props$
|
|
9278
|
-
...pick(props$
|
|
9261
|
+
const props$1a = {
|
|
9262
|
+
...pick(props$1d, popoverKeys$1),
|
|
9263
|
+
...pick(props$1h, inputKeys$2),
|
|
9279
9264
|
renderOption: [Function],
|
|
9280
9265
|
renderOptionGroup: [Function],
|
|
9281
9266
|
data: {
|
|
@@ -9341,8 +9326,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
9341
9326
|
label: String
|
|
9342
9327
|
};
|
|
9343
9328
|
|
|
9344
|
-
const props$
|
|
9345
|
-
...props$
|
|
9329
|
+
const props$19 = {
|
|
9330
|
+
...props$1a,
|
|
9346
9331
|
data: {
|
|
9347
9332
|
type: Array,
|
|
9348
9333
|
default: () => []
|
|
@@ -9363,11 +9348,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
9363
9348
|
|
|
9364
9349
|
/** @jsxImportSource vue */
|
|
9365
9350
|
|
|
9366
|
-
const COMPONENT_NAME$
|
|
9351
|
+
const COMPONENT_NAME$1L = 'vc-cascader';
|
|
9367
9352
|
const Cascader = /* @__PURE__ */ vue.defineComponent({
|
|
9368
|
-
name: COMPONENT_NAME$
|
|
9353
|
+
name: COMPONENT_NAME$1L,
|
|
9369
9354
|
inheritAttrs: false,
|
|
9370
|
-
props: props$
|
|
9355
|
+
props: props$19,
|
|
9371
9356
|
emits: ['update:modelValue', 'visible-change', 'ready', 'change', 'close'],
|
|
9372
9357
|
setup(props, {
|
|
9373
9358
|
emit,
|
|
@@ -9703,7 +9688,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
9703
9688
|
"contextmenu"
|
|
9704
9689
|
];
|
|
9705
9690
|
|
|
9706
|
-
const props$
|
|
9691
|
+
const props$18 = {
|
|
9707
9692
|
options: Object,
|
|
9708
9693
|
pluginOptions: Object,
|
|
9709
9694
|
theme: [String, Object],
|
|
@@ -9718,14 +9703,15 @@ var VcComponents = (function (exports, vue) {
|
|
|
9718
9703
|
|
|
9719
9704
|
/** @jsxImportSource vue */
|
|
9720
9705
|
|
|
9721
|
-
const COMPONENT_NAME$
|
|
9706
|
+
const COMPONENT_NAME$1K = 'vc-chart';
|
|
9722
9707
|
const Chart = /* @__PURE__ */ vue.defineComponent({
|
|
9723
|
-
name: COMPONENT_NAME$
|
|
9724
|
-
props: props$
|
|
9708
|
+
name: COMPONENT_NAME$1K,
|
|
9709
|
+
props: props$18,
|
|
9725
9710
|
emits: [...EVENTS$1, 'ready'],
|
|
9726
9711
|
setup(props, {
|
|
9727
9712
|
emit,
|
|
9728
|
-
slots
|
|
9713
|
+
slots,
|
|
9714
|
+
expose
|
|
9729
9715
|
}) {
|
|
9730
9716
|
const instance = vue.getCurrentInstance();
|
|
9731
9717
|
const chart = vue.shallowRef(null);
|
|
@@ -9824,6 +9810,12 @@ var VcComponents = (function (exports, vue) {
|
|
|
9824
9810
|
}
|
|
9825
9811
|
});
|
|
9826
9812
|
});
|
|
9813
|
+
|
|
9814
|
+
// 如果存在内存泄漏,chart.value.getOption() 获取配置项,查看series参数等情况
|
|
9815
|
+
expose({
|
|
9816
|
+
chart,
|
|
9817
|
+
refresh
|
|
9818
|
+
});
|
|
9827
9819
|
vue.onUnmounted(destroy);
|
|
9828
9820
|
return () => {
|
|
9829
9821
|
return vue.createVNode("div", {
|
|
@@ -9836,7 +9828,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
9836
9828
|
|
|
9837
9829
|
const MChart = Chart;
|
|
9838
9830
|
|
|
9839
|
-
const props$
|
|
9831
|
+
const props$17 = {
|
|
9840
9832
|
disabled: {
|
|
9841
9833
|
type: Boolean,
|
|
9842
9834
|
default: false
|
|
@@ -9952,10 +9944,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
9952
9944
|
|
|
9953
9945
|
/** @jsxImportSource vue */
|
|
9954
9946
|
|
|
9955
|
-
const COMPONENT_NAME$
|
|
9947
|
+
const COMPONENT_NAME$1J = 'vc-checkbox';
|
|
9956
9948
|
const Checkbox = /* @__PURE__ */ vue.defineComponent({
|
|
9957
|
-
name: COMPONENT_NAME$
|
|
9958
|
-
props: props$
|
|
9949
|
+
name: COMPONENT_NAME$1J,
|
|
9950
|
+
props: props$17,
|
|
9959
9951
|
emits: ['update:modelValue', 'change'],
|
|
9960
9952
|
setup(props, {
|
|
9961
9953
|
slots
|
|
@@ -9992,7 +9984,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
9992
9984
|
}
|
|
9993
9985
|
});
|
|
9994
9986
|
|
|
9995
|
-
const props$
|
|
9987
|
+
const props$16 = {
|
|
9996
9988
|
modelValue: {
|
|
9997
9989
|
type: Array,
|
|
9998
9990
|
default: () => []
|
|
@@ -10041,10 +10033,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
10041
10033
|
|
|
10042
10034
|
/** @jsxImportSource vue */
|
|
10043
10035
|
|
|
10044
|
-
const COMPONENT_NAME$
|
|
10036
|
+
const COMPONENT_NAME$1I = 'vc-checkbox-group';
|
|
10045
10037
|
const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
10046
|
-
name: COMPONENT_NAME$
|
|
10047
|
-
props: props$
|
|
10038
|
+
name: COMPONENT_NAME$1I,
|
|
10039
|
+
props: props$16,
|
|
10048
10040
|
emits: ['update:modelValue', 'change'],
|
|
10049
10041
|
setup(props, {
|
|
10050
10042
|
slots
|
|
@@ -10061,10 +10053,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
10061
10053
|
|
|
10062
10054
|
/** @jsxImportSource vue */
|
|
10063
10055
|
|
|
10064
|
-
const COMPONENT_NAME$
|
|
10056
|
+
const COMPONENT_NAME$1H = 'vcm-checkbox';
|
|
10065
10057
|
const MCheckbox = /* @__PURE__ */ vue.defineComponent({
|
|
10066
|
-
name: COMPONENT_NAME$
|
|
10067
|
-
props: props$
|
|
10058
|
+
name: COMPONENT_NAME$1H,
|
|
10059
|
+
props: props$17,
|
|
10068
10060
|
emits: ['update:modelValue', 'change'],
|
|
10069
10061
|
setup(props, {
|
|
10070
10062
|
slots
|
|
@@ -10103,10 +10095,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
10103
10095
|
|
|
10104
10096
|
/** @jsxImportSource vue */
|
|
10105
10097
|
|
|
10106
|
-
const COMPONENT_NAME$
|
|
10098
|
+
const COMPONENT_NAME$1G = 'vcm-checkbox-group';
|
|
10107
10099
|
const MCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
10108
|
-
name: COMPONENT_NAME$
|
|
10109
|
-
props: props$
|
|
10100
|
+
name: COMPONENT_NAME$1G,
|
|
10101
|
+
props: props$16,
|
|
10110
10102
|
emits: ['update:modelValue', 'change'],
|
|
10111
10103
|
setup(props, {
|
|
10112
10104
|
slots
|
|
@@ -10121,7 +10113,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10121
10113
|
}
|
|
10122
10114
|
});
|
|
10123
10115
|
|
|
10124
|
-
const props$
|
|
10116
|
+
const props$15 = {
|
|
10125
10117
|
content: [String, Function],
|
|
10126
10118
|
mask: {
|
|
10127
10119
|
type: Boolean,
|
|
@@ -10159,11 +10151,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
10159
10151
|
|
|
10160
10152
|
/** @jsxImportSource vue */
|
|
10161
10153
|
|
|
10162
|
-
const COMPONENT_NAME$
|
|
10154
|
+
const COMPONENT_NAME$1F = 'vc-message';
|
|
10163
10155
|
const MessageView = /* @__PURE__ */ vue.defineComponent({
|
|
10164
|
-
name: COMPONENT_NAME$
|
|
10156
|
+
name: COMPONENT_NAME$1F,
|
|
10165
10157
|
emits: ['before-close', 'close', 'portal-fulfilled'],
|
|
10166
|
-
props: props$
|
|
10158
|
+
props: props$15,
|
|
10167
10159
|
setup(props, {
|
|
10168
10160
|
emit,
|
|
10169
10161
|
expose
|
|
@@ -10293,7 +10285,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10293
10285
|
const error$3 = create$7({ mode: "error" });
|
|
10294
10286
|
const Message = Object.assign(MessageView, { destroy: destroy$5, info: info$3, success: success$3, loading: loading$1, warning: warning$3, error: error$3 });
|
|
10295
10287
|
|
|
10296
|
-
const props$
|
|
10288
|
+
const props$14 = {
|
|
10297
10289
|
value: String,
|
|
10298
10290
|
tag: {
|
|
10299
10291
|
type: [String, Object, Function],
|
|
@@ -10410,10 +10402,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
10410
10402
|
return () => vue.h(props.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
|
|
10411
10403
|
};
|
|
10412
10404
|
|
|
10413
|
-
const COMPONENT_NAME$
|
|
10405
|
+
const COMPONENT_NAME$1E = "vc-clipboard";
|
|
10414
10406
|
const Clipboard$2 = vue.defineComponent({
|
|
10415
|
-
name: COMPONENT_NAME$
|
|
10416
|
-
props: props$
|
|
10407
|
+
name: COMPONENT_NAME$1E,
|
|
10408
|
+
props: props$14,
|
|
10417
10409
|
setup() {
|
|
10418
10410
|
return useClipboard((content) => Message.success({ content }));
|
|
10419
10411
|
}
|
|
@@ -10421,7 +10413,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10421
10413
|
|
|
10422
10414
|
const Clipboard$1 = Object.assign(Clipboard$2, group);
|
|
10423
10415
|
|
|
10424
|
-
const props$
|
|
10416
|
+
const props$13 = {
|
|
10425
10417
|
content: [String, Function],
|
|
10426
10418
|
maskClosable: {
|
|
10427
10419
|
type: Boolean,
|
|
@@ -10452,11 +10444,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
10452
10444
|
|
|
10453
10445
|
/** @jsxImportSource vue */
|
|
10454
10446
|
|
|
10455
|
-
const COMPONENT_NAME$
|
|
10447
|
+
const COMPONENT_NAME$1D = 'vcm-toast';
|
|
10456
10448
|
const MToastView = /* @__PURE__ */ vue.defineComponent({
|
|
10457
|
-
name: COMPONENT_NAME$
|
|
10449
|
+
name: COMPONENT_NAME$1D,
|
|
10458
10450
|
emits: ['close', 'portal-fulfilled'],
|
|
10459
|
-
props: props$
|
|
10451
|
+
props: props$13,
|
|
10460
10452
|
setup(props, {
|
|
10461
10453
|
emit,
|
|
10462
10454
|
expose
|
|
@@ -10556,10 +10548,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
10556
10548
|
const error$2 = create$6({ mode: "error" });
|
|
10557
10549
|
const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
|
|
10558
10550
|
|
|
10559
|
-
const COMPONENT_NAME$
|
|
10551
|
+
const COMPONENT_NAME$1C = "vcm-clipboard";
|
|
10560
10552
|
const MClipboard$1 = vue.defineComponent({
|
|
10561
|
-
name: COMPONENT_NAME$
|
|
10562
|
-
props: props$
|
|
10553
|
+
name: COMPONENT_NAME$1C,
|
|
10554
|
+
props: props$14,
|
|
10563
10555
|
setup() {
|
|
10564
10556
|
return useClipboard((content) => MToast.info({ content }));
|
|
10565
10557
|
}
|
|
@@ -10567,7 +10559,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10567
10559
|
|
|
10568
10560
|
const MClipboard = Object.assign(MClipboard$1, group);
|
|
10569
10561
|
|
|
10570
|
-
const props$
|
|
10562
|
+
const props$12 = {
|
|
10571
10563
|
tag: {
|
|
10572
10564
|
type: String,
|
|
10573
10565
|
default: "div"
|
|
@@ -10590,10 +10582,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
10590
10582
|
}
|
|
10591
10583
|
};
|
|
10592
10584
|
|
|
10593
|
-
const COMPONENT_NAME$
|
|
10585
|
+
const COMPONENT_NAME$1B = "vc-collapse";
|
|
10594
10586
|
const Collapse = vue.defineComponent({
|
|
10595
|
-
name: COMPONENT_NAME$
|
|
10596
|
-
props: props$
|
|
10587
|
+
name: COMPONENT_NAME$1B,
|
|
10588
|
+
props: props$12,
|
|
10597
10589
|
emits: ["update:moodelValue", "change"],
|
|
10598
10590
|
setup(props, { slots, emit }) {
|
|
10599
10591
|
const instance = vue.getCurrentInstance();
|
|
@@ -10678,7 +10670,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10678
10670
|
}
|
|
10679
10671
|
});
|
|
10680
10672
|
|
|
10681
|
-
const props$
|
|
10673
|
+
const props$11 = {
|
|
10682
10674
|
tag: {
|
|
10683
10675
|
type: String,
|
|
10684
10676
|
default: "div"
|
|
@@ -10688,7 +10680,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10688
10680
|
}
|
|
10689
10681
|
};
|
|
10690
10682
|
|
|
10691
|
-
const props
|
|
10683
|
+
const props$10 = {
|
|
10692
10684
|
tag: {
|
|
10693
10685
|
type: String,
|
|
10694
10686
|
default: "div"
|
|
@@ -10706,13 +10698,13 @@ var VcComponents = (function (exports, vue) {
|
|
|
10706
10698
|
|
|
10707
10699
|
/** @jsxImportSource vue */
|
|
10708
10700
|
|
|
10709
|
-
function _isSlot$
|
|
10701
|
+
function _isSlot$3(s) {
|
|
10710
10702
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
10711
10703
|
}
|
|
10712
|
-
const COMPONENT_NAME$
|
|
10704
|
+
const COMPONENT_NAME$1A = 'vc-expand';
|
|
10713
10705
|
const Expand$1 = /* @__PURE__ */ vue.defineComponent({
|
|
10714
|
-
name: COMPONENT_NAME$
|
|
10715
|
-
props: props
|
|
10706
|
+
name: COMPONENT_NAME$1A,
|
|
10707
|
+
props: props$10,
|
|
10716
10708
|
setup(props, {
|
|
10717
10709
|
slots
|
|
10718
10710
|
}) {
|
|
@@ -10730,7 +10722,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10730
10722
|
enter: 200,
|
|
10731
10723
|
leave: 200
|
|
10732
10724
|
}
|
|
10733
|
-
}, _isSlot$
|
|
10725
|
+
}, _isSlot$3(_slot = vue.withDirectives(vue.createVNode(Content, null, {
|
|
10734
10726
|
default: () => [(props.alive || !props.alive && isActive.value) && slots.default?.()]
|
|
10735
10727
|
}), [[vue.vShow, isActive.value]])) ? _slot : {
|
|
10736
10728
|
default: () => [_slot]
|
|
@@ -10741,10 +10733,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
10741
10733
|
|
|
10742
10734
|
/** @jsxImportSource vue */
|
|
10743
10735
|
|
|
10744
|
-
const COMPONENT_NAME$
|
|
10736
|
+
const COMPONENT_NAME$1z = 'vc-collapse-item';
|
|
10745
10737
|
const CollapseItem = /* @__PURE__ */ vue.defineComponent({
|
|
10746
|
-
name: COMPONENT_NAME$
|
|
10747
|
-
props: props$
|
|
10738
|
+
name: COMPONENT_NAME$1z,
|
|
10739
|
+
props: props$11,
|
|
10748
10740
|
setup(props, {
|
|
10749
10741
|
slots,
|
|
10750
10742
|
expose
|
|
@@ -10809,7 +10801,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10809
10801
|
const MCollapse = Collapse;
|
|
10810
10802
|
const MCollapseItem = CollapseItem;
|
|
10811
10803
|
|
|
10812
|
-
const props
|
|
10804
|
+
const props$$ = {
|
|
10813
10805
|
tag: {
|
|
10814
10806
|
type: String,
|
|
10815
10807
|
default: "div"
|
|
@@ -10818,10 +10810,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
10818
10810
|
|
|
10819
10811
|
/** @jsxImportSource vue */
|
|
10820
10812
|
|
|
10821
|
-
const COMPONENT_NAME$
|
|
10813
|
+
const COMPONENT_NAME$1y = 'vc-color-picker';
|
|
10822
10814
|
const ColorPicker$1 = /* @__PURE__ */ vue.defineComponent({
|
|
10823
|
-
name: COMPONENT_NAME$
|
|
10824
|
-
props: props
|
|
10815
|
+
name: COMPONENT_NAME$1y,
|
|
10816
|
+
props: props$$,
|
|
10825
10817
|
setup(props, {
|
|
10826
10818
|
slots
|
|
10827
10819
|
}) {
|
|
@@ -10835,7 +10827,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10835
10827
|
|
|
10836
10828
|
const MColorPicker = ColorPicker$1;
|
|
10837
10829
|
|
|
10838
|
-
const props$
|
|
10830
|
+
const props$_ = {
|
|
10839
10831
|
tag: {
|
|
10840
10832
|
type: String,
|
|
10841
10833
|
default: "span"
|
|
@@ -10880,14 +10872,14 @@ var VcComponents = (function (exports, vue) {
|
|
|
10880
10872
|
|
|
10881
10873
|
/** @jsxImportSource vue */
|
|
10882
10874
|
|
|
10883
|
-
function _isSlot$
|
|
10875
|
+
function _isSlot$2(s) {
|
|
10884
10876
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
10885
10877
|
}
|
|
10886
|
-
const COMPONENT_NAME$
|
|
10878
|
+
const COMPONENT_NAME$1x = 'vc-countdown';
|
|
10887
10879
|
const Countdown = /* @__PURE__ */ vue.defineComponent({
|
|
10888
|
-
name: COMPONENT_NAME$
|
|
10889
|
-
props: props$
|
|
10890
|
-
emits: ['change', '
|
|
10880
|
+
name: COMPONENT_NAME$1x,
|
|
10881
|
+
props: props$_,
|
|
10882
|
+
emits: ['change', 'complete', 'error'],
|
|
10891
10883
|
setup(props, {
|
|
10892
10884
|
emit,
|
|
10893
10885
|
slots
|
|
@@ -10977,7 +10969,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
10977
10969
|
second: '00',
|
|
10978
10970
|
millisecond: '00'
|
|
10979
10971
|
});
|
|
10980
|
-
emit('
|
|
10972
|
+
emit('complete');
|
|
10981
10973
|
} else {
|
|
10982
10974
|
emit('change', {
|
|
10983
10975
|
timestamp,
|
|
@@ -11015,7 +11007,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
11015
11007
|
return (// @ts-ignore
|
|
11016
11008
|
vue.createVNode(Content, {
|
|
11017
11009
|
"class": "vc-countdown"
|
|
11018
|
-
}, _isSlot$
|
|
11010
|
+
}, _isSlot$2(_slot = slots.default(binds.value)) ? _slot : {
|
|
11019
11011
|
default: () => [_slot]
|
|
11020
11012
|
})
|
|
11021
11013
|
);
|
|
@@ -11038,6 +11030,345 @@ var VcComponents = (function (exports, vue) {
|
|
|
11038
11030
|
|
|
11039
11031
|
const MCountdown = Countdown;
|
|
11040
11032
|
|
|
11033
|
+
const props$Z = {
|
|
11034
|
+
tag: {
|
|
11035
|
+
type: String,
|
|
11036
|
+
default: "span"
|
|
11037
|
+
},
|
|
11038
|
+
value: [Number, String],
|
|
11039
|
+
placeholder: String,
|
|
11040
|
+
precision: {
|
|
11041
|
+
type: Number,
|
|
11042
|
+
default: 0
|
|
11043
|
+
},
|
|
11044
|
+
duration: {
|
|
11045
|
+
type: Number,
|
|
11046
|
+
default: 500
|
|
11047
|
+
},
|
|
11048
|
+
decimal: {
|
|
11049
|
+
type: String,
|
|
11050
|
+
default: "."
|
|
11051
|
+
},
|
|
11052
|
+
separator: {
|
|
11053
|
+
type: String,
|
|
11054
|
+
default: ","
|
|
11055
|
+
},
|
|
11056
|
+
numerals: {
|
|
11057
|
+
type: Array,
|
|
11058
|
+
default: () => []
|
|
11059
|
+
},
|
|
11060
|
+
smartEasingThreshold: {
|
|
11061
|
+
type: Number,
|
|
11062
|
+
default: 999
|
|
11063
|
+
},
|
|
11064
|
+
smartEasingAmount: {
|
|
11065
|
+
type: Number,
|
|
11066
|
+
default: 333
|
|
11067
|
+
},
|
|
11068
|
+
easing: {
|
|
11069
|
+
type: [Function, Boolean],
|
|
11070
|
+
default: true
|
|
11071
|
+
},
|
|
11072
|
+
// 10.90 -> 10.9
|
|
11073
|
+
zeroless: {
|
|
11074
|
+
type: Boolean,
|
|
11075
|
+
default: false
|
|
11076
|
+
},
|
|
11077
|
+
// 为true时,自行管理start/update
|
|
11078
|
+
controllable: {
|
|
11079
|
+
type: Boolean,
|
|
11080
|
+
default: false
|
|
11081
|
+
},
|
|
11082
|
+
render: Function
|
|
11083
|
+
};
|
|
11084
|
+
|
|
11085
|
+
const separated2value = (value, options) => {
|
|
11086
|
+
if (typeof value === "number" || typeof value !== "string") return value;
|
|
11087
|
+
const escapeRegExp = (s) => s.replace(/([.,' ])/g, "\\$1");
|
|
11088
|
+
const sep = escapeRegExp(options.separator);
|
|
11089
|
+
const dec = escapeRegExp(options.decimal);
|
|
11090
|
+
const num = (value || "").replace(new RegExp(sep, "g"), "").replace(new RegExp(dec, "g"), ".");
|
|
11091
|
+
return parseFloat(num);
|
|
11092
|
+
};
|
|
11093
|
+
const value2separated = (value, options) => {
|
|
11094
|
+
const num = typeof value === "number" ? value : parseFloat(value);
|
|
11095
|
+
if (value === "" || Number.isNaN(num)) {
|
|
11096
|
+
return {
|
|
11097
|
+
negative: "",
|
|
11098
|
+
integer: "",
|
|
11099
|
+
decimal: "",
|
|
11100
|
+
separated: "",
|
|
11101
|
+
float: "",
|
|
11102
|
+
value: ""
|
|
11103
|
+
};
|
|
11104
|
+
}
|
|
11105
|
+
const negative = num < 0 ? "-" : "";
|
|
11106
|
+
let [integer, decimal = ""] = `${Math.abs(num)}`.split(".");
|
|
11107
|
+
let separated = integer;
|
|
11108
|
+
if (options.separator) {
|
|
11109
|
+
let v = "";
|
|
11110
|
+
let j = 0;
|
|
11111
|
+
const factor = 3;
|
|
11112
|
+
for (let i = 0, len = separated.length; i < len; ++i) {
|
|
11113
|
+
if (i !== 0 && j % factor === 0) {
|
|
11114
|
+
v = options.separator + v;
|
|
11115
|
+
}
|
|
11116
|
+
j++;
|
|
11117
|
+
v = separated[len - i - 1] + v;
|
|
11118
|
+
}
|
|
11119
|
+
separated = v;
|
|
11120
|
+
}
|
|
11121
|
+
const precision$ = options.zeroless ? Math.min(options.precision, decimal.length) : options.precision;
|
|
11122
|
+
if (precision$) {
|
|
11123
|
+
decimal = decimal.slice(0, precision$).padEnd(precision$, "0");
|
|
11124
|
+
} else {
|
|
11125
|
+
decimal = "";
|
|
11126
|
+
}
|
|
11127
|
+
if (options?.numerals?.length) {
|
|
11128
|
+
separated = separated.replace(/[0-9]/g, (w) => options.numerals[+w]);
|
|
11129
|
+
decimal = decimal.replace(/[0-9]/g, (w) => options.numerals[+w]);
|
|
11130
|
+
}
|
|
11131
|
+
const _decimal = decimal ? options.decimal + decimal : "";
|
|
11132
|
+
return {
|
|
11133
|
+
negative,
|
|
11134
|
+
integer,
|
|
11135
|
+
decimal,
|
|
11136
|
+
separated,
|
|
11137
|
+
float: `${negative}${integer}${_decimal}`,
|
|
11138
|
+
value: `${negative}${separated}${_decimal}`
|
|
11139
|
+
};
|
|
11140
|
+
};
|
|
11141
|
+
|
|
11142
|
+
/** @jsxImportSource vue */
|
|
11143
|
+
|
|
11144
|
+
function _isSlot$1(s) {
|
|
11145
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
11146
|
+
}
|
|
11147
|
+
const COMPONENT_NAME$1w = 'vc-counter';
|
|
11148
|
+
const Counter = /* @__PURE__ */ vue.defineComponent({
|
|
11149
|
+
name: COMPONENT_NAME$1w,
|
|
11150
|
+
props: props$Z,
|
|
11151
|
+
emits: ['begin', 'complete', 'change'],
|
|
11152
|
+
setup(props, {
|
|
11153
|
+
emit,
|
|
11154
|
+
expose,
|
|
11155
|
+
slots
|
|
11156
|
+
}) {
|
|
11157
|
+
const startTime = vue.ref(null);
|
|
11158
|
+
const duration = vue.ref(props.duration);
|
|
11159
|
+
const remaining = vue.ref(duration.value);
|
|
11160
|
+
const startVal = vue.ref(0);
|
|
11161
|
+
const endVal = vue.ref(separated2value(props.value, props));
|
|
11162
|
+
const frameVal = vue.ref(startVal.value);
|
|
11163
|
+
const finalEndVal = vue.ref(null);
|
|
11164
|
+
const useEasing = vue.ref(!!props.easing);
|
|
11165
|
+
const isStart = vue.ref(false);
|
|
11166
|
+
const isPaused = vue.ref(false);
|
|
11167
|
+
const isComplete = vue.ref(false);
|
|
11168
|
+
const countdown = vue.ref(false);
|
|
11169
|
+
const rAF = vue.ref(null);
|
|
11170
|
+
const prints = vue.reactive({
|
|
11171
|
+
negative: '',
|
|
11172
|
+
integer: '',
|
|
11173
|
+
decimal: '',
|
|
11174
|
+
separated: '',
|
|
11175
|
+
float: '',
|
|
11176
|
+
value: ''
|
|
11177
|
+
});
|
|
11178
|
+
|
|
11179
|
+
// t: current time, b: beginning value, c: change in value, d: duration
|
|
11180
|
+
const easing = vue.computed(() => {
|
|
11181
|
+
return typeof props.easing === 'function' ? props.easing : (t, b, c, d) => c * (-Math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b;
|
|
11182
|
+
});
|
|
11183
|
+
const displayValue = vue.computed(() => {
|
|
11184
|
+
if (props.value === '' || typeof props.value !== 'string' && typeof props.value !== 'number') {
|
|
11185
|
+
return props.placeholder;
|
|
11186
|
+
}
|
|
11187
|
+
return prints.value;
|
|
11188
|
+
});
|
|
11189
|
+
const binds = vue.computed(() => {
|
|
11190
|
+
return {
|
|
11191
|
+
...prints,
|
|
11192
|
+
value: displayValue.value
|
|
11193
|
+
};
|
|
11194
|
+
});
|
|
11195
|
+
const determineDirectionAndSmartEasing = () => {
|
|
11196
|
+
const v = finalEndVal.value !== null ? finalEndVal.value : endVal.value;
|
|
11197
|
+
countdown.value = startVal.value > v;
|
|
11198
|
+
const animateAmount = v - startVal.value;
|
|
11199
|
+
if (Math.abs(animateAmount) > props.smartEasingThreshold && props.easing) {
|
|
11200
|
+
finalEndVal.value = v;
|
|
11201
|
+
const up = countdown.value ? 1 : -1;
|
|
11202
|
+
endVal.value = v + up * props.smartEasingAmount;
|
|
11203
|
+
duration.value = duration.value / 2;
|
|
11204
|
+
} else {
|
|
11205
|
+
endVal.value = v;
|
|
11206
|
+
finalEndVal.value = null;
|
|
11207
|
+
}
|
|
11208
|
+
if (finalEndVal.value !== null) {
|
|
11209
|
+
useEasing.value = false;
|
|
11210
|
+
} else {
|
|
11211
|
+
useEasing.value = !!props.easing;
|
|
11212
|
+
}
|
|
11213
|
+
};
|
|
11214
|
+
const run = () => {
|
|
11215
|
+
const done = timestamp => {
|
|
11216
|
+
if (!startTime.value) {
|
|
11217
|
+
startTime.value = timestamp;
|
|
11218
|
+
}
|
|
11219
|
+
const progress = timestamp - startTime.value;
|
|
11220
|
+
remaining.value = duration.value - progress;
|
|
11221
|
+
if (useEasing.value) {
|
|
11222
|
+
if (countdown.value) {
|
|
11223
|
+
frameVal.value = startVal.value - easing.value(progress, 0, startVal.value - endVal.value, duration.value);
|
|
11224
|
+
} else {
|
|
11225
|
+
frameVal.value = easing.value(progress, startVal.value, endVal.value - startVal.value, duration.value);
|
|
11226
|
+
}
|
|
11227
|
+
} else {
|
|
11228
|
+
frameVal.value = startVal.value + (endVal.value - startVal.value) * (progress / duration.value);
|
|
11229
|
+
}
|
|
11230
|
+
const wentPast = countdown.value ? frameVal.value < endVal.value : frameVal.value > endVal.value;
|
|
11231
|
+
frameVal.value = wentPast ? endVal.value : frameVal.value;
|
|
11232
|
+
print(frameVal.value);
|
|
11233
|
+
if (progress < duration.value) {
|
|
11234
|
+
rAF.value = requestAnimationFrame(done);
|
|
11235
|
+
} else if (finalEndVal.value !== null) {
|
|
11236
|
+
update(finalEndVal.value);
|
|
11237
|
+
} else {
|
|
11238
|
+
emit('complete');
|
|
11239
|
+
isComplete.value = true;
|
|
11240
|
+
}
|
|
11241
|
+
};
|
|
11242
|
+
determineDirectionAndSmartEasing();
|
|
11243
|
+
rAF.value = requestAnimationFrame(done);
|
|
11244
|
+
};
|
|
11245
|
+
const print = num => {
|
|
11246
|
+
Object.assign(prints, value2separated(num, props));
|
|
11247
|
+
emit('change', prints);
|
|
11248
|
+
};
|
|
11249
|
+
const resetDuration = () => {
|
|
11250
|
+
startTime.value = null;
|
|
11251
|
+
duration.value = props.duration;
|
|
11252
|
+
remaining.value = duration.value;
|
|
11253
|
+
};
|
|
11254
|
+
const cancel = () => {
|
|
11255
|
+
if (rAF.value === null || typeof rAF.value === 'undefined') return;
|
|
11256
|
+
cancelAnimationFrame(rAF.value);
|
|
11257
|
+
};
|
|
11258
|
+
const start = () => {
|
|
11259
|
+
if (isComplete.value || isStart.value) return;
|
|
11260
|
+
cancel();
|
|
11261
|
+
resetDuration();
|
|
11262
|
+
isPaused.value = false;
|
|
11263
|
+
isComplete.value = false;
|
|
11264
|
+
startVal.value = 0;
|
|
11265
|
+
frameVal.value = 0;
|
|
11266
|
+
isStart.value = true;
|
|
11267
|
+
emit('begin');
|
|
11268
|
+
if (duration.value > 0) {
|
|
11269
|
+
run();
|
|
11270
|
+
} else {
|
|
11271
|
+
print(endVal.value);
|
|
11272
|
+
}
|
|
11273
|
+
};
|
|
11274
|
+
const pause = () => {
|
|
11275
|
+
if (isComplete.value) return;
|
|
11276
|
+
if (!isPaused.value) {
|
|
11277
|
+
cancel();
|
|
11278
|
+
}
|
|
11279
|
+
isPaused.value = true;
|
|
11280
|
+
};
|
|
11281
|
+
const resume = () => {
|
|
11282
|
+
if (isComplete.value) return;
|
|
11283
|
+
if (isPaused.value) {
|
|
11284
|
+
startTime.value = null;
|
|
11285
|
+
duration.value = remaining.value;
|
|
11286
|
+
startVal.value = frameVal.value;
|
|
11287
|
+
run();
|
|
11288
|
+
}
|
|
11289
|
+
isPaused.value = false;
|
|
11290
|
+
};
|
|
11291
|
+
const update = newEndVal => {
|
|
11292
|
+
if (!isStart.value) return;
|
|
11293
|
+
cancel();
|
|
11294
|
+
startTime.value = null;
|
|
11295
|
+
endVal.value = +newEndVal;
|
|
11296
|
+
if (endVal.value === frameVal.value) {
|
|
11297
|
+
return;
|
|
11298
|
+
}
|
|
11299
|
+
startVal.value = frameVal.value;
|
|
11300
|
+
if (finalEndVal.value === null) {
|
|
11301
|
+
resetDuration();
|
|
11302
|
+
}
|
|
11303
|
+
finalEndVal.value = null;
|
|
11304
|
+
run();
|
|
11305
|
+
};
|
|
11306
|
+
const end = () => {
|
|
11307
|
+
if (isComplete.value) return;
|
|
11308
|
+
cancel();
|
|
11309
|
+
resetDuration();
|
|
11310
|
+
startVal.value = +props.value;
|
|
11311
|
+
frameVal.value = startVal.value;
|
|
11312
|
+
print(frameVal.value);
|
|
11313
|
+
emit('complete');
|
|
11314
|
+
isComplete.value = true;
|
|
11315
|
+
};
|
|
11316
|
+
const restart = () => {
|
|
11317
|
+
isStart.value = false;
|
|
11318
|
+
isComplete.value = false;
|
|
11319
|
+
start();
|
|
11320
|
+
};
|
|
11321
|
+
vue.watch(() => props.value, () => {
|
|
11322
|
+
if (props.controllable || !isStart.value) return;
|
|
11323
|
+
update(props.value);
|
|
11324
|
+
});
|
|
11325
|
+
vue.watch(() => props.precision, () => {
|
|
11326
|
+
if (props.controllable || !isStart.value || !isComplete.value) return;
|
|
11327
|
+
print(+props.value);
|
|
11328
|
+
});
|
|
11329
|
+
expose({
|
|
11330
|
+
start,
|
|
11331
|
+
pause,
|
|
11332
|
+
resume,
|
|
11333
|
+
update,
|
|
11334
|
+
end,
|
|
11335
|
+
restart,
|
|
11336
|
+
cancel,
|
|
11337
|
+
print
|
|
11338
|
+
});
|
|
11339
|
+
vue.onMounted(() => !props.controllable && start());
|
|
11340
|
+
vue.onBeforeUnmount(cancel);
|
|
11341
|
+
const Content = props.tag;
|
|
11342
|
+
return () => {
|
|
11343
|
+
if (slots.default) {
|
|
11344
|
+
let _slot;
|
|
11345
|
+
return (// @ts-ignore
|
|
11346
|
+
vue.createVNode(Content, {
|
|
11347
|
+
"class": "vc-counter"
|
|
11348
|
+
}, _isSlot$1(_slot = slots.default(binds.value)) ? _slot : {
|
|
11349
|
+
default: () => [_slot]
|
|
11350
|
+
})
|
|
11351
|
+
);
|
|
11352
|
+
}
|
|
11353
|
+
if (props.render) {
|
|
11354
|
+
return vue.createVNode(Customer, vue.mergeProps({
|
|
11355
|
+
"class": "vc-counter",
|
|
11356
|
+
"render": props.render
|
|
11357
|
+
}, binds.value), null);
|
|
11358
|
+
}
|
|
11359
|
+
return (// @ts-ignore
|
|
11360
|
+
vue.createVNode(Content, {
|
|
11361
|
+
"class": "vc-counter"
|
|
11362
|
+
}, {
|
|
11363
|
+
default: () => [displayValue.value]
|
|
11364
|
+
})
|
|
11365
|
+
);
|
|
11366
|
+
};
|
|
11367
|
+
}
|
|
11368
|
+
});
|
|
11369
|
+
|
|
11370
|
+
const MCounter = Counter;
|
|
11371
|
+
|
|
11041
11372
|
const props$Y = {
|
|
11042
11373
|
type: {
|
|
11043
11374
|
type: String,
|
|
@@ -11061,8 +11392,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
11061
11392
|
"portalClass"
|
|
11062
11393
|
];
|
|
11063
11394
|
const props$X = {
|
|
11064
|
-
...pick(props$
|
|
11065
|
-
...pick(props$
|
|
11395
|
+
...pick(props$1d, popoverKeys),
|
|
11396
|
+
...pick(props$1h, inputKeys$1),
|
|
11066
11397
|
type: String,
|
|
11067
11398
|
placeholder: String,
|
|
11068
11399
|
clearable: {
|
|
@@ -16470,7 +16801,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
16470
16801
|
}) {
|
|
16471
16802
|
const owner = getInstance$1('dropdown', 'dropdownId');
|
|
16472
16803
|
const currentValue = vue.computed(() => {
|
|
16473
|
-
const v = typeof props.value === 'undefined'
|
|
16804
|
+
const v = typeof props.value === 'undefined' ? props.label : props.value;
|
|
16474
16805
|
return v;
|
|
16475
16806
|
});
|
|
16476
16807
|
const classes = vue.computed(() => {
|
|
@@ -21497,7 +21828,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
21497
21828
|
name: COMPONENT_NAME$V,
|
|
21498
21829
|
inheritAttrs: false,
|
|
21499
21830
|
props: {
|
|
21500
|
-
...props$
|
|
21831
|
+
...props$1h,
|
|
21501
21832
|
right: {
|
|
21502
21833
|
type: Boolean,
|
|
21503
21834
|
default: false
|
|
@@ -21586,7 +21917,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
21586
21917
|
const COMPONENT_NAME$U = 'vcm-input-number';
|
|
21587
21918
|
const MInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
21588
21919
|
name: COMPONENT_NAME$U,
|
|
21589
|
-
props: props$
|
|
21920
|
+
props: props$1g,
|
|
21590
21921
|
inheritAttrs: false,
|
|
21591
21922
|
setup(props, {
|
|
21592
21923
|
slots,
|
|
@@ -21638,7 +21969,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
21638
21969
|
const MInputSearch = /* @__PURE__ */ vue.defineComponent({
|
|
21639
21970
|
name: COMPONENT_NAME$T,
|
|
21640
21971
|
props: {
|
|
21641
|
-
...props$
|
|
21972
|
+
...props$1f,
|
|
21642
21973
|
cancelText: {
|
|
21643
21974
|
type: String,
|
|
21644
21975
|
default: '取消'
|
|
@@ -21934,7 +22265,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
21934
22265
|
default: "div"
|
|
21935
22266
|
},
|
|
21936
22267
|
fill: {
|
|
21937
|
-
type: Boolean,
|
|
22268
|
+
type: [Boolean, Array],
|
|
21938
22269
|
default: true
|
|
21939
22270
|
}
|
|
21940
22271
|
};
|
|
@@ -21948,6 +22279,13 @@ var VcComponents = (function (exports, vue) {
|
|
|
21948
22279
|
const width = vue.ref(0);
|
|
21949
22280
|
const height = vue.ref(0);
|
|
21950
22281
|
const current = vue.ref();
|
|
22282
|
+
const classes = vue.computed(() => {
|
|
22283
|
+
const v = Array.isArray(props.fill) ? props.fill : [props.fill, props.fill];
|
|
22284
|
+
return {
|
|
22285
|
+
"is-fill-width": v[0],
|
|
22286
|
+
"is-fill-height": v[1]
|
|
22287
|
+
};
|
|
22288
|
+
});
|
|
21951
22289
|
const currentExposed = vue.computed(() => {
|
|
21952
22290
|
return {
|
|
21953
22291
|
height: height.value,
|
|
@@ -21998,7 +22336,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
21998
22336
|
props.tag,
|
|
21999
22337
|
{
|
|
22000
22338
|
ref: current,
|
|
22001
|
-
class: ["vc-resizer",
|
|
22339
|
+
class: ["vc-resizer", classes.value]
|
|
22002
22340
|
},
|
|
22003
22341
|
slots.default?.(currentExposed.value)
|
|
22004
22342
|
);
|
|
@@ -23217,7 +23555,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
23217
23555
|
const COMPONENT_NAME$H = 'vc-select';
|
|
23218
23556
|
const Select = /* @__PURE__ */ vue.defineComponent({
|
|
23219
23557
|
name: COMPONENT_NAME$H,
|
|
23220
|
-
props: props$
|
|
23558
|
+
props: props$1a,
|
|
23221
23559
|
emits: ['ready', 'close', 'visible-change', 'clear', 'change', 'update:modelValue'],
|
|
23222
23560
|
setup(props, {
|
|
23223
23561
|
emit,
|
|
@@ -25042,7 +25380,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
25042
25380
|
},
|
|
25043
25381
|
scrollerOptions: Object,
|
|
25044
25382
|
renderEmpty: Function,
|
|
25045
|
-
|
|
25383
|
+
renderComplete: Function,
|
|
25046
25384
|
renderLoading: Function,
|
|
25047
25385
|
renderPlaceholder: Function,
|
|
25048
25386
|
renderRefresh: Function
|
|
@@ -25076,9 +25414,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
25076
25414
|
}, [vue.createVNode(Spin, {
|
|
25077
25415
|
"size": 20
|
|
25078
25416
|
}, null)]))]), owner.isEnd.value && (owner.data.length ? vue.createVNode("div", {
|
|
25079
|
-
"class": "vc-recycle-
|
|
25080
|
-
}, [slots.
|
|
25081
|
-
"render": owner.renderer.value.
|
|
25417
|
+
"class": "vc-recycle-list__complete"
|
|
25418
|
+
}, [slots.complete?.() || owner.renderer.value.complete ? vue.createVNode(Customer, {
|
|
25419
|
+
"render": owner.renderer.value.complete
|
|
25082
25420
|
}, null) : vue.createVNode("div", {
|
|
25083
25421
|
"class": "vc-recycle-list__center"
|
|
25084
25422
|
}, [vue.createTextVNode("\u5DF2\u5168\u90E8\u52A0\u8F7D~")])]) : vue.createVNode("div", {
|
|
@@ -25374,7 +25712,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
25374
25712
|
refresh: props.renderRefresh || globalProps.renderRefresh,
|
|
25375
25713
|
placeholder: props.renderPlaceholder || globalProps.renderPlaceholder,
|
|
25376
25714
|
loading: props.renderLoading || globalProps.renderLoading,
|
|
25377
|
-
|
|
25715
|
+
complete: props.renderComplete || globalProps.renderComplete,
|
|
25378
25716
|
empty: props.renderEmpty || globalProps.renderEmpty
|
|
25379
25717
|
};
|
|
25380
25718
|
});
|
|
@@ -25429,26 +25767,22 @@ var VcComponents = (function (exports, vue) {
|
|
|
25429
25767
|
const index$ = rebuildDataIndexMap.value[index];
|
|
25430
25768
|
typeof index$ === 'undefined' ? rebuildData.value.unshift(node) : rebuildData.value[index$] = node;
|
|
25431
25769
|
};
|
|
25432
|
-
// 更新item.size
|
|
25433
25770
|
const refreshItemSize = index => {
|
|
25434
25771
|
const current = props.inverted ? rebuildData.value[rebuildDataIndexMap.value[index]] : rebuildData.value[index];
|
|
25435
|
-
if (!current) return; // 受到`removeUnusedPlaceholders`影响,无效的会被回收
|
|
25436
25772
|
|
|
25437
|
-
|
|
25773
|
+
// 受到`removeUnusedPlaceholders`影响,无效的会被回收
|
|
25774
|
+
if (!current) return;
|
|
25775
|
+
const original = Object.assign({}, current);
|
|
25438
25776
|
const dom = preloads.value[index] || curloads.value[props.inverted ? index : index - firstItemIndex.value];
|
|
25439
25777
|
if (dom) {
|
|
25440
25778
|
current.size = dom[K.offsetSize] || placeholderSize.value;
|
|
25441
25779
|
} else if (current) {
|
|
25442
25780
|
current.size = placeholderSize.value;
|
|
25443
25781
|
}
|
|
25444
|
-
|
|
25445
|
-
|
|
25446
|
-
|
|
25447
|
-
|
|
25448
|
-
index: current.id,
|
|
25449
|
-
size: current.size
|
|
25450
|
-
});
|
|
25451
|
-
}
|
|
25782
|
+
return {
|
|
25783
|
+
original,
|
|
25784
|
+
changed: current
|
|
25785
|
+
};
|
|
25452
25786
|
};
|
|
25453
25787
|
const refreshItemPosition = () => {
|
|
25454
25788
|
const sizes = Array.from({
|
|
@@ -25518,18 +25852,24 @@ var VcComponents = (function (exports, vue) {
|
|
|
25518
25852
|
const refreshLayout = async (start, end) => {
|
|
25519
25853
|
isRefreshLayout = 1;
|
|
25520
25854
|
const promiseTasks = [];
|
|
25855
|
+
const resizeChanges = [];
|
|
25521
25856
|
let item;
|
|
25522
25857
|
for (let i = start; i < end; i++) {
|
|
25523
25858
|
item = props.inverted ? rebuildData.value[rebuildDataIndexMap.value[i]] : rebuildData.value[i];
|
|
25524
|
-
if (item && item.loaded)
|
|
25525
|
-
continue;
|
|
25526
|
-
}
|
|
25859
|
+
if (item && item.loaded) continue;
|
|
25527
25860
|
setItemData(i, originalData[i]);
|
|
25528
|
-
promiseTasks.push(vue.nextTick(() =>
|
|
25861
|
+
promiseTasks.push(vue.nextTick(() => {
|
|
25862
|
+
const e = refreshItemSize(i);
|
|
25863
|
+
e && resizeChanges.push(e.changed);
|
|
25864
|
+
}));
|
|
25529
25865
|
}
|
|
25530
25866
|
await Promise.all(promiseTasks);
|
|
25531
25867
|
refreshItemPosition();
|
|
25532
25868
|
setFirstItemIndex();
|
|
25869
|
+
resizeChanges.length > 0 && emit('row-resize', resizeChanges.map(i => ({
|
|
25870
|
+
size: i.size,
|
|
25871
|
+
index: i.id
|
|
25872
|
+
})));
|
|
25533
25873
|
interrupter.next();
|
|
25534
25874
|
isRefreshLayout = 0;
|
|
25535
25875
|
};
|
|
@@ -27244,11 +27584,19 @@ var VcComponents = (function (exports, vue) {
|
|
|
27244
27584
|
emit,
|
|
27245
27585
|
slots
|
|
27246
27586
|
}) {
|
|
27587
|
+
let resizeChanges = [];
|
|
27588
|
+
const emitChanges = () => {
|
|
27589
|
+
if (resizeChanges.length > 0) {
|
|
27590
|
+
emit('row-resize', resizeChanges);
|
|
27591
|
+
resizeChanges = [];
|
|
27592
|
+
}
|
|
27593
|
+
};
|
|
27247
27594
|
const handleResize = (e, index) => {
|
|
27248
|
-
|
|
27595
|
+
resizeChanges.push({
|
|
27249
27596
|
index,
|
|
27250
27597
|
size: e.height
|
|
27251
27598
|
});
|
|
27599
|
+
vue.nextTick(emitChanges);
|
|
27252
27600
|
};
|
|
27253
27601
|
return () => {
|
|
27254
27602
|
return props.data.map((mergeData, index) => {
|
|
@@ -27607,22 +27955,25 @@ var VcComponents = (function (exports, vue) {
|
|
|
27607
27955
|
return renderRow(row, row.index);
|
|
27608
27956
|
})]);
|
|
27609
27957
|
};
|
|
27610
|
-
const handleMergeRowResize =
|
|
27958
|
+
const handleMergeRowResize = changes => {
|
|
27611
27959
|
if (table.props.rowHeight) return;
|
|
27612
|
-
|
|
27613
|
-
|
|
27614
|
-
|
|
27615
|
-
|
|
27616
|
-
|
|
27617
|
-
|
|
27618
|
-
heights
|
|
27619
|
-
|
|
27620
|
-
|
|
27621
|
-
|
|
27622
|
-
|
|
27623
|
-
|
|
27624
|
-
|
|
27625
|
-
|
|
27960
|
+
// 批量处理所有尺寸变化
|
|
27961
|
+
changes.forEach(v => {
|
|
27962
|
+
states.list[v.index].rows.forEach(row => {
|
|
27963
|
+
const old = row.heightMap[props.fixed || 'main'];
|
|
27964
|
+
if (old === v.size) return;
|
|
27965
|
+
row.heightMap[props.fixed || 'main'] = v.size;
|
|
27966
|
+
const heights = [row.heightMap.main];
|
|
27967
|
+
if (states.leftFixedCount) {
|
|
27968
|
+
heights.push(row.heightMap.left);
|
|
27969
|
+
}
|
|
27970
|
+
if (states.rightFixedCount) {
|
|
27971
|
+
heights.push(row.heightMap.right);
|
|
27972
|
+
}
|
|
27973
|
+
if (heights.every(i => !!i)) {
|
|
27974
|
+
row.height = Math.max(row.heightMap.left, row.heightMap.main, row.heightMap.right) || '';
|
|
27975
|
+
}
|
|
27976
|
+
});
|
|
27626
27977
|
});
|
|
27627
27978
|
};
|
|
27628
27979
|
expose({
|
|
@@ -30397,7 +30748,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
30397
30748
|
"controllable"
|
|
30398
30749
|
];
|
|
30399
30750
|
const props$8 = {
|
|
30400
|
-
...pick(props$
|
|
30751
|
+
...pick(props$1h, inputKeys),
|
|
30401
30752
|
wrap: {
|
|
30402
30753
|
type: String,
|
|
30403
30754
|
validator: (v) => /(soft|hard)/.test(v),
|
|
@@ -30568,7 +30919,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
30568
30919
|
setup(props, { slots }) {
|
|
30569
30920
|
const themeId = getUid("vc-theme");
|
|
30570
30921
|
const setVar = (name) => {
|
|
30571
|
-
/* istanbul ignore next -- @preserve */
|
|
30572
30922
|
if (!name) return "";
|
|
30573
30923
|
const globals = VcInstance.options.Theme?.variables;
|
|
30574
30924
|
return props.variables?.[name] || globals?.[name] || `var(--${name})`;
|
|
@@ -30604,7 +30954,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
30604
30954
|
}
|
|
30605
30955
|
});
|
|
30606
30956
|
const setCss = (attrs) => {
|
|
30607
|
-
/* istanbul ignore next -- @preserve */
|
|
30608
30957
|
if (!attrs || typeof attrs === "string") return attrs;
|
|
30609
30958
|
let content = "";
|
|
30610
30959
|
Object.entries(attrs).forEach(([key, val]) => {
|
|
@@ -30613,7 +30962,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
30613
30962
|
return content;
|
|
30614
30963
|
};
|
|
30615
30964
|
const resetPseudo = () => {
|
|
30616
|
-
/* istanbul ignore next -- @preserve */
|
|
30617
30965
|
if (typeof document === "undefined") return;
|
|
30618
30966
|
const { pseudo } = props;
|
|
30619
30967
|
if (!pseudo) return removeStyle(themeId);
|
|
@@ -31993,7 +32341,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
31993
32341
|
"allowDispatch"
|
|
31994
32342
|
];
|
|
31995
32343
|
const props$2 = {
|
|
31996
|
-
...pick(props$
|
|
32344
|
+
...pick(props$1a, selectKeys),
|
|
31997
32345
|
...pick(props$3, treeNodeContentKeys),
|
|
31998
32346
|
// 暂不支持,仅作为默认值
|
|
31999
32347
|
max: {
|
|
@@ -32266,7 +32614,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
32266
32614
|
"renderNodeLabel"
|
|
32267
32615
|
];
|
|
32268
32616
|
const props$1 = {
|
|
32269
|
-
...props$
|
|
32617
|
+
...props$1a,
|
|
32270
32618
|
...pick(props$2, treeKeys)
|
|
32271
32619
|
};
|
|
32272
32620
|
|
|
@@ -137438,6 +137786,7 @@ ${imported}
|
|
|
137438
137786
|
exports.CollapseItem = CollapseItem;
|
|
137439
137787
|
exports.ColorPicker = ColorPicker$1;
|
|
137440
137788
|
exports.Countdown = Countdown;
|
|
137789
|
+
exports.Counter = Counter;
|
|
137441
137790
|
exports.Customer = Customer;
|
|
137442
137791
|
exports.DatePicker = DatePicker;
|
|
137443
137792
|
exports.Debounce = Debounce;
|
|
@@ -137482,6 +137831,7 @@ ${imported}
|
|
|
137482
137831
|
exports.MCollapseItem = MCollapseItem;
|
|
137483
137832
|
exports.MColorPicker = MColorPicker;
|
|
137484
137833
|
exports.MCountdown = MCountdown;
|
|
137834
|
+
exports.MCounter = MCounter;
|
|
137485
137835
|
exports.MCustomer = MCustomer;
|
|
137486
137836
|
exports.MDatePicker = MDatePicker;
|
|
137487
137837
|
exports.MDebounce = Debounce;
|