@deot/vc-components 1.0.14 → 1.0.16
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 +284 -316
- package/dist/index.d.ts +52 -2
- package/dist/index.iife.js +284 -316
- package/dist/index.js +284 -316
- package/dist/index.style.css +1 -1
- package/dist/index.umd.cjs +284 -316
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -91,9 +91,9 @@ const props$1q = {
|
|
|
91
91
|
|
|
92
92
|
/** @jsxImportSource vue */
|
|
93
93
|
|
|
94
|
-
const COMPONENT_NAME$
|
|
94
|
+
const COMPONENT_NAME$1_ = 'vc-action-sheet';
|
|
95
95
|
const ActionSheet = /* @__PURE__ */ vue.defineComponent({
|
|
96
|
-
name: COMPONENT_NAME$
|
|
96
|
+
name: COMPONENT_NAME$1_,
|
|
97
97
|
props: props$1q,
|
|
98
98
|
setup(props, {
|
|
99
99
|
slots
|
|
@@ -280,9 +280,9 @@ const IconManager = new Manager();
|
|
|
280
280
|
|
|
281
281
|
/** @jsxImportSource vue */
|
|
282
282
|
|
|
283
|
-
const COMPONENT_NAME$
|
|
283
|
+
const COMPONENT_NAME$1Z = 'vc-icon';
|
|
284
284
|
const Icon = /* @__PURE__ */ vue.defineComponent({
|
|
285
|
-
name: COMPONENT_NAME$
|
|
285
|
+
name: COMPONENT_NAME$1Z,
|
|
286
286
|
props: props$1o,
|
|
287
287
|
setup(props) {
|
|
288
288
|
const viewBox = vue.ref('0 0 1024 1024');
|
|
@@ -481,9 +481,9 @@ const useTransition = () => {
|
|
|
481
481
|
};
|
|
482
482
|
};
|
|
483
483
|
|
|
484
|
-
const COMPONENT_NAME$
|
|
484
|
+
const COMPONENT_NAME$1Y = "vc-transition";
|
|
485
485
|
const Transition = vue.defineComponent({
|
|
486
|
-
name: COMPONENT_NAME$
|
|
486
|
+
name: COMPONENT_NAME$1Y,
|
|
487
487
|
props: props$1n,
|
|
488
488
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
489
489
|
inheritAttrs: false,
|
|
@@ -504,9 +504,9 @@ const Transition = vue.defineComponent({
|
|
|
504
504
|
}
|
|
505
505
|
});
|
|
506
506
|
|
|
507
|
-
const COMPONENT_NAME$
|
|
507
|
+
const COMPONENT_NAME$1X = "vc-transition-collapse";
|
|
508
508
|
const TransitionCollapse = vue.defineComponent({
|
|
509
|
-
name: COMPONENT_NAME$
|
|
509
|
+
name: COMPONENT_NAME$1X,
|
|
510
510
|
props: props$1n,
|
|
511
511
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
512
512
|
inheritAttrs: false,
|
|
@@ -625,9 +625,9 @@ const TransitionCollapse = vue.defineComponent({
|
|
|
625
625
|
}
|
|
626
626
|
});
|
|
627
627
|
|
|
628
|
-
const COMPONENT_NAME$
|
|
628
|
+
const COMPONENT_NAME$1W = "vc-transition-fade";
|
|
629
629
|
const TransitionFade = vue.defineComponent({
|
|
630
|
-
name: COMPONENT_NAME$
|
|
630
|
+
name: COMPONENT_NAME$1W,
|
|
631
631
|
props: {
|
|
632
632
|
...props$1n,
|
|
633
633
|
// inheritAttrs必须是false
|
|
@@ -662,9 +662,9 @@ const TransitionFade = vue.defineComponent({
|
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
|
|
665
|
-
const COMPONENT_NAME$
|
|
665
|
+
const COMPONENT_NAME$1V = "vc-transition-scale";
|
|
666
666
|
const TransitionScale = vue.defineComponent({
|
|
667
|
-
name: COMPONENT_NAME$
|
|
667
|
+
name: COMPONENT_NAME$1V,
|
|
668
668
|
props: {
|
|
669
669
|
...props$1n,
|
|
670
670
|
mode: {
|
|
@@ -704,9 +704,9 @@ const TransitionScale = vue.defineComponent({
|
|
|
704
704
|
}
|
|
705
705
|
});
|
|
706
706
|
|
|
707
|
-
const COMPONENT_NAME$
|
|
707
|
+
const COMPONENT_NAME$1U = "vc-transition-slide";
|
|
708
708
|
const TransitionSlide = vue.defineComponent({
|
|
709
|
-
name: COMPONENT_NAME$
|
|
709
|
+
name: COMPONENT_NAME$1U,
|
|
710
710
|
props: {
|
|
711
711
|
...props$1n,
|
|
712
712
|
mode: {
|
|
@@ -746,9 +746,9 @@ const TransitionSlide = vue.defineComponent({
|
|
|
746
746
|
}
|
|
747
747
|
});
|
|
748
748
|
|
|
749
|
-
const COMPONENT_NAME$
|
|
749
|
+
const COMPONENT_NAME$1T = "vc-transition-zoom";
|
|
750
750
|
const TransitionZoom = vue.defineComponent({
|
|
751
|
-
name: COMPONENT_NAME$
|
|
751
|
+
name: COMPONENT_NAME$1T,
|
|
752
752
|
props: {
|
|
753
753
|
...props$1n,
|
|
754
754
|
mode: {
|
|
@@ -790,7 +790,7 @@ const TransitionZoom = vue.defineComponent({
|
|
|
790
790
|
|
|
791
791
|
/** @jsxImportSource vue */
|
|
792
792
|
|
|
793
|
-
const COMPONENT_NAME$
|
|
793
|
+
const COMPONENT_NAME$1S = 'vc-alert';
|
|
794
794
|
|
|
795
795
|
// [color, borderColor, backgroundColor], -> CSS
|
|
796
796
|
const THEME_MAP = {
|
|
@@ -800,7 +800,7 @@ const THEME_MAP = {
|
|
|
800
800
|
warning: ['#ffbf00', '#ffe58f', '#fffbe6']
|
|
801
801
|
};
|
|
802
802
|
const Alert = /* @__PURE__ */ vue.defineComponent({
|
|
803
|
-
name: COMPONENT_NAME$
|
|
803
|
+
name: COMPONENT_NAME$1S,
|
|
804
804
|
props: props$1p,
|
|
805
805
|
setup(props, {
|
|
806
806
|
slots,
|
|
@@ -899,9 +899,9 @@ const props$1m = {
|
|
|
899
899
|
|
|
900
900
|
/** @jsxImportSource vue */
|
|
901
901
|
|
|
902
|
-
const COMPONENT_NAME$
|
|
902
|
+
const COMPONENT_NAME$1R = 'vc-artboard';
|
|
903
903
|
const Artboard = /* @__PURE__ */ vue.defineComponent({
|
|
904
|
-
name: COMPONENT_NAME$
|
|
904
|
+
name: COMPONENT_NAME$1R,
|
|
905
905
|
props: props$1m,
|
|
906
906
|
setup(props, {
|
|
907
907
|
slots
|
|
@@ -940,9 +940,9 @@ const props$1l = {
|
|
|
940
940
|
|
|
941
941
|
/** @jsxImportSource vue */
|
|
942
942
|
|
|
943
|
-
const COMPONENT_NAME$
|
|
943
|
+
const COMPONENT_NAME$1Q = 'vc-spin';
|
|
944
944
|
const Spin = /* @__PURE__ */ vue.defineComponent({
|
|
945
|
-
name: COMPONENT_NAME$
|
|
945
|
+
name: COMPONENT_NAME$1Q,
|
|
946
946
|
props: props$1l,
|
|
947
947
|
setup(props, {
|
|
948
948
|
slots
|
|
@@ -993,9 +993,9 @@ const props$1k = {
|
|
|
993
993
|
exclude: RegExp
|
|
994
994
|
};
|
|
995
995
|
|
|
996
|
-
const COMPONENT_NAME$
|
|
996
|
+
const COMPONENT_NAME$1P = "vc-debounce";
|
|
997
997
|
const Debounce = vue.defineComponent({
|
|
998
|
-
name: COMPONENT_NAME$
|
|
998
|
+
name: COMPONENT_NAME$1P,
|
|
999
999
|
props: props$1k,
|
|
1000
1000
|
/**
|
|
1001
1001
|
* 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
|
|
@@ -1067,9 +1067,9 @@ const props$1j = {
|
|
|
1067
1067
|
|
|
1068
1068
|
/** @jsxImportSource vue */
|
|
1069
1069
|
|
|
1070
|
-
const COMPONENT_NAME$
|
|
1070
|
+
const COMPONENT_NAME$1O = 'vc-button';
|
|
1071
1071
|
const Button = /* @__PURE__ */ vue.defineComponent({
|
|
1072
|
-
name: COMPONENT_NAME$
|
|
1072
|
+
name: COMPONENT_NAME$1O,
|
|
1073
1073
|
emits: ['click'],
|
|
1074
1074
|
props: props$1j,
|
|
1075
1075
|
setup(props, {
|
|
@@ -1149,9 +1149,9 @@ const props$1i = {
|
|
|
1149
1149
|
|
|
1150
1150
|
/** @jsxImportSource vue */
|
|
1151
1151
|
|
|
1152
|
-
const COMPONENT_NAME$
|
|
1152
|
+
const COMPONENT_NAME$1N = 'vc-button-group';
|
|
1153
1153
|
const ButtonGroup = /* @__PURE__ */ vue.defineComponent({
|
|
1154
|
-
name: COMPONENT_NAME$
|
|
1154
|
+
name: COMPONENT_NAME$1N,
|
|
1155
1155
|
props: props$1i,
|
|
1156
1156
|
setup(props, {
|
|
1157
1157
|
slots
|
|
@@ -1185,9 +1185,9 @@ const props$1h = {
|
|
|
1185
1185
|
|
|
1186
1186
|
/** @jsxImportSource vue */
|
|
1187
1187
|
|
|
1188
|
-
const COMPONENT_NAME$
|
|
1188
|
+
const COMPONENT_NAME$1M = 'vc-calendar';
|
|
1189
1189
|
const Calendar = /* @__PURE__ */ vue.defineComponent({
|
|
1190
|
-
name: COMPONENT_NAME$
|
|
1190
|
+
name: COMPONENT_NAME$1M,
|
|
1191
1191
|
props: props$1h,
|
|
1192
1192
|
setup(props, {
|
|
1193
1193
|
slots
|
|
@@ -1225,9 +1225,9 @@ const props$1g = {
|
|
|
1225
1225
|
|
|
1226
1226
|
/** @jsxImportSource vue */
|
|
1227
1227
|
|
|
1228
|
-
const COMPONENT_NAME$
|
|
1228
|
+
const COMPONENT_NAME$1L = 'vc-card';
|
|
1229
1229
|
const Card = /* @__PURE__ */ vue.defineComponent({
|
|
1230
|
-
name: COMPONENT_NAME$
|
|
1230
|
+
name: COMPONENT_NAME$1L,
|
|
1231
1231
|
props: props$1g,
|
|
1232
1232
|
setup(props, {
|
|
1233
1233
|
slots
|
|
@@ -1263,9 +1263,9 @@ const props$1f = {
|
|
|
1263
1263
|
|
|
1264
1264
|
/** @jsxImportSource vue */
|
|
1265
1265
|
|
|
1266
|
-
const COMPONENT_NAME$
|
|
1266
|
+
const COMPONENT_NAME$1K = 'vc-carousel';
|
|
1267
1267
|
const Carousel = /* @__PURE__ */ vue.defineComponent({
|
|
1268
|
-
name: COMPONENT_NAME$
|
|
1268
|
+
name: COMPONENT_NAME$1K,
|
|
1269
1269
|
props: props$1f,
|
|
1270
1270
|
setup(props, {
|
|
1271
1271
|
slots
|
|
@@ -1289,9 +1289,9 @@ const props$1e = {
|
|
|
1289
1289
|
|
|
1290
1290
|
/** @jsxImportSource vue */
|
|
1291
1291
|
|
|
1292
|
-
const COMPONENT_NAME$
|
|
1292
|
+
const COMPONENT_NAME$1J = 'vc-cascader';
|
|
1293
1293
|
const Cascader = /* @__PURE__ */ vue.defineComponent({
|
|
1294
|
-
name: COMPONENT_NAME$
|
|
1294
|
+
name: COMPONENT_NAME$1J,
|
|
1295
1295
|
props: props$1e,
|
|
1296
1296
|
setup(props, {
|
|
1297
1297
|
slots
|
|
@@ -1360,9 +1360,9 @@ const props$1d = {
|
|
|
1360
1360
|
|
|
1361
1361
|
/** @jsxImportSource vue */
|
|
1362
1362
|
|
|
1363
|
-
const COMPONENT_NAME$
|
|
1363
|
+
const COMPONENT_NAME$1I = 'vc-chart';
|
|
1364
1364
|
const Chart = /* @__PURE__ */ vue.defineComponent({
|
|
1365
|
-
name: COMPONENT_NAME$
|
|
1365
|
+
name: COMPONENT_NAME$1I,
|
|
1366
1366
|
props: props$1d,
|
|
1367
1367
|
emits: [...EVENTS, 'ready'],
|
|
1368
1368
|
setup(props, {
|
|
@@ -1593,9 +1593,9 @@ const useCheckbox = () => {
|
|
|
1593
1593
|
|
|
1594
1594
|
/** @jsxImportSource vue */
|
|
1595
1595
|
|
|
1596
|
-
const COMPONENT_NAME$
|
|
1596
|
+
const COMPONENT_NAME$1H = 'vc-checkbox';
|
|
1597
1597
|
const Checkbox = /* @__PURE__ */ vue.defineComponent({
|
|
1598
|
-
name: COMPONENT_NAME$
|
|
1598
|
+
name: COMPONENT_NAME$1H,
|
|
1599
1599
|
props: props$1c,
|
|
1600
1600
|
emits: ['update:modelValue', 'change'],
|
|
1601
1601
|
setup(props, {
|
|
@@ -1682,9 +1682,9 @@ const useCheckboxGroup = () => {
|
|
|
1682
1682
|
|
|
1683
1683
|
/** @jsxImportSource vue */
|
|
1684
1684
|
|
|
1685
|
-
const COMPONENT_NAME$
|
|
1685
|
+
const COMPONENT_NAME$1G = 'vc-checkbox-group';
|
|
1686
1686
|
const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
1687
|
-
name: COMPONENT_NAME$
|
|
1687
|
+
name: COMPONENT_NAME$1G,
|
|
1688
1688
|
props: props$1b,
|
|
1689
1689
|
emits: ['update:modelValue', 'change'],
|
|
1690
1690
|
setup(props, {
|
|
@@ -1702,9 +1702,9 @@ const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
1702
1702
|
|
|
1703
1703
|
/** @jsxImportSource vue */
|
|
1704
1704
|
|
|
1705
|
-
const COMPONENT_NAME$
|
|
1705
|
+
const COMPONENT_NAME$1F = 'vcm-checkbox';
|
|
1706
1706
|
const MCheckbox = /* @__PURE__ */ vue.defineComponent({
|
|
1707
|
-
name: COMPONENT_NAME$
|
|
1707
|
+
name: COMPONENT_NAME$1F,
|
|
1708
1708
|
props: props$1c,
|
|
1709
1709
|
emits: ['update:modelValue', 'change'],
|
|
1710
1710
|
setup(props, {
|
|
@@ -1744,9 +1744,9 @@ const MCheckbox = /* @__PURE__ */ vue.defineComponent({
|
|
|
1744
1744
|
|
|
1745
1745
|
/** @jsxImportSource vue */
|
|
1746
1746
|
|
|
1747
|
-
const COMPONENT_NAME$
|
|
1747
|
+
const COMPONENT_NAME$1E = 'vcm-checkbox-group';
|
|
1748
1748
|
const MCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
1749
|
-
name: COMPONENT_NAME$
|
|
1749
|
+
name: COMPONENT_NAME$1E,
|
|
1750
1750
|
props: props$1b,
|
|
1751
1751
|
emits: ['update:modelValue', 'change'],
|
|
1752
1752
|
setup(props, {
|
|
@@ -1805,9 +1805,9 @@ const props$19 = {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
};
|
|
1807
1807
|
|
|
1808
|
-
const COMPONENT_NAME$
|
|
1808
|
+
const COMPONENT_NAME$1D = "vc-customer";
|
|
1809
1809
|
const Customer = vue.defineComponent({
|
|
1810
|
-
name: COMPONENT_NAME$
|
|
1810
|
+
name: COMPONENT_NAME$1D,
|
|
1811
1811
|
props: props$19,
|
|
1812
1812
|
setup(props, context) {
|
|
1813
1813
|
return () => vue.h(() => {
|
|
@@ -1818,9 +1818,9 @@ const Customer = vue.defineComponent({
|
|
|
1818
1818
|
|
|
1819
1819
|
/** @jsxImportSource vue */
|
|
1820
1820
|
|
|
1821
|
-
const COMPONENT_NAME$
|
|
1821
|
+
const COMPONENT_NAME$1C = 'vc-message';
|
|
1822
1822
|
const MessageView = /* @__PURE__ */ vue.defineComponent({
|
|
1823
|
-
name: COMPONENT_NAME$
|
|
1823
|
+
name: COMPONENT_NAME$1C,
|
|
1824
1824
|
emits: ['before-close', 'close', 'portal-fulfilled'],
|
|
1825
1825
|
props: props$1a,
|
|
1826
1826
|
setup(props, {
|
|
@@ -1967,7 +1967,7 @@ class PortalLeaf {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
|
-
const COMPONENT_NAME$
|
|
1970
|
+
const COMPONENT_NAME$1B = "vc-portal";
|
|
1971
1971
|
class Portal {
|
|
1972
1972
|
/**
|
|
1973
1973
|
* 清理Portals类型组件
|
|
@@ -2019,7 +2019,7 @@ class Portal {
|
|
|
2019
2019
|
this.wrapper = wrapper;
|
|
2020
2020
|
this.globalOptions = {
|
|
2021
2021
|
...options,
|
|
2022
|
-
name: options?.name || wrapper.name || Utils__namespace.getUid(COMPONENT_NAME$
|
|
2022
|
+
name: options?.name || wrapper.name || Utils__namespace.getUid(COMPONENT_NAME$1B)
|
|
2023
2023
|
};
|
|
2024
2024
|
}
|
|
2025
2025
|
popup(propsData, options) {
|
|
@@ -2118,7 +2118,7 @@ class Portal {
|
|
|
2118
2118
|
...rest
|
|
2119
2119
|
} = options;
|
|
2120
2120
|
let useAllNodes = fragment;
|
|
2121
|
-
const name = multiple ? `${name$}__${Utils__namespace.getUid(COMPONENT_NAME$
|
|
2121
|
+
const name = multiple ? `${name$}__${Utils__namespace.getUid(COMPONENT_NAME$1B)}` : name$;
|
|
2122
2122
|
const container = document.createElement(tag);
|
|
2123
2123
|
const root = typeof el === "object" ? el : document.querySelector(el || "body");
|
|
2124
2124
|
!alive && Portal.leafs.get(name)?.destroy();
|
|
@@ -2152,7 +2152,7 @@ class Portal {
|
|
|
2152
2152
|
} else {
|
|
2153
2153
|
const wrapper = this.wrapper;
|
|
2154
2154
|
const app = vue.createApp({
|
|
2155
|
-
name: COMPONENT_NAME$
|
|
2155
|
+
name: COMPONENT_NAME$1B,
|
|
2156
2156
|
parent,
|
|
2157
2157
|
setup() {
|
|
2158
2158
|
if (alive) {
|
|
@@ -2264,13 +2264,13 @@ const props$18 = {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
};
|
|
2266
2266
|
|
|
2267
|
-
const COMPONENT_NAME$
|
|
2267
|
+
const COMPONENT_NAME$1A = 'vc-portal-view';
|
|
2268
2268
|
|
|
2269
2269
|
/**
|
|
2270
2270
|
* 写法不同,但与vue@2.x 保持一致
|
|
2271
2271
|
*/
|
|
2272
2272
|
const PortalView = /* @__PURE__ */ vue.defineComponent({
|
|
2273
|
-
name: COMPONENT_NAME$
|
|
2273
|
+
name: COMPONENT_NAME$1A,
|
|
2274
2274
|
props: props$18,
|
|
2275
2275
|
setup(props, {
|
|
2276
2276
|
slots
|
|
@@ -2441,9 +2441,9 @@ const useClipboard = (done) => {
|
|
|
2441
2441
|
return () => vue.h(props.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
|
|
2442
2442
|
};
|
|
2443
2443
|
|
|
2444
|
-
const COMPONENT_NAME$
|
|
2444
|
+
const COMPONENT_NAME$1z = "vc-clipboard";
|
|
2445
2445
|
const Clipboard$1 = vue.defineComponent({
|
|
2446
|
-
name: COMPONENT_NAME$
|
|
2446
|
+
name: COMPONENT_NAME$1z,
|
|
2447
2447
|
props: props$17,
|
|
2448
2448
|
setup() {
|
|
2449
2449
|
return useClipboard((content) => Message.success({ content }));
|
|
@@ -2483,9 +2483,9 @@ const MTransitionZoom = TransitionZoom;
|
|
|
2483
2483
|
|
|
2484
2484
|
/** @jsxImportSource vue */
|
|
2485
2485
|
|
|
2486
|
-
const COMPONENT_NAME$
|
|
2486
|
+
const COMPONENT_NAME$1y = 'vcm-toast';
|
|
2487
2487
|
const MToastView = /* @__PURE__ */ vue.defineComponent({
|
|
2488
|
-
name: COMPONENT_NAME$
|
|
2488
|
+
name: COMPONENT_NAME$1y,
|
|
2489
2489
|
emits: ['close', 'portal-fulfilled'],
|
|
2490
2490
|
props: props$16,
|
|
2491
2491
|
setup(props, {
|
|
@@ -2587,9 +2587,9 @@ const warning$2 = create$3({ mode: "warning" });
|
|
|
2587
2587
|
const error$2 = create$3({ mode: "error" });
|
|
2588
2588
|
const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
|
|
2589
2589
|
|
|
2590
|
-
const COMPONENT_NAME$
|
|
2590
|
+
const COMPONENT_NAME$1x = "vcm-clipboard";
|
|
2591
2591
|
const MClipboard$1 = vue.defineComponent({
|
|
2592
|
-
name: COMPONENT_NAME$
|
|
2592
|
+
name: COMPONENT_NAME$1x,
|
|
2593
2593
|
props: props$17,
|
|
2594
2594
|
setup() {
|
|
2595
2595
|
return useClipboard((content) => MToast.info({ content }));
|
|
@@ -2621,9 +2621,9 @@ const props$15 = {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
};
|
|
2623
2623
|
|
|
2624
|
-
const COMPONENT_NAME$
|
|
2624
|
+
const COMPONENT_NAME$1w = "vc-collapse";
|
|
2625
2625
|
const Collapse = vue.defineComponent({
|
|
2626
|
-
name: COMPONENT_NAME$
|
|
2626
|
+
name: COMPONENT_NAME$1w,
|
|
2627
2627
|
props: props$15,
|
|
2628
2628
|
emits: ["update:moodelValue", "change"],
|
|
2629
2629
|
setup(props, { slots, emit }) {
|
|
@@ -2740,9 +2740,9 @@ const props$13 = {
|
|
|
2740
2740
|
function _isSlot$3(s) {
|
|
2741
2741
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
2742
2742
|
}
|
|
2743
|
-
const COMPONENT_NAME$
|
|
2743
|
+
const COMPONENT_NAME$1v = 'vc-expand';
|
|
2744
2744
|
const Expand$1 = /* @__PURE__ */ vue.defineComponent({
|
|
2745
|
-
name: COMPONENT_NAME$
|
|
2745
|
+
name: COMPONENT_NAME$1v,
|
|
2746
2746
|
props: props$13,
|
|
2747
2747
|
setup(props, {
|
|
2748
2748
|
slots
|
|
@@ -2772,9 +2772,9 @@ const Expand$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2772
2772
|
|
|
2773
2773
|
/** @jsxImportSource vue */
|
|
2774
2774
|
|
|
2775
|
-
const COMPONENT_NAME$
|
|
2775
|
+
const COMPONENT_NAME$1u = 'vc-collapse-item';
|
|
2776
2776
|
const CollapseItem = /* @__PURE__ */ vue.defineComponent({
|
|
2777
|
-
name: COMPONENT_NAME$
|
|
2777
|
+
name: COMPONENT_NAME$1u,
|
|
2778
2778
|
props: props$14,
|
|
2779
2779
|
setup(props, {
|
|
2780
2780
|
slots,
|
|
@@ -2849,9 +2849,9 @@ const props$12 = {
|
|
|
2849
2849
|
|
|
2850
2850
|
/** @jsxImportSource vue */
|
|
2851
2851
|
|
|
2852
|
-
const COMPONENT_NAME$
|
|
2852
|
+
const COMPONENT_NAME$1t = 'vc-color-picker';
|
|
2853
2853
|
const ColorPicker = /* @__PURE__ */ vue.defineComponent({
|
|
2854
|
-
name: COMPONENT_NAME$
|
|
2854
|
+
name: COMPONENT_NAME$1t,
|
|
2855
2855
|
props: props$12,
|
|
2856
2856
|
setup(props, {
|
|
2857
2857
|
slots
|
|
@@ -2875,9 +2875,9 @@ const props$11 = {
|
|
|
2875
2875
|
|
|
2876
2876
|
/** @jsxImportSource vue */
|
|
2877
2877
|
|
|
2878
|
-
const COMPONENT_NAME$
|
|
2878
|
+
const COMPONENT_NAME$1s = 'vc-countdown';
|
|
2879
2879
|
const Countdown = /* @__PURE__ */ vue.defineComponent({
|
|
2880
|
-
name: COMPONENT_NAME$
|
|
2880
|
+
name: COMPONENT_NAME$1s,
|
|
2881
2881
|
props: props$11,
|
|
2882
2882
|
setup(props, {
|
|
2883
2883
|
slots
|
|
@@ -3326,9 +3326,9 @@ const useNativeEmitter = (input, expose) => {
|
|
|
3326
3326
|
|
|
3327
3327
|
/** @jsxImportSource vue */
|
|
3328
3328
|
|
|
3329
|
-
const COMPONENT_NAME$
|
|
3329
|
+
const COMPONENT_NAME$1r = 'vc-input';
|
|
3330
3330
|
const Input = /* @__PURE__ */ vue.defineComponent({
|
|
3331
|
-
name: COMPONENT_NAME$
|
|
3331
|
+
name: COMPONENT_NAME$1r,
|
|
3332
3332
|
inheritAttrs: false,
|
|
3333
3333
|
props: {
|
|
3334
3334
|
...props$$,
|
|
@@ -3662,9 +3662,9 @@ const useInputNumber = () => {
|
|
|
3662
3662
|
|
|
3663
3663
|
/** @jsxImportSource vue */
|
|
3664
3664
|
|
|
3665
|
-
const COMPONENT_NAME$
|
|
3665
|
+
const COMPONENT_NAME$1q = 'vc-input-number';
|
|
3666
3666
|
const InputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
3667
|
-
name: COMPONENT_NAME$
|
|
3667
|
+
name: COMPONENT_NAME$1q,
|
|
3668
3668
|
props: props$X,
|
|
3669
3669
|
inheritAttrs: false,
|
|
3670
3670
|
setup(props, {
|
|
@@ -3728,9 +3728,9 @@ const props$W = {
|
|
|
3728
3728
|
|
|
3729
3729
|
/** @jsxImportSource vue */
|
|
3730
3730
|
|
|
3731
|
-
const COMPONENT_NAME$
|
|
3731
|
+
const COMPONENT_NAME$1p = 'vc-input-search';
|
|
3732
3732
|
const InputSearch = /* @__PURE__ */ vue.defineComponent({
|
|
3733
|
-
name: COMPONENT_NAME$
|
|
3733
|
+
name: COMPONENT_NAME$1p,
|
|
3734
3734
|
props: props$W,
|
|
3735
3735
|
inheritAttrs: false,
|
|
3736
3736
|
setup(props, {
|
|
@@ -4021,9 +4021,9 @@ const usePos = () => {
|
|
|
4021
4021
|
function _isSlot$2(s) {
|
|
4022
4022
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
4023
4023
|
}
|
|
4024
|
-
const COMPONENT_NAME$
|
|
4024
|
+
const COMPONENT_NAME$1o = 'vc-popover-wrapper';
|
|
4025
4025
|
const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
|
|
4026
|
-
name: COMPONENT_NAME$
|
|
4026
|
+
name: COMPONENT_NAME$1o,
|
|
4027
4027
|
props: props$_,
|
|
4028
4028
|
emits: ['portal-fulfilled', 'close'],
|
|
4029
4029
|
setup(props, {
|
|
@@ -4275,9 +4275,9 @@ const PopoverPortal = new Portal(PopoverWrapper);
|
|
|
4275
4275
|
|
|
4276
4276
|
/** @jsxImportSource vue */
|
|
4277
4277
|
|
|
4278
|
-
const COMPONENT_NAME$
|
|
4278
|
+
const COMPONENT_NAME$1n = 'vc-popover';
|
|
4279
4279
|
const Popover$1 = /* @__PURE__ */ vue.defineComponent({
|
|
4280
|
-
name: COMPONENT_NAME$
|
|
4280
|
+
name: COMPONENT_NAME$1n,
|
|
4281
4281
|
props: props$Z,
|
|
4282
4282
|
emits: ['update:modelValue', 'visible-change', 'ready', 'close'],
|
|
4283
4283
|
setup(props, {
|
|
@@ -5378,9 +5378,9 @@ const getTimeType = type => {
|
|
|
5378
5378
|
}
|
|
5379
5379
|
return view;
|
|
5380
5380
|
};
|
|
5381
|
-
const COMPONENT_NAME$
|
|
5381
|
+
const COMPONENT_NAME$1m = 'vc-date-confirm';
|
|
5382
5382
|
const Confirm = /* @__PURE__ */ vue.defineComponent({
|
|
5383
|
-
name: COMPONENT_NAME$
|
|
5383
|
+
name: COMPONENT_NAME$1m,
|
|
5384
5384
|
props: {
|
|
5385
5385
|
showTime: {
|
|
5386
5386
|
type: Boolean,
|
|
@@ -5444,9 +5444,9 @@ const Confirm = /* @__PURE__ */ vue.defineComponent({
|
|
|
5444
5444
|
|
|
5445
5445
|
/** @jsxImportSource vue */
|
|
5446
5446
|
|
|
5447
|
-
const COMPONENT_NAME$
|
|
5447
|
+
const COMPONENT_NAME$1l = 'vc-date-header';
|
|
5448
5448
|
const DateHeader = /* @__PURE__ */ vue.defineComponent({
|
|
5449
|
-
name: COMPONENT_NAME$
|
|
5449
|
+
name: COMPONENT_NAME$1l,
|
|
5450
5450
|
props: {
|
|
5451
5451
|
panelDate: Date,
|
|
5452
5452
|
showNext: {
|
|
@@ -5530,9 +5530,9 @@ const DateHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
5530
5530
|
|
|
5531
5531
|
/** @jsxImportSource vue */
|
|
5532
5532
|
|
|
5533
|
-
const COMPONENT_NAME$
|
|
5533
|
+
const COMPONENT_NAME$1k = 'vc-date-table';
|
|
5534
5534
|
const DateTable = /* @__PURE__ */ vue.defineComponent({
|
|
5535
|
-
name: COMPONENT_NAME$
|
|
5535
|
+
name: COMPONENT_NAME$1k,
|
|
5536
5536
|
props: {
|
|
5537
5537
|
value: Array,
|
|
5538
5538
|
firstDayOfWeek: {
|
|
@@ -5741,9 +5741,9 @@ const DateTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
5741
5741
|
|
|
5742
5742
|
/** @jsxImportSource vue */
|
|
5743
5743
|
|
|
5744
|
-
const COMPONENT_NAME$
|
|
5744
|
+
const COMPONENT_NAME$1j = 'vc-month-table';
|
|
5745
5745
|
const MonthTable = /* @__PURE__ */ vue.defineComponent({
|
|
5746
|
-
name: COMPONENT_NAME$
|
|
5746
|
+
name: COMPONENT_NAME$1j,
|
|
5747
5747
|
props: {
|
|
5748
5748
|
value: Array,
|
|
5749
5749
|
panelDate: Date,
|
|
@@ -5875,7 +5875,7 @@ const MonthTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
5875
5875
|
|
|
5876
5876
|
/** @jsxImportSource vue */
|
|
5877
5877
|
|
|
5878
|
-
const COMPONENT_NAME$
|
|
5878
|
+
const COMPONENT_NAME$1i = 'vc-quarter-table';
|
|
5879
5879
|
|
|
5880
5880
|
/**
|
|
5881
5881
|
* 获取季度对应的月份范围
|
|
@@ -5909,7 +5909,7 @@ const getQuarterRangeByMonth = value => {
|
|
|
5909
5909
|
}
|
|
5910
5910
|
};
|
|
5911
5911
|
const QuarterTable = /* @__PURE__ */ vue.defineComponent({
|
|
5912
|
-
name: COMPONENT_NAME$
|
|
5912
|
+
name: COMPONENT_NAME$1i,
|
|
5913
5913
|
props: {
|
|
5914
5914
|
value: Array,
|
|
5915
5915
|
panelDate: Date,
|
|
@@ -6032,9 +6032,9 @@ const QuarterTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
6032
6032
|
|
|
6033
6033
|
/** @jsxImportSource vue */
|
|
6034
6034
|
|
|
6035
|
-
const COMPONENT_NAME$
|
|
6035
|
+
const COMPONENT_NAME$1h = 'vc-shortcuts-select';
|
|
6036
6036
|
const ShortcutsSelect = /* @__PURE__ */ vue.defineComponent({
|
|
6037
|
-
name: COMPONENT_NAME$
|
|
6037
|
+
name: COMPONENT_NAME$1h,
|
|
6038
6038
|
props: {
|
|
6039
6039
|
panelDate: Date,
|
|
6040
6040
|
config: Array,
|
|
@@ -6074,9 +6074,9 @@ const ShortcutsSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
6074
6074
|
|
|
6075
6075
|
/** @jsxImportSource vue */
|
|
6076
6076
|
|
|
6077
|
-
const COMPONENT_NAME$
|
|
6077
|
+
const COMPONENT_NAME$1g = 'vc-time-select';
|
|
6078
6078
|
const TimeSelect = /* @__PURE__ */ vue.defineComponent({
|
|
6079
|
-
name: COMPONENT_NAME$
|
|
6079
|
+
name: COMPONENT_NAME$1g,
|
|
6080
6080
|
props: {
|
|
6081
6081
|
hours: {
|
|
6082
6082
|
type: [Number, String],
|
|
@@ -6355,9 +6355,9 @@ const TimeSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
6355
6355
|
|
|
6356
6356
|
/** @jsxImportSource vue */
|
|
6357
6357
|
|
|
6358
|
-
const COMPONENT_NAME$
|
|
6358
|
+
const COMPONENT_NAME$1f = 'vc-year-table';
|
|
6359
6359
|
const YearTable = /* @__PURE__ */ vue.defineComponent({
|
|
6360
|
-
name: COMPONENT_NAME$
|
|
6360
|
+
name: COMPONENT_NAME$1f,
|
|
6361
6361
|
props: {
|
|
6362
6362
|
value: Array,
|
|
6363
6363
|
panelDate: Date,
|
|
@@ -6480,9 +6480,9 @@ const getDateIsInRange = (value, type, leftPanelDate, rightPanelDate) => {
|
|
|
6480
6480
|
}
|
|
6481
6481
|
return true;
|
|
6482
6482
|
};
|
|
6483
|
-
const COMPONENT_NAME$
|
|
6483
|
+
const COMPONENT_NAME$1e = 'vc-date-range-panel';
|
|
6484
6484
|
const DateRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
6485
|
-
name: COMPONENT_NAME$
|
|
6485
|
+
name: COMPONENT_NAME$1e,
|
|
6486
6486
|
props: {
|
|
6487
6487
|
...props$V,
|
|
6488
6488
|
confirm: {
|
|
@@ -6861,9 +6861,9 @@ const DateRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
6861
6861
|
|
|
6862
6862
|
/** @jsxImportSource vue */
|
|
6863
6863
|
|
|
6864
|
-
const COMPONENT_NAME$
|
|
6864
|
+
const COMPONENT_NAME$1d = 'vc-date-panel';
|
|
6865
6865
|
const DatePanel = /* @__PURE__ */ vue.defineComponent({
|
|
6866
|
-
name: COMPONENT_NAME$
|
|
6866
|
+
name: COMPONENT_NAME$1d,
|
|
6867
6867
|
props: {
|
|
6868
6868
|
...props$V,
|
|
6869
6869
|
type: String,
|
|
@@ -7071,9 +7071,9 @@ const isEqualYear$1 = value => {
|
|
|
7071
7071
|
const endYear = value[1].getFullYear();
|
|
7072
7072
|
return startYear === endYear;
|
|
7073
7073
|
};
|
|
7074
|
-
const COMPONENT_NAME$
|
|
7074
|
+
const COMPONENT_NAME$1c = 'vc-monthrange-panel';
|
|
7075
7075
|
const MonthRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
7076
|
-
name: COMPONENT_NAME$
|
|
7076
|
+
name: COMPONENT_NAME$1c,
|
|
7077
7077
|
props: {
|
|
7078
7078
|
...props$V,
|
|
7079
7079
|
confirm: {
|
|
@@ -7248,9 +7248,9 @@ const isEqualYear = value => {
|
|
|
7248
7248
|
const endYear = value[1].getFullYear();
|
|
7249
7249
|
return startYear === endYear;
|
|
7250
7250
|
};
|
|
7251
|
-
const COMPONENT_NAME$
|
|
7251
|
+
const COMPONENT_NAME$1b = 'vc-quarterrange-panel';
|
|
7252
7252
|
const QuarterRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
7253
|
-
name: COMPONENT_NAME$
|
|
7253
|
+
name: COMPONENT_NAME$1b,
|
|
7254
7254
|
props: {
|
|
7255
7255
|
...props$V,
|
|
7256
7256
|
confirm: {
|
|
@@ -7489,9 +7489,9 @@ const getComparedDate = (leftDate, rightDate) => {
|
|
|
7489
7489
|
seconds
|
|
7490
7490
|
};
|
|
7491
7491
|
};
|
|
7492
|
-
const COMPONENT_NAME$
|
|
7492
|
+
const COMPONENT_NAME$1a = 'vc-timerange-panel';
|
|
7493
7493
|
const TimeRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
7494
|
-
name: COMPONENT_NAME$
|
|
7494
|
+
name: COMPONENT_NAME$1a,
|
|
7495
7495
|
props: props$U,
|
|
7496
7496
|
emits: ['pick', 'clear', 'ok'],
|
|
7497
7497
|
setup(props, {
|
|
@@ -7590,9 +7590,9 @@ const TimeRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
7590
7590
|
|
|
7591
7591
|
/** @jsxImportSource vue */
|
|
7592
7592
|
|
|
7593
|
-
const COMPONENT_NAME$
|
|
7593
|
+
const COMPONENT_NAME$19 = 'vc-time-panel';
|
|
7594
7594
|
const TimePanel = /* @__PURE__ */ vue.defineComponent({
|
|
7595
|
-
name: COMPONENT_NAME$
|
|
7595
|
+
name: COMPONENT_NAME$19,
|
|
7596
7596
|
props: props$U,
|
|
7597
7597
|
emits: ['pick', 'clear', 'ok'],
|
|
7598
7598
|
setup(props, {
|
|
@@ -7647,7 +7647,7 @@ const TimePanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
7647
7647
|
|
|
7648
7648
|
/** @jsxImportSource vue */
|
|
7649
7649
|
|
|
7650
|
-
const COMPONENT_NAME$
|
|
7650
|
+
const COMPONENT_NAME$18 = 'vc-date-picker';
|
|
7651
7651
|
const getPanel$1 = type => {
|
|
7652
7652
|
if (['daterange', 'datetimerange'].includes(type)) {
|
|
7653
7653
|
return DateRangePanel;
|
|
@@ -7658,7 +7658,7 @@ const getPanel$1 = type => {
|
|
|
7658
7658
|
}
|
|
7659
7659
|
return DatePanel;
|
|
7660
7660
|
};
|
|
7661
|
-
const DatePicker = createPicker(COMPONENT_NAME$
|
|
7661
|
+
const DatePicker = createPicker(COMPONENT_NAME$18, props$10, () => {
|
|
7662
7662
|
const props = vue.getCurrentInstance().props;
|
|
7663
7663
|
const icon = vue.ref('date');
|
|
7664
7664
|
const panel = vue.shallowRef({});
|
|
@@ -7691,9 +7691,9 @@ const props$T = {
|
|
|
7691
7691
|
|
|
7692
7692
|
/** @jsxImportSource vue */
|
|
7693
7693
|
|
|
7694
|
-
const COMPONENT_NAME$
|
|
7694
|
+
const COMPONENT_NAME$17 = 'vc-divider';
|
|
7695
7695
|
const Divider = /* @__PURE__ */ vue.defineComponent({
|
|
7696
|
-
name: COMPONENT_NAME$
|
|
7696
|
+
name: COMPONENT_NAME$17,
|
|
7697
7697
|
props: props$T,
|
|
7698
7698
|
setup(props, {
|
|
7699
7699
|
slots
|
|
@@ -7848,7 +7848,7 @@ const props$Q = {
|
|
|
7848
7848
|
|
|
7849
7849
|
/** @jsxImportSource vue */
|
|
7850
7850
|
|
|
7851
|
-
const COMPONENT_NAME$
|
|
7851
|
+
const COMPONENT_NAME$16 = 'vc-scroller-track';
|
|
7852
7852
|
const BAR_MAP = {
|
|
7853
7853
|
vertical: {
|
|
7854
7854
|
scroll: 'scrollTop',
|
|
@@ -7868,7 +7868,7 @@ const BAR_MAP = {
|
|
|
7868
7868
|
}
|
|
7869
7869
|
};
|
|
7870
7870
|
const Track = /* @__PURE__ */ vue.defineComponent({
|
|
7871
|
-
name: COMPONENT_NAME$
|
|
7871
|
+
name: COMPONENT_NAME$16,
|
|
7872
7872
|
props: props$S,
|
|
7873
7873
|
emits: ['change'],
|
|
7874
7874
|
inheritAttrs: false,
|
|
@@ -8058,9 +8058,9 @@ const Track = /* @__PURE__ */ vue.defineComponent({
|
|
|
8058
8058
|
|
|
8059
8059
|
/** @jsxImportSource vue */
|
|
8060
8060
|
|
|
8061
|
-
const COMPONENT_NAME$
|
|
8061
|
+
const COMPONENT_NAME$15 = 'vc-scroller-bar';
|
|
8062
8062
|
const Bar = /* @__PURE__ */ vue.defineComponent({
|
|
8063
|
-
name: COMPONENT_NAME$
|
|
8063
|
+
name: COMPONENT_NAME$15,
|
|
8064
8064
|
props: props$R,
|
|
8065
8065
|
emits: ['change'],
|
|
8066
8066
|
setup(props, {
|
|
@@ -8275,7 +8275,7 @@ const useScroller = (expose) => {
|
|
|
8275
8275
|
|
|
8276
8276
|
/** @jsxImportSource vue */
|
|
8277
8277
|
|
|
8278
|
-
const COMPONENT_NAME$
|
|
8278
|
+
const COMPONENT_NAME$14 = 'vc-scroller';
|
|
8279
8279
|
|
|
8280
8280
|
/**
|
|
8281
8281
|
* 作为备选方案,目前推荐使用ScrollerWheel
|
|
@@ -8286,7 +8286,7 @@ const COMPONENT_NAME$15 = 'vc-scroller';
|
|
|
8286
8286
|
* 2. 增加了一层嵌套
|
|
8287
8287
|
*/
|
|
8288
8288
|
const Scroller = /* @__PURE__ */ vue.defineComponent({
|
|
8289
|
-
name: COMPONENT_NAME$
|
|
8289
|
+
name: COMPONENT_NAME$14,
|
|
8290
8290
|
props: props$Q,
|
|
8291
8291
|
emits: ['scroll'],
|
|
8292
8292
|
setup(props, {
|
|
@@ -8347,7 +8347,7 @@ const Scroller = /* @__PURE__ */ vue.defineComponent({
|
|
|
8347
8347
|
|
|
8348
8348
|
/** @jsxImportSource vue */
|
|
8349
8349
|
|
|
8350
|
-
const COMPONENT_NAME$
|
|
8350
|
+
const COMPONENT_NAME$13 = 'vc-scroller-wheel';
|
|
8351
8351
|
|
|
8352
8352
|
/**
|
|
8353
8353
|
* 为减少一层嵌套,为去除滚动bar的抖动,使用wheel模拟
|
|
@@ -8369,7 +8369,7 @@ const COMPONENT_NAME$14 = 'vc-scroller-wheel';
|
|
|
8369
8369
|
* 设置scrollTop不会reflow和repaint,不需要考虑transfrom来改变content(transform也只在draw完成)
|
|
8370
8370
|
*/
|
|
8371
8371
|
const ScrollerWheel = /* @__PURE__ */ vue.defineComponent({
|
|
8372
|
-
name: COMPONENT_NAME$
|
|
8372
|
+
name: COMPONENT_NAME$13,
|
|
8373
8373
|
props: Object.assign(props$Q, {
|
|
8374
8374
|
stopPropagation: {
|
|
8375
8375
|
type: Boolean,
|
|
@@ -8548,9 +8548,9 @@ const props$P = {
|
|
|
8548
8548
|
|
|
8549
8549
|
/** @jsxImportSource vue */
|
|
8550
8550
|
|
|
8551
|
-
const COMPONENT_NAME$
|
|
8551
|
+
const COMPONENT_NAME$12 = 'vc-drawer';
|
|
8552
8552
|
const DrawerView = /* @__PURE__ */ vue.defineComponent({
|
|
8553
|
-
name: COMPONENT_NAME$
|
|
8553
|
+
name: COMPONENT_NAME$12,
|
|
8554
8554
|
props: props$P,
|
|
8555
8555
|
emits: ['close', 'update:modelValue', 'visible-change'],
|
|
8556
8556
|
setup(props, {
|
|
@@ -8723,9 +8723,9 @@ const props$O = {
|
|
|
8723
8723
|
|
|
8724
8724
|
/** @jsxImportSource vue */
|
|
8725
8725
|
|
|
8726
|
-
const COMPONENT_NAME$
|
|
8726
|
+
const COMPONENT_NAME$11 = 'vc-dropdown';
|
|
8727
8727
|
const Dropdown = /* @__PURE__ */ vue.defineComponent({
|
|
8728
|
-
name: COMPONENT_NAME$
|
|
8728
|
+
name: COMPONENT_NAME$11,
|
|
8729
8729
|
props: props$O,
|
|
8730
8730
|
setup(props, {
|
|
8731
8731
|
slots
|
|
@@ -8749,9 +8749,9 @@ const props$N = {
|
|
|
8749
8749
|
|
|
8750
8750
|
/** @jsxImportSource vue */
|
|
8751
8751
|
|
|
8752
|
-
const COMPONENT_NAME$
|
|
8752
|
+
const COMPONENT_NAME$10 = 'vc-editor';
|
|
8753
8753
|
const Editor = /* @__PURE__ */ vue.defineComponent({
|
|
8754
|
-
name: COMPONENT_NAME$
|
|
8754
|
+
name: COMPONENT_NAME$10,
|
|
8755
8755
|
props: props$N,
|
|
8756
8756
|
setup(props, {
|
|
8757
8757
|
slots
|
|
@@ -8895,9 +8895,9 @@ const useForm = (expose, options = {}) => {
|
|
|
8895
8895
|
});
|
|
8896
8896
|
};
|
|
8897
8897
|
|
|
8898
|
-
const COMPONENT_NAME
|
|
8898
|
+
const COMPONENT_NAME$$ = "vc-form";
|
|
8899
8899
|
const Form = vue.defineComponent({
|
|
8900
|
-
name: COMPONENT_NAME
|
|
8900
|
+
name: COMPONENT_NAME$$,
|
|
8901
8901
|
props: props$M,
|
|
8902
8902
|
setup(props, { slots, expose }) {
|
|
8903
8903
|
useForm(expose);
|
|
@@ -9217,9 +9217,9 @@ const useFormItem = (expose) => {
|
|
|
9217
9217
|
|
|
9218
9218
|
/** @jsxImportSource vue */
|
|
9219
9219
|
|
|
9220
|
-
const COMPONENT_NAME
|
|
9220
|
+
const COMPONENT_NAME$_ = 'vc-form-item';
|
|
9221
9221
|
const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
9222
|
-
name: COMPONENT_NAME
|
|
9222
|
+
name: COMPONENT_NAME$_,
|
|
9223
9223
|
props: props$L,
|
|
9224
9224
|
setup(props, {
|
|
9225
9225
|
slots,
|
|
@@ -9284,9 +9284,9 @@ const props$K = {
|
|
|
9284
9284
|
}
|
|
9285
9285
|
};
|
|
9286
9286
|
|
|
9287
|
-
const COMPONENT_NAME$
|
|
9287
|
+
const COMPONENT_NAME$Z = "vcm-form";
|
|
9288
9288
|
const MForm = vue.defineComponent({
|
|
9289
|
-
name: COMPONENT_NAME$
|
|
9289
|
+
name: COMPONENT_NAME$Z,
|
|
9290
9290
|
props: props$K,
|
|
9291
9291
|
setup(props, { slots, expose }) {
|
|
9292
9292
|
useForm(expose, {
|
|
@@ -9317,9 +9317,9 @@ const props$J = {
|
|
|
9317
9317
|
|
|
9318
9318
|
/** @jsxImportSource vue */
|
|
9319
9319
|
|
|
9320
|
-
const COMPONENT_NAME$
|
|
9320
|
+
const COMPONENT_NAME$Y = 'vcm-form-item';
|
|
9321
9321
|
const MFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
9322
|
-
name: COMPONENT_NAME$
|
|
9322
|
+
name: COMPONENT_NAME$Y,
|
|
9323
9323
|
props: props$J,
|
|
9324
9324
|
setup(props, {
|
|
9325
9325
|
slots,
|
|
@@ -9373,9 +9373,9 @@ const MFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
9373
9373
|
}
|
|
9374
9374
|
});
|
|
9375
9375
|
|
|
9376
|
-
const COMPONENT_NAME$
|
|
9376
|
+
const COMPONENT_NAME$X = "vc-fragment";
|
|
9377
9377
|
const Fragment = vue.defineComponent({
|
|
9378
|
-
name: COMPONENT_NAME$
|
|
9378
|
+
name: COMPONENT_NAME$X,
|
|
9379
9379
|
setup(_, { slots }) {
|
|
9380
9380
|
return () => vue.h(vue.Fragment, slots.default?.());
|
|
9381
9381
|
}
|
|
@@ -9392,9 +9392,9 @@ const props$I = {
|
|
|
9392
9392
|
|
|
9393
9393
|
/** @jsxImportSource vue */
|
|
9394
9394
|
|
|
9395
|
-
const COMPONENT_NAME$
|
|
9395
|
+
const COMPONENT_NAME$W = 'vc-html-to-image';
|
|
9396
9396
|
const HTMLToImage = /* @__PURE__ */ vue.defineComponent({
|
|
9397
|
-
name: COMPONENT_NAME$
|
|
9397
|
+
name: COMPONENT_NAME$W,
|
|
9398
9398
|
props: props$I,
|
|
9399
9399
|
setup(props, {
|
|
9400
9400
|
slots
|
|
@@ -9470,7 +9470,7 @@ const IMGStore$1 = new IMGStore();
|
|
|
9470
9470
|
|
|
9471
9471
|
/** @jsxImportSource vue */
|
|
9472
9472
|
|
|
9473
|
-
const COMPONENT_NAME$
|
|
9473
|
+
const COMPONENT_NAME$V = 'vc-image';
|
|
9474
9474
|
let isSupportObjectFit = false;
|
|
9475
9475
|
window.addEventListener('DOMContentLoaded', () => {
|
|
9476
9476
|
isSupportObjectFit = !vcShared.IS_SERVER && document.documentElement.style.objectFit !== undefined;
|
|
@@ -9483,7 +9483,7 @@ const ObjectFit = {
|
|
|
9483
9483
|
SCALE_DOWN: 'scale-down'
|
|
9484
9484
|
};
|
|
9485
9485
|
const Image = /* @__PURE__ */ vue.defineComponent({
|
|
9486
|
-
name: COMPONENT_NAME$
|
|
9486
|
+
name: COMPONENT_NAME$V,
|
|
9487
9487
|
inheritAttrs: false,
|
|
9488
9488
|
props: props$H,
|
|
9489
9489
|
setup(props, {
|
|
@@ -9688,9 +9688,9 @@ const props$G = {
|
|
|
9688
9688
|
|
|
9689
9689
|
/** @jsxImportSource vue */
|
|
9690
9690
|
|
|
9691
|
-
const COMPONENT_NAME$
|
|
9691
|
+
const COMPONENT_NAME$U = 'vc-image-crop';
|
|
9692
9692
|
const ImageCrop = /* @__PURE__ */ vue.defineComponent({
|
|
9693
|
-
name: COMPONENT_NAME$
|
|
9693
|
+
name: COMPONENT_NAME$U,
|
|
9694
9694
|
props: props$G,
|
|
9695
9695
|
setup(props, {
|
|
9696
9696
|
slots
|
|
@@ -9714,9 +9714,9 @@ const props$F = {
|
|
|
9714
9714
|
|
|
9715
9715
|
/** @jsxImportSource vue */
|
|
9716
9716
|
|
|
9717
|
-
const COMPONENT_NAME$
|
|
9717
|
+
const COMPONENT_NAME$T = 'vc-image-preview';
|
|
9718
9718
|
const ImagePreview = /* @__PURE__ */ vue.defineComponent({
|
|
9719
|
-
name: COMPONENT_NAME$
|
|
9719
|
+
name: COMPONENT_NAME$T,
|
|
9720
9720
|
props: props$F,
|
|
9721
9721
|
setup(props, {
|
|
9722
9722
|
slots
|
|
@@ -9740,9 +9740,9 @@ const props$E = {
|
|
|
9740
9740
|
|
|
9741
9741
|
/** @jsxImportSource vue */
|
|
9742
9742
|
|
|
9743
|
-
const COMPONENT_NAME$
|
|
9743
|
+
const COMPONENT_NAME$S = 'vc-image-processing';
|
|
9744
9744
|
const ImageProcessing = /* @__PURE__ */ vue.defineComponent({
|
|
9745
|
-
name: COMPONENT_NAME$
|
|
9745
|
+
name: COMPONENT_NAME$S,
|
|
9746
9746
|
props: props$E,
|
|
9747
9747
|
setup(props, {
|
|
9748
9748
|
slots
|
|
@@ -9759,9 +9759,9 @@ const MImageProcessing = ImageProcessing;
|
|
|
9759
9759
|
|
|
9760
9760
|
/** @jsxImportSource vue */
|
|
9761
9761
|
|
|
9762
|
-
const COMPONENT_NAME$
|
|
9762
|
+
const COMPONENT_NAME$R = 'vcm-input';
|
|
9763
9763
|
const MInput = /* @__PURE__ */ vue.defineComponent({
|
|
9764
|
-
name: COMPONENT_NAME$
|
|
9764
|
+
name: COMPONENT_NAME$R,
|
|
9765
9765
|
inheritAttrs: false,
|
|
9766
9766
|
props: {
|
|
9767
9767
|
...props$$,
|
|
@@ -9850,9 +9850,9 @@ const MInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
9850
9850
|
|
|
9851
9851
|
/** @jsxImportSource vue */
|
|
9852
9852
|
|
|
9853
|
-
const COMPONENT_NAME$
|
|
9853
|
+
const COMPONENT_NAME$Q = 'vcm-input-number';
|
|
9854
9854
|
const MInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
9855
|
-
name: COMPONENT_NAME$
|
|
9855
|
+
name: COMPONENT_NAME$Q,
|
|
9856
9856
|
props: props$X,
|
|
9857
9857
|
inheritAttrs: false,
|
|
9858
9858
|
setup(props, {
|
|
@@ -9901,9 +9901,9 @@ const MInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
|
9901
9901
|
|
|
9902
9902
|
/** @jsxImportSource vue */
|
|
9903
9903
|
|
|
9904
|
-
const COMPONENT_NAME$
|
|
9904
|
+
const COMPONENT_NAME$P = 'vcm-input-search';
|
|
9905
9905
|
const MInputSearch = /* @__PURE__ */ vue.defineComponent({
|
|
9906
|
-
name: COMPONENT_NAME$
|
|
9906
|
+
name: COMPONENT_NAME$P,
|
|
9907
9907
|
props: {
|
|
9908
9908
|
...props$W,
|
|
9909
9909
|
cancelText: {
|
|
@@ -9980,9 +9980,9 @@ const props$D = {
|
|
|
9980
9980
|
}
|
|
9981
9981
|
};
|
|
9982
9982
|
|
|
9983
|
-
const COMPONENT_NAME$
|
|
9983
|
+
const COMPONENT_NAME$O = "vcm-list";
|
|
9984
9984
|
const MList = vue.defineComponent({
|
|
9985
|
-
name: COMPONENT_NAME$
|
|
9985
|
+
name: COMPONENT_NAME$O,
|
|
9986
9986
|
props: props$D,
|
|
9987
9987
|
setup(props, { slots }) {
|
|
9988
9988
|
vue.provide("vc-list", { props });
|
|
@@ -10037,10 +10037,10 @@ const props$C = {
|
|
|
10037
10037
|
|
|
10038
10038
|
/** @jsxImportSource vue */
|
|
10039
10039
|
|
|
10040
|
-
const COMPONENT_NAME$
|
|
10040
|
+
const COMPONENT_NAME$N = 'vcm-list-item';
|
|
10041
10041
|
const HTTP_REGEX = /[a-zA-z]+:\/\/[^\s]*/;
|
|
10042
10042
|
const MListItem = /* @__PURE__ */ vue.defineComponent({
|
|
10043
|
-
name: COMPONENT_NAME$
|
|
10043
|
+
name: COMPONENT_NAME$N,
|
|
10044
10044
|
props: props$C,
|
|
10045
10045
|
emits: ['click'],
|
|
10046
10046
|
setup(props, {
|
|
@@ -10134,11 +10134,11 @@ const props$B = {
|
|
|
10134
10134
|
|
|
10135
10135
|
/** @jsxImportSource vue */
|
|
10136
10136
|
|
|
10137
|
-
const COMPONENT_NAME$
|
|
10137
|
+
const COMPONENT_NAME$M = 'vc-marquee';
|
|
10138
10138
|
const ANIMATION = $.prefixStyle('animation').camel;
|
|
10139
10139
|
const TRANSFORM_KEBAB = $.prefixStyle('transform').kebab;
|
|
10140
10140
|
const Marquee = /* @__PURE__ */ vue.defineComponent({
|
|
10141
|
-
name: COMPONENT_NAME$
|
|
10141
|
+
name: COMPONENT_NAME$M,
|
|
10142
10142
|
props: props$B,
|
|
10143
10143
|
setup(props, {
|
|
10144
10144
|
slots
|
|
@@ -10199,12 +10199,16 @@ const props$A = {
|
|
|
10199
10199
|
tag: {
|
|
10200
10200
|
type: String,
|
|
10201
10201
|
default: "div"
|
|
10202
|
+
},
|
|
10203
|
+
fill: {
|
|
10204
|
+
type: Boolean,
|
|
10205
|
+
default: true
|
|
10202
10206
|
}
|
|
10203
10207
|
};
|
|
10204
10208
|
|
|
10205
|
-
const COMPONENT_NAME$
|
|
10209
|
+
const COMPONENT_NAME$L = "vc-resizer";
|
|
10206
10210
|
const Resizer = vue.defineComponent({
|
|
10207
|
-
name: COMPONENT_NAME$
|
|
10211
|
+
name: COMPONENT_NAME$L,
|
|
10208
10212
|
props: props$A,
|
|
10209
10213
|
emit: ["resize", "change"],
|
|
10210
10214
|
setup(props, { emit, slots, expose }) {
|
|
@@ -10253,13 +10257,13 @@ const Resizer = vue.defineComponent({
|
|
|
10253
10257
|
helperResize.Resize.off(current.value, handleResize);
|
|
10254
10258
|
timer && clearTimeout(timer);
|
|
10255
10259
|
});
|
|
10256
|
-
expose({ refresh });
|
|
10260
|
+
expose({ refresh, offsetHeight: height, offsetWidth: width });
|
|
10257
10261
|
return () => {
|
|
10258
10262
|
return vue.h(
|
|
10259
10263
|
props.tag,
|
|
10260
10264
|
{
|
|
10261
10265
|
ref: current,
|
|
10262
|
-
class: "vc-resizer"
|
|
10266
|
+
class: ["vc-resizer", { "is-fill": props.fill }]
|
|
10263
10267
|
},
|
|
10264
10268
|
slots.default?.(currentExposed.value)
|
|
10265
10269
|
);
|
|
@@ -10351,10 +10355,10 @@ const props$z = {
|
|
|
10351
10355
|
|
|
10352
10356
|
/** @jsxImportSource vue */
|
|
10353
10357
|
|
|
10354
|
-
const COMPONENT_NAME$
|
|
10358
|
+
const COMPONENT_NAME$K = 'vc-modal';
|
|
10355
10359
|
let zIndexNumber = 1002;
|
|
10356
10360
|
const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
10357
|
-
name: COMPONENT_NAME$
|
|
10361
|
+
name: COMPONENT_NAME$K,
|
|
10358
10362
|
emits: ['update:modelValue', 'close', 'portal-fulfilled', 'visible-change', 'ok', 'cancel'],
|
|
10359
10363
|
props: props$z,
|
|
10360
10364
|
setup(props, {
|
|
@@ -10781,9 +10785,9 @@ const props$y = {
|
|
|
10781
10785
|
|
|
10782
10786
|
/** @jsxImportSource vue */
|
|
10783
10787
|
|
|
10784
|
-
const COMPONENT_NAME$
|
|
10788
|
+
const COMPONENT_NAME$J = 'vc-modal';
|
|
10785
10789
|
const MModalView = /* @__PURE__ */ vue.defineComponent({
|
|
10786
|
-
name: COMPONENT_NAME$
|
|
10790
|
+
name: COMPONENT_NAME$J,
|
|
10787
10791
|
emits: ['update:modelValue', 'portal-fulfilled', 'close', 'ok', 'cancel'],
|
|
10788
10792
|
props: props$y,
|
|
10789
10793
|
setup(props, {
|
|
@@ -10995,9 +10999,9 @@ const props$x = {
|
|
|
10995
10999
|
|
|
10996
11000
|
/** @jsxImportSource vue */
|
|
10997
11001
|
|
|
10998
|
-
const COMPONENT_NAME$
|
|
11002
|
+
const COMPONENT_NAME$I = 'vc-notice';
|
|
10999
11003
|
const NoticeView = /* @__PURE__ */ vue.defineComponent({
|
|
11000
|
-
name: COMPONENT_NAME$
|
|
11004
|
+
name: COMPONENT_NAME$I,
|
|
11001
11005
|
props: props$x,
|
|
11002
11006
|
emits: ['portal-fulfilled', 'close', 'before-close'],
|
|
11003
11007
|
setup(props, {
|
|
@@ -11170,9 +11174,9 @@ const props$w = {
|
|
|
11170
11174
|
|
|
11171
11175
|
/** @jsxImportSource vue */
|
|
11172
11176
|
|
|
11173
|
-
const COMPONENT_NAME$
|
|
11177
|
+
const COMPONENT_NAME$H = 'vc-option';
|
|
11174
11178
|
const Option$1 = /* @__PURE__ */ vue.defineComponent({
|
|
11175
|
-
name: COMPONENT_NAME$
|
|
11179
|
+
name: COMPONENT_NAME$H,
|
|
11176
11180
|
props: props$w,
|
|
11177
11181
|
setup(props, {
|
|
11178
11182
|
slots
|
|
@@ -11285,9 +11289,9 @@ const props$u = {
|
|
|
11285
11289
|
|
|
11286
11290
|
/** @jsxImportSource vue */
|
|
11287
11291
|
|
|
11288
|
-
const COMPONENT_NAME$
|
|
11292
|
+
const COMPONENT_NAME$G = 'vc-tag';
|
|
11289
11293
|
const Tag = /* @__PURE__ */ vue.defineComponent({
|
|
11290
|
-
name: COMPONENT_NAME$
|
|
11294
|
+
name: COMPONENT_NAME$G,
|
|
11291
11295
|
props: props$u,
|
|
11292
11296
|
emits: ['close', 'change'],
|
|
11293
11297
|
setup(props, {
|
|
@@ -11356,9 +11360,9 @@ const props$t = {
|
|
|
11356
11360
|
|
|
11357
11361
|
/** @jsxImportSource vue */
|
|
11358
11362
|
|
|
11359
|
-
const COMPONENT_NAME$
|
|
11363
|
+
const COMPONENT_NAME$F = 'vc-select-option';
|
|
11360
11364
|
const Option = /* @__PURE__ */ vue.defineComponent({
|
|
11361
|
-
name: COMPONENT_NAME$
|
|
11365
|
+
name: COMPONENT_NAME$F,
|
|
11362
11366
|
props: props$t,
|
|
11363
11367
|
setup(props, {
|
|
11364
11368
|
slots
|
|
@@ -11431,9 +11435,9 @@ const props$s = {
|
|
|
11431
11435
|
|
|
11432
11436
|
/** @jsxImportSource vue */
|
|
11433
11437
|
|
|
11434
|
-
const COMPONENT_NAME$
|
|
11438
|
+
const COMPONENT_NAME$E = 'vc-select-option-group';
|
|
11435
11439
|
const OptionGroup = /* @__PURE__ */ vue.defineComponent({
|
|
11436
|
-
name: COMPONENT_NAME$
|
|
11440
|
+
name: COMPONENT_NAME$E,
|
|
11437
11441
|
props: props$s,
|
|
11438
11442
|
setup(props, {
|
|
11439
11443
|
slots
|
|
@@ -11531,9 +11535,9 @@ const props$r = {
|
|
|
11531
11535
|
function _isSlot$1(s) {
|
|
11532
11536
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
11533
11537
|
}
|
|
11534
|
-
const COMPONENT_NAME$
|
|
11538
|
+
const COMPONENT_NAME$D = 'vc-select';
|
|
11535
11539
|
const Select = /* @__PURE__ */ vue.defineComponent({
|
|
11536
|
-
name: COMPONENT_NAME$
|
|
11540
|
+
name: COMPONENT_NAME$D,
|
|
11537
11541
|
props: props$r,
|
|
11538
11542
|
emits: ['ready', 'close', 'visible-change', 'clear', 'change', 'update:modelValue'],
|
|
11539
11543
|
setup(props, {
|
|
@@ -11777,9 +11781,9 @@ const Select = /* @__PURE__ */ vue.defineComponent({
|
|
|
11777
11781
|
|
|
11778
11782
|
/** @jsxImportSource vue */
|
|
11779
11783
|
|
|
11780
|
-
const COMPONENT_NAME$
|
|
11784
|
+
const COMPONENT_NAME$C = 'vc-pagination';
|
|
11781
11785
|
const Pagination = /* @__PURE__ */ vue.defineComponent({
|
|
11782
|
-
name: COMPONENT_NAME$
|
|
11786
|
+
name: COMPONENT_NAME$C,
|
|
11783
11787
|
props: props$v,
|
|
11784
11788
|
emits: ['update:current', 'change', 'page-size-change'],
|
|
11785
11789
|
setup(props, {
|
|
@@ -11977,9 +11981,9 @@ const props$q = {
|
|
|
11977
11981
|
|
|
11978
11982
|
/** @jsxImportSource vue */
|
|
11979
11983
|
|
|
11980
|
-
const COMPONENT_NAME$
|
|
11984
|
+
const COMPONENT_NAME$B = 'vc-picker';
|
|
11981
11985
|
const Picker = /* @__PURE__ */ vue.defineComponent({
|
|
11982
|
-
name: COMPONENT_NAME$
|
|
11986
|
+
name: COMPONENT_NAME$B,
|
|
11983
11987
|
props: props$q,
|
|
11984
11988
|
setup(props, {
|
|
11985
11989
|
slots
|
|
@@ -12003,9 +12007,9 @@ const props$p = {
|
|
|
12003
12007
|
|
|
12004
12008
|
/** @jsxImportSource vue */
|
|
12005
12009
|
|
|
12006
|
-
const COMPONENT_NAME$
|
|
12010
|
+
const COMPONENT_NAME$A = 'vc-popconfirm';
|
|
12007
12011
|
const Popconfirm = /* @__PURE__ */ vue.defineComponent({
|
|
12008
|
-
name: COMPONENT_NAME$
|
|
12012
|
+
name: COMPONENT_NAME$A,
|
|
12009
12013
|
props: props$p,
|
|
12010
12014
|
setup(props, {
|
|
12011
12015
|
slots
|
|
@@ -12031,9 +12035,9 @@ const props$o = {
|
|
|
12031
12035
|
|
|
12032
12036
|
/** @jsxImportSource vue */
|
|
12033
12037
|
|
|
12034
|
-
const COMPONENT_NAME$
|
|
12038
|
+
const COMPONENT_NAME$z = 'vc-popup';
|
|
12035
12039
|
const Popup = /* @__PURE__ */ vue.defineComponent({
|
|
12036
|
-
name: COMPONENT_NAME$
|
|
12040
|
+
name: COMPONENT_NAME$z,
|
|
12037
12041
|
props: props$o,
|
|
12038
12042
|
setup(props, {
|
|
12039
12043
|
slots
|
|
@@ -12060,9 +12064,9 @@ const props$n = {
|
|
|
12060
12064
|
|
|
12061
12065
|
/** @jsxImportSource vue */
|
|
12062
12066
|
|
|
12063
|
-
const COMPONENT_NAME$
|
|
12067
|
+
const COMPONENT_NAME$y = 'vc-print';
|
|
12064
12068
|
const Print = /* @__PURE__ */ vue.defineComponent({
|
|
12065
|
-
name: COMPONENT_NAME$
|
|
12069
|
+
name: COMPONENT_NAME$y,
|
|
12066
12070
|
props: props$n,
|
|
12067
12071
|
setup(props, {
|
|
12068
12072
|
expose,
|
|
@@ -12126,6 +12130,12 @@ const props$m = {
|
|
|
12126
12130
|
type: Boolean,
|
|
12127
12131
|
default: true
|
|
12128
12132
|
},
|
|
12133
|
+
textStyle: {
|
|
12134
|
+
type: [String, Object]
|
|
12135
|
+
},
|
|
12136
|
+
textClass: {
|
|
12137
|
+
type: [String, Object]
|
|
12138
|
+
},
|
|
12129
12139
|
animated: {
|
|
12130
12140
|
type: Boolean,
|
|
12131
12141
|
default: false
|
|
@@ -12158,9 +12168,9 @@ const props$m = {
|
|
|
12158
12168
|
|
|
12159
12169
|
/** @jsxImportSource vue */
|
|
12160
12170
|
|
|
12161
|
-
const COMPONENT_NAME$
|
|
12171
|
+
const COMPONENT_NAME$x = 'vc-progress-circle';
|
|
12162
12172
|
const Circle = /* @__PURE__ */ vue.defineComponent({
|
|
12163
|
-
name: COMPONENT_NAME$
|
|
12173
|
+
name: COMPONENT_NAME$x,
|
|
12164
12174
|
props: props$m,
|
|
12165
12175
|
setup(props, {
|
|
12166
12176
|
slots
|
|
@@ -12209,17 +12219,20 @@ const Circle = /* @__PURE__ */ vue.defineComponent({
|
|
|
12209
12219
|
"stroke-linecap": "round",
|
|
12210
12220
|
"fill-opacity": "0"
|
|
12211
12221
|
}, null)]), vue.createVNode("div", {
|
|
12212
|
-
"class":
|
|
12213
|
-
}, [slots.default ? slots.default() : props.showText && vue.createVNode("span",
|
|
12222
|
+
"class": ['vc-progress-circle__inner']
|
|
12223
|
+
}, [slots.default ? slots.default() : props.showText && vue.createVNode("span", {
|
|
12224
|
+
"class": props.textClass,
|
|
12225
|
+
"style": props.textStyle
|
|
12226
|
+
}, [`${props.percent}%`])])])]);
|
|
12214
12227
|
};
|
|
12215
12228
|
}
|
|
12216
12229
|
});
|
|
12217
12230
|
|
|
12218
12231
|
/** @jsxImportSource vue */
|
|
12219
12232
|
|
|
12220
|
-
const COMPONENT_NAME$
|
|
12233
|
+
const COMPONENT_NAME$w = 'vc-progress-line';
|
|
12221
12234
|
const Line = /* @__PURE__ */ vue.defineComponent({
|
|
12222
|
-
name: COMPONENT_NAME$
|
|
12235
|
+
name: COMPONENT_NAME$w,
|
|
12223
12236
|
props: props$m,
|
|
12224
12237
|
setup(props) {
|
|
12225
12238
|
const colorStyle = vue.computed(() => {
|
|
@@ -12248,12 +12261,15 @@ const Line = /* @__PURE__ */ vue.defineComponent({
|
|
|
12248
12261
|
"style": innerStyle.value,
|
|
12249
12262
|
"class": [classes.value, 'vc-progress-line__inner']
|
|
12250
12263
|
}, null)])]), props.showText && vue.createVNode("div", {
|
|
12251
|
-
"class":
|
|
12264
|
+
"class": ['vc-progress-line__percent']
|
|
12252
12265
|
}, [['error', 'success'].includes(props.status) ? vue.createVNode(Icon, {
|
|
12253
12266
|
"type": props.status,
|
|
12254
12267
|
"style": colorStyle.value,
|
|
12255
12268
|
"class": [`is-${props.status}`, 'vc-progress-line__icon']
|
|
12256
|
-
}, null) : vue.createVNode("span",
|
|
12269
|
+
}, null) : vue.createVNode("span", {
|
|
12270
|
+
"class": props.textClass,
|
|
12271
|
+
"style": props.textStyle
|
|
12272
|
+
}, [`${props.percent}%`])])]);
|
|
12257
12273
|
};
|
|
12258
12274
|
}
|
|
12259
12275
|
});
|
|
@@ -12263,9 +12279,9 @@ const Line = /* @__PURE__ */ vue.defineComponent({
|
|
|
12263
12279
|
function _isSlot(s) {
|
|
12264
12280
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
12265
12281
|
}
|
|
12266
|
-
const COMPONENT_NAME$
|
|
12282
|
+
const COMPONENT_NAME$v = 'vc-progress';
|
|
12267
12283
|
const Progress = /* @__PURE__ */ vue.defineComponent({
|
|
12268
|
-
name: COMPONENT_NAME$
|
|
12284
|
+
name: COMPONENT_NAME$v,
|
|
12269
12285
|
props: props$m,
|
|
12270
12286
|
setup(props, {
|
|
12271
12287
|
slots
|
|
@@ -12417,9 +12433,9 @@ const useRadio = () => {
|
|
|
12417
12433
|
|
|
12418
12434
|
/** @jsxImportSource vue */
|
|
12419
12435
|
|
|
12420
|
-
const COMPONENT_NAME$
|
|
12436
|
+
const COMPONENT_NAME$u = 'vc-radio';
|
|
12421
12437
|
const Radio = /* @__PURE__ */ vue.defineComponent({
|
|
12422
|
-
name: COMPONENT_NAME$
|
|
12438
|
+
name: COMPONENT_NAME$u,
|
|
12423
12439
|
props: props$l,
|
|
12424
12440
|
emits: ['update:modelValue', 'change'],
|
|
12425
12441
|
setup(props, {
|
|
@@ -12530,9 +12546,9 @@ const useRadioGroup = () => {
|
|
|
12530
12546
|
|
|
12531
12547
|
/** @jsxImportSource vue */
|
|
12532
12548
|
|
|
12533
|
-
const COMPONENT_NAME$
|
|
12549
|
+
const COMPONENT_NAME$t = 'vc-radio-group';
|
|
12534
12550
|
const RadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
12535
|
-
name: COMPONENT_NAME$
|
|
12551
|
+
name: COMPONENT_NAME$t,
|
|
12536
12552
|
props: props$k,
|
|
12537
12553
|
emits: ['update:modelValue', 'change'],
|
|
12538
12554
|
setup(props, {
|
|
@@ -12554,9 +12570,9 @@ const RadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
12554
12570
|
|
|
12555
12571
|
/** @jsxImportSource vue */
|
|
12556
12572
|
|
|
12557
|
-
const COMPONENT_NAME$
|
|
12573
|
+
const COMPONENT_NAME$s = 'vcm-radio';
|
|
12558
12574
|
const MRadio = /* @__PURE__ */ vue.defineComponent({
|
|
12559
|
-
name: COMPONENT_NAME$
|
|
12575
|
+
name: COMPONENT_NAME$s,
|
|
12560
12576
|
props: props$l,
|
|
12561
12577
|
emits: ['update:modelValue', 'change'],
|
|
12562
12578
|
setup(props, {
|
|
@@ -12597,9 +12613,9 @@ const MRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
12597
12613
|
|
|
12598
12614
|
/** @jsxImportSource vue */
|
|
12599
12615
|
|
|
12600
|
-
const COMPONENT_NAME$
|
|
12616
|
+
const COMPONENT_NAME$r = 'vcm-radio-group';
|
|
12601
12617
|
const MRadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
12602
|
-
name: COMPONENT_NAME$
|
|
12618
|
+
name: COMPONENT_NAME$r,
|
|
12603
12619
|
props: props$k,
|
|
12604
12620
|
emits: ['update:modelValue', 'change'],
|
|
12605
12621
|
setup(props, {
|
|
@@ -12628,9 +12644,9 @@ const props$j = {
|
|
|
12628
12644
|
|
|
12629
12645
|
/** @jsxImportSource vue */
|
|
12630
12646
|
|
|
12631
|
-
const COMPONENT_NAME$
|
|
12647
|
+
const COMPONENT_NAME$q = 'vc-rate';
|
|
12632
12648
|
const Rate = /* @__PURE__ */ vue.defineComponent({
|
|
12633
|
-
name: COMPONENT_NAME$
|
|
12649
|
+
name: COMPONENT_NAME$q,
|
|
12634
12650
|
props: props$j,
|
|
12635
12651
|
setup(props, {
|
|
12636
12652
|
slots
|
|
@@ -12698,9 +12714,9 @@ const props$i = {
|
|
|
12698
12714
|
|
|
12699
12715
|
/** @jsxImportSource vue */
|
|
12700
12716
|
|
|
12701
|
-
const COMPONENT_NAME$
|
|
12717
|
+
const COMPONENT_NAME$p = 'vc-recycle-list-scroll-state';
|
|
12702
12718
|
const ScrollState = /* @__PURE__ */ vue.defineComponent({
|
|
12703
|
-
name: COMPONENT_NAME$
|
|
12719
|
+
name: COMPONENT_NAME$p,
|
|
12704
12720
|
setup(_, {
|
|
12705
12721
|
slots
|
|
12706
12722
|
}) {
|
|
@@ -12830,12 +12846,12 @@ const useDirectionKeys = () => {
|
|
|
12830
12846
|
|
|
12831
12847
|
/** @jsxImportSource vue */
|
|
12832
12848
|
|
|
12833
|
-
const COMPONENT_NAME$
|
|
12849
|
+
const COMPONENT_NAME$o = 'vc-recycle-list-container';
|
|
12834
12850
|
|
|
12835
12851
|
// TODO: 抽离
|
|
12836
12852
|
const transformKey = $__namespace.prefixStyle('transform').camel;
|
|
12837
12853
|
const Container = /* @__PURE__ */ vue.defineComponent({
|
|
12838
|
-
name: COMPONENT_NAME$
|
|
12854
|
+
name: COMPONENT_NAME$o,
|
|
12839
12855
|
props: props$h,
|
|
12840
12856
|
emits: ['refresh'],
|
|
12841
12857
|
setup(props, {
|
|
@@ -12933,51 +12949,6 @@ const Container = /* @__PURE__ */ vue.defineComponent({
|
|
|
12933
12949
|
|
|
12934
12950
|
/** @jsxImportSource vue */
|
|
12935
12951
|
|
|
12936
|
-
const COMPONENT_NAME$o = 'vc-recycle-list-item';
|
|
12937
|
-
const Item = /* @__PURE__ */ vue.defineComponent({
|
|
12938
|
-
name: COMPONENT_NAME$o,
|
|
12939
|
-
props: {
|
|
12940
|
-
vertical: {
|
|
12941
|
-
type: Boolean,
|
|
12942
|
-
default: true
|
|
12943
|
-
}
|
|
12944
|
-
},
|
|
12945
|
-
emits: ['resize', 'change'],
|
|
12946
|
-
setup(_, {
|
|
12947
|
-
emit,
|
|
12948
|
-
slots
|
|
12949
|
-
}) {
|
|
12950
|
-
const K = useDirectionKeys();
|
|
12951
|
-
const current = vue.ref();
|
|
12952
|
-
const offsetSize = vue.ref(0);
|
|
12953
|
-
let hasInitial = false;
|
|
12954
|
-
const handleResize = () => {
|
|
12955
|
-
const v = current.value.getBoundingClientRect()[K.size];
|
|
12956
|
-
const changed = offsetSize.value != v;
|
|
12957
|
-
if (changed) {
|
|
12958
|
-
offsetSize.value = v;
|
|
12959
|
-
hasInitial && emit('resize', v);
|
|
12960
|
-
emit('change', v);
|
|
12961
|
-
}
|
|
12962
|
-
hasInitial = true;
|
|
12963
|
-
};
|
|
12964
|
-
vue.onMounted(() => {
|
|
12965
|
-
helperResize.Resize.on(current.value, handleResize); // 首次会执行一次
|
|
12966
|
-
});
|
|
12967
|
-
vue.onBeforeUnmount(() => {
|
|
12968
|
-
helperResize.Resize.off(current.value, handleResize);
|
|
12969
|
-
});
|
|
12970
|
-
return () => {
|
|
12971
|
-
return vue.createVNode("div", {
|
|
12972
|
-
"ref": current,
|
|
12973
|
-
"class": "vc-recycle-list-item"
|
|
12974
|
-
}, [slots?.default?.()]);
|
|
12975
|
-
};
|
|
12976
|
-
}
|
|
12977
|
-
});
|
|
12978
|
-
|
|
12979
|
-
/** @jsxImportSource vue */
|
|
12980
|
-
|
|
12981
12952
|
const COMPONENT_NAME$n = 'vc-recycle-list';
|
|
12982
12953
|
const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
12983
12954
|
name: COMPONENT_NAME$n,
|
|
@@ -13488,7 +13459,7 @@ const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
|
13488
13459
|
// eslint-disable-next-line @stylistic/max-len
|
|
13489
13460
|
slots.placeholder?.() || renderer.value.placeholder && vue.createVNode(Customer, {
|
|
13490
13461
|
"render": renderer.value.placeholder
|
|
13491
|
-
}, null)]), !item.isPlaceholder && vue.createVNode(
|
|
13462
|
+
}, null)]), !item.isPlaceholder && vue.createVNode(Resizer, {
|
|
13492
13463
|
"ref": v => curloads.value[item.id] = v,
|
|
13493
13464
|
"class": {
|
|
13494
13465
|
'vc-recycle-list__transition': hasPlaceholder.value
|
|
@@ -13496,11 +13467,11 @@ const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
|
13496
13467
|
"style": {
|
|
13497
13468
|
opacity: item.loaded
|
|
13498
13469
|
},
|
|
13470
|
+
"fill": false,
|
|
13499
13471
|
"data-row": item.id,
|
|
13500
13472
|
"data-column": item.column,
|
|
13501
13473
|
"data-size": item.size,
|
|
13502
13474
|
"data-position": item.position,
|
|
13503
|
-
"vertical": props.vertical,
|
|
13504
13475
|
"onResize": handleResize
|
|
13505
13476
|
}, {
|
|
13506
13477
|
default: () => [slots.default?.({
|
|
@@ -13906,14 +13877,14 @@ const columnsToRowsEffect = (v) => {
|
|
|
13906
13877
|
}
|
|
13907
13878
|
}
|
|
13908
13879
|
if (column.children) {
|
|
13909
|
-
let
|
|
13880
|
+
let colspan = 0;
|
|
13910
13881
|
column.children.forEach((subColumn) => {
|
|
13911
13882
|
traverse(subColumn, column);
|
|
13912
|
-
|
|
13883
|
+
colspan += subColumn.colspan;
|
|
13913
13884
|
});
|
|
13914
|
-
column.
|
|
13885
|
+
column.colspan = colspan;
|
|
13915
13886
|
} else {
|
|
13916
|
-
column.
|
|
13887
|
+
column.colspan = 1;
|
|
13917
13888
|
}
|
|
13918
13889
|
};
|
|
13919
13890
|
v.forEach((column) => {
|
|
@@ -13927,9 +13898,9 @@ const columnsToRowsEffect = (v) => {
|
|
|
13927
13898
|
const allColumns = getAllColumns(v);
|
|
13928
13899
|
allColumns.forEach((column) => {
|
|
13929
13900
|
if (!column.children) {
|
|
13930
|
-
column.
|
|
13901
|
+
column.rowspan = maxLevel - column.level + 1;
|
|
13931
13902
|
} else {
|
|
13932
|
-
column.
|
|
13903
|
+
column.rowspan = 1;
|
|
13933
13904
|
}
|
|
13934
13905
|
rows[column.level - 1].push(column);
|
|
13935
13906
|
});
|
|
@@ -13998,6 +13969,7 @@ class BaseWatcher {
|
|
|
13998
13969
|
selection: [],
|
|
13999
13970
|
reserveSelection: false,
|
|
14000
13971
|
selectable: null,
|
|
13972
|
+
expandSelectable: null,
|
|
14001
13973
|
hoverRowIndex: null,
|
|
14002
13974
|
// Current
|
|
14003
13975
|
currentRow: null,
|
|
@@ -14524,6 +14496,7 @@ class Store extends BaseWatcher {
|
|
|
14524
14496
|
this.layout = new Layout(this);
|
|
14525
14497
|
const { props } = options.table;
|
|
14526
14498
|
lodash.merge(this.states, {
|
|
14499
|
+
expandSelectable: props.expandSelectable,
|
|
14527
14500
|
treeLazy: props.lazy || false,
|
|
14528
14501
|
treeLazyColumnIdentifier: props.treeMap.hasChildren || "hasChildren",
|
|
14529
14502
|
treeChildrenColumnName: props.treeMap.children || "children"
|
|
@@ -14846,8 +14819,7 @@ class Store extends BaseWatcher {
|
|
|
14846
14819
|
}
|
|
14847
14820
|
|
|
14848
14821
|
const useStates = (mapper, $store) => {
|
|
14849
|
-
const
|
|
14850
|
-
const store = $store || instance.proxy?.store;
|
|
14822
|
+
const store = $store || vue.inject("vc-table")?.store;
|
|
14851
14823
|
const states = vue.reactive({});
|
|
14852
14824
|
Object.keys(mapper).forEach((key) => {
|
|
14853
14825
|
const value = mapper[key];
|
|
@@ -14882,16 +14854,16 @@ const NormalList = /* @__PURE__ */ vue.defineComponent({
|
|
|
14882
14854
|
emit,
|
|
14883
14855
|
slots
|
|
14884
14856
|
}) {
|
|
14885
|
-
const handleResize = (
|
|
14857
|
+
const handleResize = (e, index) => {
|
|
14886
14858
|
emit('row-resize', {
|
|
14887
14859
|
index,
|
|
14888
|
-
size
|
|
14860
|
+
size: e.height
|
|
14889
14861
|
});
|
|
14890
14862
|
};
|
|
14891
14863
|
return () => {
|
|
14892
14864
|
return props.data.map((row, index) => {
|
|
14893
|
-
return vue.createVNode(
|
|
14894
|
-
"
|
|
14865
|
+
return vue.createVNode(Resizer, {
|
|
14866
|
+
"fill": false,
|
|
14895
14867
|
"onChange": e => handleResize(e, index)
|
|
14896
14868
|
}, {
|
|
14897
14869
|
default: () => [slots.default?.({
|
|
@@ -14907,7 +14879,6 @@ const NormalList = /* @__PURE__ */ vue.defineComponent({
|
|
|
14907
14879
|
const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
14908
14880
|
name: 'vc-table-body',
|
|
14909
14881
|
props: {
|
|
14910
|
-
store: Object,
|
|
14911
14882
|
fixed: String,
|
|
14912
14883
|
heightStyle: [Object, Array, String]
|
|
14913
14884
|
},
|
|
@@ -14918,6 +14889,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14918
14889
|
}) {
|
|
14919
14890
|
const instance = vue.getCurrentInstance();
|
|
14920
14891
|
const table = vue.inject('vc-table');
|
|
14892
|
+
const allowRender = vue.ref(false);
|
|
14921
14893
|
const states = useStates({
|
|
14922
14894
|
data: 'data',
|
|
14923
14895
|
list: 'list',
|
|
@@ -14935,8 +14907,8 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14935
14907
|
}) => type === 'default')
|
|
14936
14908
|
});
|
|
14937
14909
|
const wrapper = vue.ref();
|
|
14938
|
-
vue.watch(() =>
|
|
14939
|
-
if (!
|
|
14910
|
+
vue.watch(() => table.store.states.hoverRowIndex, (v, oldV) => {
|
|
14911
|
+
if (!table.store.states.isComplex || vcShared.IS_SERVER) return;
|
|
14940
14912
|
Utils.raf(() => {
|
|
14941
14913
|
const rows = instance.vnode.el.querySelectorAll('.vc-table__row');
|
|
14942
14914
|
const oldRow = rows[oldV];
|
|
@@ -14980,7 +14952,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14980
14952
|
};
|
|
14981
14953
|
const getRowClass = (row, rowIndex) => {
|
|
14982
14954
|
const classes = ['vc-table__row'];
|
|
14983
|
-
if (table.props.highlight && row ===
|
|
14955
|
+
if (table.props.highlight && row === table.store.states.currentRow) {
|
|
14984
14956
|
classes.push('current-row');
|
|
14985
14957
|
}
|
|
14986
14958
|
if (table.props.stripe && rowIndex % 2 === 1) {
|
|
@@ -14995,7 +14967,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14995
14967
|
rowIndex
|
|
14996
14968
|
}));
|
|
14997
14969
|
}
|
|
14998
|
-
if (
|
|
14970
|
+
if (table.store.states.expandRows.indexOf(row) > -1) {
|
|
14999
14971
|
classes.push('expanded');
|
|
15000
14972
|
}
|
|
15001
14973
|
return classes;
|
|
@@ -15078,10 +15050,10 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15078
15050
|
table.emit('cell-mouse-leave', oldHoverState.row, oldHoverState.column, oldHoverState.cell, e);
|
|
15079
15051
|
};
|
|
15080
15052
|
const handleMouseEnter = lodashEs.debounce(index => {
|
|
15081
|
-
|
|
15053
|
+
table.store.setHoverRow(index);
|
|
15082
15054
|
}, 30);
|
|
15083
15055
|
const handleMouseLeave = lodashEs.debounce(() => {
|
|
15084
|
-
|
|
15056
|
+
table.store.setHoverRow(null);
|
|
15085
15057
|
}, 30);
|
|
15086
15058
|
const handleEvent = (e, row, name) => {
|
|
15087
15059
|
const cell = getCell(e);
|
|
@@ -15101,10 +15073,13 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15101
15073
|
handleEvent(e, row, 'dblclick');
|
|
15102
15074
|
};
|
|
15103
15075
|
const handleClick = (e, row) => {
|
|
15104
|
-
|
|
15076
|
+
table.store.setCurrentRow(row);
|
|
15105
15077
|
handleEvent(e, row, 'click');
|
|
15106
15078
|
};
|
|
15107
15079
|
const renderRow = (rowData, rowIndex) => {
|
|
15080
|
+
const {
|
|
15081
|
+
rowHeight
|
|
15082
|
+
} = table.props;
|
|
15108
15083
|
const {
|
|
15109
15084
|
data: row
|
|
15110
15085
|
} = rowData;
|
|
@@ -15112,7 +15087,8 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15112
15087
|
columns
|
|
15113
15088
|
} = states;
|
|
15114
15089
|
const key = getValueOfRow(row, rowIndex);
|
|
15115
|
-
const selected =
|
|
15090
|
+
const selected = table.store.isSelected(row);
|
|
15091
|
+
const height = rowHeight || rowData.height;
|
|
15116
15092
|
return vue.createVNode("div", {
|
|
15117
15093
|
"key": key,
|
|
15118
15094
|
"class": [getRowClass(row, rowIndex), 'vc-table__tr'],
|
|
@@ -15129,7 +15105,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15129
15105
|
} = column;
|
|
15130
15106
|
const sizeStyle = {
|
|
15131
15107
|
width: `${realWidth}px`,
|
|
15132
|
-
height: `${
|
|
15108
|
+
height: `${height ? `${height}px` : 'auto'}`
|
|
15133
15109
|
};
|
|
15134
15110
|
if (columnsHidden.value[columnIndex]) {
|
|
15135
15111
|
return vue.createVNode("div", {
|
|
@@ -15148,7 +15124,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15148
15124
|
column,
|
|
15149
15125
|
rowIndex,
|
|
15150
15126
|
columnIndex,
|
|
15151
|
-
store:
|
|
15127
|
+
store: table.store,
|
|
15152
15128
|
selected
|
|
15153
15129
|
})]);
|
|
15154
15130
|
})]);
|
|
@@ -15165,6 +15141,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15165
15141
|
})]);
|
|
15166
15142
|
};
|
|
15167
15143
|
const handleMergeRowResize = v => {
|
|
15144
|
+
if (table.props.rowHeight) return;
|
|
15168
15145
|
states.list[v.index].rows.forEach(row => {
|
|
15169
15146
|
row.heightMap[props.fixed || 'main'] = v.size;
|
|
15170
15147
|
const heights = [row.heightMap.main];
|
|
@@ -15184,7 +15161,17 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15184
15161
|
getRootElement: () => instance.vnode.el
|
|
15185
15162
|
});
|
|
15186
15163
|
const layout = table.layout;
|
|
15164
|
+
let timer;
|
|
15165
|
+
vue.onBeforeMount(() => {
|
|
15166
|
+
if (table.props.delay) {
|
|
15167
|
+
timer = setTimeout(() => allowRender.value = true, table.props.delay);
|
|
15168
|
+
} else {
|
|
15169
|
+
allowRender.value = true;
|
|
15170
|
+
}
|
|
15171
|
+
});
|
|
15172
|
+
vue.onBeforeUnmount(() => (timer && clearTimeout(timer), allowRender.value = false));
|
|
15187
15173
|
return () => {
|
|
15174
|
+
if (!allowRender.value) return;
|
|
15188
15175
|
return vue.createVNode("div", {
|
|
15189
15176
|
"class": "vc-table__body"
|
|
15190
15177
|
}, [table.props.height ? vue.createVNode(RecycleList, {
|
|
@@ -15233,10 +15220,6 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15233
15220
|
name: 'vc-table-header',
|
|
15234
15221
|
props: {
|
|
15235
15222
|
fixed: [Boolean, String],
|
|
15236
|
-
store: {
|
|
15237
|
-
type: Object,
|
|
15238
|
-
required: true
|
|
15239
|
-
},
|
|
15240
15223
|
border: Boolean,
|
|
15241
15224
|
// 排序全部交给外部处理,内部不处理数据,只做交互
|
|
15242
15225
|
defaultSort: {
|
|
@@ -15385,7 +15368,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15385
15368
|
column.width = columnWidth;
|
|
15386
15369
|
column.realWidth = column.width;
|
|
15387
15370
|
table.$emit('header-dragend', column.width, startLeft - startColumnLeft, column, event);
|
|
15388
|
-
|
|
15371
|
+
table.store.scheduleLayout();
|
|
15389
15372
|
document.body.style.cursor = '';
|
|
15390
15373
|
dragging.value = false;
|
|
15391
15374
|
draggingColumn.value = null;
|
|
@@ -15490,7 +15473,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15490
15473
|
}, [column.renderHeader ? column.renderHeader({
|
|
15491
15474
|
column,
|
|
15492
15475
|
columnIndex,
|
|
15493
|
-
store:
|
|
15476
|
+
store: table.store
|
|
15494
15477
|
}) : column.label, column.tooltip ? vue.createVNode(Icon, {
|
|
15495
15478
|
"type": "o-info",
|
|
15496
15479
|
"onMouseenter": e => handleCellMouseEnter(e, column)
|
|
@@ -15513,10 +15496,6 @@ const TableFooter = /* @__PURE__ */ vue.defineComponent({
|
|
|
15513
15496
|
name: 'vc-table-footer',
|
|
15514
15497
|
props: {
|
|
15515
15498
|
fixed: [String, Boolean],
|
|
15516
|
-
store: {
|
|
15517
|
-
type: Object,
|
|
15518
|
-
required: true
|
|
15519
|
-
},
|
|
15520
15499
|
getSummary: Function,
|
|
15521
15500
|
sumText: String,
|
|
15522
15501
|
border: Boolean
|
|
@@ -15538,7 +15517,7 @@ const TableFooter = /* @__PURE__ */ vue.defineComponent({
|
|
|
15538
15517
|
} else if (props.fixed === 'right') {
|
|
15539
15518
|
let before = 0;
|
|
15540
15519
|
for (let i = 0; i < index; i++) {
|
|
15541
|
-
before += states.columns[i].
|
|
15520
|
+
before += states.columns[i].colspan;
|
|
15542
15521
|
}
|
|
15543
15522
|
return before < states.columnsCount - states.rightFixedLeafCount;
|
|
15544
15523
|
} else if (!props.fixed && column.fixed) {
|
|
@@ -15632,6 +15611,7 @@ const props$c = {
|
|
|
15632
15611
|
width: [String, Number],
|
|
15633
15612
|
height: [String, Number],
|
|
15634
15613
|
maxHeight: [String, Number],
|
|
15614
|
+
rowHeight: [String, Number],
|
|
15635
15615
|
// 列的宽度是否自撑开
|
|
15636
15616
|
fit: {
|
|
15637
15617
|
type: Boolean,
|
|
@@ -15712,7 +15692,9 @@ const props$c = {
|
|
|
15712
15692
|
defaultSort: {
|
|
15713
15693
|
type: Object,
|
|
15714
15694
|
default: () => ({})
|
|
15715
|
-
}
|
|
15695
|
+
},
|
|
15696
|
+
// 用于延迟渲染,用于计算高度
|
|
15697
|
+
delay: Number
|
|
15716
15698
|
};
|
|
15717
15699
|
|
|
15718
15700
|
/** @jsxImportSource vue */
|
|
@@ -16125,7 +16107,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16125
16107
|
"class": "vc-table__header-wrapper"
|
|
16126
16108
|
}, [vue.createVNode(TableHeader, {
|
|
16127
16109
|
"ref": tableHeader,
|
|
16128
|
-
"store": store,
|
|
16129
16110
|
"border": props.border,
|
|
16130
16111
|
"default-sort": props.defaultSort,
|
|
16131
16112
|
"style": bodyWidthStyle.value
|
|
@@ -16141,7 +16122,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16141
16122
|
}, {
|
|
16142
16123
|
default: () => [vue.createVNode(TableBody, {
|
|
16143
16124
|
"ref": body,
|
|
16144
|
-
"store": store,
|
|
16145
16125
|
"style": [bodyWidthStyle.value],
|
|
16146
16126
|
"height-style": [bodyHeightStyle.value],
|
|
16147
16127
|
"onScroll": handleScollY
|
|
@@ -16161,7 +16141,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16161
16141
|
"ref": footerWrapper,
|
|
16162
16142
|
"class": "vc-table__footer-wrapper"
|
|
16163
16143
|
}, [vue.createVNode(TableFooter, {
|
|
16164
|
-
"store": store,
|
|
16165
16144
|
"border": props.border,
|
|
16166
16145
|
"sum-text": props.sumText || '合计',
|
|
16167
16146
|
"get-summary": props.getSummary,
|
|
@@ -16177,7 +16156,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16177
16156
|
"class": "vc-table__fixed-header-wrapper"
|
|
16178
16157
|
}, [vue.createVNode(TableHeader, {
|
|
16179
16158
|
"ref": leftFixedTableHeader,
|
|
16180
|
-
"store": store,
|
|
16181
16159
|
"border": props.border,
|
|
16182
16160
|
"default-sort": props.defaultSort,
|
|
16183
16161
|
"style": bodyWidthStyle.value,
|
|
@@ -16190,7 +16168,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16190
16168
|
"class": "vc-table__fixed-body-wrapper"
|
|
16191
16169
|
}, [vue.createVNode(TableBody, {
|
|
16192
16170
|
"ref": leftFixedBody,
|
|
16193
|
-
"store": store,
|
|
16194
16171
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
16195
16172
|
"fixed": "left"
|
|
16196
16173
|
}, null), slots.append && vue.createVNode("div", {
|
|
@@ -16202,7 +16179,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16202
16179
|
"ref": leftFixedFooterWrapper,
|
|
16203
16180
|
"class": "vc-table__fixed-footer-wrapper"
|
|
16204
16181
|
}, [vue.createVNode(TableFooter, {
|
|
16205
|
-
"store": store,
|
|
16206
16182
|
"border": props.border,
|
|
16207
16183
|
"sum-text": props.sumText || '合计',
|
|
16208
16184
|
"get-summary": props.getSummary,
|
|
@@ -16219,7 +16195,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16219
16195
|
"class": "vc-table__fixed-header-wrapper"
|
|
16220
16196
|
}, [vue.createVNode(TableHeader, {
|
|
16221
16197
|
"ref": rightFixedTableHeader,
|
|
16222
|
-
"store": store,
|
|
16223
16198
|
"border": props.border,
|
|
16224
16199
|
"default-sort": props.defaultSort,
|
|
16225
16200
|
"style": bodyWidthStyle.value,
|
|
@@ -16232,7 +16207,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16232
16207
|
"class": "vc-table__fixed-body-wrapper"
|
|
16233
16208
|
}, [vue.createVNode(TableBody, {
|
|
16234
16209
|
"ref": rightFixedBody,
|
|
16235
|
-
"store": store,
|
|
16236
16210
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
16237
16211
|
"fixed": "right"
|
|
16238
16212
|
}, null), slots.append && vue.createVNode("div", {
|
|
@@ -16244,7 +16218,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16244
16218
|
"ref": rightFixedFooterWrapper,
|
|
16245
16219
|
"class": "vc-table__fixed-footer-wrapper"
|
|
16246
16220
|
}, [vue.createVNode(TableFooter, {
|
|
16247
|
-
"store": store,
|
|
16248
16221
|
"border": props.border,
|
|
16249
16222
|
"sum-text": props.sumText || '合计',
|
|
16250
16223
|
"get-summary": props.getSummary,
|
|
@@ -16309,7 +16282,7 @@ const cellForced = {
|
|
|
16309
16282
|
"disabled": column.selectable ? !column.selectable.call(null, row, rowIndex) : false,
|
|
16310
16283
|
"onChange": () => store.rowSelectedChanged(row),
|
|
16311
16284
|
"onClick": e => e.stopPropagation()
|
|
16312
|
-
}, null), [[vue.vShow, store.
|
|
16285
|
+
}, null), [[vue.vShow, store.states.expandSelectable || level === 0]]);
|
|
16313
16286
|
},
|
|
16314
16287
|
sortable: false,
|
|
16315
16288
|
resizable: false
|
|
@@ -16543,16 +16516,9 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16543
16516
|
* @returns ~
|
|
16544
16517
|
*/
|
|
16545
16518
|
const setColumnWidth = column => {
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
if (realMinWidth.value) {
|
|
16550
|
-
column.minWidth = realMinWidth.value;
|
|
16551
|
-
}
|
|
16552
|
-
if (!column.minWidth) {
|
|
16553
|
-
column.minWidth = 80;
|
|
16554
|
-
}
|
|
16555
|
-
column.realWidth = column.width === undefined ? column.minWidth : column.width;
|
|
16519
|
+
column.width = realWidth.value || column.width;
|
|
16520
|
+
column.minWidth = realMinWidth.value || column.minWidth || 80;
|
|
16521
|
+
column.realWidth = typeof column.width === 'undefined' ? column.minWidth : column.width;
|
|
16556
16522
|
return column;
|
|
16557
16523
|
};
|
|
16558
16524
|
|
|
@@ -16625,6 +16591,8 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16625
16591
|
};
|
|
16626
16592
|
const registerColumn = () => {
|
|
16627
16593
|
const defaults = {
|
|
16594
|
+
colspan: 1,
|
|
16595
|
+
rowspan: 1,
|
|
16628
16596
|
...cellStarts[props.type],
|
|
16629
16597
|
id: columnId.value,
|
|
16630
16598
|
realAlign,
|