@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.iife.js
CHANGED
|
@@ -53,9 +53,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
53
53
|
|
|
54
54
|
/** @jsxImportSource vue */
|
|
55
55
|
|
|
56
|
-
const COMPONENT_NAME$
|
|
56
|
+
const COMPONENT_NAME$1_ = 'vc-action-sheet';
|
|
57
57
|
const ActionSheet = /* @__PURE__ */ vue.defineComponent({
|
|
58
|
-
name: COMPONENT_NAME$
|
|
58
|
+
name: COMPONENT_NAME$1_,
|
|
59
59
|
props: props$1q,
|
|
60
60
|
setup(props, {
|
|
61
61
|
slots
|
|
@@ -242,9 +242,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
242
242
|
|
|
243
243
|
/** @jsxImportSource vue */
|
|
244
244
|
|
|
245
|
-
const COMPONENT_NAME$
|
|
245
|
+
const COMPONENT_NAME$1Z = 'vc-icon';
|
|
246
246
|
const Icon = /* @__PURE__ */ vue.defineComponent({
|
|
247
|
-
name: COMPONENT_NAME$
|
|
247
|
+
name: COMPONENT_NAME$1Z,
|
|
248
248
|
props: props$1o,
|
|
249
249
|
setup(props) {
|
|
250
250
|
const viewBox = vue.ref('0 0 1024 1024');
|
|
@@ -443,9 +443,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
443
443
|
};
|
|
444
444
|
};
|
|
445
445
|
|
|
446
|
-
const COMPONENT_NAME$
|
|
446
|
+
const COMPONENT_NAME$1Y = "vc-transition";
|
|
447
447
|
const Transition = vue.defineComponent({
|
|
448
|
-
name: COMPONENT_NAME$
|
|
448
|
+
name: COMPONENT_NAME$1Y,
|
|
449
449
|
props: props$1n,
|
|
450
450
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
451
451
|
inheritAttrs: false,
|
|
@@ -466,9 +466,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
466
466
|
}
|
|
467
467
|
});
|
|
468
468
|
|
|
469
|
-
const COMPONENT_NAME$
|
|
469
|
+
const COMPONENT_NAME$1X = "vc-transition-collapse";
|
|
470
470
|
const TransitionCollapse = vue.defineComponent({
|
|
471
|
-
name: COMPONENT_NAME$
|
|
471
|
+
name: COMPONENT_NAME$1X,
|
|
472
472
|
props: props$1n,
|
|
473
473
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
474
474
|
inheritAttrs: false,
|
|
@@ -587,9 +587,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
587
587
|
}
|
|
588
588
|
});
|
|
589
589
|
|
|
590
|
-
const COMPONENT_NAME$
|
|
590
|
+
const COMPONENT_NAME$1W = "vc-transition-fade";
|
|
591
591
|
const TransitionFade = vue.defineComponent({
|
|
592
|
-
name: COMPONENT_NAME$
|
|
592
|
+
name: COMPONENT_NAME$1W,
|
|
593
593
|
props: {
|
|
594
594
|
...props$1n,
|
|
595
595
|
// inheritAttrs必须是false
|
|
@@ -624,9 +624,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
626
|
|
|
627
|
-
const COMPONENT_NAME$
|
|
627
|
+
const COMPONENT_NAME$1V = "vc-transition-scale";
|
|
628
628
|
const TransitionScale = vue.defineComponent({
|
|
629
|
-
name: COMPONENT_NAME$
|
|
629
|
+
name: COMPONENT_NAME$1V,
|
|
630
630
|
props: {
|
|
631
631
|
...props$1n,
|
|
632
632
|
mode: {
|
|
@@ -666,9 +666,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
|
|
669
|
-
const COMPONENT_NAME$
|
|
669
|
+
const COMPONENT_NAME$1U = "vc-transition-slide";
|
|
670
670
|
const TransitionSlide = vue.defineComponent({
|
|
671
|
-
name: COMPONENT_NAME$
|
|
671
|
+
name: COMPONENT_NAME$1U,
|
|
672
672
|
props: {
|
|
673
673
|
...props$1n,
|
|
674
674
|
mode: {
|
|
@@ -708,9 +708,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
708
708
|
}
|
|
709
709
|
});
|
|
710
710
|
|
|
711
|
-
const COMPONENT_NAME$
|
|
711
|
+
const COMPONENT_NAME$1T = "vc-transition-zoom";
|
|
712
712
|
const TransitionZoom = vue.defineComponent({
|
|
713
|
-
name: COMPONENT_NAME$
|
|
713
|
+
name: COMPONENT_NAME$1T,
|
|
714
714
|
props: {
|
|
715
715
|
...props$1n,
|
|
716
716
|
mode: {
|
|
@@ -752,7 +752,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
752
752
|
|
|
753
753
|
/** @jsxImportSource vue */
|
|
754
754
|
|
|
755
|
-
const COMPONENT_NAME$
|
|
755
|
+
const COMPONENT_NAME$1S = 'vc-alert';
|
|
756
756
|
|
|
757
757
|
// [color, borderColor, backgroundColor], -> CSS
|
|
758
758
|
const THEME_MAP = {
|
|
@@ -762,7 +762,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
762
762
|
warning: ['#ffbf00', '#ffe58f', '#fffbe6']
|
|
763
763
|
};
|
|
764
764
|
const Alert = /* @__PURE__ */ vue.defineComponent({
|
|
765
|
-
name: COMPONENT_NAME$
|
|
765
|
+
name: COMPONENT_NAME$1S,
|
|
766
766
|
props: props$1p,
|
|
767
767
|
setup(props, {
|
|
768
768
|
slots,
|
|
@@ -861,9 +861,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
861
861
|
|
|
862
862
|
/** @jsxImportSource vue */
|
|
863
863
|
|
|
864
|
-
const COMPONENT_NAME$
|
|
864
|
+
const COMPONENT_NAME$1R = 'vc-artboard';
|
|
865
865
|
const Artboard = /* @__PURE__ */ vue.defineComponent({
|
|
866
|
-
name: COMPONENT_NAME$
|
|
866
|
+
name: COMPONENT_NAME$1R,
|
|
867
867
|
props: props$1m,
|
|
868
868
|
setup(props, {
|
|
869
869
|
slots
|
|
@@ -902,9 +902,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
902
902
|
|
|
903
903
|
/** @jsxImportSource vue */
|
|
904
904
|
|
|
905
|
-
const COMPONENT_NAME$
|
|
905
|
+
const COMPONENT_NAME$1Q = 'vc-spin';
|
|
906
906
|
const Spin = /* @__PURE__ */ vue.defineComponent({
|
|
907
|
-
name: COMPONENT_NAME$
|
|
907
|
+
name: COMPONENT_NAME$1Q,
|
|
908
908
|
props: props$1l,
|
|
909
909
|
setup(props, {
|
|
910
910
|
slots
|
|
@@ -5760,9 +5760,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
5760
5760
|
exclude: RegExp
|
|
5761
5761
|
};
|
|
5762
5762
|
|
|
5763
|
-
const COMPONENT_NAME$
|
|
5763
|
+
const COMPONENT_NAME$1P = "vc-debounce";
|
|
5764
5764
|
const Debounce = vue.defineComponent({
|
|
5765
|
-
name: COMPONENT_NAME$
|
|
5765
|
+
name: COMPONENT_NAME$1P,
|
|
5766
5766
|
props: props$1k,
|
|
5767
5767
|
/**
|
|
5768
5768
|
* 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
|
|
@@ -5834,9 +5834,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
5834
5834
|
|
|
5835
5835
|
/** @jsxImportSource vue */
|
|
5836
5836
|
|
|
5837
|
-
const COMPONENT_NAME$
|
|
5837
|
+
const COMPONENT_NAME$1O = 'vc-button';
|
|
5838
5838
|
const Button = /* @__PURE__ */ vue.defineComponent({
|
|
5839
|
-
name: COMPONENT_NAME$
|
|
5839
|
+
name: COMPONENT_NAME$1O,
|
|
5840
5840
|
emits: ['click'],
|
|
5841
5841
|
props: props$1j,
|
|
5842
5842
|
setup(props, {
|
|
@@ -5916,9 +5916,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
5916
5916
|
|
|
5917
5917
|
/** @jsxImportSource vue */
|
|
5918
5918
|
|
|
5919
|
-
const COMPONENT_NAME$
|
|
5919
|
+
const COMPONENT_NAME$1N = 'vc-button-group';
|
|
5920
5920
|
const ButtonGroup = /* @__PURE__ */ vue.defineComponent({
|
|
5921
|
-
name: COMPONENT_NAME$
|
|
5921
|
+
name: COMPONENT_NAME$1N,
|
|
5922
5922
|
props: props$1i,
|
|
5923
5923
|
setup(props, {
|
|
5924
5924
|
slots
|
|
@@ -5952,9 +5952,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
5952
5952
|
|
|
5953
5953
|
/** @jsxImportSource vue */
|
|
5954
5954
|
|
|
5955
|
-
const COMPONENT_NAME$
|
|
5955
|
+
const COMPONENT_NAME$1M = 'vc-calendar';
|
|
5956
5956
|
const Calendar$1 = /* @__PURE__ */ vue.defineComponent({
|
|
5957
|
-
name: COMPONENT_NAME$
|
|
5957
|
+
name: COMPONENT_NAME$1M,
|
|
5958
5958
|
props: props$1h,
|
|
5959
5959
|
setup(props, {
|
|
5960
5960
|
slots
|
|
@@ -5992,9 +5992,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
5992
5992
|
|
|
5993
5993
|
/** @jsxImportSource vue */
|
|
5994
5994
|
|
|
5995
|
-
const COMPONENT_NAME$
|
|
5995
|
+
const COMPONENT_NAME$1L = 'vc-card';
|
|
5996
5996
|
const Card = /* @__PURE__ */ vue.defineComponent({
|
|
5997
|
-
name: COMPONENT_NAME$
|
|
5997
|
+
name: COMPONENT_NAME$1L,
|
|
5998
5998
|
props: props$1g,
|
|
5999
5999
|
setup(props, {
|
|
6000
6000
|
slots
|
|
@@ -6030,9 +6030,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6030
6030
|
|
|
6031
6031
|
/** @jsxImportSource vue */
|
|
6032
6032
|
|
|
6033
|
-
const COMPONENT_NAME$
|
|
6033
|
+
const COMPONENT_NAME$1K = 'vc-carousel';
|
|
6034
6034
|
const Carousel = /* @__PURE__ */ vue.defineComponent({
|
|
6035
|
-
name: COMPONENT_NAME$
|
|
6035
|
+
name: COMPONENT_NAME$1K,
|
|
6036
6036
|
props: props$1f,
|
|
6037
6037
|
setup(props, {
|
|
6038
6038
|
slots
|
|
@@ -6056,9 +6056,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6056
6056
|
|
|
6057
6057
|
/** @jsxImportSource vue */
|
|
6058
6058
|
|
|
6059
|
-
const COMPONENT_NAME$
|
|
6059
|
+
const COMPONENT_NAME$1J = 'vc-cascader';
|
|
6060
6060
|
const Cascader = /* @__PURE__ */ vue.defineComponent({
|
|
6061
|
-
name: COMPONENT_NAME$
|
|
6061
|
+
name: COMPONENT_NAME$1J,
|
|
6062
6062
|
props: props$1e,
|
|
6063
6063
|
setup(props, {
|
|
6064
6064
|
slots
|
|
@@ -6190,9 +6190,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6190
6190
|
|
|
6191
6191
|
/** @jsxImportSource vue */
|
|
6192
6192
|
|
|
6193
|
-
const COMPONENT_NAME$
|
|
6193
|
+
const COMPONENT_NAME$1I = 'vc-chart';
|
|
6194
6194
|
const Chart = /* @__PURE__ */ vue.defineComponent({
|
|
6195
|
-
name: COMPONENT_NAME$
|
|
6195
|
+
name: COMPONENT_NAME$1I,
|
|
6196
6196
|
props: props$1d,
|
|
6197
6197
|
emits: [...EVENTS, 'ready'],
|
|
6198
6198
|
setup(props, {
|
|
@@ -6423,9 +6423,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6423
6423
|
|
|
6424
6424
|
/** @jsxImportSource vue */
|
|
6425
6425
|
|
|
6426
|
-
const COMPONENT_NAME$
|
|
6426
|
+
const COMPONENT_NAME$1H = 'vc-checkbox';
|
|
6427
6427
|
const Checkbox = /* @__PURE__ */ vue.defineComponent({
|
|
6428
|
-
name: COMPONENT_NAME$
|
|
6428
|
+
name: COMPONENT_NAME$1H,
|
|
6429
6429
|
props: props$1c,
|
|
6430
6430
|
emits: ['update:modelValue', 'change'],
|
|
6431
6431
|
setup(props, {
|
|
@@ -6512,9 +6512,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6512
6512
|
|
|
6513
6513
|
/** @jsxImportSource vue */
|
|
6514
6514
|
|
|
6515
|
-
const COMPONENT_NAME$
|
|
6515
|
+
const COMPONENT_NAME$1G = 'vc-checkbox-group';
|
|
6516
6516
|
const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
6517
|
-
name: COMPONENT_NAME$
|
|
6517
|
+
name: COMPONENT_NAME$1G,
|
|
6518
6518
|
props: props$1b,
|
|
6519
6519
|
emits: ['update:modelValue', 'change'],
|
|
6520
6520
|
setup(props, {
|
|
@@ -6532,9 +6532,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6532
6532
|
|
|
6533
6533
|
/** @jsxImportSource vue */
|
|
6534
6534
|
|
|
6535
|
-
const COMPONENT_NAME$
|
|
6535
|
+
const COMPONENT_NAME$1F = 'vcm-checkbox';
|
|
6536
6536
|
const MCheckbox = /* @__PURE__ */ vue.defineComponent({
|
|
6537
|
-
name: COMPONENT_NAME$
|
|
6537
|
+
name: COMPONENT_NAME$1F,
|
|
6538
6538
|
props: props$1c,
|
|
6539
6539
|
emits: ['update:modelValue', 'change'],
|
|
6540
6540
|
setup(props, {
|
|
@@ -6574,9 +6574,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6574
6574
|
|
|
6575
6575
|
/** @jsxImportSource vue */
|
|
6576
6576
|
|
|
6577
|
-
const COMPONENT_NAME$
|
|
6577
|
+
const COMPONENT_NAME$1E = 'vcm-checkbox-group';
|
|
6578
6578
|
const MCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
6579
|
-
name: COMPONENT_NAME$
|
|
6579
|
+
name: COMPONENT_NAME$1E,
|
|
6580
6580
|
props: props$1b,
|
|
6581
6581
|
emits: ['update:modelValue', 'change'],
|
|
6582
6582
|
setup(props, {
|
|
@@ -6635,9 +6635,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6635
6635
|
}
|
|
6636
6636
|
};
|
|
6637
6637
|
|
|
6638
|
-
const COMPONENT_NAME$
|
|
6638
|
+
const COMPONENT_NAME$1D = "vc-customer";
|
|
6639
6639
|
const Customer = vue.defineComponent({
|
|
6640
|
-
name: COMPONENT_NAME$
|
|
6640
|
+
name: COMPONENT_NAME$1D,
|
|
6641
6641
|
props: props$19,
|
|
6642
6642
|
setup(props, context) {
|
|
6643
6643
|
return () => vue.h(() => {
|
|
@@ -6648,9 +6648,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
6648
6648
|
|
|
6649
6649
|
/** @jsxImportSource vue */
|
|
6650
6650
|
|
|
6651
|
-
const COMPONENT_NAME$
|
|
6651
|
+
const COMPONENT_NAME$1C = 'vc-message';
|
|
6652
6652
|
const MessageView = /* @__PURE__ */ vue.defineComponent({
|
|
6653
|
-
name: COMPONENT_NAME$
|
|
6653
|
+
name: COMPONENT_NAME$1C,
|
|
6654
6654
|
emits: ['before-close', 'close', 'portal-fulfilled'],
|
|
6655
6655
|
props: props$1a,
|
|
6656
6656
|
setup(props, {
|
|
@@ -7210,7 +7210,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7210
7210
|
}
|
|
7211
7211
|
}
|
|
7212
7212
|
|
|
7213
|
-
const COMPONENT_NAME$
|
|
7213
|
+
const COMPONENT_NAME$1B = "vc-portal";
|
|
7214
7214
|
class Portal {
|
|
7215
7215
|
/**
|
|
7216
7216
|
* 清理Portals类型组件
|
|
@@ -7262,7 +7262,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7262
7262
|
this.wrapper = wrapper;
|
|
7263
7263
|
this.globalOptions = {
|
|
7264
7264
|
...options,
|
|
7265
|
-
name: options?.name || wrapper.name || getUid(COMPONENT_NAME$
|
|
7265
|
+
name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1B)
|
|
7266
7266
|
};
|
|
7267
7267
|
}
|
|
7268
7268
|
popup(propsData, options) {
|
|
@@ -7361,7 +7361,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7361
7361
|
...rest
|
|
7362
7362
|
} = options;
|
|
7363
7363
|
let useAllNodes = fragment;
|
|
7364
|
-
const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$
|
|
7364
|
+
const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1B)}` : name$;
|
|
7365
7365
|
const container = document.createElement(tag);
|
|
7366
7366
|
const root = typeof el === "object" ? el : document.querySelector(el || "body");
|
|
7367
7367
|
!alive && Portal.leafs.get(name)?.destroy();
|
|
@@ -7395,7 +7395,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
7395
7395
|
} else {
|
|
7396
7396
|
const wrapper = this.wrapper;
|
|
7397
7397
|
const app = vue.createApp({
|
|
7398
|
-
name: COMPONENT_NAME$
|
|
7398
|
+
name: COMPONENT_NAME$1B,
|
|
7399
7399
|
parent,
|
|
7400
7400
|
setup() {
|
|
7401
7401
|
if (alive) {
|
|
@@ -7507,13 +7507,13 @@ var VcComponents = (function (exports, vue) {
|
|
|
7507
7507
|
}
|
|
7508
7508
|
};
|
|
7509
7509
|
|
|
7510
|
-
const COMPONENT_NAME$
|
|
7510
|
+
const COMPONENT_NAME$1A = 'vc-portal-view';
|
|
7511
7511
|
|
|
7512
7512
|
/**
|
|
7513
7513
|
* 写法不同,但与vue@2.x 保持一致
|
|
7514
7514
|
*/
|
|
7515
7515
|
const PortalView = /* @__PURE__ */ vue.defineComponent({
|
|
7516
|
-
name: COMPONENT_NAME$
|
|
7516
|
+
name: COMPONENT_NAME$1A,
|
|
7517
7517
|
props: props$18,
|
|
7518
7518
|
setup(props, {
|
|
7519
7519
|
slots
|
|
@@ -7684,9 +7684,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
7684
7684
|
return () => vue.h(props.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
|
|
7685
7685
|
};
|
|
7686
7686
|
|
|
7687
|
-
const COMPONENT_NAME$
|
|
7687
|
+
const COMPONENT_NAME$1z = "vc-clipboard";
|
|
7688
7688
|
const Clipboard$1 = vue.defineComponent({
|
|
7689
|
-
name: COMPONENT_NAME$
|
|
7689
|
+
name: COMPONENT_NAME$1z,
|
|
7690
7690
|
props: props$17,
|
|
7691
7691
|
setup() {
|
|
7692
7692
|
return useClipboard((content) => Message.success({ content }));
|
|
@@ -7726,9 +7726,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
7726
7726
|
|
|
7727
7727
|
/** @jsxImportSource vue */
|
|
7728
7728
|
|
|
7729
|
-
const COMPONENT_NAME$
|
|
7729
|
+
const COMPONENT_NAME$1y = 'vcm-toast';
|
|
7730
7730
|
const MToastView = /* @__PURE__ */ vue.defineComponent({
|
|
7731
|
-
name: COMPONENT_NAME$
|
|
7731
|
+
name: COMPONENT_NAME$1y,
|
|
7732
7732
|
emits: ['close', 'portal-fulfilled'],
|
|
7733
7733
|
props: props$16,
|
|
7734
7734
|
setup(props, {
|
|
@@ -7830,9 +7830,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
7830
7830
|
const error$2 = create$6({ mode: "error" });
|
|
7831
7831
|
const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
|
|
7832
7832
|
|
|
7833
|
-
const COMPONENT_NAME$
|
|
7833
|
+
const COMPONENT_NAME$1x = "vcm-clipboard";
|
|
7834
7834
|
const MClipboard$1 = vue.defineComponent({
|
|
7835
|
-
name: COMPONENT_NAME$
|
|
7835
|
+
name: COMPONENT_NAME$1x,
|
|
7836
7836
|
props: props$17,
|
|
7837
7837
|
setup() {
|
|
7838
7838
|
return useClipboard((content) => MToast.info({ content }));
|
|
@@ -7864,9 +7864,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
7864
7864
|
}
|
|
7865
7865
|
};
|
|
7866
7866
|
|
|
7867
|
-
const COMPONENT_NAME$
|
|
7867
|
+
const COMPONENT_NAME$1w = "vc-collapse";
|
|
7868
7868
|
const Collapse = vue.defineComponent({
|
|
7869
|
-
name: COMPONENT_NAME$
|
|
7869
|
+
name: COMPONENT_NAME$1w,
|
|
7870
7870
|
props: props$15,
|
|
7871
7871
|
emits: ["update:moodelValue", "change"],
|
|
7872
7872
|
setup(props, { slots, emit }) {
|
|
@@ -7983,9 +7983,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
7983
7983
|
function _isSlot$3(s) {
|
|
7984
7984
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
7985
7985
|
}
|
|
7986
|
-
const COMPONENT_NAME$
|
|
7986
|
+
const COMPONENT_NAME$1v = 'vc-expand';
|
|
7987
7987
|
const Expand$1 = /* @__PURE__ */ vue.defineComponent({
|
|
7988
|
-
name: COMPONENT_NAME$
|
|
7988
|
+
name: COMPONENT_NAME$1v,
|
|
7989
7989
|
props: props$13,
|
|
7990
7990
|
setup(props, {
|
|
7991
7991
|
slots
|
|
@@ -8015,9 +8015,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
8015
8015
|
|
|
8016
8016
|
/** @jsxImportSource vue */
|
|
8017
8017
|
|
|
8018
|
-
const COMPONENT_NAME$
|
|
8018
|
+
const COMPONENT_NAME$1u = 'vc-collapse-item';
|
|
8019
8019
|
const CollapseItem = /* @__PURE__ */ vue.defineComponent({
|
|
8020
|
-
name: COMPONENT_NAME$
|
|
8020
|
+
name: COMPONENT_NAME$1u,
|
|
8021
8021
|
props: props$14,
|
|
8022
8022
|
setup(props, {
|
|
8023
8023
|
slots,
|
|
@@ -8092,9 +8092,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
8092
8092
|
|
|
8093
8093
|
/** @jsxImportSource vue */
|
|
8094
8094
|
|
|
8095
|
-
const COMPONENT_NAME$
|
|
8095
|
+
const COMPONENT_NAME$1t = 'vc-color-picker';
|
|
8096
8096
|
const ColorPicker = /* @__PURE__ */ vue.defineComponent({
|
|
8097
|
-
name: COMPONENT_NAME$
|
|
8097
|
+
name: COMPONENT_NAME$1t,
|
|
8098
8098
|
props: props$12,
|
|
8099
8099
|
setup(props, {
|
|
8100
8100
|
slots
|
|
@@ -8118,9 +8118,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
8118
8118
|
|
|
8119
8119
|
/** @jsxImportSource vue */
|
|
8120
8120
|
|
|
8121
|
-
const COMPONENT_NAME$
|
|
8121
|
+
const COMPONENT_NAME$1s = 'vc-countdown';
|
|
8122
8122
|
const Countdown = /* @__PURE__ */ vue.defineComponent({
|
|
8123
|
-
name: COMPONENT_NAME$
|
|
8123
|
+
name: COMPONENT_NAME$1s,
|
|
8124
8124
|
props: props$11,
|
|
8125
8125
|
setup(props, {
|
|
8126
8126
|
slots
|
|
@@ -8633,9 +8633,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
8633
8633
|
|
|
8634
8634
|
/** @jsxImportSource vue */
|
|
8635
8635
|
|
|
8636
|
-
const COMPONENT_NAME$
|
|
8636
|
+
const COMPONENT_NAME$1r = 'vc-input';
|
|
8637
8637
|
const Input = /* @__PURE__ */ vue.defineComponent({
|
|
8638
|
-
name: COMPONENT_NAME$
|
|
8638
|
+
name: COMPONENT_NAME$1r,
|
|
8639
8639
|
inheritAttrs: false,
|
|
8640
8640
|
props: {
|
|
8641
8641
|
...props$$,
|
|
@@ -8969,9 +8969,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
8969
8969
|
|
|
8970
8970
|
/** @jsxImportSource vue */
|
|
8971
8971
|
|
|
8972
|
-
const COMPONENT_NAME$
|
|
8972
|
+
const COMPONENT_NAME$1q = 'vc-input-number';
|
|
8973
8973
|
const InputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
8974
|
-
name: COMPONENT_NAME$
|
|
8974
|
+
name: COMPONENT_NAME$1q,
|
|
8975
8975
|
props: props$X,
|
|
8976
8976
|
inheritAttrs: false,
|
|
8977
8977
|
setup(props, {
|
|
@@ -9035,9 +9035,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
9035
9035
|
|
|
9036
9036
|
/** @jsxImportSource vue */
|
|
9037
9037
|
|
|
9038
|
-
const COMPONENT_NAME$
|
|
9038
|
+
const COMPONENT_NAME$1p = 'vc-input-search';
|
|
9039
9039
|
const InputSearch = /* @__PURE__ */ vue.defineComponent({
|
|
9040
|
-
name: COMPONENT_NAME$
|
|
9040
|
+
name: COMPONENT_NAME$1p,
|
|
9041
9041
|
props: props$W,
|
|
9042
9042
|
inheritAttrs: false,
|
|
9043
9043
|
setup(props, {
|
|
@@ -9328,9 +9328,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
9328
9328
|
function _isSlot$2(s) {
|
|
9329
9329
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
9330
9330
|
}
|
|
9331
|
-
const COMPONENT_NAME$
|
|
9331
|
+
const COMPONENT_NAME$1o = 'vc-popover-wrapper';
|
|
9332
9332
|
const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
|
|
9333
|
-
name: COMPONENT_NAME$
|
|
9333
|
+
name: COMPONENT_NAME$1o,
|
|
9334
9334
|
props: props$_,
|
|
9335
9335
|
emits: ['portal-fulfilled', 'close'],
|
|
9336
9336
|
setup(props, {
|
|
@@ -9582,9 +9582,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
9582
9582
|
|
|
9583
9583
|
/** @jsxImportSource vue */
|
|
9584
9584
|
|
|
9585
|
-
const COMPONENT_NAME$
|
|
9585
|
+
const COMPONENT_NAME$1n = 'vc-popover';
|
|
9586
9586
|
const Popover$1 = /* @__PURE__ */ vue.defineComponent({
|
|
9587
|
-
name: COMPONENT_NAME$
|
|
9587
|
+
name: COMPONENT_NAME$1n,
|
|
9588
9588
|
props: props$Z,
|
|
9589
9589
|
emits: ['update:modelValue', 'visible-change', 'ready', 'close'],
|
|
9590
9590
|
setup(props, {
|
|
@@ -10685,9 +10685,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
10685
10685
|
}
|
|
10686
10686
|
return view;
|
|
10687
10687
|
};
|
|
10688
|
-
const COMPONENT_NAME$
|
|
10688
|
+
const COMPONENT_NAME$1m = 'vc-date-confirm';
|
|
10689
10689
|
const Confirm = /* @__PURE__ */ vue.defineComponent({
|
|
10690
|
-
name: COMPONENT_NAME$
|
|
10690
|
+
name: COMPONENT_NAME$1m,
|
|
10691
10691
|
props: {
|
|
10692
10692
|
showTime: {
|
|
10693
10693
|
type: Boolean,
|
|
@@ -10751,9 +10751,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
10751
10751
|
|
|
10752
10752
|
/** @jsxImportSource vue */
|
|
10753
10753
|
|
|
10754
|
-
const COMPONENT_NAME$
|
|
10754
|
+
const COMPONENT_NAME$1l = 'vc-date-header';
|
|
10755
10755
|
const DateHeader = /* @__PURE__ */ vue.defineComponent({
|
|
10756
|
-
name: COMPONENT_NAME$
|
|
10756
|
+
name: COMPONENT_NAME$1l,
|
|
10757
10757
|
props: {
|
|
10758
10758
|
panelDate: Date,
|
|
10759
10759
|
showNext: {
|
|
@@ -10837,9 +10837,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
10837
10837
|
|
|
10838
10838
|
/** @jsxImportSource vue */
|
|
10839
10839
|
|
|
10840
|
-
const COMPONENT_NAME$
|
|
10840
|
+
const COMPONENT_NAME$1k = 'vc-date-table';
|
|
10841
10841
|
const DateTable = /* @__PURE__ */ vue.defineComponent({
|
|
10842
|
-
name: COMPONENT_NAME$
|
|
10842
|
+
name: COMPONENT_NAME$1k,
|
|
10843
10843
|
props: {
|
|
10844
10844
|
value: Array,
|
|
10845
10845
|
firstDayOfWeek: {
|
|
@@ -11048,9 +11048,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
11048
11048
|
|
|
11049
11049
|
/** @jsxImportSource vue */
|
|
11050
11050
|
|
|
11051
|
-
const COMPONENT_NAME$
|
|
11051
|
+
const COMPONENT_NAME$1j = 'vc-month-table';
|
|
11052
11052
|
const MonthTable = /* @__PURE__ */ vue.defineComponent({
|
|
11053
|
-
name: COMPONENT_NAME$
|
|
11053
|
+
name: COMPONENT_NAME$1j,
|
|
11054
11054
|
props: {
|
|
11055
11055
|
value: Array,
|
|
11056
11056
|
panelDate: Date,
|
|
@@ -11182,7 +11182,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
11182
11182
|
|
|
11183
11183
|
/** @jsxImportSource vue */
|
|
11184
11184
|
|
|
11185
|
-
const COMPONENT_NAME$
|
|
11185
|
+
const COMPONENT_NAME$1i = 'vc-quarter-table';
|
|
11186
11186
|
|
|
11187
11187
|
/**
|
|
11188
11188
|
* 获取季度对应的月份范围
|
|
@@ -11216,7 +11216,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
11216
11216
|
}
|
|
11217
11217
|
};
|
|
11218
11218
|
const QuarterTable = /* @__PURE__ */ vue.defineComponent({
|
|
11219
|
-
name: COMPONENT_NAME$
|
|
11219
|
+
name: COMPONENT_NAME$1i,
|
|
11220
11220
|
props: {
|
|
11221
11221
|
value: Array,
|
|
11222
11222
|
panelDate: Date,
|
|
@@ -11339,9 +11339,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
11339
11339
|
|
|
11340
11340
|
/** @jsxImportSource vue */
|
|
11341
11341
|
|
|
11342
|
-
const COMPONENT_NAME$
|
|
11342
|
+
const COMPONENT_NAME$1h = 'vc-shortcuts-select';
|
|
11343
11343
|
const ShortcutsSelect = /* @__PURE__ */ vue.defineComponent({
|
|
11344
|
-
name: COMPONENT_NAME$
|
|
11344
|
+
name: COMPONENT_NAME$1h,
|
|
11345
11345
|
props: {
|
|
11346
11346
|
panelDate: Date,
|
|
11347
11347
|
config: Array,
|
|
@@ -11381,9 +11381,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
11381
11381
|
|
|
11382
11382
|
/** @jsxImportSource vue */
|
|
11383
11383
|
|
|
11384
|
-
const COMPONENT_NAME$
|
|
11384
|
+
const COMPONENT_NAME$1g = 'vc-time-select';
|
|
11385
11385
|
const TimeSelect = /* @__PURE__ */ vue.defineComponent({
|
|
11386
|
-
name: COMPONENT_NAME$
|
|
11386
|
+
name: COMPONENT_NAME$1g,
|
|
11387
11387
|
props: {
|
|
11388
11388
|
hours: {
|
|
11389
11389
|
type: [Number, String],
|
|
@@ -11662,9 +11662,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
11662
11662
|
|
|
11663
11663
|
/** @jsxImportSource vue */
|
|
11664
11664
|
|
|
11665
|
-
const COMPONENT_NAME$
|
|
11665
|
+
const COMPONENT_NAME$1f = 'vc-year-table';
|
|
11666
11666
|
const YearTable = /* @__PURE__ */ vue.defineComponent({
|
|
11667
|
-
name: COMPONENT_NAME$
|
|
11667
|
+
name: COMPONENT_NAME$1f,
|
|
11668
11668
|
props: {
|
|
11669
11669
|
value: Array,
|
|
11670
11670
|
panelDate: Date,
|
|
@@ -11787,9 +11787,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
11787
11787
|
}
|
|
11788
11788
|
return true;
|
|
11789
11789
|
};
|
|
11790
|
-
const COMPONENT_NAME$
|
|
11790
|
+
const COMPONENT_NAME$1e = 'vc-date-range-panel';
|
|
11791
11791
|
const DateRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
11792
|
-
name: COMPONENT_NAME$
|
|
11792
|
+
name: COMPONENT_NAME$1e,
|
|
11793
11793
|
props: {
|
|
11794
11794
|
...props$V,
|
|
11795
11795
|
confirm: {
|
|
@@ -12168,9 +12168,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
12168
12168
|
|
|
12169
12169
|
/** @jsxImportSource vue */
|
|
12170
12170
|
|
|
12171
|
-
const COMPONENT_NAME$
|
|
12171
|
+
const COMPONENT_NAME$1d = 'vc-date-panel';
|
|
12172
12172
|
const DatePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12173
|
-
name: COMPONENT_NAME$
|
|
12173
|
+
name: COMPONENT_NAME$1d,
|
|
12174
12174
|
props: {
|
|
12175
12175
|
...props$V,
|
|
12176
12176
|
type: String,
|
|
@@ -12378,9 +12378,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
12378
12378
|
const endYear = value[1].getFullYear();
|
|
12379
12379
|
return startYear === endYear;
|
|
12380
12380
|
};
|
|
12381
|
-
const COMPONENT_NAME$
|
|
12381
|
+
const COMPONENT_NAME$1c = 'vc-monthrange-panel';
|
|
12382
12382
|
const MonthRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12383
|
-
name: COMPONENT_NAME$
|
|
12383
|
+
name: COMPONENT_NAME$1c,
|
|
12384
12384
|
props: {
|
|
12385
12385
|
...props$V,
|
|
12386
12386
|
confirm: {
|
|
@@ -12555,9 +12555,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
12555
12555
|
const endYear = value[1].getFullYear();
|
|
12556
12556
|
return startYear === endYear;
|
|
12557
12557
|
};
|
|
12558
|
-
const COMPONENT_NAME$
|
|
12558
|
+
const COMPONENT_NAME$1b = 'vc-quarterrange-panel';
|
|
12559
12559
|
const QuarterRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12560
|
-
name: COMPONENT_NAME$
|
|
12560
|
+
name: COMPONENT_NAME$1b,
|
|
12561
12561
|
props: {
|
|
12562
12562
|
...props$V,
|
|
12563
12563
|
confirm: {
|
|
@@ -12796,9 +12796,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
12796
12796
|
seconds
|
|
12797
12797
|
};
|
|
12798
12798
|
};
|
|
12799
|
-
const COMPONENT_NAME$
|
|
12799
|
+
const COMPONENT_NAME$1a = 'vc-timerange-panel';
|
|
12800
12800
|
const TimeRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12801
|
-
name: COMPONENT_NAME$
|
|
12801
|
+
name: COMPONENT_NAME$1a,
|
|
12802
12802
|
props: props$U,
|
|
12803
12803
|
emits: ['pick', 'clear', 'ok'],
|
|
12804
12804
|
setup(props, {
|
|
@@ -12897,9 +12897,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
12897
12897
|
|
|
12898
12898
|
/** @jsxImportSource vue */
|
|
12899
12899
|
|
|
12900
|
-
const COMPONENT_NAME$
|
|
12900
|
+
const COMPONENT_NAME$19 = 'vc-time-panel';
|
|
12901
12901
|
const TimePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12902
|
-
name: COMPONENT_NAME$
|
|
12902
|
+
name: COMPONENT_NAME$19,
|
|
12903
12903
|
props: props$U,
|
|
12904
12904
|
emits: ['pick', 'clear', 'ok'],
|
|
12905
12905
|
setup(props, {
|
|
@@ -12954,7 +12954,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
12954
12954
|
|
|
12955
12955
|
/** @jsxImportSource vue */
|
|
12956
12956
|
|
|
12957
|
-
const COMPONENT_NAME$
|
|
12957
|
+
const COMPONENT_NAME$18 = 'vc-date-picker';
|
|
12958
12958
|
const getPanel$1 = type => {
|
|
12959
12959
|
if (['daterange', 'datetimerange'].includes(type)) {
|
|
12960
12960
|
return DateRangePanel;
|
|
@@ -12965,7 +12965,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
12965
12965
|
}
|
|
12966
12966
|
return DatePanel;
|
|
12967
12967
|
};
|
|
12968
|
-
const DatePicker = createPicker(COMPONENT_NAME$
|
|
12968
|
+
const DatePicker = createPicker(COMPONENT_NAME$18, props$10, () => {
|
|
12969
12969
|
const props = vue.getCurrentInstance().props;
|
|
12970
12970
|
const icon = vue.ref('date');
|
|
12971
12971
|
const panel = vue.shallowRef({});
|
|
@@ -12998,9 +12998,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
12998
12998
|
|
|
12999
12999
|
/** @jsxImportSource vue */
|
|
13000
13000
|
|
|
13001
|
-
const COMPONENT_NAME$
|
|
13001
|
+
const COMPONENT_NAME$17 = 'vc-divider';
|
|
13002
13002
|
const Divider = /* @__PURE__ */ vue.defineComponent({
|
|
13003
|
-
name: COMPONENT_NAME$
|
|
13003
|
+
name: COMPONENT_NAME$17,
|
|
13004
13004
|
props: props$T,
|
|
13005
13005
|
setup(props, {
|
|
13006
13006
|
slots
|
|
@@ -13155,7 +13155,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
13155
13155
|
|
|
13156
13156
|
/** @jsxImportSource vue */
|
|
13157
13157
|
|
|
13158
|
-
const COMPONENT_NAME$
|
|
13158
|
+
const COMPONENT_NAME$16 = 'vc-scroller-track';
|
|
13159
13159
|
const BAR_MAP = {
|
|
13160
13160
|
vertical: {
|
|
13161
13161
|
scroll: 'scrollTop',
|
|
@@ -13175,7 +13175,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
13175
13175
|
}
|
|
13176
13176
|
};
|
|
13177
13177
|
const Track$1 = /* @__PURE__ */ vue.defineComponent({
|
|
13178
|
-
name: COMPONENT_NAME$
|
|
13178
|
+
name: COMPONENT_NAME$16,
|
|
13179
13179
|
props: props$S,
|
|
13180
13180
|
emits: ['change'],
|
|
13181
13181
|
inheritAttrs: false,
|
|
@@ -13365,9 +13365,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
13365
13365
|
|
|
13366
13366
|
/** @jsxImportSource vue */
|
|
13367
13367
|
|
|
13368
|
-
const COMPONENT_NAME$
|
|
13368
|
+
const COMPONENT_NAME$15 = 'vc-scroller-bar';
|
|
13369
13369
|
const Bar = /* @__PURE__ */ vue.defineComponent({
|
|
13370
|
-
name: COMPONENT_NAME$
|
|
13370
|
+
name: COMPONENT_NAME$15,
|
|
13371
13371
|
props: props$R,
|
|
13372
13372
|
emits: ['change'],
|
|
13373
13373
|
setup(props, {
|
|
@@ -13582,7 +13582,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
13582
13582
|
|
|
13583
13583
|
/** @jsxImportSource vue */
|
|
13584
13584
|
|
|
13585
|
-
const COMPONENT_NAME$
|
|
13585
|
+
const COMPONENT_NAME$14 = 'vc-scroller';
|
|
13586
13586
|
|
|
13587
13587
|
/**
|
|
13588
13588
|
* 作为备选方案,目前推荐使用ScrollerWheel
|
|
@@ -13593,7 +13593,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
13593
13593
|
* 2. 增加了一层嵌套
|
|
13594
13594
|
*/
|
|
13595
13595
|
const Scroller = /* @__PURE__ */ vue.defineComponent({
|
|
13596
|
-
name: COMPONENT_NAME$
|
|
13596
|
+
name: COMPONENT_NAME$14,
|
|
13597
13597
|
props: props$Q,
|
|
13598
13598
|
emits: ['scroll'],
|
|
13599
13599
|
setup(props, {
|
|
@@ -14543,7 +14543,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
14543
14543
|
|
|
14544
14544
|
/** @jsxImportSource vue */
|
|
14545
14545
|
|
|
14546
|
-
const COMPONENT_NAME$
|
|
14546
|
+
const COMPONENT_NAME$13 = 'vc-scroller-wheel';
|
|
14547
14547
|
|
|
14548
14548
|
/**
|
|
14549
14549
|
* 为减少一层嵌套,为去除滚动bar的抖动,使用wheel模拟
|
|
@@ -14565,7 +14565,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
14565
14565
|
* 设置scrollTop不会reflow和repaint,不需要考虑transfrom来改变content(transform也只在draw完成)
|
|
14566
14566
|
*/
|
|
14567
14567
|
const ScrollerWheel = /* @__PURE__ */ vue.defineComponent({
|
|
14568
|
-
name: COMPONENT_NAME$
|
|
14568
|
+
name: COMPONENT_NAME$13,
|
|
14569
14569
|
props: Object.assign(props$Q, {
|
|
14570
14570
|
stopPropagation: {
|
|
14571
14571
|
type: Boolean,
|
|
@@ -14744,9 +14744,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
14744
14744
|
|
|
14745
14745
|
/** @jsxImportSource vue */
|
|
14746
14746
|
|
|
14747
|
-
const COMPONENT_NAME$
|
|
14747
|
+
const COMPONENT_NAME$12 = 'vc-drawer';
|
|
14748
14748
|
const DrawerView = /* @__PURE__ */ vue.defineComponent({
|
|
14749
|
-
name: COMPONENT_NAME$
|
|
14749
|
+
name: COMPONENT_NAME$12,
|
|
14750
14750
|
props: props$P,
|
|
14751
14751
|
emits: ['close', 'update:modelValue', 'visible-change'],
|
|
14752
14752
|
setup(props, {
|
|
@@ -14919,9 +14919,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
14919
14919
|
|
|
14920
14920
|
/** @jsxImportSource vue */
|
|
14921
14921
|
|
|
14922
|
-
const COMPONENT_NAME$
|
|
14922
|
+
const COMPONENT_NAME$11 = 'vc-dropdown';
|
|
14923
14923
|
const Dropdown = /* @__PURE__ */ vue.defineComponent({
|
|
14924
|
-
name: COMPONENT_NAME$
|
|
14924
|
+
name: COMPONENT_NAME$11,
|
|
14925
14925
|
props: props$O,
|
|
14926
14926
|
setup(props, {
|
|
14927
14927
|
slots
|
|
@@ -14945,9 +14945,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
14945
14945
|
|
|
14946
14946
|
/** @jsxImportSource vue */
|
|
14947
14947
|
|
|
14948
|
-
const COMPONENT_NAME$
|
|
14948
|
+
const COMPONENT_NAME$10 = 'vc-editor';
|
|
14949
14949
|
const Editor = /* @__PURE__ */ vue.defineComponent({
|
|
14950
|
-
name: COMPONENT_NAME$
|
|
14950
|
+
name: COMPONENT_NAME$10,
|
|
14951
14951
|
props: props$N,
|
|
14952
14952
|
setup(props, {
|
|
14953
14953
|
slots
|
|
@@ -15091,9 +15091,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
15091
15091
|
});
|
|
15092
15092
|
};
|
|
15093
15093
|
|
|
15094
|
-
const COMPONENT_NAME
|
|
15094
|
+
const COMPONENT_NAME$$ = "vc-form";
|
|
15095
15095
|
const Form = vue.defineComponent({
|
|
15096
|
-
name: COMPONENT_NAME
|
|
15096
|
+
name: COMPONENT_NAME$$,
|
|
15097
15097
|
props: props$M,
|
|
15098
15098
|
setup(props, { slots, expose }) {
|
|
15099
15099
|
useForm(expose);
|
|
@@ -15545,9 +15545,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
15545
15545
|
|
|
15546
15546
|
/** @jsxImportSource vue */
|
|
15547
15547
|
|
|
15548
|
-
const COMPONENT_NAME
|
|
15548
|
+
const COMPONENT_NAME$_ = 'vc-form-item';
|
|
15549
15549
|
const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
15550
|
-
name: COMPONENT_NAME
|
|
15550
|
+
name: COMPONENT_NAME$_,
|
|
15551
15551
|
props: props$L,
|
|
15552
15552
|
setup(props, {
|
|
15553
15553
|
slots,
|
|
@@ -15612,9 +15612,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
15612
15612
|
}
|
|
15613
15613
|
};
|
|
15614
15614
|
|
|
15615
|
-
const COMPONENT_NAME$
|
|
15615
|
+
const COMPONENT_NAME$Z = "vcm-form";
|
|
15616
15616
|
const MForm = vue.defineComponent({
|
|
15617
|
-
name: COMPONENT_NAME$
|
|
15617
|
+
name: COMPONENT_NAME$Z,
|
|
15618
15618
|
props: props$K,
|
|
15619
15619
|
setup(props, { slots, expose }) {
|
|
15620
15620
|
useForm(expose, {
|
|
@@ -15645,9 +15645,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
15645
15645
|
|
|
15646
15646
|
/** @jsxImportSource vue */
|
|
15647
15647
|
|
|
15648
|
-
const COMPONENT_NAME$
|
|
15648
|
+
const COMPONENT_NAME$Y = 'vcm-form-item';
|
|
15649
15649
|
const MFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
15650
|
-
name: COMPONENT_NAME$
|
|
15650
|
+
name: COMPONENT_NAME$Y,
|
|
15651
15651
|
props: props$J,
|
|
15652
15652
|
setup(props, {
|
|
15653
15653
|
slots,
|
|
@@ -15701,9 +15701,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
15701
15701
|
}
|
|
15702
15702
|
});
|
|
15703
15703
|
|
|
15704
|
-
const COMPONENT_NAME$
|
|
15704
|
+
const COMPONENT_NAME$X = "vc-fragment";
|
|
15705
15705
|
const Fragment = vue.defineComponent({
|
|
15706
|
-
name: COMPONENT_NAME$
|
|
15706
|
+
name: COMPONENT_NAME$X,
|
|
15707
15707
|
setup(_, { slots }) {
|
|
15708
15708
|
return () => vue.h(vue.Fragment, slots.default?.());
|
|
15709
15709
|
}
|
|
@@ -15720,9 +15720,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
15720
15720
|
|
|
15721
15721
|
/** @jsxImportSource vue */
|
|
15722
15722
|
|
|
15723
|
-
const COMPONENT_NAME$
|
|
15723
|
+
const COMPONENT_NAME$W = 'vc-html-to-image';
|
|
15724
15724
|
const HTMLToImage = /* @__PURE__ */ vue.defineComponent({
|
|
15725
|
-
name: COMPONENT_NAME$
|
|
15725
|
+
name: COMPONENT_NAME$W,
|
|
15726
15726
|
props: props$I,
|
|
15727
15727
|
setup(props, {
|
|
15728
15728
|
slots
|
|
@@ -16180,7 +16180,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
16180
16180
|
|
|
16181
16181
|
/** @jsxImportSource vue */
|
|
16182
16182
|
|
|
16183
|
-
const COMPONENT_NAME$
|
|
16183
|
+
const COMPONENT_NAME$V = 'vc-image';
|
|
16184
16184
|
let isSupportObjectFit = false;
|
|
16185
16185
|
window.addEventListener('DOMContentLoaded', () => {
|
|
16186
16186
|
isSupportObjectFit = !IS_SERVER$2 && document.documentElement.style.objectFit !== undefined;
|
|
@@ -16193,7 +16193,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
16193
16193
|
SCALE_DOWN: 'scale-down'
|
|
16194
16194
|
};
|
|
16195
16195
|
const Image$1 = /* @__PURE__ */ vue.defineComponent({
|
|
16196
|
-
name: COMPONENT_NAME$
|
|
16196
|
+
name: COMPONENT_NAME$V,
|
|
16197
16197
|
inheritAttrs: false,
|
|
16198
16198
|
props: props$H,
|
|
16199
16199
|
setup(props, {
|
|
@@ -16398,9 +16398,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
16398
16398
|
|
|
16399
16399
|
/** @jsxImportSource vue */
|
|
16400
16400
|
|
|
16401
|
-
const COMPONENT_NAME$
|
|
16401
|
+
const COMPONENT_NAME$U = 'vc-image-crop';
|
|
16402
16402
|
const ImageCrop = /* @__PURE__ */ vue.defineComponent({
|
|
16403
|
-
name: COMPONENT_NAME$
|
|
16403
|
+
name: COMPONENT_NAME$U,
|
|
16404
16404
|
props: props$G,
|
|
16405
16405
|
setup(props, {
|
|
16406
16406
|
slots
|
|
@@ -16424,9 +16424,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
16424
16424
|
|
|
16425
16425
|
/** @jsxImportSource vue */
|
|
16426
16426
|
|
|
16427
|
-
const COMPONENT_NAME$
|
|
16427
|
+
const COMPONENT_NAME$T = 'vc-image-preview';
|
|
16428
16428
|
const ImagePreview = /* @__PURE__ */ vue.defineComponent({
|
|
16429
|
-
name: COMPONENT_NAME$
|
|
16429
|
+
name: COMPONENT_NAME$T,
|
|
16430
16430
|
props: props$F,
|
|
16431
16431
|
setup(props, {
|
|
16432
16432
|
slots
|
|
@@ -16450,9 +16450,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
16450
16450
|
|
|
16451
16451
|
/** @jsxImportSource vue */
|
|
16452
16452
|
|
|
16453
|
-
const COMPONENT_NAME$
|
|
16453
|
+
const COMPONENT_NAME$S = 'vc-image-processing';
|
|
16454
16454
|
const ImageProcessing = /* @__PURE__ */ vue.defineComponent({
|
|
16455
|
-
name: COMPONENT_NAME$
|
|
16455
|
+
name: COMPONENT_NAME$S,
|
|
16456
16456
|
props: props$E,
|
|
16457
16457
|
setup(props, {
|
|
16458
16458
|
slots
|
|
@@ -16469,9 +16469,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
16469
16469
|
|
|
16470
16470
|
/** @jsxImportSource vue */
|
|
16471
16471
|
|
|
16472
|
-
const COMPONENT_NAME$
|
|
16472
|
+
const COMPONENT_NAME$R = 'vcm-input';
|
|
16473
16473
|
const MInput = /* @__PURE__ */ vue.defineComponent({
|
|
16474
|
-
name: COMPONENT_NAME$
|
|
16474
|
+
name: COMPONENT_NAME$R,
|
|
16475
16475
|
inheritAttrs: false,
|
|
16476
16476
|
props: {
|
|
16477
16477
|
...props$$,
|
|
@@ -16560,9 +16560,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
16560
16560
|
|
|
16561
16561
|
/** @jsxImportSource vue */
|
|
16562
16562
|
|
|
16563
|
-
const COMPONENT_NAME$
|
|
16563
|
+
const COMPONENT_NAME$Q = 'vcm-input-number';
|
|
16564
16564
|
const MInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
16565
|
-
name: COMPONENT_NAME$
|
|
16565
|
+
name: COMPONENT_NAME$Q,
|
|
16566
16566
|
props: props$X,
|
|
16567
16567
|
inheritAttrs: false,
|
|
16568
16568
|
setup(props, {
|
|
@@ -16611,9 +16611,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
16611
16611
|
|
|
16612
16612
|
/** @jsxImportSource vue */
|
|
16613
16613
|
|
|
16614
|
-
const COMPONENT_NAME$
|
|
16614
|
+
const COMPONENT_NAME$P = 'vcm-input-search';
|
|
16615
16615
|
const MInputSearch = /* @__PURE__ */ vue.defineComponent({
|
|
16616
|
-
name: COMPONENT_NAME$
|
|
16616
|
+
name: COMPONENT_NAME$P,
|
|
16617
16617
|
props: {
|
|
16618
16618
|
...props$W,
|
|
16619
16619
|
cancelText: {
|
|
@@ -16690,9 +16690,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
16690
16690
|
}
|
|
16691
16691
|
};
|
|
16692
16692
|
|
|
16693
|
-
const COMPONENT_NAME$
|
|
16693
|
+
const COMPONENT_NAME$O = "vcm-list";
|
|
16694
16694
|
const MList = vue.defineComponent({
|
|
16695
|
-
name: COMPONENT_NAME$
|
|
16695
|
+
name: COMPONENT_NAME$O,
|
|
16696
16696
|
props: props$D,
|
|
16697
16697
|
setup(props, { slots }) {
|
|
16698
16698
|
vue.provide("vc-list", { props });
|
|
@@ -16747,10 +16747,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
16747
16747
|
|
|
16748
16748
|
/** @jsxImportSource vue */
|
|
16749
16749
|
|
|
16750
|
-
const COMPONENT_NAME$
|
|
16750
|
+
const COMPONENT_NAME$N = 'vcm-list-item';
|
|
16751
16751
|
const HTTP_REGEX = /[a-zA-z]+:\/\/[^\s]*/;
|
|
16752
16752
|
const MListItem = /* @__PURE__ */ vue.defineComponent({
|
|
16753
|
-
name: COMPONENT_NAME$
|
|
16753
|
+
name: COMPONENT_NAME$N,
|
|
16754
16754
|
props: props$C,
|
|
16755
16755
|
emits: ['click'],
|
|
16756
16756
|
setup(props, {
|
|
@@ -16883,11 +16883,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
16883
16883
|
|
|
16884
16884
|
/** @jsxImportSource vue */
|
|
16885
16885
|
|
|
16886
|
-
const COMPONENT_NAME$
|
|
16886
|
+
const COMPONENT_NAME$M = 'vc-marquee';
|
|
16887
16887
|
const ANIMATION = prefixStyle('animation').camel;
|
|
16888
16888
|
const TRANSFORM_KEBAB = prefixStyle('transform').kebab;
|
|
16889
16889
|
const Marquee = /* @__PURE__ */ vue.defineComponent({
|
|
16890
|
-
name: COMPONENT_NAME$
|
|
16890
|
+
name: COMPONENT_NAME$M,
|
|
16891
16891
|
props: props$B,
|
|
16892
16892
|
setup(props, {
|
|
16893
16893
|
slots
|
|
@@ -16948,12 +16948,16 @@ var VcComponents = (function (exports, vue) {
|
|
|
16948
16948
|
tag: {
|
|
16949
16949
|
type: String,
|
|
16950
16950
|
default: "div"
|
|
16951
|
+
},
|
|
16952
|
+
fill: {
|
|
16953
|
+
type: Boolean,
|
|
16954
|
+
default: true
|
|
16951
16955
|
}
|
|
16952
16956
|
};
|
|
16953
16957
|
|
|
16954
|
-
const COMPONENT_NAME$
|
|
16958
|
+
const COMPONENT_NAME$L = "vc-resizer";
|
|
16955
16959
|
const Resizer = vue.defineComponent({
|
|
16956
|
-
name: COMPONENT_NAME$
|
|
16960
|
+
name: COMPONENT_NAME$L,
|
|
16957
16961
|
props: props$A,
|
|
16958
16962
|
emit: ["resize", "change"],
|
|
16959
16963
|
setup(props, { emit, slots, expose }) {
|
|
@@ -17002,13 +17006,13 @@ var VcComponents = (function (exports, vue) {
|
|
|
17002
17006
|
Resize.off(current.value, handleResize);
|
|
17003
17007
|
timer && clearTimeout(timer);
|
|
17004
17008
|
});
|
|
17005
|
-
expose({ refresh });
|
|
17009
|
+
expose({ refresh, offsetHeight: height, offsetWidth: width });
|
|
17006
17010
|
return () => {
|
|
17007
17011
|
return vue.h(
|
|
17008
17012
|
props.tag,
|
|
17009
17013
|
{
|
|
17010
17014
|
ref: current,
|
|
17011
|
-
class: "vc-resizer"
|
|
17015
|
+
class: ["vc-resizer", { "is-fill": props.fill }]
|
|
17012
17016
|
},
|
|
17013
17017
|
slots.default?.(currentExposed.value)
|
|
17014
17018
|
);
|
|
@@ -17034,7 +17038,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
17034
17038
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
17035
17039
|
default: "small"
|
|
17036
17040
|
},
|
|
17037
|
-
|
|
17041
|
+
contentClass: [Object, String],
|
|
17038
17042
|
width: {
|
|
17039
17043
|
type: Number
|
|
17040
17044
|
},
|
|
@@ -17083,6 +17087,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
17083
17087
|
type: Boolean,
|
|
17084
17088
|
default: true
|
|
17085
17089
|
},
|
|
17090
|
+
border: {
|
|
17091
|
+
type: Boolean,
|
|
17092
|
+
default: false
|
|
17093
|
+
},
|
|
17086
17094
|
/**
|
|
17087
17095
|
* 兼容portal设计, 实现Promise方式
|
|
17088
17096
|
*/
|
|
@@ -17096,10 +17104,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
17096
17104
|
|
|
17097
17105
|
/** @jsxImportSource vue */
|
|
17098
17106
|
|
|
17099
|
-
const COMPONENT_NAME$
|
|
17107
|
+
const COMPONENT_NAME$K = 'vc-modal';
|
|
17100
17108
|
let zIndexNumber = 1002;
|
|
17101
17109
|
const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
17102
|
-
name: COMPONENT_NAME$
|
|
17110
|
+
name: COMPONENT_NAME$K,
|
|
17103
17111
|
emits: ['update:modelValue', 'close', 'portal-fulfilled', 'visible-change', 'ok', 'cancel'],
|
|
17104
17112
|
props: props$z,
|
|
17105
17113
|
setup(props, {
|
|
@@ -17380,7 +17388,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
17380
17388
|
"class": [{
|
|
17381
17389
|
'is-drag': props.draggable,
|
|
17382
17390
|
'is-large': props.size === 'large' || props.size === 'medium',
|
|
17383
|
-
'
|
|
17391
|
+
'has-footer': props.footer && (props.cancelText || props.okText),
|
|
17392
|
+
'has-border': props.border
|
|
17384
17393
|
}, 'vc-modal__container'],
|
|
17385
17394
|
"style": [basicStyle.value, draggableStyle.value]
|
|
17386
17395
|
}, [vue.createVNode("div", {
|
|
@@ -17412,7 +17421,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
17412
17421
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
17413
17422
|
"contentClass": [{
|
|
17414
17423
|
'is-confirm': props.mode
|
|
17415
|
-
}, props.
|
|
17424
|
+
}, props.contentClass, 'vc-modal__content']
|
|
17416
17425
|
}, {
|
|
17417
17426
|
default: () => [typeof props.content === 'string' ? vue.createVNode("div", {
|
|
17418
17427
|
"innerHTML": props.content
|
|
@@ -17525,9 +17534,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
17525
17534
|
|
|
17526
17535
|
/** @jsxImportSource vue */
|
|
17527
17536
|
|
|
17528
|
-
const COMPONENT_NAME$
|
|
17537
|
+
const COMPONENT_NAME$J = 'vc-modal';
|
|
17529
17538
|
const MModalView = /* @__PURE__ */ vue.defineComponent({
|
|
17530
|
-
name: COMPONENT_NAME$
|
|
17539
|
+
name: COMPONENT_NAME$J,
|
|
17531
17540
|
emits: ['update:modelValue', 'portal-fulfilled', 'close', 'ok', 'cancel'],
|
|
17532
17541
|
props: props$y,
|
|
17533
17542
|
setup(props, {
|
|
@@ -17739,9 +17748,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
17739
17748
|
|
|
17740
17749
|
/** @jsxImportSource vue */
|
|
17741
17750
|
|
|
17742
|
-
const COMPONENT_NAME$
|
|
17751
|
+
const COMPONENT_NAME$I = 'vc-notice';
|
|
17743
17752
|
const NoticeView = /* @__PURE__ */ vue.defineComponent({
|
|
17744
|
-
name: COMPONENT_NAME$
|
|
17753
|
+
name: COMPONENT_NAME$I,
|
|
17745
17754
|
props: props$x,
|
|
17746
17755
|
emits: ['portal-fulfilled', 'close', 'before-close'],
|
|
17747
17756
|
setup(props, {
|
|
@@ -17914,9 +17923,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
17914
17923
|
|
|
17915
17924
|
/** @jsxImportSource vue */
|
|
17916
17925
|
|
|
17917
|
-
const COMPONENT_NAME$
|
|
17926
|
+
const COMPONENT_NAME$H = 'vc-option';
|
|
17918
17927
|
const Option$1 = /* @__PURE__ */ vue.defineComponent({
|
|
17919
|
-
name: COMPONENT_NAME$
|
|
17928
|
+
name: COMPONENT_NAME$H,
|
|
17920
17929
|
props: props$w,
|
|
17921
17930
|
setup(props, {
|
|
17922
17931
|
slots
|
|
@@ -18029,9 +18038,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18029
18038
|
|
|
18030
18039
|
/** @jsxImportSource vue */
|
|
18031
18040
|
|
|
18032
|
-
const COMPONENT_NAME$
|
|
18041
|
+
const COMPONENT_NAME$G = 'vc-tag';
|
|
18033
18042
|
const Tag = /* @__PURE__ */ vue.defineComponent({
|
|
18034
|
-
name: COMPONENT_NAME$
|
|
18043
|
+
name: COMPONENT_NAME$G,
|
|
18035
18044
|
props: props$u,
|
|
18036
18045
|
emits: ['close', 'change'],
|
|
18037
18046
|
setup(props, {
|
|
@@ -18100,9 +18109,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18100
18109
|
|
|
18101
18110
|
/** @jsxImportSource vue */
|
|
18102
18111
|
|
|
18103
|
-
const COMPONENT_NAME$
|
|
18112
|
+
const COMPONENT_NAME$F = 'vc-select-option';
|
|
18104
18113
|
const Option = /* @__PURE__ */ vue.defineComponent({
|
|
18105
|
-
name: COMPONENT_NAME$
|
|
18114
|
+
name: COMPONENT_NAME$F,
|
|
18106
18115
|
props: props$t,
|
|
18107
18116
|
setup(props, {
|
|
18108
18117
|
slots
|
|
@@ -18175,9 +18184,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18175
18184
|
|
|
18176
18185
|
/** @jsxImportSource vue */
|
|
18177
18186
|
|
|
18178
|
-
const COMPONENT_NAME$
|
|
18187
|
+
const COMPONENT_NAME$E = 'vc-select-option-group';
|
|
18179
18188
|
const OptionGroup = /* @__PURE__ */ vue.defineComponent({
|
|
18180
|
-
name: COMPONENT_NAME$
|
|
18189
|
+
name: COMPONENT_NAME$E,
|
|
18181
18190
|
props: props$s,
|
|
18182
18191
|
setup(props, {
|
|
18183
18192
|
slots
|
|
@@ -18275,9 +18284,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18275
18284
|
function _isSlot$1(s) {
|
|
18276
18285
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
18277
18286
|
}
|
|
18278
|
-
const COMPONENT_NAME$
|
|
18287
|
+
const COMPONENT_NAME$D = 'vc-select';
|
|
18279
18288
|
const Select = /* @__PURE__ */ vue.defineComponent({
|
|
18280
|
-
name: COMPONENT_NAME$
|
|
18289
|
+
name: COMPONENT_NAME$D,
|
|
18281
18290
|
props: props$r,
|
|
18282
18291
|
emits: ['ready', 'close', 'visible-change', 'clear', 'change', 'update:modelValue'],
|
|
18283
18292
|
setup(props, {
|
|
@@ -18521,9 +18530,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18521
18530
|
|
|
18522
18531
|
/** @jsxImportSource vue */
|
|
18523
18532
|
|
|
18524
|
-
const COMPONENT_NAME$
|
|
18533
|
+
const COMPONENT_NAME$C = 'vc-pagination';
|
|
18525
18534
|
const Pagination = /* @__PURE__ */ vue.defineComponent({
|
|
18526
|
-
name: COMPONENT_NAME$
|
|
18535
|
+
name: COMPONENT_NAME$C,
|
|
18527
18536
|
props: props$v,
|
|
18528
18537
|
emits: ['update:current', 'change', 'page-size-change'],
|
|
18529
18538
|
setup(props, {
|
|
@@ -18721,9 +18730,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18721
18730
|
|
|
18722
18731
|
/** @jsxImportSource vue */
|
|
18723
18732
|
|
|
18724
|
-
const COMPONENT_NAME$
|
|
18733
|
+
const COMPONENT_NAME$B = 'vc-picker';
|
|
18725
18734
|
const Picker = /* @__PURE__ */ vue.defineComponent({
|
|
18726
|
-
name: COMPONENT_NAME$
|
|
18735
|
+
name: COMPONENT_NAME$B,
|
|
18727
18736
|
props: props$q,
|
|
18728
18737
|
setup(props, {
|
|
18729
18738
|
slots
|
|
@@ -18747,9 +18756,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18747
18756
|
|
|
18748
18757
|
/** @jsxImportSource vue */
|
|
18749
18758
|
|
|
18750
|
-
const COMPONENT_NAME$
|
|
18759
|
+
const COMPONENT_NAME$A = 'vc-popconfirm';
|
|
18751
18760
|
const Popconfirm = /* @__PURE__ */ vue.defineComponent({
|
|
18752
|
-
name: COMPONENT_NAME$
|
|
18761
|
+
name: COMPONENT_NAME$A,
|
|
18753
18762
|
props: props$p,
|
|
18754
18763
|
setup(props, {
|
|
18755
18764
|
slots
|
|
@@ -18775,9 +18784,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18775
18784
|
|
|
18776
18785
|
/** @jsxImportSource vue */
|
|
18777
18786
|
|
|
18778
|
-
const COMPONENT_NAME$
|
|
18787
|
+
const COMPONENT_NAME$z = 'vc-popup';
|
|
18779
18788
|
const Popup = /* @__PURE__ */ vue.defineComponent({
|
|
18780
|
-
name: COMPONENT_NAME$
|
|
18789
|
+
name: COMPONENT_NAME$z,
|
|
18781
18790
|
props: props$o,
|
|
18782
18791
|
setup(props, {
|
|
18783
18792
|
slots
|
|
@@ -18804,9 +18813,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18804
18813
|
|
|
18805
18814
|
/** @jsxImportSource vue */
|
|
18806
18815
|
|
|
18807
|
-
const COMPONENT_NAME$
|
|
18816
|
+
const COMPONENT_NAME$y = 'vc-print';
|
|
18808
18817
|
const Print = /* @__PURE__ */ vue.defineComponent({
|
|
18809
|
-
name: COMPONENT_NAME$
|
|
18818
|
+
name: COMPONENT_NAME$y,
|
|
18810
18819
|
props: props$n,
|
|
18811
18820
|
setup(props, {
|
|
18812
18821
|
expose,
|
|
@@ -18870,6 +18879,12 @@ var VcComponents = (function (exports, vue) {
|
|
|
18870
18879
|
type: Boolean,
|
|
18871
18880
|
default: true
|
|
18872
18881
|
},
|
|
18882
|
+
textStyle: {
|
|
18883
|
+
type: [String, Object]
|
|
18884
|
+
},
|
|
18885
|
+
textClass: {
|
|
18886
|
+
type: [String, Object]
|
|
18887
|
+
},
|
|
18873
18888
|
animated: {
|
|
18874
18889
|
type: Boolean,
|
|
18875
18890
|
default: false
|
|
@@ -18902,9 +18917,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
18902
18917
|
|
|
18903
18918
|
/** @jsxImportSource vue */
|
|
18904
18919
|
|
|
18905
|
-
const COMPONENT_NAME$
|
|
18920
|
+
const COMPONENT_NAME$x = 'vc-progress-circle';
|
|
18906
18921
|
const Circle$1 = /* @__PURE__ */ vue.defineComponent({
|
|
18907
|
-
name: COMPONENT_NAME$
|
|
18922
|
+
name: COMPONENT_NAME$x,
|
|
18908
18923
|
props: props$m,
|
|
18909
18924
|
setup(props, {
|
|
18910
18925
|
slots
|
|
@@ -18953,17 +18968,20 @@ var VcComponents = (function (exports, vue) {
|
|
|
18953
18968
|
"stroke-linecap": "round",
|
|
18954
18969
|
"fill-opacity": "0"
|
|
18955
18970
|
}, null)]), vue.createVNode("div", {
|
|
18956
|
-
"class":
|
|
18957
|
-
}, [slots.default ? slots.default() : props.showText && vue.createVNode("span",
|
|
18971
|
+
"class": ['vc-progress-circle__inner']
|
|
18972
|
+
}, [slots.default ? slots.default() : props.showText && vue.createVNode("span", {
|
|
18973
|
+
"class": props.textClass,
|
|
18974
|
+
"style": props.textStyle
|
|
18975
|
+
}, [`${props.percent}%`])])])]);
|
|
18958
18976
|
};
|
|
18959
18977
|
}
|
|
18960
18978
|
});
|
|
18961
18979
|
|
|
18962
18980
|
/** @jsxImportSource vue */
|
|
18963
18981
|
|
|
18964
|
-
const COMPONENT_NAME$
|
|
18982
|
+
const COMPONENT_NAME$w = 'vc-progress-line';
|
|
18965
18983
|
const Line$2 = /* @__PURE__ */ vue.defineComponent({
|
|
18966
|
-
name: COMPONENT_NAME$
|
|
18984
|
+
name: COMPONENT_NAME$w,
|
|
18967
18985
|
props: props$m,
|
|
18968
18986
|
setup(props) {
|
|
18969
18987
|
const colorStyle = vue.computed(() => {
|
|
@@ -18992,12 +19010,15 @@ var VcComponents = (function (exports, vue) {
|
|
|
18992
19010
|
"style": innerStyle.value,
|
|
18993
19011
|
"class": [classes.value, 'vc-progress-line__inner']
|
|
18994
19012
|
}, null)])]), props.showText && vue.createVNode("div", {
|
|
18995
|
-
"class":
|
|
19013
|
+
"class": ['vc-progress-line__percent']
|
|
18996
19014
|
}, [['error', 'success'].includes(props.status) ? vue.createVNode(Icon, {
|
|
18997
19015
|
"type": props.status,
|
|
18998
19016
|
"style": colorStyle.value,
|
|
18999
19017
|
"class": [`is-${props.status}`, 'vc-progress-line__icon']
|
|
19000
|
-
}, null) : vue.createVNode("span",
|
|
19018
|
+
}, null) : vue.createVNode("span", {
|
|
19019
|
+
"class": props.textClass,
|
|
19020
|
+
"style": props.textStyle
|
|
19021
|
+
}, [`${props.percent}%`])])]);
|
|
19001
19022
|
};
|
|
19002
19023
|
}
|
|
19003
19024
|
});
|
|
@@ -19007,9 +19028,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
19007
19028
|
function _isSlot(s) {
|
|
19008
19029
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
19009
19030
|
}
|
|
19010
|
-
const COMPONENT_NAME$
|
|
19031
|
+
const COMPONENT_NAME$v = 'vc-progress';
|
|
19011
19032
|
const Progress = /* @__PURE__ */ vue.defineComponent({
|
|
19012
|
-
name: COMPONENT_NAME$
|
|
19033
|
+
name: COMPONENT_NAME$v,
|
|
19013
19034
|
props: props$m,
|
|
19014
19035
|
setup(props, {
|
|
19015
19036
|
slots
|
|
@@ -19161,9 +19182,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
19161
19182
|
|
|
19162
19183
|
/** @jsxImportSource vue */
|
|
19163
19184
|
|
|
19164
|
-
const COMPONENT_NAME$
|
|
19185
|
+
const COMPONENT_NAME$u = 'vc-radio';
|
|
19165
19186
|
const Radio = /* @__PURE__ */ vue.defineComponent({
|
|
19166
|
-
name: COMPONENT_NAME$
|
|
19187
|
+
name: COMPONENT_NAME$u,
|
|
19167
19188
|
props: props$l,
|
|
19168
19189
|
emits: ['update:modelValue', 'change'],
|
|
19169
19190
|
setup(props, {
|
|
@@ -19274,9 +19295,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
19274
19295
|
|
|
19275
19296
|
/** @jsxImportSource vue */
|
|
19276
19297
|
|
|
19277
|
-
const COMPONENT_NAME$
|
|
19298
|
+
const COMPONENT_NAME$t = 'vc-radio-group';
|
|
19278
19299
|
const RadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
19279
|
-
name: COMPONENT_NAME$
|
|
19300
|
+
name: COMPONENT_NAME$t,
|
|
19280
19301
|
props: props$k,
|
|
19281
19302
|
emits: ['update:modelValue', 'change'],
|
|
19282
19303
|
setup(props, {
|
|
@@ -19298,9 +19319,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
19298
19319
|
|
|
19299
19320
|
/** @jsxImportSource vue */
|
|
19300
19321
|
|
|
19301
|
-
const COMPONENT_NAME$
|
|
19322
|
+
const COMPONENT_NAME$s = 'vcm-radio';
|
|
19302
19323
|
const MRadio = /* @__PURE__ */ vue.defineComponent({
|
|
19303
|
-
name: COMPONENT_NAME$
|
|
19324
|
+
name: COMPONENT_NAME$s,
|
|
19304
19325
|
props: props$l,
|
|
19305
19326
|
emits: ['update:modelValue', 'change'],
|
|
19306
19327
|
setup(props, {
|
|
@@ -19341,9 +19362,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
19341
19362
|
|
|
19342
19363
|
/** @jsxImportSource vue */
|
|
19343
19364
|
|
|
19344
|
-
const COMPONENT_NAME$
|
|
19365
|
+
const COMPONENT_NAME$r = 'vcm-radio-group';
|
|
19345
19366
|
const MRadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
19346
|
-
name: COMPONENT_NAME$
|
|
19367
|
+
name: COMPONENT_NAME$r,
|
|
19347
19368
|
props: props$k,
|
|
19348
19369
|
emits: ['update:modelValue', 'change'],
|
|
19349
19370
|
setup(props, {
|
|
@@ -19372,9 +19393,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
19372
19393
|
|
|
19373
19394
|
/** @jsxImportSource vue */
|
|
19374
19395
|
|
|
19375
|
-
const COMPONENT_NAME$
|
|
19396
|
+
const COMPONENT_NAME$q = 'vc-rate';
|
|
19376
19397
|
const Rate = /* @__PURE__ */ vue.defineComponent({
|
|
19377
|
-
name: COMPONENT_NAME$
|
|
19398
|
+
name: COMPONENT_NAME$q,
|
|
19378
19399
|
props: props$j,
|
|
19379
19400
|
setup(props, {
|
|
19380
19401
|
slots
|
|
@@ -19556,9 +19577,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
19556
19577
|
|
|
19557
19578
|
/** @jsxImportSource vue */
|
|
19558
19579
|
|
|
19559
|
-
const COMPONENT_NAME$
|
|
19580
|
+
const COMPONENT_NAME$p = 'vc-recycle-list-scroll-state';
|
|
19560
19581
|
const ScrollState = /* @__PURE__ */ vue.defineComponent({
|
|
19561
|
-
name: COMPONENT_NAME$
|
|
19582
|
+
name: COMPONENT_NAME$p,
|
|
19562
19583
|
setup(_, {
|
|
19563
19584
|
slots
|
|
19564
19585
|
}) {
|
|
@@ -19688,12 +19709,12 @@ var VcComponents = (function (exports, vue) {
|
|
|
19688
19709
|
|
|
19689
19710
|
/** @jsxImportSource vue */
|
|
19690
19711
|
|
|
19691
|
-
const COMPONENT_NAME$
|
|
19712
|
+
const COMPONENT_NAME$o = 'vc-recycle-list-container';
|
|
19692
19713
|
|
|
19693
19714
|
// TODO: 抽离
|
|
19694
19715
|
const transformKey = prefixStyle('transform').camel;
|
|
19695
19716
|
const Container = /* @__PURE__ */ vue.defineComponent({
|
|
19696
|
-
name: COMPONENT_NAME$
|
|
19717
|
+
name: COMPONENT_NAME$o,
|
|
19697
19718
|
props: props$h,
|
|
19698
19719
|
emits: ['refresh'],
|
|
19699
19720
|
setup(props, {
|
|
@@ -19791,51 +19812,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
19791
19812
|
|
|
19792
19813
|
/** @jsxImportSource vue */
|
|
19793
19814
|
|
|
19794
|
-
const COMPONENT_NAME$o = 'vc-recycle-list-item';
|
|
19795
|
-
const Item = /* @__PURE__ */ vue.defineComponent({
|
|
19796
|
-
name: COMPONENT_NAME$o,
|
|
19797
|
-
props: {
|
|
19798
|
-
vertical: {
|
|
19799
|
-
type: Boolean,
|
|
19800
|
-
default: true
|
|
19801
|
-
}
|
|
19802
|
-
},
|
|
19803
|
-
emits: ['resize', 'change'],
|
|
19804
|
-
setup(_, {
|
|
19805
|
-
emit,
|
|
19806
|
-
slots
|
|
19807
|
-
}) {
|
|
19808
|
-
const K = useDirectionKeys();
|
|
19809
|
-
const current = vue.ref();
|
|
19810
|
-
const offsetSize = vue.ref(0);
|
|
19811
|
-
let hasInitial = false;
|
|
19812
|
-
const handleResize = () => {
|
|
19813
|
-
const v = current.value.getBoundingClientRect()[K.size];
|
|
19814
|
-
const changed = offsetSize.value != v;
|
|
19815
|
-
if (changed) {
|
|
19816
|
-
offsetSize.value = v;
|
|
19817
|
-
hasInitial && emit('resize', v);
|
|
19818
|
-
emit('change', v);
|
|
19819
|
-
}
|
|
19820
|
-
hasInitial = true;
|
|
19821
|
-
};
|
|
19822
|
-
vue.onMounted(() => {
|
|
19823
|
-
Resize.on(current.value, handleResize); // 首次会执行一次
|
|
19824
|
-
});
|
|
19825
|
-
vue.onBeforeUnmount(() => {
|
|
19826
|
-
Resize.off(current.value, handleResize);
|
|
19827
|
-
});
|
|
19828
|
-
return () => {
|
|
19829
|
-
return vue.createVNode("div", {
|
|
19830
|
-
"ref": current,
|
|
19831
|
-
"class": "vc-recycle-list-item"
|
|
19832
|
-
}, [slots?.default?.()]);
|
|
19833
|
-
};
|
|
19834
|
-
}
|
|
19835
|
-
});
|
|
19836
|
-
|
|
19837
|
-
/** @jsxImportSource vue */
|
|
19838
|
-
|
|
19839
19815
|
const COMPONENT_NAME$n = 'vc-recycle-list';
|
|
19840
19816
|
const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
19841
19817
|
name: COMPONENT_NAME$n,
|
|
@@ -20346,7 +20322,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
20346
20322
|
// eslint-disable-next-line @stylistic/max-len
|
|
20347
20323
|
slots.placeholder?.() || renderer.value.placeholder && vue.createVNode(Customer, {
|
|
20348
20324
|
"render": renderer.value.placeholder
|
|
20349
|
-
}, null)]), !item.isPlaceholder && vue.createVNode(
|
|
20325
|
+
}, null)]), !item.isPlaceholder && vue.createVNode(Resizer, {
|
|
20350
20326
|
"ref": v => curloads.value[item.id] = v,
|
|
20351
20327
|
"class": {
|
|
20352
20328
|
'vc-recycle-list__transition': hasPlaceholder.value
|
|
@@ -20354,11 +20330,11 @@ var VcComponents = (function (exports, vue) {
|
|
|
20354
20330
|
"style": {
|
|
20355
20331
|
opacity: item.loaded
|
|
20356
20332
|
},
|
|
20333
|
+
"fill": false,
|
|
20357
20334
|
"data-row": item.id,
|
|
20358
20335
|
"data-column": item.column,
|
|
20359
20336
|
"data-size": item.size,
|
|
20360
20337
|
"data-position": item.position,
|
|
20361
|
-
"vertical": props.vertical,
|
|
20362
20338
|
"onResize": handleResize
|
|
20363
20339
|
}, {
|
|
20364
20340
|
default: () => [slots.default?.({
|
|
@@ -37975,14 +37951,14 @@ var VcComponents = (function (exports, vue) {
|
|
|
37975
37951
|
}
|
|
37976
37952
|
}
|
|
37977
37953
|
if (column.children) {
|
|
37978
|
-
let
|
|
37954
|
+
let colspan = 0;
|
|
37979
37955
|
column.children.forEach((subColumn) => {
|
|
37980
37956
|
traverse(subColumn, column);
|
|
37981
|
-
|
|
37957
|
+
colspan += subColumn.colspan;
|
|
37982
37958
|
});
|
|
37983
|
-
column.
|
|
37959
|
+
column.colspan = colspan;
|
|
37984
37960
|
} else {
|
|
37985
|
-
column.
|
|
37961
|
+
column.colspan = 1;
|
|
37986
37962
|
}
|
|
37987
37963
|
};
|
|
37988
37964
|
v.forEach((column) => {
|
|
@@ -37996,9 +37972,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
37996
37972
|
const allColumns = getAllColumns(v);
|
|
37997
37973
|
allColumns.forEach((column) => {
|
|
37998
37974
|
if (!column.children) {
|
|
37999
|
-
column.
|
|
37975
|
+
column.rowspan = maxLevel - column.level + 1;
|
|
38000
37976
|
} else {
|
|
38001
|
-
column.
|
|
37977
|
+
column.rowspan = 1;
|
|
38002
37978
|
}
|
|
38003
37979
|
rows[column.level - 1].push(column);
|
|
38004
37980
|
});
|
|
@@ -38067,6 +38043,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
38067
38043
|
selection: [],
|
|
38068
38044
|
reserveSelection: false,
|
|
38069
38045
|
selectable: null,
|
|
38046
|
+
expandSelectable: null,
|
|
38070
38047
|
hoverRowIndex: null,
|
|
38071
38048
|
// Current
|
|
38072
38049
|
currentRow: null,
|
|
@@ -38593,6 +38570,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
38593
38570
|
this.layout = new Layout(this);
|
|
38594
38571
|
const { props } = options.table;
|
|
38595
38572
|
lodashExports.merge(this.states, {
|
|
38573
|
+
expandSelectable: props.expandSelectable,
|
|
38596
38574
|
treeLazy: props.lazy || false,
|
|
38597
38575
|
treeLazyColumnIdentifier: props.treeMap.hasChildren || "hasChildren",
|
|
38598
38576
|
treeChildrenColumnName: props.treeMap.children || "children"
|
|
@@ -38915,8 +38893,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
38915
38893
|
}
|
|
38916
38894
|
|
|
38917
38895
|
const useStates = (mapper, $store) => {
|
|
38918
|
-
const
|
|
38919
|
-
const store = $store || instance.proxy?.store;
|
|
38896
|
+
const store = $store || vue.inject("vc-table")?.store;
|
|
38920
38897
|
const states = vue.reactive({});
|
|
38921
38898
|
Object.keys(mapper).forEach((key) => {
|
|
38922
38899
|
const value = mapper[key];
|
|
@@ -38951,16 +38928,16 @@ var VcComponents = (function (exports, vue) {
|
|
|
38951
38928
|
emit,
|
|
38952
38929
|
slots
|
|
38953
38930
|
}) {
|
|
38954
|
-
const handleResize = (
|
|
38931
|
+
const handleResize = (e, index) => {
|
|
38955
38932
|
emit('row-resize', {
|
|
38956
38933
|
index,
|
|
38957
|
-
size
|
|
38934
|
+
size: e.height
|
|
38958
38935
|
});
|
|
38959
38936
|
};
|
|
38960
38937
|
return () => {
|
|
38961
38938
|
return props.data.map((row, index) => {
|
|
38962
|
-
return vue.createVNode(
|
|
38963
|
-
"
|
|
38939
|
+
return vue.createVNode(Resizer, {
|
|
38940
|
+
"fill": false,
|
|
38964
38941
|
"onChange": e => handleResize(e, index)
|
|
38965
38942
|
}, {
|
|
38966
38943
|
default: () => [slots.default?.({
|
|
@@ -38976,7 +38953,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
38976
38953
|
const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
38977
38954
|
name: 'vc-table-body',
|
|
38978
38955
|
props: {
|
|
38979
|
-
store: Object,
|
|
38980
38956
|
fixed: String,
|
|
38981
38957
|
heightStyle: [Object, Array, String]
|
|
38982
38958
|
},
|
|
@@ -38987,6 +38963,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
38987
38963
|
}) {
|
|
38988
38964
|
const instance = vue.getCurrentInstance();
|
|
38989
38965
|
const table = vue.inject('vc-table');
|
|
38966
|
+
const allowRender = vue.ref(false);
|
|
38990
38967
|
const states = useStates({
|
|
38991
38968
|
data: 'data',
|
|
38992
38969
|
list: 'list',
|
|
@@ -39004,8 +38981,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
39004
38981
|
}) => type === 'default')
|
|
39005
38982
|
});
|
|
39006
38983
|
const wrapper = vue.ref();
|
|
39007
|
-
vue.watch(() =>
|
|
39008
|
-
if (!
|
|
38984
|
+
vue.watch(() => table.store.states.hoverRowIndex, (v, oldV) => {
|
|
38985
|
+
if (!table.store.states.isComplex || IS_SERVER$2) return;
|
|
39009
38986
|
raf(() => {
|
|
39010
38987
|
const rows = instance.vnode.el.querySelectorAll('.vc-table__row');
|
|
39011
38988
|
const oldRow = rows[oldV];
|
|
@@ -39049,7 +39026,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39049
39026
|
};
|
|
39050
39027
|
const getRowClass = (row, rowIndex) => {
|
|
39051
39028
|
const classes = ['vc-table__row'];
|
|
39052
|
-
if (table.props.highlight && row ===
|
|
39029
|
+
if (table.props.highlight && row === table.store.states.currentRow) {
|
|
39053
39030
|
classes.push('current-row');
|
|
39054
39031
|
}
|
|
39055
39032
|
if (table.props.stripe && rowIndex % 2 === 1) {
|
|
@@ -39064,7 +39041,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39064
39041
|
rowIndex
|
|
39065
39042
|
}));
|
|
39066
39043
|
}
|
|
39067
|
-
if (
|
|
39044
|
+
if (table.store.states.expandRows.indexOf(row) > -1) {
|
|
39068
39045
|
classes.push('expanded');
|
|
39069
39046
|
}
|
|
39070
39047
|
return classes;
|
|
@@ -39147,10 +39124,10 @@ var VcComponents = (function (exports, vue) {
|
|
|
39147
39124
|
table.emit('cell-mouse-leave', oldHoverState.row, oldHoverState.column, oldHoverState.cell, e);
|
|
39148
39125
|
};
|
|
39149
39126
|
const handleMouseEnter = debounce$1(index => {
|
|
39150
|
-
|
|
39127
|
+
table.store.setHoverRow(index);
|
|
39151
39128
|
}, 30);
|
|
39152
39129
|
const handleMouseLeave = debounce$1(() => {
|
|
39153
|
-
|
|
39130
|
+
table.store.setHoverRow(null);
|
|
39154
39131
|
}, 30);
|
|
39155
39132
|
const handleEvent = (e, row, name) => {
|
|
39156
39133
|
const cell = getCell(e);
|
|
@@ -39170,10 +39147,13 @@ var VcComponents = (function (exports, vue) {
|
|
|
39170
39147
|
handleEvent(e, row, 'dblclick');
|
|
39171
39148
|
};
|
|
39172
39149
|
const handleClick = (e, row) => {
|
|
39173
|
-
|
|
39150
|
+
table.store.setCurrentRow(row);
|
|
39174
39151
|
handleEvent(e, row, 'click');
|
|
39175
39152
|
};
|
|
39176
39153
|
const renderRow = (rowData, rowIndex) => {
|
|
39154
|
+
const {
|
|
39155
|
+
rowHeight
|
|
39156
|
+
} = table.props;
|
|
39177
39157
|
const {
|
|
39178
39158
|
data: row
|
|
39179
39159
|
} = rowData;
|
|
@@ -39181,7 +39161,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
39181
39161
|
columns
|
|
39182
39162
|
} = states;
|
|
39183
39163
|
const key = getValueOfRow(row, rowIndex);
|
|
39184
|
-
const selected =
|
|
39164
|
+
const selected = table.store.isSelected(row);
|
|
39165
|
+
const height = rowHeight || rowData.height;
|
|
39185
39166
|
return vue.createVNode("div", {
|
|
39186
39167
|
"key": key,
|
|
39187
39168
|
"class": [getRowClass(row, rowIndex), 'vc-table__tr'],
|
|
@@ -39198,7 +39179,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39198
39179
|
} = column;
|
|
39199
39180
|
const sizeStyle = {
|
|
39200
39181
|
width: `${realWidth}px`,
|
|
39201
|
-
height: `${
|
|
39182
|
+
height: `${height ? `${height}px` : 'auto'}`
|
|
39202
39183
|
};
|
|
39203
39184
|
if (columnsHidden.value[columnIndex]) {
|
|
39204
39185
|
return vue.createVNode("div", {
|
|
@@ -39217,7 +39198,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39217
39198
|
column,
|
|
39218
39199
|
rowIndex,
|
|
39219
39200
|
columnIndex,
|
|
39220
|
-
store:
|
|
39201
|
+
store: table.store,
|
|
39221
39202
|
selected
|
|
39222
39203
|
})]);
|
|
39223
39204
|
})]);
|
|
@@ -39234,6 +39215,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39234
39215
|
})]);
|
|
39235
39216
|
};
|
|
39236
39217
|
const handleMergeRowResize = v => {
|
|
39218
|
+
if (table.props.rowHeight) return;
|
|
39237
39219
|
states.list[v.index].rows.forEach(row => {
|
|
39238
39220
|
row.heightMap[props.fixed || 'main'] = v.size;
|
|
39239
39221
|
const heights = [row.heightMap.main];
|
|
@@ -39253,7 +39235,17 @@ var VcComponents = (function (exports, vue) {
|
|
|
39253
39235
|
getRootElement: () => instance.vnode.el
|
|
39254
39236
|
});
|
|
39255
39237
|
const layout = table.layout;
|
|
39238
|
+
let timer;
|
|
39239
|
+
vue.onBeforeMount(() => {
|
|
39240
|
+
if (table.props.delay) {
|
|
39241
|
+
timer = setTimeout(() => allowRender.value = true, table.props.delay);
|
|
39242
|
+
} else {
|
|
39243
|
+
allowRender.value = true;
|
|
39244
|
+
}
|
|
39245
|
+
});
|
|
39246
|
+
vue.onBeforeUnmount(() => (timer && clearTimeout(timer), allowRender.value = false));
|
|
39256
39247
|
return () => {
|
|
39248
|
+
if (!allowRender.value) return;
|
|
39257
39249
|
return vue.createVNode("div", {
|
|
39258
39250
|
"class": "vc-table__body"
|
|
39259
39251
|
}, [table.props.height ? vue.createVNode(RecycleList, {
|
|
@@ -39302,10 +39294,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
39302
39294
|
name: 'vc-table-header',
|
|
39303
39295
|
props: {
|
|
39304
39296
|
fixed: [Boolean, String],
|
|
39305
|
-
store: {
|
|
39306
|
-
type: Object,
|
|
39307
|
-
required: true
|
|
39308
|
-
},
|
|
39309
39297
|
border: Boolean,
|
|
39310
39298
|
// 排序全部交给外部处理,内部不处理数据,只做交互
|
|
39311
39299
|
defaultSort: {
|
|
@@ -39454,7 +39442,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39454
39442
|
column.width = columnWidth;
|
|
39455
39443
|
column.realWidth = column.width;
|
|
39456
39444
|
table.$emit('header-dragend', column.width, startLeft - startColumnLeft, column, event);
|
|
39457
|
-
|
|
39445
|
+
table.store.scheduleLayout();
|
|
39458
39446
|
document.body.style.cursor = '';
|
|
39459
39447
|
dragging.value = false;
|
|
39460
39448
|
draggingColumn.value = null;
|
|
@@ -39559,7 +39547,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39559
39547
|
}, [column.renderHeader ? column.renderHeader({
|
|
39560
39548
|
column,
|
|
39561
39549
|
columnIndex,
|
|
39562
|
-
store:
|
|
39550
|
+
store: table.store
|
|
39563
39551
|
}) : column.label, column.tooltip ? vue.createVNode(Icon, {
|
|
39564
39552
|
"type": "o-info",
|
|
39565
39553
|
"onMouseenter": e => handleCellMouseEnter(e, column)
|
|
@@ -39582,10 +39570,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
39582
39570
|
name: 'vc-table-footer',
|
|
39583
39571
|
props: {
|
|
39584
39572
|
fixed: [String, Boolean],
|
|
39585
|
-
store: {
|
|
39586
|
-
type: Object,
|
|
39587
|
-
required: true
|
|
39588
|
-
},
|
|
39589
39573
|
getSummary: Function,
|
|
39590
39574
|
sumText: String,
|
|
39591
39575
|
border: Boolean
|
|
@@ -39607,7 +39591,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39607
39591
|
} else if (props.fixed === 'right') {
|
|
39608
39592
|
let before = 0;
|
|
39609
39593
|
for (let i = 0; i < index; i++) {
|
|
39610
|
-
before += states.columns[i].
|
|
39594
|
+
before += states.columns[i].colspan;
|
|
39611
39595
|
}
|
|
39612
39596
|
return before < states.columnsCount - states.rightFixedLeafCount;
|
|
39613
39597
|
} else if (!props.fixed && column.fixed) {
|
|
@@ -39701,6 +39685,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
39701
39685
|
width: [String, Number],
|
|
39702
39686
|
height: [String, Number],
|
|
39703
39687
|
maxHeight: [String, Number],
|
|
39688
|
+
rowHeight: [String, Number],
|
|
39704
39689
|
// 列的宽度是否自撑开
|
|
39705
39690
|
fit: {
|
|
39706
39691
|
type: Boolean,
|
|
@@ -39781,7 +39766,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
39781
39766
|
defaultSort: {
|
|
39782
39767
|
type: Object,
|
|
39783
39768
|
default: () => ({})
|
|
39784
|
-
}
|
|
39769
|
+
},
|
|
39770
|
+
// 用于延迟渲染,用于计算高度
|
|
39771
|
+
delay: Number
|
|
39785
39772
|
};
|
|
39786
39773
|
|
|
39787
39774
|
/** @jsxImportSource vue */
|
|
@@ -39910,7 +39897,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
39910
39897
|
};
|
|
39911
39898
|
}
|
|
39912
39899
|
return {
|
|
39913
|
-
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : ''
|
|
39900
|
+
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : '',
|
|
39901
|
+
bottom: 0
|
|
39914
39902
|
};
|
|
39915
39903
|
}
|
|
39916
39904
|
});
|
|
@@ -40193,7 +40181,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
40193
40181
|
"class": "vc-table__header-wrapper"
|
|
40194
40182
|
}, [vue.createVNode(TableHeader, {
|
|
40195
40183
|
"ref": tableHeader,
|
|
40196
|
-
"store": store,
|
|
40197
40184
|
"border": props.border,
|
|
40198
40185
|
"default-sort": props.defaultSort,
|
|
40199
40186
|
"style": bodyWidthStyle.value
|
|
@@ -40209,14 +40196,15 @@ var VcComponents = (function (exports, vue) {
|
|
|
40209
40196
|
}, {
|
|
40210
40197
|
default: () => [vue.createVNode(TableBody, {
|
|
40211
40198
|
"ref": body,
|
|
40212
|
-
"store": store,
|
|
40213
40199
|
"style": [bodyWidthStyle.value],
|
|
40214
40200
|
"height-style": [bodyHeightStyle.value],
|
|
40215
40201
|
"onScroll": handleScollY
|
|
40216
40202
|
}, null), props.data.length === 0 && vue.createVNode("div", {
|
|
40217
40203
|
"ref": emptyBlock,
|
|
40218
40204
|
"style": bodyWidthStyle.value,
|
|
40219
|
-
"class":
|
|
40205
|
+
"class": [{
|
|
40206
|
+
'is-absolute': !!props.height
|
|
40207
|
+
}, 'vc-table__empty-wrapper']
|
|
40220
40208
|
}, [vue.createVNode("span", {
|
|
40221
40209
|
"class": "vc-table__empty-text"
|
|
40222
40210
|
}, [slots.empty ? slots.empty() : props.emptyText || '暂无数据'])]), slots.append && vue.createVNode("div", {
|
|
@@ -40227,7 +40215,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
40227
40215
|
"ref": footerWrapper,
|
|
40228
40216
|
"class": "vc-table__footer-wrapper"
|
|
40229
40217
|
}, [vue.createVNode(TableFooter, {
|
|
40230
|
-
"store": store,
|
|
40231
40218
|
"border": props.border,
|
|
40232
40219
|
"sum-text": props.sumText || '合计',
|
|
40233
40220
|
"get-summary": props.getSummary,
|
|
@@ -40243,7 +40230,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
40243
40230
|
"class": "vc-table__fixed-header-wrapper"
|
|
40244
40231
|
}, [vue.createVNode(TableHeader, {
|
|
40245
40232
|
"ref": leftFixedTableHeader,
|
|
40246
|
-
"store": store,
|
|
40247
40233
|
"border": props.border,
|
|
40248
40234
|
"default-sort": props.defaultSort,
|
|
40249
40235
|
"style": bodyWidthStyle.value,
|
|
@@ -40256,7 +40242,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
40256
40242
|
"class": "vc-table__fixed-body-wrapper"
|
|
40257
40243
|
}, [vue.createVNode(TableBody, {
|
|
40258
40244
|
"ref": leftFixedBody,
|
|
40259
|
-
"store": store,
|
|
40260
40245
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
40261
40246
|
"fixed": "left"
|
|
40262
40247
|
}, null), slots.append && vue.createVNode("div", {
|
|
@@ -40268,7 +40253,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
40268
40253
|
"ref": leftFixedFooterWrapper,
|
|
40269
40254
|
"class": "vc-table__fixed-footer-wrapper"
|
|
40270
40255
|
}, [vue.createVNode(TableFooter, {
|
|
40271
|
-
"store": store,
|
|
40272
40256
|
"border": props.border,
|
|
40273
40257
|
"sum-text": props.sumText || '合计',
|
|
40274
40258
|
"get-summary": props.getSummary,
|
|
@@ -40285,7 +40269,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
40285
40269
|
"class": "vc-table__fixed-header-wrapper"
|
|
40286
40270
|
}, [vue.createVNode(TableHeader, {
|
|
40287
40271
|
"ref": rightFixedTableHeader,
|
|
40288
|
-
"store": store,
|
|
40289
40272
|
"border": props.border,
|
|
40290
40273
|
"default-sort": props.defaultSort,
|
|
40291
40274
|
"style": bodyWidthStyle.value,
|
|
@@ -40298,7 +40281,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
40298
40281
|
"class": "vc-table__fixed-body-wrapper"
|
|
40299
40282
|
}, [vue.createVNode(TableBody, {
|
|
40300
40283
|
"ref": rightFixedBody,
|
|
40301
|
-
"store": store,
|
|
40302
40284
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
40303
40285
|
"fixed": "right"
|
|
40304
40286
|
}, null), slots.append && vue.createVNode("div", {
|
|
@@ -40310,7 +40292,6 @@ var VcComponents = (function (exports, vue) {
|
|
|
40310
40292
|
"ref": rightFixedFooterWrapper,
|
|
40311
40293
|
"class": "vc-table__fixed-footer-wrapper"
|
|
40312
40294
|
}, [vue.createVNode(TableFooter, {
|
|
40313
|
-
"store": store,
|
|
40314
40295
|
"border": props.border,
|
|
40315
40296
|
"sum-text": props.sumText || '合计',
|
|
40316
40297
|
"get-summary": props.getSummary,
|
|
@@ -40375,7 +40356,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
40375
40356
|
"disabled": column.selectable ? !column.selectable.call(null, row, rowIndex) : false,
|
|
40376
40357
|
"onChange": () => store.rowSelectedChanged(row),
|
|
40377
40358
|
"onClick": e => e.stopPropagation()
|
|
40378
|
-
}, null), [[vue.vShow, store.
|
|
40359
|
+
}, null), [[vue.vShow, store.states.expandSelectable || level === 0]]);
|
|
40379
40360
|
},
|
|
40380
40361
|
sortable: false,
|
|
40381
40362
|
resizable: false
|
|
@@ -40609,16 +40590,9 @@ var VcComponents = (function (exports, vue) {
|
|
|
40609
40590
|
* @returns ~
|
|
40610
40591
|
*/
|
|
40611
40592
|
const setColumnWidth = column => {
|
|
40612
|
-
|
|
40613
|
-
|
|
40614
|
-
|
|
40615
|
-
if (realMinWidth.value) {
|
|
40616
|
-
column.minWidth = realMinWidth.value;
|
|
40617
|
-
}
|
|
40618
|
-
if (!column.minWidth) {
|
|
40619
|
-
column.minWidth = 80;
|
|
40620
|
-
}
|
|
40621
|
-
column.realWidth = column.width === undefined ? column.minWidth : column.width;
|
|
40593
|
+
column.width = realWidth.value || column.width;
|
|
40594
|
+
column.minWidth = realMinWidth.value || column.minWidth || 80;
|
|
40595
|
+
column.realWidth = typeof column.width === 'undefined' ? column.minWidth : column.width;
|
|
40622
40596
|
return column;
|
|
40623
40597
|
};
|
|
40624
40598
|
|
|
@@ -40691,6 +40665,8 @@ var VcComponents = (function (exports, vue) {
|
|
|
40691
40665
|
};
|
|
40692
40666
|
const registerColumn = () => {
|
|
40693
40667
|
const defaults = {
|
|
40668
|
+
colspan: 1,
|
|
40669
|
+
rowspan: 1,
|
|
40694
40670
|
...cellStarts[props.type],
|
|
40695
40671
|
id: columnId.value,
|
|
40696
40672
|
realAlign,
|
|
@@ -40979,7 +40955,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
40979
40955
|
if (!Array.from(items).length) return;
|
|
40980
40956
|
let offset = 0;
|
|
40981
40957
|
if (index > 0) {
|
|
40982
|
-
const gutter =
|
|
40958
|
+
const gutter = 12; // margin-right -> 12px
|
|
40983
40959
|
for (let i = 0; i < index; i++) {
|
|
40984
40960
|
offset += parseFloat(items[i].offsetWidth) + gutter;
|
|
40985
40961
|
}
|
|
@@ -41051,7 +41027,7 @@ var VcComponents = (function (exports, vue) {
|
|
|
41051
41027
|
}, [slots.extra?.()]), vue.createVNode("div", {
|
|
41052
41028
|
"ref": wrapper,
|
|
41053
41029
|
"style": {
|
|
41054
|
-
padding: tabs.scrollable.value
|
|
41030
|
+
padding: tabs.scrollable.value ? '0 24px' : 0
|
|
41055
41031
|
},
|
|
41056
41032
|
"class": "vc-tabs__bar"
|
|
41057
41033
|
}, [tabs.scrollable.value && vue.createVNode(Icon, {
|