@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.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
|
);
|
|
@@ -10285,7 +10289,7 @@ const props$z = {
|
|
|
10285
10289
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
10286
10290
|
default: "small"
|
|
10287
10291
|
},
|
|
10288
|
-
|
|
10292
|
+
contentClass: [Object, String],
|
|
10289
10293
|
width: {
|
|
10290
10294
|
type: Number
|
|
10291
10295
|
},
|
|
@@ -10334,6 +10338,10 @@ const props$z = {
|
|
|
10334
10338
|
type: Boolean,
|
|
10335
10339
|
default: true
|
|
10336
10340
|
},
|
|
10341
|
+
border: {
|
|
10342
|
+
type: Boolean,
|
|
10343
|
+
default: false
|
|
10344
|
+
},
|
|
10337
10345
|
/**
|
|
10338
10346
|
* 兼容portal设计, 实现Promise方式
|
|
10339
10347
|
*/
|
|
@@ -10347,10 +10355,10 @@ const props$z = {
|
|
|
10347
10355
|
|
|
10348
10356
|
/** @jsxImportSource vue */
|
|
10349
10357
|
|
|
10350
|
-
const COMPONENT_NAME$
|
|
10358
|
+
const COMPONENT_NAME$K = 'vc-modal';
|
|
10351
10359
|
let zIndexNumber = 1002;
|
|
10352
10360
|
const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
10353
|
-
name: COMPONENT_NAME$
|
|
10361
|
+
name: COMPONENT_NAME$K,
|
|
10354
10362
|
emits: ['update:modelValue', 'close', 'portal-fulfilled', 'visible-change', 'ok', 'cancel'],
|
|
10355
10363
|
props: props$z,
|
|
10356
10364
|
setup(props, {
|
|
@@ -10631,7 +10639,8 @@ const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
|
10631
10639
|
"class": [{
|
|
10632
10640
|
'is-drag': props.draggable,
|
|
10633
10641
|
'is-large': props.size === 'large' || props.size === 'medium',
|
|
10634
|
-
'
|
|
10642
|
+
'has-footer': props.footer && (props.cancelText || props.okText),
|
|
10643
|
+
'has-border': props.border
|
|
10635
10644
|
}, 'vc-modal__container'],
|
|
10636
10645
|
"style": [basicStyle.value, draggableStyle.value]
|
|
10637
10646
|
}, [vue.createVNode("div", {
|
|
@@ -10663,7 +10672,7 @@ const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
|
10663
10672
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
10664
10673
|
"contentClass": [{
|
|
10665
10674
|
'is-confirm': props.mode
|
|
10666
|
-
}, props.
|
|
10675
|
+
}, props.contentClass, 'vc-modal__content']
|
|
10667
10676
|
}, {
|
|
10668
10677
|
default: () => [typeof props.content === 'string' ? vue.createVNode("div", {
|
|
10669
10678
|
"innerHTML": props.content
|
|
@@ -10776,9 +10785,9 @@ const props$y = {
|
|
|
10776
10785
|
|
|
10777
10786
|
/** @jsxImportSource vue */
|
|
10778
10787
|
|
|
10779
|
-
const COMPONENT_NAME$
|
|
10788
|
+
const COMPONENT_NAME$J = 'vc-modal';
|
|
10780
10789
|
const MModalView = /* @__PURE__ */ vue.defineComponent({
|
|
10781
|
-
name: COMPONENT_NAME$
|
|
10790
|
+
name: COMPONENT_NAME$J,
|
|
10782
10791
|
emits: ['update:modelValue', 'portal-fulfilled', 'close', 'ok', 'cancel'],
|
|
10783
10792
|
props: props$y,
|
|
10784
10793
|
setup(props, {
|
|
@@ -10990,9 +10999,9 @@ const props$x = {
|
|
|
10990
10999
|
|
|
10991
11000
|
/** @jsxImportSource vue */
|
|
10992
11001
|
|
|
10993
|
-
const COMPONENT_NAME$
|
|
11002
|
+
const COMPONENT_NAME$I = 'vc-notice';
|
|
10994
11003
|
const NoticeView = /* @__PURE__ */ vue.defineComponent({
|
|
10995
|
-
name: COMPONENT_NAME$
|
|
11004
|
+
name: COMPONENT_NAME$I,
|
|
10996
11005
|
props: props$x,
|
|
10997
11006
|
emits: ['portal-fulfilled', 'close', 'before-close'],
|
|
10998
11007
|
setup(props, {
|
|
@@ -11165,9 +11174,9 @@ const props$w = {
|
|
|
11165
11174
|
|
|
11166
11175
|
/** @jsxImportSource vue */
|
|
11167
11176
|
|
|
11168
|
-
const COMPONENT_NAME$
|
|
11177
|
+
const COMPONENT_NAME$H = 'vc-option';
|
|
11169
11178
|
const Option$1 = /* @__PURE__ */ vue.defineComponent({
|
|
11170
|
-
name: COMPONENT_NAME$
|
|
11179
|
+
name: COMPONENT_NAME$H,
|
|
11171
11180
|
props: props$w,
|
|
11172
11181
|
setup(props, {
|
|
11173
11182
|
slots
|
|
@@ -11280,9 +11289,9 @@ const props$u = {
|
|
|
11280
11289
|
|
|
11281
11290
|
/** @jsxImportSource vue */
|
|
11282
11291
|
|
|
11283
|
-
const COMPONENT_NAME$
|
|
11292
|
+
const COMPONENT_NAME$G = 'vc-tag';
|
|
11284
11293
|
const Tag = /* @__PURE__ */ vue.defineComponent({
|
|
11285
|
-
name: COMPONENT_NAME$
|
|
11294
|
+
name: COMPONENT_NAME$G,
|
|
11286
11295
|
props: props$u,
|
|
11287
11296
|
emits: ['close', 'change'],
|
|
11288
11297
|
setup(props, {
|
|
@@ -11351,9 +11360,9 @@ const props$t = {
|
|
|
11351
11360
|
|
|
11352
11361
|
/** @jsxImportSource vue */
|
|
11353
11362
|
|
|
11354
|
-
const COMPONENT_NAME$
|
|
11363
|
+
const COMPONENT_NAME$F = 'vc-select-option';
|
|
11355
11364
|
const Option = /* @__PURE__ */ vue.defineComponent({
|
|
11356
|
-
name: COMPONENT_NAME$
|
|
11365
|
+
name: COMPONENT_NAME$F,
|
|
11357
11366
|
props: props$t,
|
|
11358
11367
|
setup(props, {
|
|
11359
11368
|
slots
|
|
@@ -11426,9 +11435,9 @@ const props$s = {
|
|
|
11426
11435
|
|
|
11427
11436
|
/** @jsxImportSource vue */
|
|
11428
11437
|
|
|
11429
|
-
const COMPONENT_NAME$
|
|
11438
|
+
const COMPONENT_NAME$E = 'vc-select-option-group';
|
|
11430
11439
|
const OptionGroup = /* @__PURE__ */ vue.defineComponent({
|
|
11431
|
-
name: COMPONENT_NAME$
|
|
11440
|
+
name: COMPONENT_NAME$E,
|
|
11432
11441
|
props: props$s,
|
|
11433
11442
|
setup(props, {
|
|
11434
11443
|
slots
|
|
@@ -11526,9 +11535,9 @@ const props$r = {
|
|
|
11526
11535
|
function _isSlot$1(s) {
|
|
11527
11536
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
11528
11537
|
}
|
|
11529
|
-
const COMPONENT_NAME$
|
|
11538
|
+
const COMPONENT_NAME$D = 'vc-select';
|
|
11530
11539
|
const Select = /* @__PURE__ */ vue.defineComponent({
|
|
11531
|
-
name: COMPONENT_NAME$
|
|
11540
|
+
name: COMPONENT_NAME$D,
|
|
11532
11541
|
props: props$r,
|
|
11533
11542
|
emits: ['ready', 'close', 'visible-change', 'clear', 'change', 'update:modelValue'],
|
|
11534
11543
|
setup(props, {
|
|
@@ -11772,9 +11781,9 @@ const Select = /* @__PURE__ */ vue.defineComponent({
|
|
|
11772
11781
|
|
|
11773
11782
|
/** @jsxImportSource vue */
|
|
11774
11783
|
|
|
11775
|
-
const COMPONENT_NAME$
|
|
11784
|
+
const COMPONENT_NAME$C = 'vc-pagination';
|
|
11776
11785
|
const Pagination = /* @__PURE__ */ vue.defineComponent({
|
|
11777
|
-
name: COMPONENT_NAME$
|
|
11786
|
+
name: COMPONENT_NAME$C,
|
|
11778
11787
|
props: props$v,
|
|
11779
11788
|
emits: ['update:current', 'change', 'page-size-change'],
|
|
11780
11789
|
setup(props, {
|
|
@@ -11972,9 +11981,9 @@ const props$q = {
|
|
|
11972
11981
|
|
|
11973
11982
|
/** @jsxImportSource vue */
|
|
11974
11983
|
|
|
11975
|
-
const COMPONENT_NAME$
|
|
11984
|
+
const COMPONENT_NAME$B = 'vc-picker';
|
|
11976
11985
|
const Picker = /* @__PURE__ */ vue.defineComponent({
|
|
11977
|
-
name: COMPONENT_NAME$
|
|
11986
|
+
name: COMPONENT_NAME$B,
|
|
11978
11987
|
props: props$q,
|
|
11979
11988
|
setup(props, {
|
|
11980
11989
|
slots
|
|
@@ -11998,9 +12007,9 @@ const props$p = {
|
|
|
11998
12007
|
|
|
11999
12008
|
/** @jsxImportSource vue */
|
|
12000
12009
|
|
|
12001
|
-
const COMPONENT_NAME$
|
|
12010
|
+
const COMPONENT_NAME$A = 'vc-popconfirm';
|
|
12002
12011
|
const Popconfirm = /* @__PURE__ */ vue.defineComponent({
|
|
12003
|
-
name: COMPONENT_NAME$
|
|
12012
|
+
name: COMPONENT_NAME$A,
|
|
12004
12013
|
props: props$p,
|
|
12005
12014
|
setup(props, {
|
|
12006
12015
|
slots
|
|
@@ -12026,9 +12035,9 @@ const props$o = {
|
|
|
12026
12035
|
|
|
12027
12036
|
/** @jsxImportSource vue */
|
|
12028
12037
|
|
|
12029
|
-
const COMPONENT_NAME$
|
|
12038
|
+
const COMPONENT_NAME$z = 'vc-popup';
|
|
12030
12039
|
const Popup = /* @__PURE__ */ vue.defineComponent({
|
|
12031
|
-
name: COMPONENT_NAME$
|
|
12040
|
+
name: COMPONENT_NAME$z,
|
|
12032
12041
|
props: props$o,
|
|
12033
12042
|
setup(props, {
|
|
12034
12043
|
slots
|
|
@@ -12055,9 +12064,9 @@ const props$n = {
|
|
|
12055
12064
|
|
|
12056
12065
|
/** @jsxImportSource vue */
|
|
12057
12066
|
|
|
12058
|
-
const COMPONENT_NAME$
|
|
12067
|
+
const COMPONENT_NAME$y = 'vc-print';
|
|
12059
12068
|
const Print = /* @__PURE__ */ vue.defineComponent({
|
|
12060
|
-
name: COMPONENT_NAME$
|
|
12069
|
+
name: COMPONENT_NAME$y,
|
|
12061
12070
|
props: props$n,
|
|
12062
12071
|
setup(props, {
|
|
12063
12072
|
expose,
|
|
@@ -12121,6 +12130,12 @@ const props$m = {
|
|
|
12121
12130
|
type: Boolean,
|
|
12122
12131
|
default: true
|
|
12123
12132
|
},
|
|
12133
|
+
textStyle: {
|
|
12134
|
+
type: [String, Object]
|
|
12135
|
+
},
|
|
12136
|
+
textClass: {
|
|
12137
|
+
type: [String, Object]
|
|
12138
|
+
},
|
|
12124
12139
|
animated: {
|
|
12125
12140
|
type: Boolean,
|
|
12126
12141
|
default: false
|
|
@@ -12153,9 +12168,9 @@ const props$m = {
|
|
|
12153
12168
|
|
|
12154
12169
|
/** @jsxImportSource vue */
|
|
12155
12170
|
|
|
12156
|
-
const COMPONENT_NAME$
|
|
12171
|
+
const COMPONENT_NAME$x = 'vc-progress-circle';
|
|
12157
12172
|
const Circle = /* @__PURE__ */ vue.defineComponent({
|
|
12158
|
-
name: COMPONENT_NAME$
|
|
12173
|
+
name: COMPONENT_NAME$x,
|
|
12159
12174
|
props: props$m,
|
|
12160
12175
|
setup(props, {
|
|
12161
12176
|
slots
|
|
@@ -12204,17 +12219,20 @@ const Circle = /* @__PURE__ */ vue.defineComponent({
|
|
|
12204
12219
|
"stroke-linecap": "round",
|
|
12205
12220
|
"fill-opacity": "0"
|
|
12206
12221
|
}, null)]), vue.createVNode("div", {
|
|
12207
|
-
"class":
|
|
12208
|
-
}, [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}%`])])])]);
|
|
12209
12227
|
};
|
|
12210
12228
|
}
|
|
12211
12229
|
});
|
|
12212
12230
|
|
|
12213
12231
|
/** @jsxImportSource vue */
|
|
12214
12232
|
|
|
12215
|
-
const COMPONENT_NAME$
|
|
12233
|
+
const COMPONENT_NAME$w = 'vc-progress-line';
|
|
12216
12234
|
const Line = /* @__PURE__ */ vue.defineComponent({
|
|
12217
|
-
name: COMPONENT_NAME$
|
|
12235
|
+
name: COMPONENT_NAME$w,
|
|
12218
12236
|
props: props$m,
|
|
12219
12237
|
setup(props) {
|
|
12220
12238
|
const colorStyle = vue.computed(() => {
|
|
@@ -12243,12 +12261,15 @@ const Line = /* @__PURE__ */ vue.defineComponent({
|
|
|
12243
12261
|
"style": innerStyle.value,
|
|
12244
12262
|
"class": [classes.value, 'vc-progress-line__inner']
|
|
12245
12263
|
}, null)])]), props.showText && vue.createVNode("div", {
|
|
12246
|
-
"class":
|
|
12264
|
+
"class": ['vc-progress-line__percent']
|
|
12247
12265
|
}, [['error', 'success'].includes(props.status) ? vue.createVNode(Icon, {
|
|
12248
12266
|
"type": props.status,
|
|
12249
12267
|
"style": colorStyle.value,
|
|
12250
12268
|
"class": [`is-${props.status}`, 'vc-progress-line__icon']
|
|
12251
|
-
}, null) : vue.createVNode("span",
|
|
12269
|
+
}, null) : vue.createVNode("span", {
|
|
12270
|
+
"class": props.textClass,
|
|
12271
|
+
"style": props.textStyle
|
|
12272
|
+
}, [`${props.percent}%`])])]);
|
|
12252
12273
|
};
|
|
12253
12274
|
}
|
|
12254
12275
|
});
|
|
@@ -12258,9 +12279,9 @@ const Line = /* @__PURE__ */ vue.defineComponent({
|
|
|
12258
12279
|
function _isSlot(s) {
|
|
12259
12280
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
12260
12281
|
}
|
|
12261
|
-
const COMPONENT_NAME$
|
|
12282
|
+
const COMPONENT_NAME$v = 'vc-progress';
|
|
12262
12283
|
const Progress = /* @__PURE__ */ vue.defineComponent({
|
|
12263
|
-
name: COMPONENT_NAME$
|
|
12284
|
+
name: COMPONENT_NAME$v,
|
|
12264
12285
|
props: props$m,
|
|
12265
12286
|
setup(props, {
|
|
12266
12287
|
slots
|
|
@@ -12412,9 +12433,9 @@ const useRadio = () => {
|
|
|
12412
12433
|
|
|
12413
12434
|
/** @jsxImportSource vue */
|
|
12414
12435
|
|
|
12415
|
-
const COMPONENT_NAME$
|
|
12436
|
+
const COMPONENT_NAME$u = 'vc-radio';
|
|
12416
12437
|
const Radio = /* @__PURE__ */ vue.defineComponent({
|
|
12417
|
-
name: COMPONENT_NAME$
|
|
12438
|
+
name: COMPONENT_NAME$u,
|
|
12418
12439
|
props: props$l,
|
|
12419
12440
|
emits: ['update:modelValue', 'change'],
|
|
12420
12441
|
setup(props, {
|
|
@@ -12525,9 +12546,9 @@ const useRadioGroup = () => {
|
|
|
12525
12546
|
|
|
12526
12547
|
/** @jsxImportSource vue */
|
|
12527
12548
|
|
|
12528
|
-
const COMPONENT_NAME$
|
|
12549
|
+
const COMPONENT_NAME$t = 'vc-radio-group';
|
|
12529
12550
|
const RadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
12530
|
-
name: COMPONENT_NAME$
|
|
12551
|
+
name: COMPONENT_NAME$t,
|
|
12531
12552
|
props: props$k,
|
|
12532
12553
|
emits: ['update:modelValue', 'change'],
|
|
12533
12554
|
setup(props, {
|
|
@@ -12549,9 +12570,9 @@ const RadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
12549
12570
|
|
|
12550
12571
|
/** @jsxImportSource vue */
|
|
12551
12572
|
|
|
12552
|
-
const COMPONENT_NAME$
|
|
12573
|
+
const COMPONENT_NAME$s = 'vcm-radio';
|
|
12553
12574
|
const MRadio = /* @__PURE__ */ vue.defineComponent({
|
|
12554
|
-
name: COMPONENT_NAME$
|
|
12575
|
+
name: COMPONENT_NAME$s,
|
|
12555
12576
|
props: props$l,
|
|
12556
12577
|
emits: ['update:modelValue', 'change'],
|
|
12557
12578
|
setup(props, {
|
|
@@ -12592,9 +12613,9 @@ const MRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
12592
12613
|
|
|
12593
12614
|
/** @jsxImportSource vue */
|
|
12594
12615
|
|
|
12595
|
-
const COMPONENT_NAME$
|
|
12616
|
+
const COMPONENT_NAME$r = 'vcm-radio-group';
|
|
12596
12617
|
const MRadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
12597
|
-
name: COMPONENT_NAME$
|
|
12618
|
+
name: COMPONENT_NAME$r,
|
|
12598
12619
|
props: props$k,
|
|
12599
12620
|
emits: ['update:modelValue', 'change'],
|
|
12600
12621
|
setup(props, {
|
|
@@ -12623,9 +12644,9 @@ const props$j = {
|
|
|
12623
12644
|
|
|
12624
12645
|
/** @jsxImportSource vue */
|
|
12625
12646
|
|
|
12626
|
-
const COMPONENT_NAME$
|
|
12647
|
+
const COMPONENT_NAME$q = 'vc-rate';
|
|
12627
12648
|
const Rate = /* @__PURE__ */ vue.defineComponent({
|
|
12628
|
-
name: COMPONENT_NAME$
|
|
12649
|
+
name: COMPONENT_NAME$q,
|
|
12629
12650
|
props: props$j,
|
|
12630
12651
|
setup(props, {
|
|
12631
12652
|
slots
|
|
@@ -12693,9 +12714,9 @@ const props$i = {
|
|
|
12693
12714
|
|
|
12694
12715
|
/** @jsxImportSource vue */
|
|
12695
12716
|
|
|
12696
|
-
const COMPONENT_NAME$
|
|
12717
|
+
const COMPONENT_NAME$p = 'vc-recycle-list-scroll-state';
|
|
12697
12718
|
const ScrollState = /* @__PURE__ */ vue.defineComponent({
|
|
12698
|
-
name: COMPONENT_NAME$
|
|
12719
|
+
name: COMPONENT_NAME$p,
|
|
12699
12720
|
setup(_, {
|
|
12700
12721
|
slots
|
|
12701
12722
|
}) {
|
|
@@ -12825,12 +12846,12 @@ const useDirectionKeys = () => {
|
|
|
12825
12846
|
|
|
12826
12847
|
/** @jsxImportSource vue */
|
|
12827
12848
|
|
|
12828
|
-
const COMPONENT_NAME$
|
|
12849
|
+
const COMPONENT_NAME$o = 'vc-recycle-list-container';
|
|
12829
12850
|
|
|
12830
12851
|
// TODO: 抽离
|
|
12831
12852
|
const transformKey = $__namespace.prefixStyle('transform').camel;
|
|
12832
12853
|
const Container = /* @__PURE__ */ vue.defineComponent({
|
|
12833
|
-
name: COMPONENT_NAME$
|
|
12854
|
+
name: COMPONENT_NAME$o,
|
|
12834
12855
|
props: props$h,
|
|
12835
12856
|
emits: ['refresh'],
|
|
12836
12857
|
setup(props, {
|
|
@@ -12928,51 +12949,6 @@ const Container = /* @__PURE__ */ vue.defineComponent({
|
|
|
12928
12949
|
|
|
12929
12950
|
/** @jsxImportSource vue */
|
|
12930
12951
|
|
|
12931
|
-
const COMPONENT_NAME$o = 'vc-recycle-list-item';
|
|
12932
|
-
const Item = /* @__PURE__ */ vue.defineComponent({
|
|
12933
|
-
name: COMPONENT_NAME$o,
|
|
12934
|
-
props: {
|
|
12935
|
-
vertical: {
|
|
12936
|
-
type: Boolean,
|
|
12937
|
-
default: true
|
|
12938
|
-
}
|
|
12939
|
-
},
|
|
12940
|
-
emits: ['resize', 'change'],
|
|
12941
|
-
setup(_, {
|
|
12942
|
-
emit,
|
|
12943
|
-
slots
|
|
12944
|
-
}) {
|
|
12945
|
-
const K = useDirectionKeys();
|
|
12946
|
-
const current = vue.ref();
|
|
12947
|
-
const offsetSize = vue.ref(0);
|
|
12948
|
-
let hasInitial = false;
|
|
12949
|
-
const handleResize = () => {
|
|
12950
|
-
const v = current.value.getBoundingClientRect()[K.size];
|
|
12951
|
-
const changed = offsetSize.value != v;
|
|
12952
|
-
if (changed) {
|
|
12953
|
-
offsetSize.value = v;
|
|
12954
|
-
hasInitial && emit('resize', v);
|
|
12955
|
-
emit('change', v);
|
|
12956
|
-
}
|
|
12957
|
-
hasInitial = true;
|
|
12958
|
-
};
|
|
12959
|
-
vue.onMounted(() => {
|
|
12960
|
-
helperResize.Resize.on(current.value, handleResize); // 首次会执行一次
|
|
12961
|
-
});
|
|
12962
|
-
vue.onBeforeUnmount(() => {
|
|
12963
|
-
helperResize.Resize.off(current.value, handleResize);
|
|
12964
|
-
});
|
|
12965
|
-
return () => {
|
|
12966
|
-
return vue.createVNode("div", {
|
|
12967
|
-
"ref": current,
|
|
12968
|
-
"class": "vc-recycle-list-item"
|
|
12969
|
-
}, [slots?.default?.()]);
|
|
12970
|
-
};
|
|
12971
|
-
}
|
|
12972
|
-
});
|
|
12973
|
-
|
|
12974
|
-
/** @jsxImportSource vue */
|
|
12975
|
-
|
|
12976
12952
|
const COMPONENT_NAME$n = 'vc-recycle-list';
|
|
12977
12953
|
const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
12978
12954
|
name: COMPONENT_NAME$n,
|
|
@@ -13483,7 +13459,7 @@ const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
|
13483
13459
|
// eslint-disable-next-line @stylistic/max-len
|
|
13484
13460
|
slots.placeholder?.() || renderer.value.placeholder && vue.createVNode(Customer, {
|
|
13485
13461
|
"render": renderer.value.placeholder
|
|
13486
|
-
}, null)]), !item.isPlaceholder && vue.createVNode(
|
|
13462
|
+
}, null)]), !item.isPlaceholder && vue.createVNode(Resizer, {
|
|
13487
13463
|
"ref": v => curloads.value[item.id] = v,
|
|
13488
13464
|
"class": {
|
|
13489
13465
|
'vc-recycle-list__transition': hasPlaceholder.value
|
|
@@ -13491,11 +13467,11 @@ const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
|
13491
13467
|
"style": {
|
|
13492
13468
|
opacity: item.loaded
|
|
13493
13469
|
},
|
|
13470
|
+
"fill": false,
|
|
13494
13471
|
"data-row": item.id,
|
|
13495
13472
|
"data-column": item.column,
|
|
13496
13473
|
"data-size": item.size,
|
|
13497
13474
|
"data-position": item.position,
|
|
13498
|
-
"vertical": props.vertical,
|
|
13499
13475
|
"onResize": handleResize
|
|
13500
13476
|
}, {
|
|
13501
13477
|
default: () => [slots.default?.({
|
|
@@ -13901,14 +13877,14 @@ const columnsToRowsEffect = (v) => {
|
|
|
13901
13877
|
}
|
|
13902
13878
|
}
|
|
13903
13879
|
if (column.children) {
|
|
13904
|
-
let
|
|
13880
|
+
let colspan = 0;
|
|
13905
13881
|
column.children.forEach((subColumn) => {
|
|
13906
13882
|
traverse(subColumn, column);
|
|
13907
|
-
|
|
13883
|
+
colspan += subColumn.colspan;
|
|
13908
13884
|
});
|
|
13909
|
-
column.
|
|
13885
|
+
column.colspan = colspan;
|
|
13910
13886
|
} else {
|
|
13911
|
-
column.
|
|
13887
|
+
column.colspan = 1;
|
|
13912
13888
|
}
|
|
13913
13889
|
};
|
|
13914
13890
|
v.forEach((column) => {
|
|
@@ -13922,9 +13898,9 @@ const columnsToRowsEffect = (v) => {
|
|
|
13922
13898
|
const allColumns = getAllColumns(v);
|
|
13923
13899
|
allColumns.forEach((column) => {
|
|
13924
13900
|
if (!column.children) {
|
|
13925
|
-
column.
|
|
13901
|
+
column.rowspan = maxLevel - column.level + 1;
|
|
13926
13902
|
} else {
|
|
13927
|
-
column.
|
|
13903
|
+
column.rowspan = 1;
|
|
13928
13904
|
}
|
|
13929
13905
|
rows[column.level - 1].push(column);
|
|
13930
13906
|
});
|
|
@@ -13993,6 +13969,7 @@ class BaseWatcher {
|
|
|
13993
13969
|
selection: [],
|
|
13994
13970
|
reserveSelection: false,
|
|
13995
13971
|
selectable: null,
|
|
13972
|
+
expandSelectable: null,
|
|
13996
13973
|
hoverRowIndex: null,
|
|
13997
13974
|
// Current
|
|
13998
13975
|
currentRow: null,
|
|
@@ -14519,6 +14496,7 @@ class Store extends BaseWatcher {
|
|
|
14519
14496
|
this.layout = new Layout(this);
|
|
14520
14497
|
const { props } = options.table;
|
|
14521
14498
|
lodash.merge(this.states, {
|
|
14499
|
+
expandSelectable: props.expandSelectable,
|
|
14522
14500
|
treeLazy: props.lazy || false,
|
|
14523
14501
|
treeLazyColumnIdentifier: props.treeMap.hasChildren || "hasChildren",
|
|
14524
14502
|
treeChildrenColumnName: props.treeMap.children || "children"
|
|
@@ -14841,8 +14819,7 @@ class Store extends BaseWatcher {
|
|
|
14841
14819
|
}
|
|
14842
14820
|
|
|
14843
14821
|
const useStates = (mapper, $store) => {
|
|
14844
|
-
const
|
|
14845
|
-
const store = $store || instance.proxy?.store;
|
|
14822
|
+
const store = $store || vue.inject("vc-table")?.store;
|
|
14846
14823
|
const states = vue.reactive({});
|
|
14847
14824
|
Object.keys(mapper).forEach((key) => {
|
|
14848
14825
|
const value = mapper[key];
|
|
@@ -14877,16 +14854,16 @@ const NormalList = /* @__PURE__ */ vue.defineComponent({
|
|
|
14877
14854
|
emit,
|
|
14878
14855
|
slots
|
|
14879
14856
|
}) {
|
|
14880
|
-
const handleResize = (
|
|
14857
|
+
const handleResize = (e, index) => {
|
|
14881
14858
|
emit('row-resize', {
|
|
14882
14859
|
index,
|
|
14883
|
-
size
|
|
14860
|
+
size: e.height
|
|
14884
14861
|
});
|
|
14885
14862
|
};
|
|
14886
14863
|
return () => {
|
|
14887
14864
|
return props.data.map((row, index) => {
|
|
14888
|
-
return vue.createVNode(
|
|
14889
|
-
"
|
|
14865
|
+
return vue.createVNode(Resizer, {
|
|
14866
|
+
"fill": false,
|
|
14890
14867
|
"onChange": e => handleResize(e, index)
|
|
14891
14868
|
}, {
|
|
14892
14869
|
default: () => [slots.default?.({
|
|
@@ -14902,7 +14879,6 @@ const NormalList = /* @__PURE__ */ vue.defineComponent({
|
|
|
14902
14879
|
const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
14903
14880
|
name: 'vc-table-body',
|
|
14904
14881
|
props: {
|
|
14905
|
-
store: Object,
|
|
14906
14882
|
fixed: String,
|
|
14907
14883
|
heightStyle: [Object, Array, String]
|
|
14908
14884
|
},
|
|
@@ -14913,6 +14889,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14913
14889
|
}) {
|
|
14914
14890
|
const instance = vue.getCurrentInstance();
|
|
14915
14891
|
const table = vue.inject('vc-table');
|
|
14892
|
+
const allowRender = vue.ref(false);
|
|
14916
14893
|
const states = useStates({
|
|
14917
14894
|
data: 'data',
|
|
14918
14895
|
list: 'list',
|
|
@@ -14930,8 +14907,8 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14930
14907
|
}) => type === 'default')
|
|
14931
14908
|
});
|
|
14932
14909
|
const wrapper = vue.ref();
|
|
14933
|
-
vue.watch(() =>
|
|
14934
|
-
if (!
|
|
14910
|
+
vue.watch(() => table.store.states.hoverRowIndex, (v, oldV) => {
|
|
14911
|
+
if (!table.store.states.isComplex || vcShared.IS_SERVER) return;
|
|
14935
14912
|
Utils.raf(() => {
|
|
14936
14913
|
const rows = instance.vnode.el.querySelectorAll('.vc-table__row');
|
|
14937
14914
|
const oldRow = rows[oldV];
|
|
@@ -14975,7 +14952,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14975
14952
|
};
|
|
14976
14953
|
const getRowClass = (row, rowIndex) => {
|
|
14977
14954
|
const classes = ['vc-table__row'];
|
|
14978
|
-
if (table.props.highlight && row ===
|
|
14955
|
+
if (table.props.highlight && row === table.store.states.currentRow) {
|
|
14979
14956
|
classes.push('current-row');
|
|
14980
14957
|
}
|
|
14981
14958
|
if (table.props.stripe && rowIndex % 2 === 1) {
|
|
@@ -14990,7 +14967,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14990
14967
|
rowIndex
|
|
14991
14968
|
}));
|
|
14992
14969
|
}
|
|
14993
|
-
if (
|
|
14970
|
+
if (table.store.states.expandRows.indexOf(row) > -1) {
|
|
14994
14971
|
classes.push('expanded');
|
|
14995
14972
|
}
|
|
14996
14973
|
return classes;
|
|
@@ -15073,10 +15050,10 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15073
15050
|
table.emit('cell-mouse-leave', oldHoverState.row, oldHoverState.column, oldHoverState.cell, e);
|
|
15074
15051
|
};
|
|
15075
15052
|
const handleMouseEnter = lodashEs.debounce(index => {
|
|
15076
|
-
|
|
15053
|
+
table.store.setHoverRow(index);
|
|
15077
15054
|
}, 30);
|
|
15078
15055
|
const handleMouseLeave = lodashEs.debounce(() => {
|
|
15079
|
-
|
|
15056
|
+
table.store.setHoverRow(null);
|
|
15080
15057
|
}, 30);
|
|
15081
15058
|
const handleEvent = (e, row, name) => {
|
|
15082
15059
|
const cell = getCell(e);
|
|
@@ -15096,10 +15073,13 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15096
15073
|
handleEvent(e, row, 'dblclick');
|
|
15097
15074
|
};
|
|
15098
15075
|
const handleClick = (e, row) => {
|
|
15099
|
-
|
|
15076
|
+
table.store.setCurrentRow(row);
|
|
15100
15077
|
handleEvent(e, row, 'click');
|
|
15101
15078
|
};
|
|
15102
15079
|
const renderRow = (rowData, rowIndex) => {
|
|
15080
|
+
const {
|
|
15081
|
+
rowHeight
|
|
15082
|
+
} = table.props;
|
|
15103
15083
|
const {
|
|
15104
15084
|
data: row
|
|
15105
15085
|
} = rowData;
|
|
@@ -15107,7 +15087,8 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15107
15087
|
columns
|
|
15108
15088
|
} = states;
|
|
15109
15089
|
const key = getValueOfRow(row, rowIndex);
|
|
15110
|
-
const selected =
|
|
15090
|
+
const selected = table.store.isSelected(row);
|
|
15091
|
+
const height = rowHeight || rowData.height;
|
|
15111
15092
|
return vue.createVNode("div", {
|
|
15112
15093
|
"key": key,
|
|
15113
15094
|
"class": [getRowClass(row, rowIndex), 'vc-table__tr'],
|
|
@@ -15124,7 +15105,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15124
15105
|
} = column;
|
|
15125
15106
|
const sizeStyle = {
|
|
15126
15107
|
width: `${realWidth}px`,
|
|
15127
|
-
height: `${
|
|
15108
|
+
height: `${height ? `${height}px` : 'auto'}`
|
|
15128
15109
|
};
|
|
15129
15110
|
if (columnsHidden.value[columnIndex]) {
|
|
15130
15111
|
return vue.createVNode("div", {
|
|
@@ -15143,7 +15124,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15143
15124
|
column,
|
|
15144
15125
|
rowIndex,
|
|
15145
15126
|
columnIndex,
|
|
15146
|
-
store:
|
|
15127
|
+
store: table.store,
|
|
15147
15128
|
selected
|
|
15148
15129
|
})]);
|
|
15149
15130
|
})]);
|
|
@@ -15160,6 +15141,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15160
15141
|
})]);
|
|
15161
15142
|
};
|
|
15162
15143
|
const handleMergeRowResize = v => {
|
|
15144
|
+
if (table.props.rowHeight) return;
|
|
15163
15145
|
states.list[v.index].rows.forEach(row => {
|
|
15164
15146
|
row.heightMap[props.fixed || 'main'] = v.size;
|
|
15165
15147
|
const heights = [row.heightMap.main];
|
|
@@ -15179,7 +15161,17 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15179
15161
|
getRootElement: () => instance.vnode.el
|
|
15180
15162
|
});
|
|
15181
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));
|
|
15182
15173
|
return () => {
|
|
15174
|
+
if (!allowRender.value) return;
|
|
15183
15175
|
return vue.createVNode("div", {
|
|
15184
15176
|
"class": "vc-table__body"
|
|
15185
15177
|
}, [table.props.height ? vue.createVNode(RecycleList, {
|
|
@@ -15228,10 +15220,6 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15228
15220
|
name: 'vc-table-header',
|
|
15229
15221
|
props: {
|
|
15230
15222
|
fixed: [Boolean, String],
|
|
15231
|
-
store: {
|
|
15232
|
-
type: Object,
|
|
15233
|
-
required: true
|
|
15234
|
-
},
|
|
15235
15223
|
border: Boolean,
|
|
15236
15224
|
// 排序全部交给外部处理,内部不处理数据,只做交互
|
|
15237
15225
|
defaultSort: {
|
|
@@ -15380,7 +15368,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15380
15368
|
column.width = columnWidth;
|
|
15381
15369
|
column.realWidth = column.width;
|
|
15382
15370
|
table.$emit('header-dragend', column.width, startLeft - startColumnLeft, column, event);
|
|
15383
|
-
|
|
15371
|
+
table.store.scheduleLayout();
|
|
15384
15372
|
document.body.style.cursor = '';
|
|
15385
15373
|
dragging.value = false;
|
|
15386
15374
|
draggingColumn.value = null;
|
|
@@ -15485,7 +15473,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15485
15473
|
}, [column.renderHeader ? column.renderHeader({
|
|
15486
15474
|
column,
|
|
15487
15475
|
columnIndex,
|
|
15488
|
-
store:
|
|
15476
|
+
store: table.store
|
|
15489
15477
|
}) : column.label, column.tooltip ? vue.createVNode(Icon, {
|
|
15490
15478
|
"type": "o-info",
|
|
15491
15479
|
"onMouseenter": e => handleCellMouseEnter(e, column)
|
|
@@ -15508,10 +15496,6 @@ const TableFooter = /* @__PURE__ */ vue.defineComponent({
|
|
|
15508
15496
|
name: 'vc-table-footer',
|
|
15509
15497
|
props: {
|
|
15510
15498
|
fixed: [String, Boolean],
|
|
15511
|
-
store: {
|
|
15512
|
-
type: Object,
|
|
15513
|
-
required: true
|
|
15514
|
-
},
|
|
15515
15499
|
getSummary: Function,
|
|
15516
15500
|
sumText: String,
|
|
15517
15501
|
border: Boolean
|
|
@@ -15533,7 +15517,7 @@ const TableFooter = /* @__PURE__ */ vue.defineComponent({
|
|
|
15533
15517
|
} else if (props.fixed === 'right') {
|
|
15534
15518
|
let before = 0;
|
|
15535
15519
|
for (let i = 0; i < index; i++) {
|
|
15536
|
-
before += states.columns[i].
|
|
15520
|
+
before += states.columns[i].colspan;
|
|
15537
15521
|
}
|
|
15538
15522
|
return before < states.columnsCount - states.rightFixedLeafCount;
|
|
15539
15523
|
} else if (!props.fixed && column.fixed) {
|
|
@@ -15627,6 +15611,7 @@ const props$c = {
|
|
|
15627
15611
|
width: [String, Number],
|
|
15628
15612
|
height: [String, Number],
|
|
15629
15613
|
maxHeight: [String, Number],
|
|
15614
|
+
rowHeight: [String, Number],
|
|
15630
15615
|
// 列的宽度是否自撑开
|
|
15631
15616
|
fit: {
|
|
15632
15617
|
type: Boolean,
|
|
@@ -15707,7 +15692,9 @@ const props$c = {
|
|
|
15707
15692
|
defaultSort: {
|
|
15708
15693
|
type: Object,
|
|
15709
15694
|
default: () => ({})
|
|
15710
|
-
}
|
|
15695
|
+
},
|
|
15696
|
+
// 用于延迟渲染,用于计算高度
|
|
15697
|
+
delay: Number
|
|
15711
15698
|
};
|
|
15712
15699
|
|
|
15713
15700
|
/** @jsxImportSource vue */
|
|
@@ -15836,7 +15823,8 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
15836
15823
|
};
|
|
15837
15824
|
}
|
|
15838
15825
|
return {
|
|
15839
|
-
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : ''
|
|
15826
|
+
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : '',
|
|
15827
|
+
bottom: 0
|
|
15840
15828
|
};
|
|
15841
15829
|
}
|
|
15842
15830
|
});
|
|
@@ -16119,7 +16107,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16119
16107
|
"class": "vc-table__header-wrapper"
|
|
16120
16108
|
}, [vue.createVNode(TableHeader, {
|
|
16121
16109
|
"ref": tableHeader,
|
|
16122
|
-
"store": store,
|
|
16123
16110
|
"border": props.border,
|
|
16124
16111
|
"default-sort": props.defaultSort,
|
|
16125
16112
|
"style": bodyWidthStyle.value
|
|
@@ -16135,14 +16122,15 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16135
16122
|
}, {
|
|
16136
16123
|
default: () => [vue.createVNode(TableBody, {
|
|
16137
16124
|
"ref": body,
|
|
16138
|
-
"store": store,
|
|
16139
16125
|
"style": [bodyWidthStyle.value],
|
|
16140
16126
|
"height-style": [bodyHeightStyle.value],
|
|
16141
16127
|
"onScroll": handleScollY
|
|
16142
16128
|
}, null), props.data.length === 0 && vue.createVNode("div", {
|
|
16143
16129
|
"ref": emptyBlock,
|
|
16144
16130
|
"style": bodyWidthStyle.value,
|
|
16145
|
-
"class":
|
|
16131
|
+
"class": [{
|
|
16132
|
+
'is-absolute': !!props.height
|
|
16133
|
+
}, 'vc-table__empty-wrapper']
|
|
16146
16134
|
}, [vue.createVNode("span", {
|
|
16147
16135
|
"class": "vc-table__empty-text"
|
|
16148
16136
|
}, [slots.empty ? slots.empty() : props.emptyText || '暂无数据'])]), slots.append && vue.createVNode("div", {
|
|
@@ -16153,7 +16141,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16153
16141
|
"ref": footerWrapper,
|
|
16154
16142
|
"class": "vc-table__footer-wrapper"
|
|
16155
16143
|
}, [vue.createVNode(TableFooter, {
|
|
16156
|
-
"store": store,
|
|
16157
16144
|
"border": props.border,
|
|
16158
16145
|
"sum-text": props.sumText || '合计',
|
|
16159
16146
|
"get-summary": props.getSummary,
|
|
@@ -16169,7 +16156,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16169
16156
|
"class": "vc-table__fixed-header-wrapper"
|
|
16170
16157
|
}, [vue.createVNode(TableHeader, {
|
|
16171
16158
|
"ref": leftFixedTableHeader,
|
|
16172
|
-
"store": store,
|
|
16173
16159
|
"border": props.border,
|
|
16174
16160
|
"default-sort": props.defaultSort,
|
|
16175
16161
|
"style": bodyWidthStyle.value,
|
|
@@ -16182,7 +16168,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16182
16168
|
"class": "vc-table__fixed-body-wrapper"
|
|
16183
16169
|
}, [vue.createVNode(TableBody, {
|
|
16184
16170
|
"ref": leftFixedBody,
|
|
16185
|
-
"store": store,
|
|
16186
16171
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
16187
16172
|
"fixed": "left"
|
|
16188
16173
|
}, null), slots.append && vue.createVNode("div", {
|
|
@@ -16194,7 +16179,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16194
16179
|
"ref": leftFixedFooterWrapper,
|
|
16195
16180
|
"class": "vc-table__fixed-footer-wrapper"
|
|
16196
16181
|
}, [vue.createVNode(TableFooter, {
|
|
16197
|
-
"store": store,
|
|
16198
16182
|
"border": props.border,
|
|
16199
16183
|
"sum-text": props.sumText || '合计',
|
|
16200
16184
|
"get-summary": props.getSummary,
|
|
@@ -16211,7 +16195,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16211
16195
|
"class": "vc-table__fixed-header-wrapper"
|
|
16212
16196
|
}, [vue.createVNode(TableHeader, {
|
|
16213
16197
|
"ref": rightFixedTableHeader,
|
|
16214
|
-
"store": store,
|
|
16215
16198
|
"border": props.border,
|
|
16216
16199
|
"default-sort": props.defaultSort,
|
|
16217
16200
|
"style": bodyWidthStyle.value,
|
|
@@ -16224,7 +16207,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16224
16207
|
"class": "vc-table__fixed-body-wrapper"
|
|
16225
16208
|
}, [vue.createVNode(TableBody, {
|
|
16226
16209
|
"ref": rightFixedBody,
|
|
16227
|
-
"store": store,
|
|
16228
16210
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
16229
16211
|
"fixed": "right"
|
|
16230
16212
|
}, null), slots.append && vue.createVNode("div", {
|
|
@@ -16236,7 +16218,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16236
16218
|
"ref": rightFixedFooterWrapper,
|
|
16237
16219
|
"class": "vc-table__fixed-footer-wrapper"
|
|
16238
16220
|
}, [vue.createVNode(TableFooter, {
|
|
16239
|
-
"store": store,
|
|
16240
16221
|
"border": props.border,
|
|
16241
16222
|
"sum-text": props.sumText || '合计',
|
|
16242
16223
|
"get-summary": props.getSummary,
|
|
@@ -16301,7 +16282,7 @@ const cellForced = {
|
|
|
16301
16282
|
"disabled": column.selectable ? !column.selectable.call(null, row, rowIndex) : false,
|
|
16302
16283
|
"onChange": () => store.rowSelectedChanged(row),
|
|
16303
16284
|
"onClick": e => e.stopPropagation()
|
|
16304
|
-
}, null), [[vue.vShow, store.
|
|
16285
|
+
}, null), [[vue.vShow, store.states.expandSelectable || level === 0]]);
|
|
16305
16286
|
},
|
|
16306
16287
|
sortable: false,
|
|
16307
16288
|
resizable: false
|
|
@@ -16535,16 +16516,9 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16535
16516
|
* @returns ~
|
|
16536
16517
|
*/
|
|
16537
16518
|
const setColumnWidth = column => {
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
if (realMinWidth.value) {
|
|
16542
|
-
column.minWidth = realMinWidth.value;
|
|
16543
|
-
}
|
|
16544
|
-
if (!column.minWidth) {
|
|
16545
|
-
column.minWidth = 80;
|
|
16546
|
-
}
|
|
16547
|
-
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;
|
|
16548
16522
|
return column;
|
|
16549
16523
|
};
|
|
16550
16524
|
|
|
@@ -16617,6 +16591,8 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16617
16591
|
};
|
|
16618
16592
|
const registerColumn = () => {
|
|
16619
16593
|
const defaults = {
|
|
16594
|
+
colspan: 1,
|
|
16595
|
+
rowspan: 1,
|
|
16620
16596
|
...cellStarts[props.type],
|
|
16621
16597
|
id: columnId.value,
|
|
16622
16598
|
realAlign,
|
|
@@ -16905,7 +16881,7 @@ const Tabs = /* @__PURE__ */ vue.defineComponent({
|
|
|
16905
16881
|
if (!Array.from(items).length) return;
|
|
16906
16882
|
let offset = 0;
|
|
16907
16883
|
if (index > 0) {
|
|
16908
|
-
const gutter =
|
|
16884
|
+
const gutter = 12; // margin-right -> 12px
|
|
16909
16885
|
for (let i = 0; i < index; i++) {
|
|
16910
16886
|
offset += parseFloat(items[i].offsetWidth) + gutter;
|
|
16911
16887
|
}
|
|
@@ -16977,7 +16953,7 @@ const Tabs = /* @__PURE__ */ vue.defineComponent({
|
|
|
16977
16953
|
}, [slots.extra?.()]), vue.createVNode("div", {
|
|
16978
16954
|
"ref": wrapper,
|
|
16979
16955
|
"style": {
|
|
16980
|
-
padding: tabs.scrollable.value
|
|
16956
|
+
padding: tabs.scrollable.value ? '0 24px' : 0
|
|
16981
16957
|
},
|
|
16982
16958
|
"class": "vc-tabs__bar"
|
|
16983
16959
|
}, [tabs.scrollable.value && vue.createVNode(Icon, {
|