@deot/vc-components 1.0.13 → 1.0.15
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 +299 -323
- package/dist/index.d.ts +86 -8
- package/dist/index.iife.js +299 -323
- package/dist/index.js +299 -323
- package/dist/index.style.css +1 -1
- package/dist/index.umd.cjs +299 -323
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -69,9 +69,9 @@ const props$1q = {
|
|
|
69
69
|
|
|
70
70
|
/** @jsxImportSource vue */
|
|
71
71
|
|
|
72
|
-
const COMPONENT_NAME$
|
|
72
|
+
const COMPONENT_NAME$1_ = 'vc-action-sheet';
|
|
73
73
|
const ActionSheet = /* @__PURE__ */ defineComponent({
|
|
74
|
-
name: COMPONENT_NAME$
|
|
74
|
+
name: COMPONENT_NAME$1_,
|
|
75
75
|
props: props$1q,
|
|
76
76
|
setup(props, {
|
|
77
77
|
slots
|
|
@@ -258,9 +258,9 @@ const IconManager = new Manager();
|
|
|
258
258
|
|
|
259
259
|
/** @jsxImportSource vue */
|
|
260
260
|
|
|
261
|
-
const COMPONENT_NAME$
|
|
261
|
+
const COMPONENT_NAME$1Z = 'vc-icon';
|
|
262
262
|
const Icon = /* @__PURE__ */ defineComponent({
|
|
263
|
-
name: COMPONENT_NAME$
|
|
263
|
+
name: COMPONENT_NAME$1Z,
|
|
264
264
|
props: props$1o,
|
|
265
265
|
setup(props) {
|
|
266
266
|
const viewBox = ref('0 0 1024 1024');
|
|
@@ -459,9 +459,9 @@ const useTransition = () => {
|
|
|
459
459
|
};
|
|
460
460
|
};
|
|
461
461
|
|
|
462
|
-
const COMPONENT_NAME$
|
|
462
|
+
const COMPONENT_NAME$1Y = "vc-transition";
|
|
463
463
|
const Transition = defineComponent({
|
|
464
|
-
name: COMPONENT_NAME$
|
|
464
|
+
name: COMPONENT_NAME$1Y,
|
|
465
465
|
props: props$1n,
|
|
466
466
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
467
467
|
inheritAttrs: false,
|
|
@@ -482,9 +482,9 @@ const Transition = defineComponent({
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
|
|
485
|
-
const COMPONENT_NAME$
|
|
485
|
+
const COMPONENT_NAME$1X = "vc-transition-collapse";
|
|
486
486
|
const TransitionCollapse = defineComponent({
|
|
487
|
-
name: COMPONENT_NAME$
|
|
487
|
+
name: COMPONENT_NAME$1X,
|
|
488
488
|
props: props$1n,
|
|
489
489
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
490
490
|
inheritAttrs: false,
|
|
@@ -603,9 +603,9 @@ const TransitionCollapse = defineComponent({
|
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
605
|
|
|
606
|
-
const COMPONENT_NAME$
|
|
606
|
+
const COMPONENT_NAME$1W = "vc-transition-fade";
|
|
607
607
|
const TransitionFade = defineComponent({
|
|
608
|
-
name: COMPONENT_NAME$
|
|
608
|
+
name: COMPONENT_NAME$1W,
|
|
609
609
|
props: {
|
|
610
610
|
...props$1n,
|
|
611
611
|
// inheritAttrs必须是false
|
|
@@ -640,9 +640,9 @@ const TransitionFade = defineComponent({
|
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
|
|
643
|
-
const COMPONENT_NAME$
|
|
643
|
+
const COMPONENT_NAME$1V = "vc-transition-scale";
|
|
644
644
|
const TransitionScale = defineComponent({
|
|
645
|
-
name: COMPONENT_NAME$
|
|
645
|
+
name: COMPONENT_NAME$1V,
|
|
646
646
|
props: {
|
|
647
647
|
...props$1n,
|
|
648
648
|
mode: {
|
|
@@ -682,9 +682,9 @@ const TransitionScale = defineComponent({
|
|
|
682
682
|
}
|
|
683
683
|
});
|
|
684
684
|
|
|
685
|
-
const COMPONENT_NAME$
|
|
685
|
+
const COMPONENT_NAME$1U = "vc-transition-slide";
|
|
686
686
|
const TransitionSlide = defineComponent({
|
|
687
|
-
name: COMPONENT_NAME$
|
|
687
|
+
name: COMPONENT_NAME$1U,
|
|
688
688
|
props: {
|
|
689
689
|
...props$1n,
|
|
690
690
|
mode: {
|
|
@@ -724,9 +724,9 @@ const TransitionSlide = defineComponent({
|
|
|
724
724
|
}
|
|
725
725
|
});
|
|
726
726
|
|
|
727
|
-
const COMPONENT_NAME$
|
|
727
|
+
const COMPONENT_NAME$1T = "vc-transition-zoom";
|
|
728
728
|
const TransitionZoom = defineComponent({
|
|
729
|
-
name: COMPONENT_NAME$
|
|
729
|
+
name: COMPONENT_NAME$1T,
|
|
730
730
|
props: {
|
|
731
731
|
...props$1n,
|
|
732
732
|
mode: {
|
|
@@ -768,7 +768,7 @@ const TransitionZoom = defineComponent({
|
|
|
768
768
|
|
|
769
769
|
/** @jsxImportSource vue */
|
|
770
770
|
|
|
771
|
-
const COMPONENT_NAME$
|
|
771
|
+
const COMPONENT_NAME$1S = 'vc-alert';
|
|
772
772
|
|
|
773
773
|
// [color, borderColor, backgroundColor], -> CSS
|
|
774
774
|
const THEME_MAP = {
|
|
@@ -778,7 +778,7 @@ const THEME_MAP = {
|
|
|
778
778
|
warning: ['#ffbf00', '#ffe58f', '#fffbe6']
|
|
779
779
|
};
|
|
780
780
|
const Alert = /* @__PURE__ */ defineComponent({
|
|
781
|
-
name: COMPONENT_NAME$
|
|
781
|
+
name: COMPONENT_NAME$1S,
|
|
782
782
|
props: props$1p,
|
|
783
783
|
setup(props, {
|
|
784
784
|
slots,
|
|
@@ -877,9 +877,9 @@ const props$1m = {
|
|
|
877
877
|
|
|
878
878
|
/** @jsxImportSource vue */
|
|
879
879
|
|
|
880
|
-
const COMPONENT_NAME$
|
|
880
|
+
const COMPONENT_NAME$1R = 'vc-artboard';
|
|
881
881
|
const Artboard = /* @__PURE__ */ defineComponent({
|
|
882
|
-
name: COMPONENT_NAME$
|
|
882
|
+
name: COMPONENT_NAME$1R,
|
|
883
883
|
props: props$1m,
|
|
884
884
|
setup(props, {
|
|
885
885
|
slots
|
|
@@ -918,9 +918,9 @@ const props$1l = {
|
|
|
918
918
|
|
|
919
919
|
/** @jsxImportSource vue */
|
|
920
920
|
|
|
921
|
-
const COMPONENT_NAME$
|
|
921
|
+
const COMPONENT_NAME$1Q = 'vc-spin';
|
|
922
922
|
const Spin = /* @__PURE__ */ defineComponent({
|
|
923
|
-
name: COMPONENT_NAME$
|
|
923
|
+
name: COMPONENT_NAME$1Q,
|
|
924
924
|
props: props$1l,
|
|
925
925
|
setup(props, {
|
|
926
926
|
slots
|
|
@@ -971,9 +971,9 @@ const props$1k = {
|
|
|
971
971
|
exclude: RegExp
|
|
972
972
|
};
|
|
973
973
|
|
|
974
|
-
const COMPONENT_NAME$
|
|
974
|
+
const COMPONENT_NAME$1P = "vc-debounce";
|
|
975
975
|
const Debounce = defineComponent({
|
|
976
|
-
name: COMPONENT_NAME$
|
|
976
|
+
name: COMPONENT_NAME$1P,
|
|
977
977
|
props: props$1k,
|
|
978
978
|
/**
|
|
979
979
|
* 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
|
|
@@ -1045,9 +1045,9 @@ const props$1j = {
|
|
|
1045
1045
|
|
|
1046
1046
|
/** @jsxImportSource vue */
|
|
1047
1047
|
|
|
1048
|
-
const COMPONENT_NAME$
|
|
1048
|
+
const COMPONENT_NAME$1O = 'vc-button';
|
|
1049
1049
|
const Button = /* @__PURE__ */ defineComponent({
|
|
1050
|
-
name: COMPONENT_NAME$
|
|
1050
|
+
name: COMPONENT_NAME$1O,
|
|
1051
1051
|
emits: ['click'],
|
|
1052
1052
|
props: props$1j,
|
|
1053
1053
|
setup(props, {
|
|
@@ -1127,9 +1127,9 @@ const props$1i = {
|
|
|
1127
1127
|
|
|
1128
1128
|
/** @jsxImportSource vue */
|
|
1129
1129
|
|
|
1130
|
-
const COMPONENT_NAME$
|
|
1130
|
+
const COMPONENT_NAME$1N = 'vc-button-group';
|
|
1131
1131
|
const ButtonGroup = /* @__PURE__ */ defineComponent({
|
|
1132
|
-
name: COMPONENT_NAME$
|
|
1132
|
+
name: COMPONENT_NAME$1N,
|
|
1133
1133
|
props: props$1i,
|
|
1134
1134
|
setup(props, {
|
|
1135
1135
|
slots
|
|
@@ -1163,9 +1163,9 @@ const props$1h = {
|
|
|
1163
1163
|
|
|
1164
1164
|
/** @jsxImportSource vue */
|
|
1165
1165
|
|
|
1166
|
-
const COMPONENT_NAME$
|
|
1166
|
+
const COMPONENT_NAME$1M = 'vc-calendar';
|
|
1167
1167
|
const Calendar = /* @__PURE__ */ defineComponent({
|
|
1168
|
-
name: COMPONENT_NAME$
|
|
1168
|
+
name: COMPONENT_NAME$1M,
|
|
1169
1169
|
props: props$1h,
|
|
1170
1170
|
setup(props, {
|
|
1171
1171
|
slots
|
|
@@ -1203,9 +1203,9 @@ const props$1g = {
|
|
|
1203
1203
|
|
|
1204
1204
|
/** @jsxImportSource vue */
|
|
1205
1205
|
|
|
1206
|
-
const COMPONENT_NAME$
|
|
1206
|
+
const COMPONENT_NAME$1L = 'vc-card';
|
|
1207
1207
|
const Card = /* @__PURE__ */ defineComponent({
|
|
1208
|
-
name: COMPONENT_NAME$
|
|
1208
|
+
name: COMPONENT_NAME$1L,
|
|
1209
1209
|
props: props$1g,
|
|
1210
1210
|
setup(props, {
|
|
1211
1211
|
slots
|
|
@@ -1241,9 +1241,9 @@ const props$1f = {
|
|
|
1241
1241
|
|
|
1242
1242
|
/** @jsxImportSource vue */
|
|
1243
1243
|
|
|
1244
|
-
const COMPONENT_NAME$
|
|
1244
|
+
const COMPONENT_NAME$1K = 'vc-carousel';
|
|
1245
1245
|
const Carousel = /* @__PURE__ */ defineComponent({
|
|
1246
|
-
name: COMPONENT_NAME$
|
|
1246
|
+
name: COMPONENT_NAME$1K,
|
|
1247
1247
|
props: props$1f,
|
|
1248
1248
|
setup(props, {
|
|
1249
1249
|
slots
|
|
@@ -1267,9 +1267,9 @@ const props$1e = {
|
|
|
1267
1267
|
|
|
1268
1268
|
/** @jsxImportSource vue */
|
|
1269
1269
|
|
|
1270
|
-
const COMPONENT_NAME$
|
|
1270
|
+
const COMPONENT_NAME$1J = 'vc-cascader';
|
|
1271
1271
|
const Cascader = /* @__PURE__ */ defineComponent({
|
|
1272
|
-
name: COMPONENT_NAME$
|
|
1272
|
+
name: COMPONENT_NAME$1J,
|
|
1273
1273
|
props: props$1e,
|
|
1274
1274
|
setup(props, {
|
|
1275
1275
|
slots
|
|
@@ -1338,9 +1338,9 @@ const props$1d = {
|
|
|
1338
1338
|
|
|
1339
1339
|
/** @jsxImportSource vue */
|
|
1340
1340
|
|
|
1341
|
-
const COMPONENT_NAME$
|
|
1341
|
+
const COMPONENT_NAME$1I = 'vc-chart';
|
|
1342
1342
|
const Chart = /* @__PURE__ */ defineComponent({
|
|
1343
|
-
name: COMPONENT_NAME$
|
|
1343
|
+
name: COMPONENT_NAME$1I,
|
|
1344
1344
|
props: props$1d,
|
|
1345
1345
|
emits: [...EVENTS, 'ready'],
|
|
1346
1346
|
setup(props, {
|
|
@@ -1571,9 +1571,9 @@ const useCheckbox = () => {
|
|
|
1571
1571
|
|
|
1572
1572
|
/** @jsxImportSource vue */
|
|
1573
1573
|
|
|
1574
|
-
const COMPONENT_NAME$
|
|
1574
|
+
const COMPONENT_NAME$1H = 'vc-checkbox';
|
|
1575
1575
|
const Checkbox = /* @__PURE__ */ defineComponent({
|
|
1576
|
-
name: COMPONENT_NAME$
|
|
1576
|
+
name: COMPONENT_NAME$1H,
|
|
1577
1577
|
props: props$1c,
|
|
1578
1578
|
emits: ['update:modelValue', 'change'],
|
|
1579
1579
|
setup(props, {
|
|
@@ -1660,9 +1660,9 @@ const useCheckboxGroup = () => {
|
|
|
1660
1660
|
|
|
1661
1661
|
/** @jsxImportSource vue */
|
|
1662
1662
|
|
|
1663
|
-
const COMPONENT_NAME$
|
|
1663
|
+
const COMPONENT_NAME$1G = 'vc-checkbox-group';
|
|
1664
1664
|
const CheckboxGroup = /* @__PURE__ */ defineComponent({
|
|
1665
|
-
name: COMPONENT_NAME$
|
|
1665
|
+
name: COMPONENT_NAME$1G,
|
|
1666
1666
|
props: props$1b,
|
|
1667
1667
|
emits: ['update:modelValue', 'change'],
|
|
1668
1668
|
setup(props, {
|
|
@@ -1680,9 +1680,9 @@ const CheckboxGroup = /* @__PURE__ */ defineComponent({
|
|
|
1680
1680
|
|
|
1681
1681
|
/** @jsxImportSource vue */
|
|
1682
1682
|
|
|
1683
|
-
const COMPONENT_NAME$
|
|
1683
|
+
const COMPONENT_NAME$1F = 'vcm-checkbox';
|
|
1684
1684
|
const MCheckbox = /* @__PURE__ */ defineComponent({
|
|
1685
|
-
name: COMPONENT_NAME$
|
|
1685
|
+
name: COMPONENT_NAME$1F,
|
|
1686
1686
|
props: props$1c,
|
|
1687
1687
|
emits: ['update:modelValue', 'change'],
|
|
1688
1688
|
setup(props, {
|
|
@@ -1722,9 +1722,9 @@ const MCheckbox = /* @__PURE__ */ defineComponent({
|
|
|
1722
1722
|
|
|
1723
1723
|
/** @jsxImportSource vue */
|
|
1724
1724
|
|
|
1725
|
-
const COMPONENT_NAME$
|
|
1725
|
+
const COMPONENT_NAME$1E = 'vcm-checkbox-group';
|
|
1726
1726
|
const MCheckboxGroup = /* @__PURE__ */ defineComponent({
|
|
1727
|
-
name: COMPONENT_NAME$
|
|
1727
|
+
name: COMPONENT_NAME$1E,
|
|
1728
1728
|
props: props$1b,
|
|
1729
1729
|
emits: ['update:modelValue', 'change'],
|
|
1730
1730
|
setup(props, {
|
|
@@ -1783,9 +1783,9 @@ const props$19 = {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
};
|
|
1785
1785
|
|
|
1786
|
-
const COMPONENT_NAME$
|
|
1786
|
+
const COMPONENT_NAME$1D = "vc-customer";
|
|
1787
1787
|
const Customer = defineComponent({
|
|
1788
|
-
name: COMPONENT_NAME$
|
|
1788
|
+
name: COMPONENT_NAME$1D,
|
|
1789
1789
|
props: props$19,
|
|
1790
1790
|
setup(props, context) {
|
|
1791
1791
|
return () => h(() => {
|
|
@@ -1796,9 +1796,9 @@ const Customer = defineComponent({
|
|
|
1796
1796
|
|
|
1797
1797
|
/** @jsxImportSource vue */
|
|
1798
1798
|
|
|
1799
|
-
const COMPONENT_NAME$
|
|
1799
|
+
const COMPONENT_NAME$1C = 'vc-message';
|
|
1800
1800
|
const MessageView = /* @__PURE__ */ defineComponent({
|
|
1801
|
-
name: COMPONENT_NAME$
|
|
1801
|
+
name: COMPONENT_NAME$1C,
|
|
1802
1802
|
emits: ['before-close', 'close', 'portal-fulfilled'],
|
|
1803
1803
|
props: props$1a,
|
|
1804
1804
|
setup(props, {
|
|
@@ -1945,7 +1945,7 @@ class PortalLeaf {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
1947
|
|
|
1948
|
-
const COMPONENT_NAME$
|
|
1948
|
+
const COMPONENT_NAME$1B = "vc-portal";
|
|
1949
1949
|
class Portal {
|
|
1950
1950
|
/**
|
|
1951
1951
|
* 清理Portals类型组件
|
|
@@ -1997,7 +1997,7 @@ class Portal {
|
|
|
1997
1997
|
this.wrapper = wrapper;
|
|
1998
1998
|
this.globalOptions = {
|
|
1999
1999
|
...options,
|
|
2000
|
-
name: options?.name || wrapper.name || Utils.getUid(COMPONENT_NAME$
|
|
2000
|
+
name: options?.name || wrapper.name || Utils.getUid(COMPONENT_NAME$1B)
|
|
2001
2001
|
};
|
|
2002
2002
|
}
|
|
2003
2003
|
popup(propsData, options) {
|
|
@@ -2096,7 +2096,7 @@ class Portal {
|
|
|
2096
2096
|
...rest
|
|
2097
2097
|
} = options;
|
|
2098
2098
|
let useAllNodes = fragment;
|
|
2099
|
-
const name = multiple ? `${name$}__${Utils.getUid(COMPONENT_NAME$
|
|
2099
|
+
const name = multiple ? `${name$}__${Utils.getUid(COMPONENT_NAME$1B)}` : name$;
|
|
2100
2100
|
const container = document.createElement(tag);
|
|
2101
2101
|
const root = typeof el === "object" ? el : document.querySelector(el || "body");
|
|
2102
2102
|
!alive && Portal.leafs.get(name)?.destroy();
|
|
@@ -2130,7 +2130,7 @@ class Portal {
|
|
|
2130
2130
|
} else {
|
|
2131
2131
|
const wrapper = this.wrapper;
|
|
2132
2132
|
const app = createApp({
|
|
2133
|
-
name: COMPONENT_NAME$
|
|
2133
|
+
name: COMPONENT_NAME$1B,
|
|
2134
2134
|
parent,
|
|
2135
2135
|
setup() {
|
|
2136
2136
|
if (alive) {
|
|
@@ -2242,13 +2242,13 @@ const props$18 = {
|
|
|
2242
2242
|
}
|
|
2243
2243
|
};
|
|
2244
2244
|
|
|
2245
|
-
const COMPONENT_NAME$
|
|
2245
|
+
const COMPONENT_NAME$1A = 'vc-portal-view';
|
|
2246
2246
|
|
|
2247
2247
|
/**
|
|
2248
2248
|
* 写法不同,但与vue@2.x 保持一致
|
|
2249
2249
|
*/
|
|
2250
2250
|
const PortalView = /* @__PURE__ */ defineComponent({
|
|
2251
|
-
name: COMPONENT_NAME$
|
|
2251
|
+
name: COMPONENT_NAME$1A,
|
|
2252
2252
|
props: props$18,
|
|
2253
2253
|
setup(props, {
|
|
2254
2254
|
slots
|
|
@@ -2419,9 +2419,9 @@ const useClipboard = (done) => {
|
|
|
2419
2419
|
return () => h(props.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
|
|
2420
2420
|
};
|
|
2421
2421
|
|
|
2422
|
-
const COMPONENT_NAME$
|
|
2422
|
+
const COMPONENT_NAME$1z = "vc-clipboard";
|
|
2423
2423
|
const Clipboard$1 = defineComponent({
|
|
2424
|
-
name: COMPONENT_NAME$
|
|
2424
|
+
name: COMPONENT_NAME$1z,
|
|
2425
2425
|
props: props$17,
|
|
2426
2426
|
setup() {
|
|
2427
2427
|
return useClipboard((content) => Message.success({ content }));
|
|
@@ -2461,9 +2461,9 @@ const MTransitionZoom = TransitionZoom;
|
|
|
2461
2461
|
|
|
2462
2462
|
/** @jsxImportSource vue */
|
|
2463
2463
|
|
|
2464
|
-
const COMPONENT_NAME$
|
|
2464
|
+
const COMPONENT_NAME$1y = 'vcm-toast';
|
|
2465
2465
|
const MToastView = /* @__PURE__ */ defineComponent({
|
|
2466
|
-
name: COMPONENT_NAME$
|
|
2466
|
+
name: COMPONENT_NAME$1y,
|
|
2467
2467
|
emits: ['close', 'portal-fulfilled'],
|
|
2468
2468
|
props: props$16,
|
|
2469
2469
|
setup(props, {
|
|
@@ -2565,9 +2565,9 @@ const warning$2 = create$3({ mode: "warning" });
|
|
|
2565
2565
|
const error$2 = create$3({ mode: "error" });
|
|
2566
2566
|
const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
|
|
2567
2567
|
|
|
2568
|
-
const COMPONENT_NAME$
|
|
2568
|
+
const COMPONENT_NAME$1x = "vcm-clipboard";
|
|
2569
2569
|
const MClipboard$1 = defineComponent({
|
|
2570
|
-
name: COMPONENT_NAME$
|
|
2570
|
+
name: COMPONENT_NAME$1x,
|
|
2571
2571
|
props: props$17,
|
|
2572
2572
|
setup() {
|
|
2573
2573
|
return useClipboard((content) => MToast.info({ content }));
|
|
@@ -2599,9 +2599,9 @@ const props$15 = {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
};
|
|
2601
2601
|
|
|
2602
|
-
const COMPONENT_NAME$
|
|
2602
|
+
const COMPONENT_NAME$1w = "vc-collapse";
|
|
2603
2603
|
const Collapse = defineComponent({
|
|
2604
|
-
name: COMPONENT_NAME$
|
|
2604
|
+
name: COMPONENT_NAME$1w,
|
|
2605
2605
|
props: props$15,
|
|
2606
2606
|
emits: ["update:moodelValue", "change"],
|
|
2607
2607
|
setup(props, { slots, emit }) {
|
|
@@ -2718,9 +2718,9 @@ const props$13 = {
|
|
|
2718
2718
|
function _isSlot$3(s) {
|
|
2719
2719
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
2720
2720
|
}
|
|
2721
|
-
const COMPONENT_NAME$
|
|
2721
|
+
const COMPONENT_NAME$1v = 'vc-expand';
|
|
2722
2722
|
const Expand$1 = /* @__PURE__ */ defineComponent({
|
|
2723
|
-
name: COMPONENT_NAME$
|
|
2723
|
+
name: COMPONENT_NAME$1v,
|
|
2724
2724
|
props: props$13,
|
|
2725
2725
|
setup(props, {
|
|
2726
2726
|
slots
|
|
@@ -2750,9 +2750,9 @@ const Expand$1 = /* @__PURE__ */ defineComponent({
|
|
|
2750
2750
|
|
|
2751
2751
|
/** @jsxImportSource vue */
|
|
2752
2752
|
|
|
2753
|
-
const COMPONENT_NAME$
|
|
2753
|
+
const COMPONENT_NAME$1u = 'vc-collapse-item';
|
|
2754
2754
|
const CollapseItem = /* @__PURE__ */ defineComponent({
|
|
2755
|
-
name: COMPONENT_NAME$
|
|
2755
|
+
name: COMPONENT_NAME$1u,
|
|
2756
2756
|
props: props$14,
|
|
2757
2757
|
setup(props, {
|
|
2758
2758
|
slots,
|
|
@@ -2827,9 +2827,9 @@ const props$12 = {
|
|
|
2827
2827
|
|
|
2828
2828
|
/** @jsxImportSource vue */
|
|
2829
2829
|
|
|
2830
|
-
const COMPONENT_NAME$
|
|
2830
|
+
const COMPONENT_NAME$1t = 'vc-color-picker';
|
|
2831
2831
|
const ColorPicker = /* @__PURE__ */ defineComponent({
|
|
2832
|
-
name: COMPONENT_NAME$
|
|
2832
|
+
name: COMPONENT_NAME$1t,
|
|
2833
2833
|
props: props$12,
|
|
2834
2834
|
setup(props, {
|
|
2835
2835
|
slots
|
|
@@ -2853,9 +2853,9 @@ const props$11 = {
|
|
|
2853
2853
|
|
|
2854
2854
|
/** @jsxImportSource vue */
|
|
2855
2855
|
|
|
2856
|
-
const COMPONENT_NAME$
|
|
2856
|
+
const COMPONENT_NAME$1s = 'vc-countdown';
|
|
2857
2857
|
const Countdown = /* @__PURE__ */ defineComponent({
|
|
2858
|
-
name: COMPONENT_NAME$
|
|
2858
|
+
name: COMPONENT_NAME$1s,
|
|
2859
2859
|
props: props$11,
|
|
2860
2860
|
setup(props, {
|
|
2861
2861
|
slots
|
|
@@ -3304,9 +3304,9 @@ const useNativeEmitter = (input, expose) => {
|
|
|
3304
3304
|
|
|
3305
3305
|
/** @jsxImportSource vue */
|
|
3306
3306
|
|
|
3307
|
-
const COMPONENT_NAME$
|
|
3307
|
+
const COMPONENT_NAME$1r = 'vc-input';
|
|
3308
3308
|
const Input = /* @__PURE__ */ defineComponent({
|
|
3309
|
-
name: COMPONENT_NAME$
|
|
3309
|
+
name: COMPONENT_NAME$1r,
|
|
3310
3310
|
inheritAttrs: false,
|
|
3311
3311
|
props: {
|
|
3312
3312
|
...props$$,
|
|
@@ -3640,9 +3640,9 @@ const useInputNumber = () => {
|
|
|
3640
3640
|
|
|
3641
3641
|
/** @jsxImportSource vue */
|
|
3642
3642
|
|
|
3643
|
-
const COMPONENT_NAME$
|
|
3643
|
+
const COMPONENT_NAME$1q = 'vc-input-number';
|
|
3644
3644
|
const InputNumber = /* @__PURE__ */ defineComponent({
|
|
3645
|
-
name: COMPONENT_NAME$
|
|
3645
|
+
name: COMPONENT_NAME$1q,
|
|
3646
3646
|
props: props$X,
|
|
3647
3647
|
inheritAttrs: false,
|
|
3648
3648
|
setup(props, {
|
|
@@ -3706,9 +3706,9 @@ const props$W = {
|
|
|
3706
3706
|
|
|
3707
3707
|
/** @jsxImportSource vue */
|
|
3708
3708
|
|
|
3709
|
-
const COMPONENT_NAME$
|
|
3709
|
+
const COMPONENT_NAME$1p = 'vc-input-search';
|
|
3710
3710
|
const InputSearch = /* @__PURE__ */ defineComponent({
|
|
3711
|
-
name: COMPONENT_NAME$
|
|
3711
|
+
name: COMPONENT_NAME$1p,
|
|
3712
3712
|
props: props$W,
|
|
3713
3713
|
inheritAttrs: false,
|
|
3714
3714
|
setup(props, {
|
|
@@ -3999,9 +3999,9 @@ const usePos = () => {
|
|
|
3999
3999
|
function _isSlot$2(s) {
|
|
4000
4000
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
4001
4001
|
}
|
|
4002
|
-
const COMPONENT_NAME$
|
|
4002
|
+
const COMPONENT_NAME$1o = 'vc-popover-wrapper';
|
|
4003
4003
|
const PopoverWrapper = /* @__PURE__ */ defineComponent({
|
|
4004
|
-
name: COMPONENT_NAME$
|
|
4004
|
+
name: COMPONENT_NAME$1o,
|
|
4005
4005
|
props: props$_,
|
|
4006
4006
|
emits: ['portal-fulfilled', 'close'],
|
|
4007
4007
|
setup(props, {
|
|
@@ -4253,9 +4253,9 @@ const PopoverPortal = new Portal(PopoverWrapper);
|
|
|
4253
4253
|
|
|
4254
4254
|
/** @jsxImportSource vue */
|
|
4255
4255
|
|
|
4256
|
-
const COMPONENT_NAME$
|
|
4256
|
+
const COMPONENT_NAME$1n = 'vc-popover';
|
|
4257
4257
|
const Popover$1 = /* @__PURE__ */ defineComponent({
|
|
4258
|
-
name: COMPONENT_NAME$
|
|
4258
|
+
name: COMPONENT_NAME$1n,
|
|
4259
4259
|
props: props$Z,
|
|
4260
4260
|
emits: ['update:modelValue', 'visible-change', 'ready', 'close'],
|
|
4261
4261
|
setup(props, {
|
|
@@ -5356,9 +5356,9 @@ const getTimeType = type => {
|
|
|
5356
5356
|
}
|
|
5357
5357
|
return view;
|
|
5358
5358
|
};
|
|
5359
|
-
const COMPONENT_NAME$
|
|
5359
|
+
const COMPONENT_NAME$1m = 'vc-date-confirm';
|
|
5360
5360
|
const Confirm = /* @__PURE__ */ defineComponent({
|
|
5361
|
-
name: COMPONENT_NAME$
|
|
5361
|
+
name: COMPONENT_NAME$1m,
|
|
5362
5362
|
props: {
|
|
5363
5363
|
showTime: {
|
|
5364
5364
|
type: Boolean,
|
|
@@ -5422,9 +5422,9 @@ const Confirm = /* @__PURE__ */ defineComponent({
|
|
|
5422
5422
|
|
|
5423
5423
|
/** @jsxImportSource vue */
|
|
5424
5424
|
|
|
5425
|
-
const COMPONENT_NAME$
|
|
5425
|
+
const COMPONENT_NAME$1l = 'vc-date-header';
|
|
5426
5426
|
const DateHeader = /* @__PURE__ */ defineComponent({
|
|
5427
|
-
name: COMPONENT_NAME$
|
|
5427
|
+
name: COMPONENT_NAME$1l,
|
|
5428
5428
|
props: {
|
|
5429
5429
|
panelDate: Date,
|
|
5430
5430
|
showNext: {
|
|
@@ -5508,9 +5508,9 @@ const DateHeader = /* @__PURE__ */ defineComponent({
|
|
|
5508
5508
|
|
|
5509
5509
|
/** @jsxImportSource vue */
|
|
5510
5510
|
|
|
5511
|
-
const COMPONENT_NAME$
|
|
5511
|
+
const COMPONENT_NAME$1k = 'vc-date-table';
|
|
5512
5512
|
const DateTable = /* @__PURE__ */ defineComponent({
|
|
5513
|
-
name: COMPONENT_NAME$
|
|
5513
|
+
name: COMPONENT_NAME$1k,
|
|
5514
5514
|
props: {
|
|
5515
5515
|
value: Array,
|
|
5516
5516
|
firstDayOfWeek: {
|
|
@@ -5719,9 +5719,9 @@ const DateTable = /* @__PURE__ */ defineComponent({
|
|
|
5719
5719
|
|
|
5720
5720
|
/** @jsxImportSource vue */
|
|
5721
5721
|
|
|
5722
|
-
const COMPONENT_NAME$
|
|
5722
|
+
const COMPONENT_NAME$1j = 'vc-month-table';
|
|
5723
5723
|
const MonthTable = /* @__PURE__ */ defineComponent({
|
|
5724
|
-
name: COMPONENT_NAME$
|
|
5724
|
+
name: COMPONENT_NAME$1j,
|
|
5725
5725
|
props: {
|
|
5726
5726
|
value: Array,
|
|
5727
5727
|
panelDate: Date,
|
|
@@ -5853,7 +5853,7 @@ const MonthTable = /* @__PURE__ */ defineComponent({
|
|
|
5853
5853
|
|
|
5854
5854
|
/** @jsxImportSource vue */
|
|
5855
5855
|
|
|
5856
|
-
const COMPONENT_NAME$
|
|
5856
|
+
const COMPONENT_NAME$1i = 'vc-quarter-table';
|
|
5857
5857
|
|
|
5858
5858
|
/**
|
|
5859
5859
|
* 获取季度对应的月份范围
|
|
@@ -5887,7 +5887,7 @@ const getQuarterRangeByMonth = value => {
|
|
|
5887
5887
|
}
|
|
5888
5888
|
};
|
|
5889
5889
|
const QuarterTable = /* @__PURE__ */ defineComponent({
|
|
5890
|
-
name: COMPONENT_NAME$
|
|
5890
|
+
name: COMPONENT_NAME$1i,
|
|
5891
5891
|
props: {
|
|
5892
5892
|
value: Array,
|
|
5893
5893
|
panelDate: Date,
|
|
@@ -6010,9 +6010,9 @@ const QuarterTable = /* @__PURE__ */ defineComponent({
|
|
|
6010
6010
|
|
|
6011
6011
|
/** @jsxImportSource vue */
|
|
6012
6012
|
|
|
6013
|
-
const COMPONENT_NAME$
|
|
6013
|
+
const COMPONENT_NAME$1h = 'vc-shortcuts-select';
|
|
6014
6014
|
const ShortcutsSelect = /* @__PURE__ */ defineComponent({
|
|
6015
|
-
name: COMPONENT_NAME$
|
|
6015
|
+
name: COMPONENT_NAME$1h,
|
|
6016
6016
|
props: {
|
|
6017
6017
|
panelDate: Date,
|
|
6018
6018
|
config: Array,
|
|
@@ -6052,9 +6052,9 @@ const ShortcutsSelect = /* @__PURE__ */ defineComponent({
|
|
|
6052
6052
|
|
|
6053
6053
|
/** @jsxImportSource vue */
|
|
6054
6054
|
|
|
6055
|
-
const COMPONENT_NAME$
|
|
6055
|
+
const COMPONENT_NAME$1g = 'vc-time-select';
|
|
6056
6056
|
const TimeSelect = /* @__PURE__ */ defineComponent({
|
|
6057
|
-
name: COMPONENT_NAME$
|
|
6057
|
+
name: COMPONENT_NAME$1g,
|
|
6058
6058
|
props: {
|
|
6059
6059
|
hours: {
|
|
6060
6060
|
type: [Number, String],
|
|
@@ -6333,9 +6333,9 @@ const TimeSelect = /* @__PURE__ */ defineComponent({
|
|
|
6333
6333
|
|
|
6334
6334
|
/** @jsxImportSource vue */
|
|
6335
6335
|
|
|
6336
|
-
const COMPONENT_NAME$
|
|
6336
|
+
const COMPONENT_NAME$1f = 'vc-year-table';
|
|
6337
6337
|
const YearTable = /* @__PURE__ */ defineComponent({
|
|
6338
|
-
name: COMPONENT_NAME$
|
|
6338
|
+
name: COMPONENT_NAME$1f,
|
|
6339
6339
|
props: {
|
|
6340
6340
|
value: Array,
|
|
6341
6341
|
panelDate: Date,
|
|
@@ -6458,9 +6458,9 @@ const getDateIsInRange = (value, type, leftPanelDate, rightPanelDate) => {
|
|
|
6458
6458
|
}
|
|
6459
6459
|
return true;
|
|
6460
6460
|
};
|
|
6461
|
-
const COMPONENT_NAME$
|
|
6461
|
+
const COMPONENT_NAME$1e = 'vc-date-range-panel';
|
|
6462
6462
|
const DateRangePanel = /* @__PURE__ */ defineComponent({
|
|
6463
|
-
name: COMPONENT_NAME$
|
|
6463
|
+
name: COMPONENT_NAME$1e,
|
|
6464
6464
|
props: {
|
|
6465
6465
|
...props$V,
|
|
6466
6466
|
confirm: {
|
|
@@ -6839,9 +6839,9 @@ const DateRangePanel = /* @__PURE__ */ defineComponent({
|
|
|
6839
6839
|
|
|
6840
6840
|
/** @jsxImportSource vue */
|
|
6841
6841
|
|
|
6842
|
-
const COMPONENT_NAME$
|
|
6842
|
+
const COMPONENT_NAME$1d = 'vc-date-panel';
|
|
6843
6843
|
const DatePanel = /* @__PURE__ */ defineComponent({
|
|
6844
|
-
name: COMPONENT_NAME$
|
|
6844
|
+
name: COMPONENT_NAME$1d,
|
|
6845
6845
|
props: {
|
|
6846
6846
|
...props$V,
|
|
6847
6847
|
type: String,
|
|
@@ -7049,9 +7049,9 @@ const isEqualYear$1 = value => {
|
|
|
7049
7049
|
const endYear = value[1].getFullYear();
|
|
7050
7050
|
return startYear === endYear;
|
|
7051
7051
|
};
|
|
7052
|
-
const COMPONENT_NAME$
|
|
7052
|
+
const COMPONENT_NAME$1c = 'vc-monthrange-panel';
|
|
7053
7053
|
const MonthRangePanel = /* @__PURE__ */ defineComponent({
|
|
7054
|
-
name: COMPONENT_NAME$
|
|
7054
|
+
name: COMPONENT_NAME$1c,
|
|
7055
7055
|
props: {
|
|
7056
7056
|
...props$V,
|
|
7057
7057
|
confirm: {
|
|
@@ -7226,9 +7226,9 @@ const isEqualYear = value => {
|
|
|
7226
7226
|
const endYear = value[1].getFullYear();
|
|
7227
7227
|
return startYear === endYear;
|
|
7228
7228
|
};
|
|
7229
|
-
const COMPONENT_NAME$
|
|
7229
|
+
const COMPONENT_NAME$1b = 'vc-quarterrange-panel';
|
|
7230
7230
|
const QuarterRangePanel = /* @__PURE__ */ defineComponent({
|
|
7231
|
-
name: COMPONENT_NAME$
|
|
7231
|
+
name: COMPONENT_NAME$1b,
|
|
7232
7232
|
props: {
|
|
7233
7233
|
...props$V,
|
|
7234
7234
|
confirm: {
|
|
@@ -7467,9 +7467,9 @@ const getComparedDate = (leftDate, rightDate) => {
|
|
|
7467
7467
|
seconds
|
|
7468
7468
|
};
|
|
7469
7469
|
};
|
|
7470
|
-
const COMPONENT_NAME$
|
|
7470
|
+
const COMPONENT_NAME$1a = 'vc-timerange-panel';
|
|
7471
7471
|
const TimeRangePanel = /* @__PURE__ */ defineComponent({
|
|
7472
|
-
name: COMPONENT_NAME$
|
|
7472
|
+
name: COMPONENT_NAME$1a,
|
|
7473
7473
|
props: props$U,
|
|
7474
7474
|
emits: ['pick', 'clear', 'ok'],
|
|
7475
7475
|
setup(props, {
|
|
@@ -7568,9 +7568,9 @@ const TimeRangePanel = /* @__PURE__ */ defineComponent({
|
|
|
7568
7568
|
|
|
7569
7569
|
/** @jsxImportSource vue */
|
|
7570
7570
|
|
|
7571
|
-
const COMPONENT_NAME$
|
|
7571
|
+
const COMPONENT_NAME$19 = 'vc-time-panel';
|
|
7572
7572
|
const TimePanel = /* @__PURE__ */ defineComponent({
|
|
7573
|
-
name: COMPONENT_NAME$
|
|
7573
|
+
name: COMPONENT_NAME$19,
|
|
7574
7574
|
props: props$U,
|
|
7575
7575
|
emits: ['pick', 'clear', 'ok'],
|
|
7576
7576
|
setup(props, {
|
|
@@ -7625,7 +7625,7 @@ const TimePanel = /* @__PURE__ */ defineComponent({
|
|
|
7625
7625
|
|
|
7626
7626
|
/** @jsxImportSource vue */
|
|
7627
7627
|
|
|
7628
|
-
const COMPONENT_NAME$
|
|
7628
|
+
const COMPONENT_NAME$18 = 'vc-date-picker';
|
|
7629
7629
|
const getPanel$1 = type => {
|
|
7630
7630
|
if (['daterange', 'datetimerange'].includes(type)) {
|
|
7631
7631
|
return DateRangePanel;
|
|
@@ -7636,7 +7636,7 @@ const getPanel$1 = type => {
|
|
|
7636
7636
|
}
|
|
7637
7637
|
return DatePanel;
|
|
7638
7638
|
};
|
|
7639
|
-
const DatePicker = createPicker(COMPONENT_NAME$
|
|
7639
|
+
const DatePicker = createPicker(COMPONENT_NAME$18, props$10, () => {
|
|
7640
7640
|
const props = getCurrentInstance().props;
|
|
7641
7641
|
const icon = ref('date');
|
|
7642
7642
|
const panel = shallowRef({});
|
|
@@ -7669,9 +7669,9 @@ const props$T = {
|
|
|
7669
7669
|
|
|
7670
7670
|
/** @jsxImportSource vue */
|
|
7671
7671
|
|
|
7672
|
-
const COMPONENT_NAME$
|
|
7672
|
+
const COMPONENT_NAME$17 = 'vc-divider';
|
|
7673
7673
|
const Divider = /* @__PURE__ */ defineComponent({
|
|
7674
|
-
name: COMPONENT_NAME$
|
|
7674
|
+
name: COMPONENT_NAME$17,
|
|
7675
7675
|
props: props$T,
|
|
7676
7676
|
setup(props, {
|
|
7677
7677
|
slots
|
|
@@ -7826,7 +7826,7 @@ const props$Q = {
|
|
|
7826
7826
|
|
|
7827
7827
|
/** @jsxImportSource vue */
|
|
7828
7828
|
|
|
7829
|
-
const COMPONENT_NAME$
|
|
7829
|
+
const COMPONENT_NAME$16 = 'vc-scroller-track';
|
|
7830
7830
|
const BAR_MAP = {
|
|
7831
7831
|
vertical: {
|
|
7832
7832
|
scroll: 'scrollTop',
|
|
@@ -7846,7 +7846,7 @@ const BAR_MAP = {
|
|
|
7846
7846
|
}
|
|
7847
7847
|
};
|
|
7848
7848
|
const Track = /* @__PURE__ */ defineComponent({
|
|
7849
|
-
name: COMPONENT_NAME$
|
|
7849
|
+
name: COMPONENT_NAME$16,
|
|
7850
7850
|
props: props$S,
|
|
7851
7851
|
emits: ['change'],
|
|
7852
7852
|
inheritAttrs: false,
|
|
@@ -8036,9 +8036,9 @@ const Track = /* @__PURE__ */ defineComponent({
|
|
|
8036
8036
|
|
|
8037
8037
|
/** @jsxImportSource vue */
|
|
8038
8038
|
|
|
8039
|
-
const COMPONENT_NAME$
|
|
8039
|
+
const COMPONENT_NAME$15 = 'vc-scroller-bar';
|
|
8040
8040
|
const Bar = /* @__PURE__ */ defineComponent({
|
|
8041
|
-
name: COMPONENT_NAME$
|
|
8041
|
+
name: COMPONENT_NAME$15,
|
|
8042
8042
|
props: props$R,
|
|
8043
8043
|
emits: ['change'],
|
|
8044
8044
|
setup(props, {
|
|
@@ -8253,7 +8253,7 @@ const useScroller = (expose) => {
|
|
|
8253
8253
|
|
|
8254
8254
|
/** @jsxImportSource vue */
|
|
8255
8255
|
|
|
8256
|
-
const COMPONENT_NAME$
|
|
8256
|
+
const COMPONENT_NAME$14 = 'vc-scroller';
|
|
8257
8257
|
|
|
8258
8258
|
/**
|
|
8259
8259
|
* 作为备选方案,目前推荐使用ScrollerWheel
|
|
@@ -8264,7 +8264,7 @@ const COMPONENT_NAME$15 = 'vc-scroller';
|
|
|
8264
8264
|
* 2. 增加了一层嵌套
|
|
8265
8265
|
*/
|
|
8266
8266
|
const Scroller = /* @__PURE__ */ defineComponent({
|
|
8267
|
-
name: COMPONENT_NAME$
|
|
8267
|
+
name: COMPONENT_NAME$14,
|
|
8268
8268
|
props: props$Q,
|
|
8269
8269
|
emits: ['scroll'],
|
|
8270
8270
|
setup(props, {
|
|
@@ -8325,7 +8325,7 @@ const Scroller = /* @__PURE__ */ defineComponent({
|
|
|
8325
8325
|
|
|
8326
8326
|
/** @jsxImportSource vue */
|
|
8327
8327
|
|
|
8328
|
-
const COMPONENT_NAME$
|
|
8328
|
+
const COMPONENT_NAME$13 = 'vc-scroller-wheel';
|
|
8329
8329
|
|
|
8330
8330
|
/**
|
|
8331
8331
|
* 为减少一层嵌套,为去除滚动bar的抖动,使用wheel模拟
|
|
@@ -8347,7 +8347,7 @@ const COMPONENT_NAME$14 = 'vc-scroller-wheel';
|
|
|
8347
8347
|
* 设置scrollTop不会reflow和repaint,不需要考虑transfrom来改变content(transform也只在draw完成)
|
|
8348
8348
|
*/
|
|
8349
8349
|
const ScrollerWheel = /* @__PURE__ */ defineComponent({
|
|
8350
|
-
name: COMPONENT_NAME$
|
|
8350
|
+
name: COMPONENT_NAME$13,
|
|
8351
8351
|
props: Object.assign(props$Q, {
|
|
8352
8352
|
stopPropagation: {
|
|
8353
8353
|
type: Boolean,
|
|
@@ -8526,9 +8526,9 @@ const props$P = {
|
|
|
8526
8526
|
|
|
8527
8527
|
/** @jsxImportSource vue */
|
|
8528
8528
|
|
|
8529
|
-
const COMPONENT_NAME$
|
|
8529
|
+
const COMPONENT_NAME$12 = 'vc-drawer';
|
|
8530
8530
|
const DrawerView = /* @__PURE__ */ defineComponent({
|
|
8531
|
-
name: COMPONENT_NAME$
|
|
8531
|
+
name: COMPONENT_NAME$12,
|
|
8532
8532
|
props: props$P,
|
|
8533
8533
|
emits: ['close', 'update:modelValue', 'visible-change'],
|
|
8534
8534
|
setup(props, {
|
|
@@ -8701,9 +8701,9 @@ const props$O = {
|
|
|
8701
8701
|
|
|
8702
8702
|
/** @jsxImportSource vue */
|
|
8703
8703
|
|
|
8704
|
-
const COMPONENT_NAME$
|
|
8704
|
+
const COMPONENT_NAME$11 = 'vc-dropdown';
|
|
8705
8705
|
const Dropdown = /* @__PURE__ */ defineComponent({
|
|
8706
|
-
name: COMPONENT_NAME$
|
|
8706
|
+
name: COMPONENT_NAME$11,
|
|
8707
8707
|
props: props$O,
|
|
8708
8708
|
setup(props, {
|
|
8709
8709
|
slots
|
|
@@ -8727,9 +8727,9 @@ const props$N = {
|
|
|
8727
8727
|
|
|
8728
8728
|
/** @jsxImportSource vue */
|
|
8729
8729
|
|
|
8730
|
-
const COMPONENT_NAME$
|
|
8730
|
+
const COMPONENT_NAME$10 = 'vc-editor';
|
|
8731
8731
|
const Editor = /* @__PURE__ */ defineComponent({
|
|
8732
|
-
name: COMPONENT_NAME$
|
|
8732
|
+
name: COMPONENT_NAME$10,
|
|
8733
8733
|
props: props$N,
|
|
8734
8734
|
setup(props, {
|
|
8735
8735
|
slots
|
|
@@ -8873,9 +8873,9 @@ const useForm = (expose, options = {}) => {
|
|
|
8873
8873
|
});
|
|
8874
8874
|
};
|
|
8875
8875
|
|
|
8876
|
-
const COMPONENT_NAME
|
|
8876
|
+
const COMPONENT_NAME$$ = "vc-form";
|
|
8877
8877
|
const Form = defineComponent({
|
|
8878
|
-
name: COMPONENT_NAME
|
|
8878
|
+
name: COMPONENT_NAME$$,
|
|
8879
8879
|
props: props$M,
|
|
8880
8880
|
setup(props, { slots, expose }) {
|
|
8881
8881
|
useForm(expose);
|
|
@@ -9195,9 +9195,9 @@ const useFormItem = (expose) => {
|
|
|
9195
9195
|
|
|
9196
9196
|
/** @jsxImportSource vue */
|
|
9197
9197
|
|
|
9198
|
-
const COMPONENT_NAME
|
|
9198
|
+
const COMPONENT_NAME$_ = 'vc-form-item';
|
|
9199
9199
|
const FormItem = /* @__PURE__ */ defineComponent({
|
|
9200
|
-
name: COMPONENT_NAME
|
|
9200
|
+
name: COMPONENT_NAME$_,
|
|
9201
9201
|
props: props$L,
|
|
9202
9202
|
setup(props, {
|
|
9203
9203
|
slots,
|
|
@@ -9262,9 +9262,9 @@ const props$K = {
|
|
|
9262
9262
|
}
|
|
9263
9263
|
};
|
|
9264
9264
|
|
|
9265
|
-
const COMPONENT_NAME$
|
|
9265
|
+
const COMPONENT_NAME$Z = "vcm-form";
|
|
9266
9266
|
const MForm = defineComponent({
|
|
9267
|
-
name: COMPONENT_NAME$
|
|
9267
|
+
name: COMPONENT_NAME$Z,
|
|
9268
9268
|
props: props$K,
|
|
9269
9269
|
setup(props, { slots, expose }) {
|
|
9270
9270
|
useForm(expose, {
|
|
@@ -9295,9 +9295,9 @@ const props$J = {
|
|
|
9295
9295
|
|
|
9296
9296
|
/** @jsxImportSource vue */
|
|
9297
9297
|
|
|
9298
|
-
const COMPONENT_NAME$
|
|
9298
|
+
const COMPONENT_NAME$Y = 'vcm-form-item';
|
|
9299
9299
|
const MFormItem = /* @__PURE__ */ defineComponent({
|
|
9300
|
-
name: COMPONENT_NAME$
|
|
9300
|
+
name: COMPONENT_NAME$Y,
|
|
9301
9301
|
props: props$J,
|
|
9302
9302
|
setup(props, {
|
|
9303
9303
|
slots,
|
|
@@ -9351,9 +9351,9 @@ const MFormItem = /* @__PURE__ */ defineComponent({
|
|
|
9351
9351
|
}
|
|
9352
9352
|
});
|
|
9353
9353
|
|
|
9354
|
-
const COMPONENT_NAME$
|
|
9354
|
+
const COMPONENT_NAME$X = "vc-fragment";
|
|
9355
9355
|
const Fragment = defineComponent({
|
|
9356
|
-
name: COMPONENT_NAME$
|
|
9356
|
+
name: COMPONENT_NAME$X,
|
|
9357
9357
|
setup(_, { slots }) {
|
|
9358
9358
|
return () => h(Fragment$1, slots.default?.());
|
|
9359
9359
|
}
|
|
@@ -9370,9 +9370,9 @@ const props$I = {
|
|
|
9370
9370
|
|
|
9371
9371
|
/** @jsxImportSource vue */
|
|
9372
9372
|
|
|
9373
|
-
const COMPONENT_NAME$
|
|
9373
|
+
const COMPONENT_NAME$W = 'vc-html-to-image';
|
|
9374
9374
|
const HTMLToImage = /* @__PURE__ */ defineComponent({
|
|
9375
|
-
name: COMPONENT_NAME$
|
|
9375
|
+
name: COMPONENT_NAME$W,
|
|
9376
9376
|
props: props$I,
|
|
9377
9377
|
setup(props, {
|
|
9378
9378
|
slots
|
|
@@ -9448,7 +9448,7 @@ const IMGStore$1 = new IMGStore();
|
|
|
9448
9448
|
|
|
9449
9449
|
/** @jsxImportSource vue */
|
|
9450
9450
|
|
|
9451
|
-
const COMPONENT_NAME$
|
|
9451
|
+
const COMPONENT_NAME$V = 'vc-image';
|
|
9452
9452
|
let isSupportObjectFit = false;
|
|
9453
9453
|
window.addEventListener('DOMContentLoaded', () => {
|
|
9454
9454
|
isSupportObjectFit = !IS_SERVER$1 && document.documentElement.style.objectFit !== undefined;
|
|
@@ -9461,7 +9461,7 @@ const ObjectFit = {
|
|
|
9461
9461
|
SCALE_DOWN: 'scale-down'
|
|
9462
9462
|
};
|
|
9463
9463
|
const Image = /* @__PURE__ */ defineComponent({
|
|
9464
|
-
name: COMPONENT_NAME$
|
|
9464
|
+
name: COMPONENT_NAME$V,
|
|
9465
9465
|
inheritAttrs: false,
|
|
9466
9466
|
props: props$H,
|
|
9467
9467
|
setup(props, {
|
|
@@ -9666,9 +9666,9 @@ const props$G = {
|
|
|
9666
9666
|
|
|
9667
9667
|
/** @jsxImportSource vue */
|
|
9668
9668
|
|
|
9669
|
-
const COMPONENT_NAME$
|
|
9669
|
+
const COMPONENT_NAME$U = 'vc-image-crop';
|
|
9670
9670
|
const ImageCrop = /* @__PURE__ */ defineComponent({
|
|
9671
|
-
name: COMPONENT_NAME$
|
|
9671
|
+
name: COMPONENT_NAME$U,
|
|
9672
9672
|
props: props$G,
|
|
9673
9673
|
setup(props, {
|
|
9674
9674
|
slots
|
|
@@ -9692,9 +9692,9 @@ const props$F = {
|
|
|
9692
9692
|
|
|
9693
9693
|
/** @jsxImportSource vue */
|
|
9694
9694
|
|
|
9695
|
-
const COMPONENT_NAME$
|
|
9695
|
+
const COMPONENT_NAME$T = 'vc-image-preview';
|
|
9696
9696
|
const ImagePreview = /* @__PURE__ */ defineComponent({
|
|
9697
|
-
name: COMPONENT_NAME$
|
|
9697
|
+
name: COMPONENT_NAME$T,
|
|
9698
9698
|
props: props$F,
|
|
9699
9699
|
setup(props, {
|
|
9700
9700
|
slots
|
|
@@ -9718,9 +9718,9 @@ const props$E = {
|
|
|
9718
9718
|
|
|
9719
9719
|
/** @jsxImportSource vue */
|
|
9720
9720
|
|
|
9721
|
-
const COMPONENT_NAME$
|
|
9721
|
+
const COMPONENT_NAME$S = 'vc-image-processing';
|
|
9722
9722
|
const ImageProcessing = /* @__PURE__ */ defineComponent({
|
|
9723
|
-
name: COMPONENT_NAME$
|
|
9723
|
+
name: COMPONENT_NAME$S,
|
|
9724
9724
|
props: props$E,
|
|
9725
9725
|
setup(props, {
|
|
9726
9726
|
slots
|
|
@@ -9737,9 +9737,9 @@ const MImageProcessing = ImageProcessing;
|
|
|
9737
9737
|
|
|
9738
9738
|
/** @jsxImportSource vue */
|
|
9739
9739
|
|
|
9740
|
-
const COMPONENT_NAME$
|
|
9740
|
+
const COMPONENT_NAME$R = 'vcm-input';
|
|
9741
9741
|
const MInput = /* @__PURE__ */ defineComponent({
|
|
9742
|
-
name: COMPONENT_NAME$
|
|
9742
|
+
name: COMPONENT_NAME$R,
|
|
9743
9743
|
inheritAttrs: false,
|
|
9744
9744
|
props: {
|
|
9745
9745
|
...props$$,
|
|
@@ -9828,9 +9828,9 @@ const MInput = /* @__PURE__ */ defineComponent({
|
|
|
9828
9828
|
|
|
9829
9829
|
/** @jsxImportSource vue */
|
|
9830
9830
|
|
|
9831
|
-
const COMPONENT_NAME$
|
|
9831
|
+
const COMPONENT_NAME$Q = 'vcm-input-number';
|
|
9832
9832
|
const MInputNumber = /* @__PURE__ */ defineComponent({
|
|
9833
|
-
name: COMPONENT_NAME$
|
|
9833
|
+
name: COMPONENT_NAME$Q,
|
|
9834
9834
|
props: props$X,
|
|
9835
9835
|
inheritAttrs: false,
|
|
9836
9836
|
setup(props, {
|
|
@@ -9879,9 +9879,9 @@ const MInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
9879
9879
|
|
|
9880
9880
|
/** @jsxImportSource vue */
|
|
9881
9881
|
|
|
9882
|
-
const COMPONENT_NAME$
|
|
9882
|
+
const COMPONENT_NAME$P = 'vcm-input-search';
|
|
9883
9883
|
const MInputSearch = /* @__PURE__ */ defineComponent({
|
|
9884
|
-
name: COMPONENT_NAME$
|
|
9884
|
+
name: COMPONENT_NAME$P,
|
|
9885
9885
|
props: {
|
|
9886
9886
|
...props$W,
|
|
9887
9887
|
cancelText: {
|
|
@@ -9958,9 +9958,9 @@ const props$D = {
|
|
|
9958
9958
|
}
|
|
9959
9959
|
};
|
|
9960
9960
|
|
|
9961
|
-
const COMPONENT_NAME$
|
|
9961
|
+
const COMPONENT_NAME$O = "vcm-list";
|
|
9962
9962
|
const MList = defineComponent({
|
|
9963
|
-
name: COMPONENT_NAME$
|
|
9963
|
+
name: COMPONENT_NAME$O,
|
|
9964
9964
|
props: props$D,
|
|
9965
9965
|
setup(props, { slots }) {
|
|
9966
9966
|
provide("vc-list", { props });
|
|
@@ -10015,10 +10015,10 @@ const props$C = {
|
|
|
10015
10015
|
|
|
10016
10016
|
/** @jsxImportSource vue */
|
|
10017
10017
|
|
|
10018
|
-
const COMPONENT_NAME$
|
|
10018
|
+
const COMPONENT_NAME$N = 'vcm-list-item';
|
|
10019
10019
|
const HTTP_REGEX = /[a-zA-z]+:\/\/[^\s]*/;
|
|
10020
10020
|
const MListItem = /* @__PURE__ */ defineComponent({
|
|
10021
|
-
name: COMPONENT_NAME$
|
|
10021
|
+
name: COMPONENT_NAME$N,
|
|
10022
10022
|
props: props$C,
|
|
10023
10023
|
emits: ['click'],
|
|
10024
10024
|
setup(props, {
|
|
@@ -10112,11 +10112,11 @@ const props$B = {
|
|
|
10112
10112
|
|
|
10113
10113
|
/** @jsxImportSource vue */
|
|
10114
10114
|
|
|
10115
|
-
const COMPONENT_NAME$
|
|
10115
|
+
const COMPONENT_NAME$M = 'vc-marquee';
|
|
10116
10116
|
const ANIMATION = prefixStyle('animation').camel;
|
|
10117
10117
|
const TRANSFORM_KEBAB = prefixStyle('transform').kebab;
|
|
10118
10118
|
const Marquee = /* @__PURE__ */ defineComponent({
|
|
10119
|
-
name: COMPONENT_NAME$
|
|
10119
|
+
name: COMPONENT_NAME$M,
|
|
10120
10120
|
props: props$B,
|
|
10121
10121
|
setup(props, {
|
|
10122
10122
|
slots
|
|
@@ -10177,12 +10177,16 @@ const props$A = {
|
|
|
10177
10177
|
tag: {
|
|
10178
10178
|
type: String,
|
|
10179
10179
|
default: "div"
|
|
10180
|
+
},
|
|
10181
|
+
fill: {
|
|
10182
|
+
type: Boolean,
|
|
10183
|
+
default: true
|
|
10180
10184
|
}
|
|
10181
10185
|
};
|
|
10182
10186
|
|
|
10183
|
-
const COMPONENT_NAME$
|
|
10187
|
+
const COMPONENT_NAME$L = "vc-resizer";
|
|
10184
10188
|
const Resizer = defineComponent({
|
|
10185
|
-
name: COMPONENT_NAME$
|
|
10189
|
+
name: COMPONENT_NAME$L,
|
|
10186
10190
|
props: props$A,
|
|
10187
10191
|
emit: ["resize", "change"],
|
|
10188
10192
|
setup(props, { emit, slots, expose }) {
|
|
@@ -10231,13 +10235,13 @@ const Resizer = defineComponent({
|
|
|
10231
10235
|
Resize.off(current.value, handleResize);
|
|
10232
10236
|
timer && clearTimeout(timer);
|
|
10233
10237
|
});
|
|
10234
|
-
expose({ refresh });
|
|
10238
|
+
expose({ refresh, offsetHeight: height, offsetWidth: width });
|
|
10235
10239
|
return () => {
|
|
10236
10240
|
return h(
|
|
10237
10241
|
props.tag,
|
|
10238
10242
|
{
|
|
10239
10243
|
ref: current,
|
|
10240
|
-
class: "vc-resizer"
|
|
10244
|
+
class: ["vc-resizer", { "is-fill": props.fill }]
|
|
10241
10245
|
},
|
|
10242
10246
|
slots.default?.(currentExposed.value)
|
|
10243
10247
|
);
|
|
@@ -10263,7 +10267,7 @@ const props$z = {
|
|
|
10263
10267
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
10264
10268
|
default: "small"
|
|
10265
10269
|
},
|
|
10266
|
-
|
|
10270
|
+
contentClass: [Object, String],
|
|
10267
10271
|
width: {
|
|
10268
10272
|
type: Number
|
|
10269
10273
|
},
|
|
@@ -10312,6 +10316,10 @@ const props$z = {
|
|
|
10312
10316
|
type: Boolean,
|
|
10313
10317
|
default: true
|
|
10314
10318
|
},
|
|
10319
|
+
border: {
|
|
10320
|
+
type: Boolean,
|
|
10321
|
+
default: false
|
|
10322
|
+
},
|
|
10315
10323
|
/**
|
|
10316
10324
|
* 兼容portal设计, 实现Promise方式
|
|
10317
10325
|
*/
|
|
@@ -10325,10 +10333,10 @@ const props$z = {
|
|
|
10325
10333
|
|
|
10326
10334
|
/** @jsxImportSource vue */
|
|
10327
10335
|
|
|
10328
|
-
const COMPONENT_NAME$
|
|
10336
|
+
const COMPONENT_NAME$K = 'vc-modal';
|
|
10329
10337
|
let zIndexNumber = 1002;
|
|
10330
10338
|
const ModalView = /* @__PURE__ */ defineComponent({
|
|
10331
|
-
name: COMPONENT_NAME$
|
|
10339
|
+
name: COMPONENT_NAME$K,
|
|
10332
10340
|
emits: ['update:modelValue', 'close', 'portal-fulfilled', 'visible-change', 'ok', 'cancel'],
|
|
10333
10341
|
props: props$z,
|
|
10334
10342
|
setup(props, {
|
|
@@ -10609,7 +10617,8 @@ const ModalView = /* @__PURE__ */ defineComponent({
|
|
|
10609
10617
|
"class": [{
|
|
10610
10618
|
'is-drag': props.draggable,
|
|
10611
10619
|
'is-large': props.size === 'large' || props.size === 'medium',
|
|
10612
|
-
'
|
|
10620
|
+
'has-footer': props.footer && (props.cancelText || props.okText),
|
|
10621
|
+
'has-border': props.border
|
|
10613
10622
|
}, 'vc-modal__container'],
|
|
10614
10623
|
"style": [basicStyle.value, draggableStyle.value]
|
|
10615
10624
|
}, [createVNode("div", {
|
|
@@ -10641,7 +10650,7 @@ const ModalView = /* @__PURE__ */ defineComponent({
|
|
|
10641
10650
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
10642
10651
|
"contentClass": [{
|
|
10643
10652
|
'is-confirm': props.mode
|
|
10644
|
-
}, props.
|
|
10653
|
+
}, props.contentClass, 'vc-modal__content']
|
|
10645
10654
|
}, {
|
|
10646
10655
|
default: () => [typeof props.content === 'string' ? createVNode("div", {
|
|
10647
10656
|
"innerHTML": props.content
|
|
@@ -10754,9 +10763,9 @@ const props$y = {
|
|
|
10754
10763
|
|
|
10755
10764
|
/** @jsxImportSource vue */
|
|
10756
10765
|
|
|
10757
|
-
const COMPONENT_NAME$
|
|
10766
|
+
const COMPONENT_NAME$J = 'vc-modal';
|
|
10758
10767
|
const MModalView = /* @__PURE__ */ defineComponent({
|
|
10759
|
-
name: COMPONENT_NAME$
|
|
10768
|
+
name: COMPONENT_NAME$J,
|
|
10760
10769
|
emits: ['update:modelValue', 'portal-fulfilled', 'close', 'ok', 'cancel'],
|
|
10761
10770
|
props: props$y,
|
|
10762
10771
|
setup(props, {
|
|
@@ -10968,9 +10977,9 @@ const props$x = {
|
|
|
10968
10977
|
|
|
10969
10978
|
/** @jsxImportSource vue */
|
|
10970
10979
|
|
|
10971
|
-
const COMPONENT_NAME$
|
|
10980
|
+
const COMPONENT_NAME$I = 'vc-notice';
|
|
10972
10981
|
const NoticeView = /* @__PURE__ */ defineComponent({
|
|
10973
|
-
name: COMPONENT_NAME$
|
|
10982
|
+
name: COMPONENT_NAME$I,
|
|
10974
10983
|
props: props$x,
|
|
10975
10984
|
emits: ['portal-fulfilled', 'close', 'before-close'],
|
|
10976
10985
|
setup(props, {
|
|
@@ -11143,9 +11152,9 @@ const props$w = {
|
|
|
11143
11152
|
|
|
11144
11153
|
/** @jsxImportSource vue */
|
|
11145
11154
|
|
|
11146
|
-
const COMPONENT_NAME$
|
|
11155
|
+
const COMPONENT_NAME$H = 'vc-option';
|
|
11147
11156
|
const Option$1 = /* @__PURE__ */ defineComponent({
|
|
11148
|
-
name: COMPONENT_NAME$
|
|
11157
|
+
name: COMPONENT_NAME$H,
|
|
11149
11158
|
props: props$w,
|
|
11150
11159
|
setup(props, {
|
|
11151
11160
|
slots
|
|
@@ -11258,9 +11267,9 @@ const props$u = {
|
|
|
11258
11267
|
|
|
11259
11268
|
/** @jsxImportSource vue */
|
|
11260
11269
|
|
|
11261
|
-
const COMPONENT_NAME$
|
|
11270
|
+
const COMPONENT_NAME$G = 'vc-tag';
|
|
11262
11271
|
const Tag = /* @__PURE__ */ defineComponent({
|
|
11263
|
-
name: COMPONENT_NAME$
|
|
11272
|
+
name: COMPONENT_NAME$G,
|
|
11264
11273
|
props: props$u,
|
|
11265
11274
|
emits: ['close', 'change'],
|
|
11266
11275
|
setup(props, {
|
|
@@ -11329,9 +11338,9 @@ const props$t = {
|
|
|
11329
11338
|
|
|
11330
11339
|
/** @jsxImportSource vue */
|
|
11331
11340
|
|
|
11332
|
-
const COMPONENT_NAME$
|
|
11341
|
+
const COMPONENT_NAME$F = 'vc-select-option';
|
|
11333
11342
|
const Option = /* @__PURE__ */ defineComponent({
|
|
11334
|
-
name: COMPONENT_NAME$
|
|
11343
|
+
name: COMPONENT_NAME$F,
|
|
11335
11344
|
props: props$t,
|
|
11336
11345
|
setup(props, {
|
|
11337
11346
|
slots
|
|
@@ -11404,9 +11413,9 @@ const props$s = {
|
|
|
11404
11413
|
|
|
11405
11414
|
/** @jsxImportSource vue */
|
|
11406
11415
|
|
|
11407
|
-
const COMPONENT_NAME$
|
|
11416
|
+
const COMPONENT_NAME$E = 'vc-select-option-group';
|
|
11408
11417
|
const OptionGroup = /* @__PURE__ */ defineComponent({
|
|
11409
|
-
name: COMPONENT_NAME$
|
|
11418
|
+
name: COMPONENT_NAME$E,
|
|
11410
11419
|
props: props$s,
|
|
11411
11420
|
setup(props, {
|
|
11412
11421
|
slots
|
|
@@ -11504,9 +11513,9 @@ const props$r = {
|
|
|
11504
11513
|
function _isSlot$1(s) {
|
|
11505
11514
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
11506
11515
|
}
|
|
11507
|
-
const COMPONENT_NAME$
|
|
11516
|
+
const COMPONENT_NAME$D = 'vc-select';
|
|
11508
11517
|
const Select = /* @__PURE__ */ defineComponent({
|
|
11509
|
-
name: COMPONENT_NAME$
|
|
11518
|
+
name: COMPONENT_NAME$D,
|
|
11510
11519
|
props: props$r,
|
|
11511
11520
|
emits: ['ready', 'close', 'visible-change', 'clear', 'change', 'update:modelValue'],
|
|
11512
11521
|
setup(props, {
|
|
@@ -11750,9 +11759,9 @@ const Select = /* @__PURE__ */ defineComponent({
|
|
|
11750
11759
|
|
|
11751
11760
|
/** @jsxImportSource vue */
|
|
11752
11761
|
|
|
11753
|
-
const COMPONENT_NAME$
|
|
11762
|
+
const COMPONENT_NAME$C = 'vc-pagination';
|
|
11754
11763
|
const Pagination = /* @__PURE__ */ defineComponent({
|
|
11755
|
-
name: COMPONENT_NAME$
|
|
11764
|
+
name: COMPONENT_NAME$C,
|
|
11756
11765
|
props: props$v,
|
|
11757
11766
|
emits: ['update:current', 'change', 'page-size-change'],
|
|
11758
11767
|
setup(props, {
|
|
@@ -11950,9 +11959,9 @@ const props$q = {
|
|
|
11950
11959
|
|
|
11951
11960
|
/** @jsxImportSource vue */
|
|
11952
11961
|
|
|
11953
|
-
const COMPONENT_NAME$
|
|
11962
|
+
const COMPONENT_NAME$B = 'vc-picker';
|
|
11954
11963
|
const Picker = /* @__PURE__ */ defineComponent({
|
|
11955
|
-
name: COMPONENT_NAME$
|
|
11964
|
+
name: COMPONENT_NAME$B,
|
|
11956
11965
|
props: props$q,
|
|
11957
11966
|
setup(props, {
|
|
11958
11967
|
slots
|
|
@@ -11976,9 +11985,9 @@ const props$p = {
|
|
|
11976
11985
|
|
|
11977
11986
|
/** @jsxImportSource vue */
|
|
11978
11987
|
|
|
11979
|
-
const COMPONENT_NAME$
|
|
11988
|
+
const COMPONENT_NAME$A = 'vc-popconfirm';
|
|
11980
11989
|
const Popconfirm = /* @__PURE__ */ defineComponent({
|
|
11981
|
-
name: COMPONENT_NAME$
|
|
11990
|
+
name: COMPONENT_NAME$A,
|
|
11982
11991
|
props: props$p,
|
|
11983
11992
|
setup(props, {
|
|
11984
11993
|
slots
|
|
@@ -12004,9 +12013,9 @@ const props$o = {
|
|
|
12004
12013
|
|
|
12005
12014
|
/** @jsxImportSource vue */
|
|
12006
12015
|
|
|
12007
|
-
const COMPONENT_NAME$
|
|
12016
|
+
const COMPONENT_NAME$z = 'vc-popup';
|
|
12008
12017
|
const Popup = /* @__PURE__ */ defineComponent({
|
|
12009
|
-
name: COMPONENT_NAME$
|
|
12018
|
+
name: COMPONENT_NAME$z,
|
|
12010
12019
|
props: props$o,
|
|
12011
12020
|
setup(props, {
|
|
12012
12021
|
slots
|
|
@@ -12033,9 +12042,9 @@ const props$n = {
|
|
|
12033
12042
|
|
|
12034
12043
|
/** @jsxImportSource vue */
|
|
12035
12044
|
|
|
12036
|
-
const COMPONENT_NAME$
|
|
12045
|
+
const COMPONENT_NAME$y = 'vc-print';
|
|
12037
12046
|
const Print = /* @__PURE__ */ defineComponent({
|
|
12038
|
-
name: COMPONENT_NAME$
|
|
12047
|
+
name: COMPONENT_NAME$y,
|
|
12039
12048
|
props: props$n,
|
|
12040
12049
|
setup(props, {
|
|
12041
12050
|
expose,
|
|
@@ -12099,6 +12108,12 @@ const props$m = {
|
|
|
12099
12108
|
type: Boolean,
|
|
12100
12109
|
default: true
|
|
12101
12110
|
},
|
|
12111
|
+
textStyle: {
|
|
12112
|
+
type: [String, Object]
|
|
12113
|
+
},
|
|
12114
|
+
textClass: {
|
|
12115
|
+
type: [String, Object]
|
|
12116
|
+
},
|
|
12102
12117
|
animated: {
|
|
12103
12118
|
type: Boolean,
|
|
12104
12119
|
default: false
|
|
@@ -12131,9 +12146,9 @@ const props$m = {
|
|
|
12131
12146
|
|
|
12132
12147
|
/** @jsxImportSource vue */
|
|
12133
12148
|
|
|
12134
|
-
const COMPONENT_NAME$
|
|
12149
|
+
const COMPONENT_NAME$x = 'vc-progress-circle';
|
|
12135
12150
|
const Circle = /* @__PURE__ */ defineComponent({
|
|
12136
|
-
name: COMPONENT_NAME$
|
|
12151
|
+
name: COMPONENT_NAME$x,
|
|
12137
12152
|
props: props$m,
|
|
12138
12153
|
setup(props, {
|
|
12139
12154
|
slots
|
|
@@ -12182,17 +12197,20 @@ const Circle = /* @__PURE__ */ defineComponent({
|
|
|
12182
12197
|
"stroke-linecap": "round",
|
|
12183
12198
|
"fill-opacity": "0"
|
|
12184
12199
|
}, null)]), createVNode("div", {
|
|
12185
|
-
"class":
|
|
12186
|
-
}, [slots.default ? slots.default() : props.showText && createVNode("span",
|
|
12200
|
+
"class": ['vc-progress-circle__inner']
|
|
12201
|
+
}, [slots.default ? slots.default() : props.showText && createVNode("span", {
|
|
12202
|
+
"class": props.textClass,
|
|
12203
|
+
"style": props.textStyle
|
|
12204
|
+
}, [`${props.percent}%`])])])]);
|
|
12187
12205
|
};
|
|
12188
12206
|
}
|
|
12189
12207
|
});
|
|
12190
12208
|
|
|
12191
12209
|
/** @jsxImportSource vue */
|
|
12192
12210
|
|
|
12193
|
-
const COMPONENT_NAME$
|
|
12211
|
+
const COMPONENT_NAME$w = 'vc-progress-line';
|
|
12194
12212
|
const Line = /* @__PURE__ */ defineComponent({
|
|
12195
|
-
name: COMPONENT_NAME$
|
|
12213
|
+
name: COMPONENT_NAME$w,
|
|
12196
12214
|
props: props$m,
|
|
12197
12215
|
setup(props) {
|
|
12198
12216
|
const colorStyle = computed(() => {
|
|
@@ -12221,12 +12239,15 @@ const Line = /* @__PURE__ */ defineComponent({
|
|
|
12221
12239
|
"style": innerStyle.value,
|
|
12222
12240
|
"class": [classes.value, 'vc-progress-line__inner']
|
|
12223
12241
|
}, null)])]), props.showText && createVNode("div", {
|
|
12224
|
-
"class":
|
|
12242
|
+
"class": ['vc-progress-line__percent']
|
|
12225
12243
|
}, [['error', 'success'].includes(props.status) ? createVNode(Icon, {
|
|
12226
12244
|
"type": props.status,
|
|
12227
12245
|
"style": colorStyle.value,
|
|
12228
12246
|
"class": [`is-${props.status}`, 'vc-progress-line__icon']
|
|
12229
|
-
}, null) : createVNode("span",
|
|
12247
|
+
}, null) : createVNode("span", {
|
|
12248
|
+
"class": props.textClass,
|
|
12249
|
+
"style": props.textStyle
|
|
12250
|
+
}, [`${props.percent}%`])])]);
|
|
12230
12251
|
};
|
|
12231
12252
|
}
|
|
12232
12253
|
});
|
|
@@ -12236,9 +12257,9 @@ const Line = /* @__PURE__ */ defineComponent({
|
|
|
12236
12257
|
function _isSlot(s) {
|
|
12237
12258
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
12238
12259
|
}
|
|
12239
|
-
const COMPONENT_NAME$
|
|
12260
|
+
const COMPONENT_NAME$v = 'vc-progress';
|
|
12240
12261
|
const Progress = /* @__PURE__ */ defineComponent({
|
|
12241
|
-
name: COMPONENT_NAME$
|
|
12262
|
+
name: COMPONENT_NAME$v,
|
|
12242
12263
|
props: props$m,
|
|
12243
12264
|
setup(props, {
|
|
12244
12265
|
slots
|
|
@@ -12390,9 +12411,9 @@ const useRadio = () => {
|
|
|
12390
12411
|
|
|
12391
12412
|
/** @jsxImportSource vue */
|
|
12392
12413
|
|
|
12393
|
-
const COMPONENT_NAME$
|
|
12414
|
+
const COMPONENT_NAME$u = 'vc-radio';
|
|
12394
12415
|
const Radio = /* @__PURE__ */ defineComponent({
|
|
12395
|
-
name: COMPONENT_NAME$
|
|
12416
|
+
name: COMPONENT_NAME$u,
|
|
12396
12417
|
props: props$l,
|
|
12397
12418
|
emits: ['update:modelValue', 'change'],
|
|
12398
12419
|
setup(props, {
|
|
@@ -12503,9 +12524,9 @@ const useRadioGroup = () => {
|
|
|
12503
12524
|
|
|
12504
12525
|
/** @jsxImportSource vue */
|
|
12505
12526
|
|
|
12506
|
-
const COMPONENT_NAME$
|
|
12527
|
+
const COMPONENT_NAME$t = 'vc-radio-group';
|
|
12507
12528
|
const RadioGroup = /* @__PURE__ */ defineComponent({
|
|
12508
|
-
name: COMPONENT_NAME$
|
|
12529
|
+
name: COMPONENT_NAME$t,
|
|
12509
12530
|
props: props$k,
|
|
12510
12531
|
emits: ['update:modelValue', 'change'],
|
|
12511
12532
|
setup(props, {
|
|
@@ -12527,9 +12548,9 @@ const RadioGroup = /* @__PURE__ */ defineComponent({
|
|
|
12527
12548
|
|
|
12528
12549
|
/** @jsxImportSource vue */
|
|
12529
12550
|
|
|
12530
|
-
const COMPONENT_NAME$
|
|
12551
|
+
const COMPONENT_NAME$s = 'vcm-radio';
|
|
12531
12552
|
const MRadio = /* @__PURE__ */ defineComponent({
|
|
12532
|
-
name: COMPONENT_NAME$
|
|
12553
|
+
name: COMPONENT_NAME$s,
|
|
12533
12554
|
props: props$l,
|
|
12534
12555
|
emits: ['update:modelValue', 'change'],
|
|
12535
12556
|
setup(props, {
|
|
@@ -12570,9 +12591,9 @@ const MRadio = /* @__PURE__ */ defineComponent({
|
|
|
12570
12591
|
|
|
12571
12592
|
/** @jsxImportSource vue */
|
|
12572
12593
|
|
|
12573
|
-
const COMPONENT_NAME$
|
|
12594
|
+
const COMPONENT_NAME$r = 'vcm-radio-group';
|
|
12574
12595
|
const MRadioGroup = /* @__PURE__ */ defineComponent({
|
|
12575
|
-
name: COMPONENT_NAME$
|
|
12596
|
+
name: COMPONENT_NAME$r,
|
|
12576
12597
|
props: props$k,
|
|
12577
12598
|
emits: ['update:modelValue', 'change'],
|
|
12578
12599
|
setup(props, {
|
|
@@ -12601,9 +12622,9 @@ const props$j = {
|
|
|
12601
12622
|
|
|
12602
12623
|
/** @jsxImportSource vue */
|
|
12603
12624
|
|
|
12604
|
-
const COMPONENT_NAME$
|
|
12625
|
+
const COMPONENT_NAME$q = 'vc-rate';
|
|
12605
12626
|
const Rate = /* @__PURE__ */ defineComponent({
|
|
12606
|
-
name: COMPONENT_NAME$
|
|
12627
|
+
name: COMPONENT_NAME$q,
|
|
12607
12628
|
props: props$j,
|
|
12608
12629
|
setup(props, {
|
|
12609
12630
|
slots
|
|
@@ -12671,9 +12692,9 @@ const props$i = {
|
|
|
12671
12692
|
|
|
12672
12693
|
/** @jsxImportSource vue */
|
|
12673
12694
|
|
|
12674
|
-
const COMPONENT_NAME$
|
|
12695
|
+
const COMPONENT_NAME$p = 'vc-recycle-list-scroll-state';
|
|
12675
12696
|
const ScrollState = /* @__PURE__ */ defineComponent({
|
|
12676
|
-
name: COMPONENT_NAME$
|
|
12697
|
+
name: COMPONENT_NAME$p,
|
|
12677
12698
|
setup(_, {
|
|
12678
12699
|
slots
|
|
12679
12700
|
}) {
|
|
@@ -12803,12 +12824,12 @@ const useDirectionKeys = () => {
|
|
|
12803
12824
|
|
|
12804
12825
|
/** @jsxImportSource vue */
|
|
12805
12826
|
|
|
12806
|
-
const COMPONENT_NAME$
|
|
12827
|
+
const COMPONENT_NAME$o = 'vc-recycle-list-container';
|
|
12807
12828
|
|
|
12808
12829
|
// TODO: 抽离
|
|
12809
12830
|
const transformKey = $.prefixStyle('transform').camel;
|
|
12810
12831
|
const Container = /* @__PURE__ */ defineComponent({
|
|
12811
|
-
name: COMPONENT_NAME$
|
|
12832
|
+
name: COMPONENT_NAME$o,
|
|
12812
12833
|
props: props$h,
|
|
12813
12834
|
emits: ['refresh'],
|
|
12814
12835
|
setup(props, {
|
|
@@ -12906,51 +12927,6 @@ const Container = /* @__PURE__ */ defineComponent({
|
|
|
12906
12927
|
|
|
12907
12928
|
/** @jsxImportSource vue */
|
|
12908
12929
|
|
|
12909
|
-
const COMPONENT_NAME$o = 'vc-recycle-list-item';
|
|
12910
|
-
const Item = /* @__PURE__ */ defineComponent({
|
|
12911
|
-
name: COMPONENT_NAME$o,
|
|
12912
|
-
props: {
|
|
12913
|
-
vertical: {
|
|
12914
|
-
type: Boolean,
|
|
12915
|
-
default: true
|
|
12916
|
-
}
|
|
12917
|
-
},
|
|
12918
|
-
emits: ['resize', 'change'],
|
|
12919
|
-
setup(_, {
|
|
12920
|
-
emit,
|
|
12921
|
-
slots
|
|
12922
|
-
}) {
|
|
12923
|
-
const K = useDirectionKeys();
|
|
12924
|
-
const current = ref();
|
|
12925
|
-
const offsetSize = ref(0);
|
|
12926
|
-
let hasInitial = false;
|
|
12927
|
-
const handleResize = () => {
|
|
12928
|
-
const v = current.value.getBoundingClientRect()[K.size];
|
|
12929
|
-
const changed = offsetSize.value != v;
|
|
12930
|
-
if (changed) {
|
|
12931
|
-
offsetSize.value = v;
|
|
12932
|
-
hasInitial && emit('resize', v);
|
|
12933
|
-
emit('change', v);
|
|
12934
|
-
}
|
|
12935
|
-
hasInitial = true;
|
|
12936
|
-
};
|
|
12937
|
-
onMounted(() => {
|
|
12938
|
-
Resize.on(current.value, handleResize); // 首次会执行一次
|
|
12939
|
-
});
|
|
12940
|
-
onBeforeUnmount(() => {
|
|
12941
|
-
Resize.off(current.value, handleResize);
|
|
12942
|
-
});
|
|
12943
|
-
return () => {
|
|
12944
|
-
return createVNode("div", {
|
|
12945
|
-
"ref": current,
|
|
12946
|
-
"class": "vc-recycle-list-item"
|
|
12947
|
-
}, [slots?.default?.()]);
|
|
12948
|
-
};
|
|
12949
|
-
}
|
|
12950
|
-
});
|
|
12951
|
-
|
|
12952
|
-
/** @jsxImportSource vue */
|
|
12953
|
-
|
|
12954
12930
|
const COMPONENT_NAME$n = 'vc-recycle-list';
|
|
12955
12931
|
const RecycleList = /* @__PURE__ */ defineComponent({
|
|
12956
12932
|
name: COMPONENT_NAME$n,
|
|
@@ -13461,7 +13437,7 @@ const RecycleList = /* @__PURE__ */ defineComponent({
|
|
|
13461
13437
|
// eslint-disable-next-line @stylistic/max-len
|
|
13462
13438
|
slots.placeholder?.() || renderer.value.placeholder && createVNode(Customer, {
|
|
13463
13439
|
"render": renderer.value.placeholder
|
|
13464
|
-
}, null)]), !item.isPlaceholder && createVNode(
|
|
13440
|
+
}, null)]), !item.isPlaceholder && createVNode(Resizer, {
|
|
13465
13441
|
"ref": v => curloads.value[item.id] = v,
|
|
13466
13442
|
"class": {
|
|
13467
13443
|
'vc-recycle-list__transition': hasPlaceholder.value
|
|
@@ -13469,11 +13445,11 @@ const RecycleList = /* @__PURE__ */ defineComponent({
|
|
|
13469
13445
|
"style": {
|
|
13470
13446
|
opacity: item.loaded
|
|
13471
13447
|
},
|
|
13448
|
+
"fill": false,
|
|
13472
13449
|
"data-row": item.id,
|
|
13473
13450
|
"data-column": item.column,
|
|
13474
13451
|
"data-size": item.size,
|
|
13475
13452
|
"data-position": item.position,
|
|
13476
|
-
"vertical": props.vertical,
|
|
13477
13453
|
"onResize": handleResize
|
|
13478
13454
|
}, {
|
|
13479
13455
|
default: () => [slots.default?.({
|
|
@@ -13879,14 +13855,14 @@ const columnsToRowsEffect = (v) => {
|
|
|
13879
13855
|
}
|
|
13880
13856
|
}
|
|
13881
13857
|
if (column.children) {
|
|
13882
|
-
let
|
|
13858
|
+
let colspan = 0;
|
|
13883
13859
|
column.children.forEach((subColumn) => {
|
|
13884
13860
|
traverse(subColumn, column);
|
|
13885
|
-
|
|
13861
|
+
colspan += subColumn.colspan;
|
|
13886
13862
|
});
|
|
13887
|
-
column.
|
|
13863
|
+
column.colspan = colspan;
|
|
13888
13864
|
} else {
|
|
13889
|
-
column.
|
|
13865
|
+
column.colspan = 1;
|
|
13890
13866
|
}
|
|
13891
13867
|
};
|
|
13892
13868
|
v.forEach((column) => {
|
|
@@ -13900,9 +13876,9 @@ const columnsToRowsEffect = (v) => {
|
|
|
13900
13876
|
const allColumns = getAllColumns(v);
|
|
13901
13877
|
allColumns.forEach((column) => {
|
|
13902
13878
|
if (!column.children) {
|
|
13903
|
-
column.
|
|
13879
|
+
column.rowspan = maxLevel - column.level + 1;
|
|
13904
13880
|
} else {
|
|
13905
|
-
column.
|
|
13881
|
+
column.rowspan = 1;
|
|
13906
13882
|
}
|
|
13907
13883
|
rows[column.level - 1].push(column);
|
|
13908
13884
|
});
|
|
@@ -13971,6 +13947,7 @@ class BaseWatcher {
|
|
|
13971
13947
|
selection: [],
|
|
13972
13948
|
reserveSelection: false,
|
|
13973
13949
|
selectable: null,
|
|
13950
|
+
expandSelectable: null,
|
|
13974
13951
|
hoverRowIndex: null,
|
|
13975
13952
|
// Current
|
|
13976
13953
|
currentRow: null,
|
|
@@ -14497,6 +14474,7 @@ class Store extends BaseWatcher {
|
|
|
14497
14474
|
this.layout = new Layout(this);
|
|
14498
14475
|
const { props } = options.table;
|
|
14499
14476
|
merge(this.states, {
|
|
14477
|
+
expandSelectable: props.expandSelectable,
|
|
14500
14478
|
treeLazy: props.lazy || false,
|
|
14501
14479
|
treeLazyColumnIdentifier: props.treeMap.hasChildren || "hasChildren",
|
|
14502
14480
|
treeChildrenColumnName: props.treeMap.children || "children"
|
|
@@ -14819,8 +14797,7 @@ class Store extends BaseWatcher {
|
|
|
14819
14797
|
}
|
|
14820
14798
|
|
|
14821
14799
|
const useStates = (mapper, $store) => {
|
|
14822
|
-
const
|
|
14823
|
-
const store = $store || instance.proxy?.store;
|
|
14800
|
+
const store = $store || inject("vc-table")?.store;
|
|
14824
14801
|
const states = reactive({});
|
|
14825
14802
|
Object.keys(mapper).forEach((key) => {
|
|
14826
14803
|
const value = mapper[key];
|
|
@@ -14855,16 +14832,16 @@ const NormalList = /* @__PURE__ */ defineComponent({
|
|
|
14855
14832
|
emit,
|
|
14856
14833
|
slots
|
|
14857
14834
|
}) {
|
|
14858
|
-
const handleResize = (
|
|
14835
|
+
const handleResize = (e, index) => {
|
|
14859
14836
|
emit('row-resize', {
|
|
14860
14837
|
index,
|
|
14861
|
-
size
|
|
14838
|
+
size: e.height
|
|
14862
14839
|
});
|
|
14863
14840
|
};
|
|
14864
14841
|
return () => {
|
|
14865
14842
|
return props.data.map((row, index) => {
|
|
14866
|
-
return createVNode(
|
|
14867
|
-
"
|
|
14843
|
+
return createVNode(Resizer, {
|
|
14844
|
+
"fill": false,
|
|
14868
14845
|
"onChange": e => handleResize(e, index)
|
|
14869
14846
|
}, {
|
|
14870
14847
|
default: () => [slots.default?.({
|
|
@@ -14880,7 +14857,6 @@ const NormalList = /* @__PURE__ */ defineComponent({
|
|
|
14880
14857
|
const TableBody = /* @__PURE__ */ defineComponent({
|
|
14881
14858
|
name: 'vc-table-body',
|
|
14882
14859
|
props: {
|
|
14883
|
-
store: Object,
|
|
14884
14860
|
fixed: String,
|
|
14885
14861
|
heightStyle: [Object, Array, String]
|
|
14886
14862
|
},
|
|
@@ -14891,6 +14867,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
14891
14867
|
}) {
|
|
14892
14868
|
const instance = getCurrentInstance();
|
|
14893
14869
|
const table = inject('vc-table');
|
|
14870
|
+
const allowRender = ref(false);
|
|
14894
14871
|
const states = useStates({
|
|
14895
14872
|
data: 'data',
|
|
14896
14873
|
list: 'list',
|
|
@@ -14908,8 +14885,8 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
14908
14885
|
}) => type === 'default')
|
|
14909
14886
|
});
|
|
14910
14887
|
const wrapper = ref();
|
|
14911
|
-
watch(() =>
|
|
14912
|
-
if (!
|
|
14888
|
+
watch(() => table.store.states.hoverRowIndex, (v, oldV) => {
|
|
14889
|
+
if (!table.store.states.isComplex || IS_SERVER$1) return;
|
|
14913
14890
|
raf(() => {
|
|
14914
14891
|
const rows = instance.vnode.el.querySelectorAll('.vc-table__row');
|
|
14915
14892
|
const oldRow = rows[oldV];
|
|
@@ -14953,7 +14930,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
14953
14930
|
};
|
|
14954
14931
|
const getRowClass = (row, rowIndex) => {
|
|
14955
14932
|
const classes = ['vc-table__row'];
|
|
14956
|
-
if (table.props.highlight && row ===
|
|
14933
|
+
if (table.props.highlight && row === table.store.states.currentRow) {
|
|
14957
14934
|
classes.push('current-row');
|
|
14958
14935
|
}
|
|
14959
14936
|
if (table.props.stripe && rowIndex % 2 === 1) {
|
|
@@ -14968,7 +14945,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
14968
14945
|
rowIndex
|
|
14969
14946
|
}));
|
|
14970
14947
|
}
|
|
14971
|
-
if (
|
|
14948
|
+
if (table.store.states.expandRows.indexOf(row) > -1) {
|
|
14972
14949
|
classes.push('expanded');
|
|
14973
14950
|
}
|
|
14974
14951
|
return classes;
|
|
@@ -15051,10 +15028,10 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
15051
15028
|
table.emit('cell-mouse-leave', oldHoverState.row, oldHoverState.column, oldHoverState.cell, e);
|
|
15052
15029
|
};
|
|
15053
15030
|
const handleMouseEnter = debounce(index => {
|
|
15054
|
-
|
|
15031
|
+
table.store.setHoverRow(index);
|
|
15055
15032
|
}, 30);
|
|
15056
15033
|
const handleMouseLeave = debounce(() => {
|
|
15057
|
-
|
|
15034
|
+
table.store.setHoverRow(null);
|
|
15058
15035
|
}, 30);
|
|
15059
15036
|
const handleEvent = (e, row, name) => {
|
|
15060
15037
|
const cell = getCell(e);
|
|
@@ -15074,10 +15051,13 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
15074
15051
|
handleEvent(e, row, 'dblclick');
|
|
15075
15052
|
};
|
|
15076
15053
|
const handleClick = (e, row) => {
|
|
15077
|
-
|
|
15054
|
+
table.store.setCurrentRow(row);
|
|
15078
15055
|
handleEvent(e, row, 'click');
|
|
15079
15056
|
};
|
|
15080
15057
|
const renderRow = (rowData, rowIndex) => {
|
|
15058
|
+
const {
|
|
15059
|
+
rowHeight
|
|
15060
|
+
} = table.props;
|
|
15081
15061
|
const {
|
|
15082
15062
|
data: row
|
|
15083
15063
|
} = rowData;
|
|
@@ -15085,7 +15065,8 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
15085
15065
|
columns
|
|
15086
15066
|
} = states;
|
|
15087
15067
|
const key = getValueOfRow(row, rowIndex);
|
|
15088
|
-
const selected =
|
|
15068
|
+
const selected = table.store.isSelected(row);
|
|
15069
|
+
const height = rowHeight || rowData.height;
|
|
15089
15070
|
return createVNode("div", {
|
|
15090
15071
|
"key": key,
|
|
15091
15072
|
"class": [getRowClass(row, rowIndex), 'vc-table__tr'],
|
|
@@ -15102,7 +15083,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
15102
15083
|
} = column;
|
|
15103
15084
|
const sizeStyle = {
|
|
15104
15085
|
width: `${realWidth}px`,
|
|
15105
|
-
height: `${
|
|
15086
|
+
height: `${height ? `${height}px` : 'auto'}`
|
|
15106
15087
|
};
|
|
15107
15088
|
if (columnsHidden.value[columnIndex]) {
|
|
15108
15089
|
return createVNode("div", {
|
|
@@ -15121,7 +15102,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
15121
15102
|
column,
|
|
15122
15103
|
rowIndex,
|
|
15123
15104
|
columnIndex,
|
|
15124
|
-
store:
|
|
15105
|
+
store: table.store,
|
|
15125
15106
|
selected
|
|
15126
15107
|
})]);
|
|
15127
15108
|
})]);
|
|
@@ -15138,6 +15119,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
15138
15119
|
})]);
|
|
15139
15120
|
};
|
|
15140
15121
|
const handleMergeRowResize = v => {
|
|
15122
|
+
if (table.props.rowHeight) return;
|
|
15141
15123
|
states.list[v.index].rows.forEach(row => {
|
|
15142
15124
|
row.heightMap[props.fixed || 'main'] = v.size;
|
|
15143
15125
|
const heights = [row.heightMap.main];
|
|
@@ -15157,7 +15139,17 @@ const TableBody = /* @__PURE__ */ defineComponent({
|
|
|
15157
15139
|
getRootElement: () => instance.vnode.el
|
|
15158
15140
|
});
|
|
15159
15141
|
const layout = table.layout;
|
|
15142
|
+
let timer;
|
|
15143
|
+
onBeforeMount(() => {
|
|
15144
|
+
if (table.props.delay) {
|
|
15145
|
+
timer = setTimeout(() => allowRender.value = true, table.props.delay);
|
|
15146
|
+
} else {
|
|
15147
|
+
allowRender.value = true;
|
|
15148
|
+
}
|
|
15149
|
+
});
|
|
15150
|
+
onBeforeUnmount(() => (timer && clearTimeout(timer), allowRender.value = false));
|
|
15160
15151
|
return () => {
|
|
15152
|
+
if (!allowRender.value) return;
|
|
15161
15153
|
return createVNode("div", {
|
|
15162
15154
|
"class": "vc-table__body"
|
|
15163
15155
|
}, [table.props.height ? createVNode(RecycleList, {
|
|
@@ -15206,10 +15198,6 @@ const TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
15206
15198
|
name: 'vc-table-header',
|
|
15207
15199
|
props: {
|
|
15208
15200
|
fixed: [Boolean, String],
|
|
15209
|
-
store: {
|
|
15210
|
-
type: Object,
|
|
15211
|
-
required: true
|
|
15212
|
-
},
|
|
15213
15201
|
border: Boolean,
|
|
15214
15202
|
// 排序全部交给外部处理,内部不处理数据,只做交互
|
|
15215
15203
|
defaultSort: {
|
|
@@ -15358,7 +15346,7 @@ const TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
15358
15346
|
column.width = columnWidth;
|
|
15359
15347
|
column.realWidth = column.width;
|
|
15360
15348
|
table.$emit('header-dragend', column.width, startLeft - startColumnLeft, column, event);
|
|
15361
|
-
|
|
15349
|
+
table.store.scheduleLayout();
|
|
15362
15350
|
document.body.style.cursor = '';
|
|
15363
15351
|
dragging.value = false;
|
|
15364
15352
|
draggingColumn.value = null;
|
|
@@ -15463,7 +15451,7 @@ const TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
15463
15451
|
}, [column.renderHeader ? column.renderHeader({
|
|
15464
15452
|
column,
|
|
15465
15453
|
columnIndex,
|
|
15466
|
-
store:
|
|
15454
|
+
store: table.store
|
|
15467
15455
|
}) : column.label, column.tooltip ? createVNode(Icon, {
|
|
15468
15456
|
"type": "o-info",
|
|
15469
15457
|
"onMouseenter": e => handleCellMouseEnter(e, column)
|
|
@@ -15486,10 +15474,6 @@ const TableFooter = /* @__PURE__ */ defineComponent({
|
|
|
15486
15474
|
name: 'vc-table-footer',
|
|
15487
15475
|
props: {
|
|
15488
15476
|
fixed: [String, Boolean],
|
|
15489
|
-
store: {
|
|
15490
|
-
type: Object,
|
|
15491
|
-
required: true
|
|
15492
|
-
},
|
|
15493
15477
|
getSummary: Function,
|
|
15494
15478
|
sumText: String,
|
|
15495
15479
|
border: Boolean
|
|
@@ -15511,7 +15495,7 @@ const TableFooter = /* @__PURE__ */ defineComponent({
|
|
|
15511
15495
|
} else if (props.fixed === 'right') {
|
|
15512
15496
|
let before = 0;
|
|
15513
15497
|
for (let i = 0; i < index; i++) {
|
|
15514
|
-
before += states.columns[i].
|
|
15498
|
+
before += states.columns[i].colspan;
|
|
15515
15499
|
}
|
|
15516
15500
|
return before < states.columnsCount - states.rightFixedLeafCount;
|
|
15517
15501
|
} else if (!props.fixed && column.fixed) {
|
|
@@ -15605,6 +15589,7 @@ const props$c = {
|
|
|
15605
15589
|
width: [String, Number],
|
|
15606
15590
|
height: [String, Number],
|
|
15607
15591
|
maxHeight: [String, Number],
|
|
15592
|
+
rowHeight: [String, Number],
|
|
15608
15593
|
// 列的宽度是否自撑开
|
|
15609
15594
|
fit: {
|
|
15610
15595
|
type: Boolean,
|
|
@@ -15685,7 +15670,9 @@ const props$c = {
|
|
|
15685
15670
|
defaultSort: {
|
|
15686
15671
|
type: Object,
|
|
15687
15672
|
default: () => ({})
|
|
15688
|
-
}
|
|
15673
|
+
},
|
|
15674
|
+
// 用于延迟渲染,用于计算高度
|
|
15675
|
+
delay: Number
|
|
15689
15676
|
};
|
|
15690
15677
|
|
|
15691
15678
|
/** @jsxImportSource vue */
|
|
@@ -15814,7 +15801,8 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
15814
15801
|
};
|
|
15815
15802
|
}
|
|
15816
15803
|
return {
|
|
15817
|
-
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : ''
|
|
15804
|
+
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : '',
|
|
15805
|
+
bottom: 0
|
|
15818
15806
|
};
|
|
15819
15807
|
}
|
|
15820
15808
|
});
|
|
@@ -16097,7 +16085,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16097
16085
|
"class": "vc-table__header-wrapper"
|
|
16098
16086
|
}, [createVNode(TableHeader, {
|
|
16099
16087
|
"ref": tableHeader,
|
|
16100
|
-
"store": store,
|
|
16101
16088
|
"border": props.border,
|
|
16102
16089
|
"default-sort": props.defaultSort,
|
|
16103
16090
|
"style": bodyWidthStyle.value
|
|
@@ -16113,14 +16100,15 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16113
16100
|
}, {
|
|
16114
16101
|
default: () => [createVNode(TableBody, {
|
|
16115
16102
|
"ref": body,
|
|
16116
|
-
"store": store,
|
|
16117
16103
|
"style": [bodyWidthStyle.value],
|
|
16118
16104
|
"height-style": [bodyHeightStyle.value],
|
|
16119
16105
|
"onScroll": handleScollY
|
|
16120
16106
|
}, null), props.data.length === 0 && createVNode("div", {
|
|
16121
16107
|
"ref": emptyBlock,
|
|
16122
16108
|
"style": bodyWidthStyle.value,
|
|
16123
|
-
"class":
|
|
16109
|
+
"class": [{
|
|
16110
|
+
'is-absolute': !!props.height
|
|
16111
|
+
}, 'vc-table__empty-wrapper']
|
|
16124
16112
|
}, [createVNode("span", {
|
|
16125
16113
|
"class": "vc-table__empty-text"
|
|
16126
16114
|
}, [slots.empty ? slots.empty() : props.emptyText || '暂无数据'])]), slots.append && createVNode("div", {
|
|
@@ -16131,7 +16119,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16131
16119
|
"ref": footerWrapper,
|
|
16132
16120
|
"class": "vc-table__footer-wrapper"
|
|
16133
16121
|
}, [createVNode(TableFooter, {
|
|
16134
|
-
"store": store,
|
|
16135
16122
|
"border": props.border,
|
|
16136
16123
|
"sum-text": props.sumText || '合计',
|
|
16137
16124
|
"get-summary": props.getSummary,
|
|
@@ -16147,7 +16134,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16147
16134
|
"class": "vc-table__fixed-header-wrapper"
|
|
16148
16135
|
}, [createVNode(TableHeader, {
|
|
16149
16136
|
"ref": leftFixedTableHeader,
|
|
16150
|
-
"store": store,
|
|
16151
16137
|
"border": props.border,
|
|
16152
16138
|
"default-sort": props.defaultSort,
|
|
16153
16139
|
"style": bodyWidthStyle.value,
|
|
@@ -16160,7 +16146,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16160
16146
|
"class": "vc-table__fixed-body-wrapper"
|
|
16161
16147
|
}, [createVNode(TableBody, {
|
|
16162
16148
|
"ref": leftFixedBody,
|
|
16163
|
-
"store": store,
|
|
16164
16149
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
16165
16150
|
"fixed": "left"
|
|
16166
16151
|
}, null), slots.append && createVNode("div", {
|
|
@@ -16172,7 +16157,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16172
16157
|
"ref": leftFixedFooterWrapper,
|
|
16173
16158
|
"class": "vc-table__fixed-footer-wrapper"
|
|
16174
16159
|
}, [createVNode(TableFooter, {
|
|
16175
|
-
"store": store,
|
|
16176
16160
|
"border": props.border,
|
|
16177
16161
|
"sum-text": props.sumText || '合计',
|
|
16178
16162
|
"get-summary": props.getSummary,
|
|
@@ -16189,7 +16173,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16189
16173
|
"class": "vc-table__fixed-header-wrapper"
|
|
16190
16174
|
}, [createVNode(TableHeader, {
|
|
16191
16175
|
"ref": rightFixedTableHeader,
|
|
16192
|
-
"store": store,
|
|
16193
16176
|
"border": props.border,
|
|
16194
16177
|
"default-sort": props.defaultSort,
|
|
16195
16178
|
"style": bodyWidthStyle.value,
|
|
@@ -16202,7 +16185,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16202
16185
|
"class": "vc-table__fixed-body-wrapper"
|
|
16203
16186
|
}, [createVNode(TableBody, {
|
|
16204
16187
|
"ref": rightFixedBody,
|
|
16205
|
-
"store": store,
|
|
16206
16188
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
16207
16189
|
"fixed": "right"
|
|
16208
16190
|
}, null), slots.append && createVNode("div", {
|
|
@@ -16214,7 +16196,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
16214
16196
|
"ref": rightFixedFooterWrapper,
|
|
16215
16197
|
"class": "vc-table__fixed-footer-wrapper"
|
|
16216
16198
|
}, [createVNode(TableFooter, {
|
|
16217
|
-
"store": store,
|
|
16218
16199
|
"border": props.border,
|
|
16219
16200
|
"sum-text": props.sumText || '合计',
|
|
16220
16201
|
"get-summary": props.getSummary,
|
|
@@ -16279,7 +16260,7 @@ const cellForced = {
|
|
|
16279
16260
|
"disabled": column.selectable ? !column.selectable.call(null, row, rowIndex) : false,
|
|
16280
16261
|
"onChange": () => store.rowSelectedChanged(row),
|
|
16281
16262
|
"onClick": e => e.stopPropagation()
|
|
16282
|
-
}, null), [[vShow, store.
|
|
16263
|
+
}, null), [[vShow, store.states.expandSelectable || level === 0]]);
|
|
16283
16264
|
},
|
|
16284
16265
|
sortable: false,
|
|
16285
16266
|
resizable: false
|
|
@@ -16513,16 +16494,9 @@ const TableColumn = /* @__PURE__ */ defineComponent({
|
|
|
16513
16494
|
* @returns ~
|
|
16514
16495
|
*/
|
|
16515
16496
|
const setColumnWidth = column => {
|
|
16516
|
-
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
if (realMinWidth.value) {
|
|
16520
|
-
column.minWidth = realMinWidth.value;
|
|
16521
|
-
}
|
|
16522
|
-
if (!column.minWidth) {
|
|
16523
|
-
column.minWidth = 80;
|
|
16524
|
-
}
|
|
16525
|
-
column.realWidth = column.width === undefined ? column.minWidth : column.width;
|
|
16497
|
+
column.width = realWidth.value || column.width;
|
|
16498
|
+
column.minWidth = realMinWidth.value || column.minWidth || 80;
|
|
16499
|
+
column.realWidth = typeof column.width === 'undefined' ? column.minWidth : column.width;
|
|
16526
16500
|
return column;
|
|
16527
16501
|
};
|
|
16528
16502
|
|
|
@@ -16595,6 +16569,8 @@ const TableColumn = /* @__PURE__ */ defineComponent({
|
|
|
16595
16569
|
};
|
|
16596
16570
|
const registerColumn = () => {
|
|
16597
16571
|
const defaults = {
|
|
16572
|
+
colspan: 1,
|
|
16573
|
+
rowspan: 1,
|
|
16598
16574
|
...cellStarts[props.type],
|
|
16599
16575
|
id: columnId.value,
|
|
16600
16576
|
realAlign,
|
|
@@ -16883,7 +16859,7 @@ const Tabs = /* @__PURE__ */ defineComponent({
|
|
|
16883
16859
|
if (!Array.from(items).length) return;
|
|
16884
16860
|
let offset = 0;
|
|
16885
16861
|
if (index > 0) {
|
|
16886
|
-
const gutter =
|
|
16862
|
+
const gutter = 12; // margin-right -> 12px
|
|
16887
16863
|
for (let i = 0; i < index; i++) {
|
|
16888
16864
|
offset += parseFloat(items[i].offsetWidth) + gutter;
|
|
16889
16865
|
}
|
|
@@ -16955,7 +16931,7 @@ const Tabs = /* @__PURE__ */ defineComponent({
|
|
|
16955
16931
|
}, [slots.extra?.()]), createVNode("div", {
|
|
16956
16932
|
"ref": wrapper,
|
|
16957
16933
|
"style": {
|
|
16958
|
-
padding: tabs.scrollable.value
|
|
16934
|
+
padding: tabs.scrollable.value ? '0 24px' : 0
|
|
16959
16935
|
},
|
|
16960
16936
|
"class": "vc-tabs__bar"
|
|
16961
16937
|
}, [tabs.scrollable.value && createVNode(Icon, {
|