@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.umd.cjs
CHANGED
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
|
|
57
57
|
/** @jsxImportSource vue */
|
|
58
58
|
|
|
59
|
-
const COMPONENT_NAME$
|
|
59
|
+
const COMPONENT_NAME$1_ = 'vc-action-sheet';
|
|
60
60
|
const ActionSheet = /* @__PURE__ */ vue.defineComponent({
|
|
61
|
-
name: COMPONENT_NAME$
|
|
61
|
+
name: COMPONENT_NAME$1_,
|
|
62
62
|
props: props$1q,
|
|
63
63
|
setup(props, {
|
|
64
64
|
slots
|
|
@@ -245,9 +245,9 @@
|
|
|
245
245
|
|
|
246
246
|
/** @jsxImportSource vue */
|
|
247
247
|
|
|
248
|
-
const COMPONENT_NAME$
|
|
248
|
+
const COMPONENT_NAME$1Z = 'vc-icon';
|
|
249
249
|
const Icon = /* @__PURE__ */ vue.defineComponent({
|
|
250
|
-
name: COMPONENT_NAME$
|
|
250
|
+
name: COMPONENT_NAME$1Z,
|
|
251
251
|
props: props$1o,
|
|
252
252
|
setup(props) {
|
|
253
253
|
const viewBox = vue.ref('0 0 1024 1024');
|
|
@@ -446,9 +446,9 @@
|
|
|
446
446
|
};
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
-
const COMPONENT_NAME$
|
|
449
|
+
const COMPONENT_NAME$1Y = "vc-transition";
|
|
450
450
|
const Transition = vue.defineComponent({
|
|
451
|
-
name: COMPONENT_NAME$
|
|
451
|
+
name: COMPONENT_NAME$1Y,
|
|
452
452
|
props: props$1n,
|
|
453
453
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
454
454
|
inheritAttrs: false,
|
|
@@ -469,9 +469,9 @@
|
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
471
|
|
|
472
|
-
const COMPONENT_NAME$
|
|
472
|
+
const COMPONENT_NAME$1X = "vc-transition-collapse";
|
|
473
473
|
const TransitionCollapse = vue.defineComponent({
|
|
474
|
-
name: COMPONENT_NAME$
|
|
474
|
+
name: COMPONENT_NAME$1X,
|
|
475
475
|
props: props$1n,
|
|
476
476
|
// 当不声明emits的情况下,事件存在于attrs中
|
|
477
477
|
inheritAttrs: false,
|
|
@@ -590,9 +590,9 @@
|
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
592
|
|
|
593
|
-
const COMPONENT_NAME$
|
|
593
|
+
const COMPONENT_NAME$1W = "vc-transition-fade";
|
|
594
594
|
const TransitionFade = vue.defineComponent({
|
|
595
|
-
name: COMPONENT_NAME$
|
|
595
|
+
name: COMPONENT_NAME$1W,
|
|
596
596
|
props: {
|
|
597
597
|
...props$1n,
|
|
598
598
|
// inheritAttrs必须是false
|
|
@@ -627,9 +627,9 @@
|
|
|
627
627
|
}
|
|
628
628
|
});
|
|
629
629
|
|
|
630
|
-
const COMPONENT_NAME$
|
|
630
|
+
const COMPONENT_NAME$1V = "vc-transition-scale";
|
|
631
631
|
const TransitionScale = vue.defineComponent({
|
|
632
|
-
name: COMPONENT_NAME$
|
|
632
|
+
name: COMPONENT_NAME$1V,
|
|
633
633
|
props: {
|
|
634
634
|
...props$1n,
|
|
635
635
|
mode: {
|
|
@@ -669,9 +669,9 @@
|
|
|
669
669
|
}
|
|
670
670
|
});
|
|
671
671
|
|
|
672
|
-
const COMPONENT_NAME$
|
|
672
|
+
const COMPONENT_NAME$1U = "vc-transition-slide";
|
|
673
673
|
const TransitionSlide = vue.defineComponent({
|
|
674
|
-
name: COMPONENT_NAME$
|
|
674
|
+
name: COMPONENT_NAME$1U,
|
|
675
675
|
props: {
|
|
676
676
|
...props$1n,
|
|
677
677
|
mode: {
|
|
@@ -711,9 +711,9 @@
|
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
713
|
|
|
714
|
-
const COMPONENT_NAME$
|
|
714
|
+
const COMPONENT_NAME$1T = "vc-transition-zoom";
|
|
715
715
|
const TransitionZoom = vue.defineComponent({
|
|
716
|
-
name: COMPONENT_NAME$
|
|
716
|
+
name: COMPONENT_NAME$1T,
|
|
717
717
|
props: {
|
|
718
718
|
...props$1n,
|
|
719
719
|
mode: {
|
|
@@ -755,7 +755,7 @@
|
|
|
755
755
|
|
|
756
756
|
/** @jsxImportSource vue */
|
|
757
757
|
|
|
758
|
-
const COMPONENT_NAME$
|
|
758
|
+
const COMPONENT_NAME$1S = 'vc-alert';
|
|
759
759
|
|
|
760
760
|
// [color, borderColor, backgroundColor], -> CSS
|
|
761
761
|
const THEME_MAP = {
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
warning: ['#ffbf00', '#ffe58f', '#fffbe6']
|
|
766
766
|
};
|
|
767
767
|
const Alert = /* @__PURE__ */ vue.defineComponent({
|
|
768
|
-
name: COMPONENT_NAME$
|
|
768
|
+
name: COMPONENT_NAME$1S,
|
|
769
769
|
props: props$1p,
|
|
770
770
|
setup(props, {
|
|
771
771
|
slots,
|
|
@@ -864,9 +864,9 @@
|
|
|
864
864
|
|
|
865
865
|
/** @jsxImportSource vue */
|
|
866
866
|
|
|
867
|
-
const COMPONENT_NAME$
|
|
867
|
+
const COMPONENT_NAME$1R = 'vc-artboard';
|
|
868
868
|
const Artboard = /* @__PURE__ */ vue.defineComponent({
|
|
869
|
-
name: COMPONENT_NAME$
|
|
869
|
+
name: COMPONENT_NAME$1R,
|
|
870
870
|
props: props$1m,
|
|
871
871
|
setup(props, {
|
|
872
872
|
slots
|
|
@@ -905,9 +905,9 @@
|
|
|
905
905
|
|
|
906
906
|
/** @jsxImportSource vue */
|
|
907
907
|
|
|
908
|
-
const COMPONENT_NAME$
|
|
908
|
+
const COMPONENT_NAME$1Q = 'vc-spin';
|
|
909
909
|
const Spin = /* @__PURE__ */ vue.defineComponent({
|
|
910
|
-
name: COMPONENT_NAME$
|
|
910
|
+
name: COMPONENT_NAME$1Q,
|
|
911
911
|
props: props$1l,
|
|
912
912
|
setup(props, {
|
|
913
913
|
slots
|
|
@@ -5763,9 +5763,9 @@
|
|
|
5763
5763
|
exclude: RegExp
|
|
5764
5764
|
};
|
|
5765
5765
|
|
|
5766
|
-
const COMPONENT_NAME$
|
|
5766
|
+
const COMPONENT_NAME$1P = "vc-debounce";
|
|
5767
5767
|
const Debounce = vue.defineComponent({
|
|
5768
|
-
name: COMPONENT_NAME$
|
|
5768
|
+
name: COMPONENT_NAME$1P,
|
|
5769
5769
|
props: props$1k,
|
|
5770
5770
|
/**
|
|
5771
5771
|
* 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
|
|
@@ -5837,9 +5837,9 @@
|
|
|
5837
5837
|
|
|
5838
5838
|
/** @jsxImportSource vue */
|
|
5839
5839
|
|
|
5840
|
-
const COMPONENT_NAME$
|
|
5840
|
+
const COMPONENT_NAME$1O = 'vc-button';
|
|
5841
5841
|
const Button = /* @__PURE__ */ vue.defineComponent({
|
|
5842
|
-
name: COMPONENT_NAME$
|
|
5842
|
+
name: COMPONENT_NAME$1O,
|
|
5843
5843
|
emits: ['click'],
|
|
5844
5844
|
props: props$1j,
|
|
5845
5845
|
setup(props, {
|
|
@@ -5919,9 +5919,9 @@
|
|
|
5919
5919
|
|
|
5920
5920
|
/** @jsxImportSource vue */
|
|
5921
5921
|
|
|
5922
|
-
const COMPONENT_NAME$
|
|
5922
|
+
const COMPONENT_NAME$1N = 'vc-button-group';
|
|
5923
5923
|
const ButtonGroup = /* @__PURE__ */ vue.defineComponent({
|
|
5924
|
-
name: COMPONENT_NAME$
|
|
5924
|
+
name: COMPONENT_NAME$1N,
|
|
5925
5925
|
props: props$1i,
|
|
5926
5926
|
setup(props, {
|
|
5927
5927
|
slots
|
|
@@ -5955,9 +5955,9 @@
|
|
|
5955
5955
|
|
|
5956
5956
|
/** @jsxImportSource vue */
|
|
5957
5957
|
|
|
5958
|
-
const COMPONENT_NAME$
|
|
5958
|
+
const COMPONENT_NAME$1M = 'vc-calendar';
|
|
5959
5959
|
const Calendar$1 = /* @__PURE__ */ vue.defineComponent({
|
|
5960
|
-
name: COMPONENT_NAME$
|
|
5960
|
+
name: COMPONENT_NAME$1M,
|
|
5961
5961
|
props: props$1h,
|
|
5962
5962
|
setup(props, {
|
|
5963
5963
|
slots
|
|
@@ -5995,9 +5995,9 @@
|
|
|
5995
5995
|
|
|
5996
5996
|
/** @jsxImportSource vue */
|
|
5997
5997
|
|
|
5998
|
-
const COMPONENT_NAME$
|
|
5998
|
+
const COMPONENT_NAME$1L = 'vc-card';
|
|
5999
5999
|
const Card = /* @__PURE__ */ vue.defineComponent({
|
|
6000
|
-
name: COMPONENT_NAME$
|
|
6000
|
+
name: COMPONENT_NAME$1L,
|
|
6001
6001
|
props: props$1g,
|
|
6002
6002
|
setup(props, {
|
|
6003
6003
|
slots
|
|
@@ -6033,9 +6033,9 @@
|
|
|
6033
6033
|
|
|
6034
6034
|
/** @jsxImportSource vue */
|
|
6035
6035
|
|
|
6036
|
-
const COMPONENT_NAME$
|
|
6036
|
+
const COMPONENT_NAME$1K = 'vc-carousel';
|
|
6037
6037
|
const Carousel = /* @__PURE__ */ vue.defineComponent({
|
|
6038
|
-
name: COMPONENT_NAME$
|
|
6038
|
+
name: COMPONENT_NAME$1K,
|
|
6039
6039
|
props: props$1f,
|
|
6040
6040
|
setup(props, {
|
|
6041
6041
|
slots
|
|
@@ -6059,9 +6059,9 @@
|
|
|
6059
6059
|
|
|
6060
6060
|
/** @jsxImportSource vue */
|
|
6061
6061
|
|
|
6062
|
-
const COMPONENT_NAME$
|
|
6062
|
+
const COMPONENT_NAME$1J = 'vc-cascader';
|
|
6063
6063
|
const Cascader = /* @__PURE__ */ vue.defineComponent({
|
|
6064
|
-
name: COMPONENT_NAME$
|
|
6064
|
+
name: COMPONENT_NAME$1J,
|
|
6065
6065
|
props: props$1e,
|
|
6066
6066
|
setup(props, {
|
|
6067
6067
|
slots
|
|
@@ -6193,9 +6193,9 @@
|
|
|
6193
6193
|
|
|
6194
6194
|
/** @jsxImportSource vue */
|
|
6195
6195
|
|
|
6196
|
-
const COMPONENT_NAME$
|
|
6196
|
+
const COMPONENT_NAME$1I = 'vc-chart';
|
|
6197
6197
|
const Chart = /* @__PURE__ */ vue.defineComponent({
|
|
6198
|
-
name: COMPONENT_NAME$
|
|
6198
|
+
name: COMPONENT_NAME$1I,
|
|
6199
6199
|
props: props$1d,
|
|
6200
6200
|
emits: [...EVENTS, 'ready'],
|
|
6201
6201
|
setup(props, {
|
|
@@ -6426,9 +6426,9 @@
|
|
|
6426
6426
|
|
|
6427
6427
|
/** @jsxImportSource vue */
|
|
6428
6428
|
|
|
6429
|
-
const COMPONENT_NAME$
|
|
6429
|
+
const COMPONENT_NAME$1H = 'vc-checkbox';
|
|
6430
6430
|
const Checkbox = /* @__PURE__ */ vue.defineComponent({
|
|
6431
|
-
name: COMPONENT_NAME$
|
|
6431
|
+
name: COMPONENT_NAME$1H,
|
|
6432
6432
|
props: props$1c,
|
|
6433
6433
|
emits: ['update:modelValue', 'change'],
|
|
6434
6434
|
setup(props, {
|
|
@@ -6515,9 +6515,9 @@
|
|
|
6515
6515
|
|
|
6516
6516
|
/** @jsxImportSource vue */
|
|
6517
6517
|
|
|
6518
|
-
const COMPONENT_NAME$
|
|
6518
|
+
const COMPONENT_NAME$1G = 'vc-checkbox-group';
|
|
6519
6519
|
const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
6520
|
-
name: COMPONENT_NAME$
|
|
6520
|
+
name: COMPONENT_NAME$1G,
|
|
6521
6521
|
props: props$1b,
|
|
6522
6522
|
emits: ['update:modelValue', 'change'],
|
|
6523
6523
|
setup(props, {
|
|
@@ -6535,9 +6535,9 @@
|
|
|
6535
6535
|
|
|
6536
6536
|
/** @jsxImportSource vue */
|
|
6537
6537
|
|
|
6538
|
-
const COMPONENT_NAME$
|
|
6538
|
+
const COMPONENT_NAME$1F = 'vcm-checkbox';
|
|
6539
6539
|
const MCheckbox = /* @__PURE__ */ vue.defineComponent({
|
|
6540
|
-
name: COMPONENT_NAME$
|
|
6540
|
+
name: COMPONENT_NAME$1F,
|
|
6541
6541
|
props: props$1c,
|
|
6542
6542
|
emits: ['update:modelValue', 'change'],
|
|
6543
6543
|
setup(props, {
|
|
@@ -6577,9 +6577,9 @@
|
|
|
6577
6577
|
|
|
6578
6578
|
/** @jsxImportSource vue */
|
|
6579
6579
|
|
|
6580
|
-
const COMPONENT_NAME$
|
|
6580
|
+
const COMPONENT_NAME$1E = 'vcm-checkbox-group';
|
|
6581
6581
|
const MCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
6582
|
-
name: COMPONENT_NAME$
|
|
6582
|
+
name: COMPONENT_NAME$1E,
|
|
6583
6583
|
props: props$1b,
|
|
6584
6584
|
emits: ['update:modelValue', 'change'],
|
|
6585
6585
|
setup(props, {
|
|
@@ -6638,9 +6638,9 @@
|
|
|
6638
6638
|
}
|
|
6639
6639
|
};
|
|
6640
6640
|
|
|
6641
|
-
const COMPONENT_NAME$
|
|
6641
|
+
const COMPONENT_NAME$1D = "vc-customer";
|
|
6642
6642
|
const Customer = vue.defineComponent({
|
|
6643
|
-
name: COMPONENT_NAME$
|
|
6643
|
+
name: COMPONENT_NAME$1D,
|
|
6644
6644
|
props: props$19,
|
|
6645
6645
|
setup(props, context) {
|
|
6646
6646
|
return () => vue.h(() => {
|
|
@@ -6651,9 +6651,9 @@
|
|
|
6651
6651
|
|
|
6652
6652
|
/** @jsxImportSource vue */
|
|
6653
6653
|
|
|
6654
|
-
const COMPONENT_NAME$
|
|
6654
|
+
const COMPONENT_NAME$1C = 'vc-message';
|
|
6655
6655
|
const MessageView = /* @__PURE__ */ vue.defineComponent({
|
|
6656
|
-
name: COMPONENT_NAME$
|
|
6656
|
+
name: COMPONENT_NAME$1C,
|
|
6657
6657
|
emits: ['before-close', 'close', 'portal-fulfilled'],
|
|
6658
6658
|
props: props$1a,
|
|
6659
6659
|
setup(props, {
|
|
@@ -7213,7 +7213,7 @@
|
|
|
7213
7213
|
}
|
|
7214
7214
|
}
|
|
7215
7215
|
|
|
7216
|
-
const COMPONENT_NAME$
|
|
7216
|
+
const COMPONENT_NAME$1B = "vc-portal";
|
|
7217
7217
|
class Portal {
|
|
7218
7218
|
/**
|
|
7219
7219
|
* 清理Portals类型组件
|
|
@@ -7265,7 +7265,7 @@
|
|
|
7265
7265
|
this.wrapper = wrapper;
|
|
7266
7266
|
this.globalOptions = {
|
|
7267
7267
|
...options,
|
|
7268
|
-
name: options?.name || wrapper.name || getUid(COMPONENT_NAME$
|
|
7268
|
+
name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1B)
|
|
7269
7269
|
};
|
|
7270
7270
|
}
|
|
7271
7271
|
popup(propsData, options) {
|
|
@@ -7364,7 +7364,7 @@
|
|
|
7364
7364
|
...rest
|
|
7365
7365
|
} = options;
|
|
7366
7366
|
let useAllNodes = fragment;
|
|
7367
|
-
const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$
|
|
7367
|
+
const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1B)}` : name$;
|
|
7368
7368
|
const container = document.createElement(tag);
|
|
7369
7369
|
const root = typeof el === "object" ? el : document.querySelector(el || "body");
|
|
7370
7370
|
!alive && Portal.leafs.get(name)?.destroy();
|
|
@@ -7398,7 +7398,7 @@
|
|
|
7398
7398
|
} else {
|
|
7399
7399
|
const wrapper = this.wrapper;
|
|
7400
7400
|
const app = vue.createApp({
|
|
7401
|
-
name: COMPONENT_NAME$
|
|
7401
|
+
name: COMPONENT_NAME$1B,
|
|
7402
7402
|
parent,
|
|
7403
7403
|
setup() {
|
|
7404
7404
|
if (alive) {
|
|
@@ -7510,13 +7510,13 @@
|
|
|
7510
7510
|
}
|
|
7511
7511
|
};
|
|
7512
7512
|
|
|
7513
|
-
const COMPONENT_NAME$
|
|
7513
|
+
const COMPONENT_NAME$1A = 'vc-portal-view';
|
|
7514
7514
|
|
|
7515
7515
|
/**
|
|
7516
7516
|
* 写法不同,但与vue@2.x 保持一致
|
|
7517
7517
|
*/
|
|
7518
7518
|
const PortalView = /* @__PURE__ */ vue.defineComponent({
|
|
7519
|
-
name: COMPONENT_NAME$
|
|
7519
|
+
name: COMPONENT_NAME$1A,
|
|
7520
7520
|
props: props$18,
|
|
7521
7521
|
setup(props, {
|
|
7522
7522
|
slots
|
|
@@ -7687,9 +7687,9 @@
|
|
|
7687
7687
|
return () => vue.h(props.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
|
|
7688
7688
|
};
|
|
7689
7689
|
|
|
7690
|
-
const COMPONENT_NAME$
|
|
7690
|
+
const COMPONENT_NAME$1z = "vc-clipboard";
|
|
7691
7691
|
const Clipboard$1 = vue.defineComponent({
|
|
7692
|
-
name: COMPONENT_NAME$
|
|
7692
|
+
name: COMPONENT_NAME$1z,
|
|
7693
7693
|
props: props$17,
|
|
7694
7694
|
setup() {
|
|
7695
7695
|
return useClipboard((content) => Message.success({ content }));
|
|
@@ -7729,9 +7729,9 @@
|
|
|
7729
7729
|
|
|
7730
7730
|
/** @jsxImportSource vue */
|
|
7731
7731
|
|
|
7732
|
-
const COMPONENT_NAME$
|
|
7732
|
+
const COMPONENT_NAME$1y = 'vcm-toast';
|
|
7733
7733
|
const MToastView = /* @__PURE__ */ vue.defineComponent({
|
|
7734
|
-
name: COMPONENT_NAME$
|
|
7734
|
+
name: COMPONENT_NAME$1y,
|
|
7735
7735
|
emits: ['close', 'portal-fulfilled'],
|
|
7736
7736
|
props: props$16,
|
|
7737
7737
|
setup(props, {
|
|
@@ -7833,9 +7833,9 @@
|
|
|
7833
7833
|
const error$2 = create$6({ mode: "error" });
|
|
7834
7834
|
const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
|
|
7835
7835
|
|
|
7836
|
-
const COMPONENT_NAME$
|
|
7836
|
+
const COMPONENT_NAME$1x = "vcm-clipboard";
|
|
7837
7837
|
const MClipboard$1 = vue.defineComponent({
|
|
7838
|
-
name: COMPONENT_NAME$
|
|
7838
|
+
name: COMPONENT_NAME$1x,
|
|
7839
7839
|
props: props$17,
|
|
7840
7840
|
setup() {
|
|
7841
7841
|
return useClipboard((content) => MToast.info({ content }));
|
|
@@ -7867,9 +7867,9 @@
|
|
|
7867
7867
|
}
|
|
7868
7868
|
};
|
|
7869
7869
|
|
|
7870
|
-
const COMPONENT_NAME$
|
|
7870
|
+
const COMPONENT_NAME$1w = "vc-collapse";
|
|
7871
7871
|
const Collapse = vue.defineComponent({
|
|
7872
|
-
name: COMPONENT_NAME$
|
|
7872
|
+
name: COMPONENT_NAME$1w,
|
|
7873
7873
|
props: props$15,
|
|
7874
7874
|
emits: ["update:moodelValue", "change"],
|
|
7875
7875
|
setup(props, { slots, emit }) {
|
|
@@ -7986,9 +7986,9 @@
|
|
|
7986
7986
|
function _isSlot$3(s) {
|
|
7987
7987
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
7988
7988
|
}
|
|
7989
|
-
const COMPONENT_NAME$
|
|
7989
|
+
const COMPONENT_NAME$1v = 'vc-expand';
|
|
7990
7990
|
const Expand$1 = /* @__PURE__ */ vue.defineComponent({
|
|
7991
|
-
name: COMPONENT_NAME$
|
|
7991
|
+
name: COMPONENT_NAME$1v,
|
|
7992
7992
|
props: props$13,
|
|
7993
7993
|
setup(props, {
|
|
7994
7994
|
slots
|
|
@@ -8018,9 +8018,9 @@
|
|
|
8018
8018
|
|
|
8019
8019
|
/** @jsxImportSource vue */
|
|
8020
8020
|
|
|
8021
|
-
const COMPONENT_NAME$
|
|
8021
|
+
const COMPONENT_NAME$1u = 'vc-collapse-item';
|
|
8022
8022
|
const CollapseItem = /* @__PURE__ */ vue.defineComponent({
|
|
8023
|
-
name: COMPONENT_NAME$
|
|
8023
|
+
name: COMPONENT_NAME$1u,
|
|
8024
8024
|
props: props$14,
|
|
8025
8025
|
setup(props, {
|
|
8026
8026
|
slots,
|
|
@@ -8095,9 +8095,9 @@
|
|
|
8095
8095
|
|
|
8096
8096
|
/** @jsxImportSource vue */
|
|
8097
8097
|
|
|
8098
|
-
const COMPONENT_NAME$
|
|
8098
|
+
const COMPONENT_NAME$1t = 'vc-color-picker';
|
|
8099
8099
|
const ColorPicker = /* @__PURE__ */ vue.defineComponent({
|
|
8100
|
-
name: COMPONENT_NAME$
|
|
8100
|
+
name: COMPONENT_NAME$1t,
|
|
8101
8101
|
props: props$12,
|
|
8102
8102
|
setup(props, {
|
|
8103
8103
|
slots
|
|
@@ -8121,9 +8121,9 @@
|
|
|
8121
8121
|
|
|
8122
8122
|
/** @jsxImportSource vue */
|
|
8123
8123
|
|
|
8124
|
-
const COMPONENT_NAME$
|
|
8124
|
+
const COMPONENT_NAME$1s = 'vc-countdown';
|
|
8125
8125
|
const Countdown = /* @__PURE__ */ vue.defineComponent({
|
|
8126
|
-
name: COMPONENT_NAME$
|
|
8126
|
+
name: COMPONENT_NAME$1s,
|
|
8127
8127
|
props: props$11,
|
|
8128
8128
|
setup(props, {
|
|
8129
8129
|
slots
|
|
@@ -8636,9 +8636,9 @@
|
|
|
8636
8636
|
|
|
8637
8637
|
/** @jsxImportSource vue */
|
|
8638
8638
|
|
|
8639
|
-
const COMPONENT_NAME$
|
|
8639
|
+
const COMPONENT_NAME$1r = 'vc-input';
|
|
8640
8640
|
const Input = /* @__PURE__ */ vue.defineComponent({
|
|
8641
|
-
name: COMPONENT_NAME$
|
|
8641
|
+
name: COMPONENT_NAME$1r,
|
|
8642
8642
|
inheritAttrs: false,
|
|
8643
8643
|
props: {
|
|
8644
8644
|
...props$$,
|
|
@@ -8972,9 +8972,9 @@
|
|
|
8972
8972
|
|
|
8973
8973
|
/** @jsxImportSource vue */
|
|
8974
8974
|
|
|
8975
|
-
const COMPONENT_NAME$
|
|
8975
|
+
const COMPONENT_NAME$1q = 'vc-input-number';
|
|
8976
8976
|
const InputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
8977
|
-
name: COMPONENT_NAME$
|
|
8977
|
+
name: COMPONENT_NAME$1q,
|
|
8978
8978
|
props: props$X,
|
|
8979
8979
|
inheritAttrs: false,
|
|
8980
8980
|
setup(props, {
|
|
@@ -9038,9 +9038,9 @@
|
|
|
9038
9038
|
|
|
9039
9039
|
/** @jsxImportSource vue */
|
|
9040
9040
|
|
|
9041
|
-
const COMPONENT_NAME$
|
|
9041
|
+
const COMPONENT_NAME$1p = 'vc-input-search';
|
|
9042
9042
|
const InputSearch = /* @__PURE__ */ vue.defineComponent({
|
|
9043
|
-
name: COMPONENT_NAME$
|
|
9043
|
+
name: COMPONENT_NAME$1p,
|
|
9044
9044
|
props: props$W,
|
|
9045
9045
|
inheritAttrs: false,
|
|
9046
9046
|
setup(props, {
|
|
@@ -9331,9 +9331,9 @@
|
|
|
9331
9331
|
function _isSlot$2(s) {
|
|
9332
9332
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
9333
9333
|
}
|
|
9334
|
-
const COMPONENT_NAME$
|
|
9334
|
+
const COMPONENT_NAME$1o = 'vc-popover-wrapper';
|
|
9335
9335
|
const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
|
|
9336
|
-
name: COMPONENT_NAME$
|
|
9336
|
+
name: COMPONENT_NAME$1o,
|
|
9337
9337
|
props: props$_,
|
|
9338
9338
|
emits: ['portal-fulfilled', 'close'],
|
|
9339
9339
|
setup(props, {
|
|
@@ -9585,9 +9585,9 @@
|
|
|
9585
9585
|
|
|
9586
9586
|
/** @jsxImportSource vue */
|
|
9587
9587
|
|
|
9588
|
-
const COMPONENT_NAME$
|
|
9588
|
+
const COMPONENT_NAME$1n = 'vc-popover';
|
|
9589
9589
|
const Popover$1 = /* @__PURE__ */ vue.defineComponent({
|
|
9590
|
-
name: COMPONENT_NAME$
|
|
9590
|
+
name: COMPONENT_NAME$1n,
|
|
9591
9591
|
props: props$Z,
|
|
9592
9592
|
emits: ['update:modelValue', 'visible-change', 'ready', 'close'],
|
|
9593
9593
|
setup(props, {
|
|
@@ -10688,9 +10688,9 @@
|
|
|
10688
10688
|
}
|
|
10689
10689
|
return view;
|
|
10690
10690
|
};
|
|
10691
|
-
const COMPONENT_NAME$
|
|
10691
|
+
const COMPONENT_NAME$1m = 'vc-date-confirm';
|
|
10692
10692
|
const Confirm = /* @__PURE__ */ vue.defineComponent({
|
|
10693
|
-
name: COMPONENT_NAME$
|
|
10693
|
+
name: COMPONENT_NAME$1m,
|
|
10694
10694
|
props: {
|
|
10695
10695
|
showTime: {
|
|
10696
10696
|
type: Boolean,
|
|
@@ -10754,9 +10754,9 @@
|
|
|
10754
10754
|
|
|
10755
10755
|
/** @jsxImportSource vue */
|
|
10756
10756
|
|
|
10757
|
-
const COMPONENT_NAME$
|
|
10757
|
+
const COMPONENT_NAME$1l = 'vc-date-header';
|
|
10758
10758
|
const DateHeader = /* @__PURE__ */ vue.defineComponent({
|
|
10759
|
-
name: COMPONENT_NAME$
|
|
10759
|
+
name: COMPONENT_NAME$1l,
|
|
10760
10760
|
props: {
|
|
10761
10761
|
panelDate: Date,
|
|
10762
10762
|
showNext: {
|
|
@@ -10840,9 +10840,9 @@
|
|
|
10840
10840
|
|
|
10841
10841
|
/** @jsxImportSource vue */
|
|
10842
10842
|
|
|
10843
|
-
const COMPONENT_NAME$
|
|
10843
|
+
const COMPONENT_NAME$1k = 'vc-date-table';
|
|
10844
10844
|
const DateTable = /* @__PURE__ */ vue.defineComponent({
|
|
10845
|
-
name: COMPONENT_NAME$
|
|
10845
|
+
name: COMPONENT_NAME$1k,
|
|
10846
10846
|
props: {
|
|
10847
10847
|
value: Array,
|
|
10848
10848
|
firstDayOfWeek: {
|
|
@@ -11051,9 +11051,9 @@
|
|
|
11051
11051
|
|
|
11052
11052
|
/** @jsxImportSource vue */
|
|
11053
11053
|
|
|
11054
|
-
const COMPONENT_NAME$
|
|
11054
|
+
const COMPONENT_NAME$1j = 'vc-month-table';
|
|
11055
11055
|
const MonthTable = /* @__PURE__ */ vue.defineComponent({
|
|
11056
|
-
name: COMPONENT_NAME$
|
|
11056
|
+
name: COMPONENT_NAME$1j,
|
|
11057
11057
|
props: {
|
|
11058
11058
|
value: Array,
|
|
11059
11059
|
panelDate: Date,
|
|
@@ -11185,7 +11185,7 @@
|
|
|
11185
11185
|
|
|
11186
11186
|
/** @jsxImportSource vue */
|
|
11187
11187
|
|
|
11188
|
-
const COMPONENT_NAME$
|
|
11188
|
+
const COMPONENT_NAME$1i = 'vc-quarter-table';
|
|
11189
11189
|
|
|
11190
11190
|
/**
|
|
11191
11191
|
* 获取季度对应的月份范围
|
|
@@ -11219,7 +11219,7 @@
|
|
|
11219
11219
|
}
|
|
11220
11220
|
};
|
|
11221
11221
|
const QuarterTable = /* @__PURE__ */ vue.defineComponent({
|
|
11222
|
-
name: COMPONENT_NAME$
|
|
11222
|
+
name: COMPONENT_NAME$1i,
|
|
11223
11223
|
props: {
|
|
11224
11224
|
value: Array,
|
|
11225
11225
|
panelDate: Date,
|
|
@@ -11342,9 +11342,9 @@
|
|
|
11342
11342
|
|
|
11343
11343
|
/** @jsxImportSource vue */
|
|
11344
11344
|
|
|
11345
|
-
const COMPONENT_NAME$
|
|
11345
|
+
const COMPONENT_NAME$1h = 'vc-shortcuts-select';
|
|
11346
11346
|
const ShortcutsSelect = /* @__PURE__ */ vue.defineComponent({
|
|
11347
|
-
name: COMPONENT_NAME$
|
|
11347
|
+
name: COMPONENT_NAME$1h,
|
|
11348
11348
|
props: {
|
|
11349
11349
|
panelDate: Date,
|
|
11350
11350
|
config: Array,
|
|
@@ -11384,9 +11384,9 @@
|
|
|
11384
11384
|
|
|
11385
11385
|
/** @jsxImportSource vue */
|
|
11386
11386
|
|
|
11387
|
-
const COMPONENT_NAME$
|
|
11387
|
+
const COMPONENT_NAME$1g = 'vc-time-select';
|
|
11388
11388
|
const TimeSelect = /* @__PURE__ */ vue.defineComponent({
|
|
11389
|
-
name: COMPONENT_NAME$
|
|
11389
|
+
name: COMPONENT_NAME$1g,
|
|
11390
11390
|
props: {
|
|
11391
11391
|
hours: {
|
|
11392
11392
|
type: [Number, String],
|
|
@@ -11665,9 +11665,9 @@
|
|
|
11665
11665
|
|
|
11666
11666
|
/** @jsxImportSource vue */
|
|
11667
11667
|
|
|
11668
|
-
const COMPONENT_NAME$
|
|
11668
|
+
const COMPONENT_NAME$1f = 'vc-year-table';
|
|
11669
11669
|
const YearTable = /* @__PURE__ */ vue.defineComponent({
|
|
11670
|
-
name: COMPONENT_NAME$
|
|
11670
|
+
name: COMPONENT_NAME$1f,
|
|
11671
11671
|
props: {
|
|
11672
11672
|
value: Array,
|
|
11673
11673
|
panelDate: Date,
|
|
@@ -11790,9 +11790,9 @@
|
|
|
11790
11790
|
}
|
|
11791
11791
|
return true;
|
|
11792
11792
|
};
|
|
11793
|
-
const COMPONENT_NAME$
|
|
11793
|
+
const COMPONENT_NAME$1e = 'vc-date-range-panel';
|
|
11794
11794
|
const DateRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
11795
|
-
name: COMPONENT_NAME$
|
|
11795
|
+
name: COMPONENT_NAME$1e,
|
|
11796
11796
|
props: {
|
|
11797
11797
|
...props$V,
|
|
11798
11798
|
confirm: {
|
|
@@ -12171,9 +12171,9 @@
|
|
|
12171
12171
|
|
|
12172
12172
|
/** @jsxImportSource vue */
|
|
12173
12173
|
|
|
12174
|
-
const COMPONENT_NAME$
|
|
12174
|
+
const COMPONENT_NAME$1d = 'vc-date-panel';
|
|
12175
12175
|
const DatePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12176
|
-
name: COMPONENT_NAME$
|
|
12176
|
+
name: COMPONENT_NAME$1d,
|
|
12177
12177
|
props: {
|
|
12178
12178
|
...props$V,
|
|
12179
12179
|
type: String,
|
|
@@ -12381,9 +12381,9 @@
|
|
|
12381
12381
|
const endYear = value[1].getFullYear();
|
|
12382
12382
|
return startYear === endYear;
|
|
12383
12383
|
};
|
|
12384
|
-
const COMPONENT_NAME$
|
|
12384
|
+
const COMPONENT_NAME$1c = 'vc-monthrange-panel';
|
|
12385
12385
|
const MonthRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12386
|
-
name: COMPONENT_NAME$
|
|
12386
|
+
name: COMPONENT_NAME$1c,
|
|
12387
12387
|
props: {
|
|
12388
12388
|
...props$V,
|
|
12389
12389
|
confirm: {
|
|
@@ -12558,9 +12558,9 @@
|
|
|
12558
12558
|
const endYear = value[1].getFullYear();
|
|
12559
12559
|
return startYear === endYear;
|
|
12560
12560
|
};
|
|
12561
|
-
const COMPONENT_NAME$
|
|
12561
|
+
const COMPONENT_NAME$1b = 'vc-quarterrange-panel';
|
|
12562
12562
|
const QuarterRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12563
|
-
name: COMPONENT_NAME$
|
|
12563
|
+
name: COMPONENT_NAME$1b,
|
|
12564
12564
|
props: {
|
|
12565
12565
|
...props$V,
|
|
12566
12566
|
confirm: {
|
|
@@ -12799,9 +12799,9 @@
|
|
|
12799
12799
|
seconds
|
|
12800
12800
|
};
|
|
12801
12801
|
};
|
|
12802
|
-
const COMPONENT_NAME$
|
|
12802
|
+
const COMPONENT_NAME$1a = 'vc-timerange-panel';
|
|
12803
12803
|
const TimeRangePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12804
|
-
name: COMPONENT_NAME$
|
|
12804
|
+
name: COMPONENT_NAME$1a,
|
|
12805
12805
|
props: props$U,
|
|
12806
12806
|
emits: ['pick', 'clear', 'ok'],
|
|
12807
12807
|
setup(props, {
|
|
@@ -12900,9 +12900,9 @@
|
|
|
12900
12900
|
|
|
12901
12901
|
/** @jsxImportSource vue */
|
|
12902
12902
|
|
|
12903
|
-
const COMPONENT_NAME$
|
|
12903
|
+
const COMPONENT_NAME$19 = 'vc-time-panel';
|
|
12904
12904
|
const TimePanel = /* @__PURE__ */ vue.defineComponent({
|
|
12905
|
-
name: COMPONENT_NAME$
|
|
12905
|
+
name: COMPONENT_NAME$19,
|
|
12906
12906
|
props: props$U,
|
|
12907
12907
|
emits: ['pick', 'clear', 'ok'],
|
|
12908
12908
|
setup(props, {
|
|
@@ -12957,7 +12957,7 @@
|
|
|
12957
12957
|
|
|
12958
12958
|
/** @jsxImportSource vue */
|
|
12959
12959
|
|
|
12960
|
-
const COMPONENT_NAME$
|
|
12960
|
+
const COMPONENT_NAME$18 = 'vc-date-picker';
|
|
12961
12961
|
const getPanel$1 = type => {
|
|
12962
12962
|
if (['daterange', 'datetimerange'].includes(type)) {
|
|
12963
12963
|
return DateRangePanel;
|
|
@@ -12968,7 +12968,7 @@
|
|
|
12968
12968
|
}
|
|
12969
12969
|
return DatePanel;
|
|
12970
12970
|
};
|
|
12971
|
-
const DatePicker = createPicker(COMPONENT_NAME$
|
|
12971
|
+
const DatePicker = createPicker(COMPONENT_NAME$18, props$10, () => {
|
|
12972
12972
|
const props = vue.getCurrentInstance().props;
|
|
12973
12973
|
const icon = vue.ref('date');
|
|
12974
12974
|
const panel = vue.shallowRef({});
|
|
@@ -13001,9 +13001,9 @@
|
|
|
13001
13001
|
|
|
13002
13002
|
/** @jsxImportSource vue */
|
|
13003
13003
|
|
|
13004
|
-
const COMPONENT_NAME$
|
|
13004
|
+
const COMPONENT_NAME$17 = 'vc-divider';
|
|
13005
13005
|
const Divider = /* @__PURE__ */ vue.defineComponent({
|
|
13006
|
-
name: COMPONENT_NAME$
|
|
13006
|
+
name: COMPONENT_NAME$17,
|
|
13007
13007
|
props: props$T,
|
|
13008
13008
|
setup(props, {
|
|
13009
13009
|
slots
|
|
@@ -13158,7 +13158,7 @@
|
|
|
13158
13158
|
|
|
13159
13159
|
/** @jsxImportSource vue */
|
|
13160
13160
|
|
|
13161
|
-
const COMPONENT_NAME$
|
|
13161
|
+
const COMPONENT_NAME$16 = 'vc-scroller-track';
|
|
13162
13162
|
const BAR_MAP = {
|
|
13163
13163
|
vertical: {
|
|
13164
13164
|
scroll: 'scrollTop',
|
|
@@ -13178,7 +13178,7 @@
|
|
|
13178
13178
|
}
|
|
13179
13179
|
};
|
|
13180
13180
|
const Track$1 = /* @__PURE__ */ vue.defineComponent({
|
|
13181
|
-
name: COMPONENT_NAME$
|
|
13181
|
+
name: COMPONENT_NAME$16,
|
|
13182
13182
|
props: props$S,
|
|
13183
13183
|
emits: ['change'],
|
|
13184
13184
|
inheritAttrs: false,
|
|
@@ -13368,9 +13368,9 @@
|
|
|
13368
13368
|
|
|
13369
13369
|
/** @jsxImportSource vue */
|
|
13370
13370
|
|
|
13371
|
-
const COMPONENT_NAME$
|
|
13371
|
+
const COMPONENT_NAME$15 = 'vc-scroller-bar';
|
|
13372
13372
|
const Bar = /* @__PURE__ */ vue.defineComponent({
|
|
13373
|
-
name: COMPONENT_NAME$
|
|
13373
|
+
name: COMPONENT_NAME$15,
|
|
13374
13374
|
props: props$R,
|
|
13375
13375
|
emits: ['change'],
|
|
13376
13376
|
setup(props, {
|
|
@@ -13585,7 +13585,7 @@
|
|
|
13585
13585
|
|
|
13586
13586
|
/** @jsxImportSource vue */
|
|
13587
13587
|
|
|
13588
|
-
const COMPONENT_NAME$
|
|
13588
|
+
const COMPONENT_NAME$14 = 'vc-scroller';
|
|
13589
13589
|
|
|
13590
13590
|
/**
|
|
13591
13591
|
* 作为备选方案,目前推荐使用ScrollerWheel
|
|
@@ -13596,7 +13596,7 @@
|
|
|
13596
13596
|
* 2. 增加了一层嵌套
|
|
13597
13597
|
*/
|
|
13598
13598
|
const Scroller = /* @__PURE__ */ vue.defineComponent({
|
|
13599
|
-
name: COMPONENT_NAME$
|
|
13599
|
+
name: COMPONENT_NAME$14,
|
|
13600
13600
|
props: props$Q,
|
|
13601
13601
|
emits: ['scroll'],
|
|
13602
13602
|
setup(props, {
|
|
@@ -14546,7 +14546,7 @@
|
|
|
14546
14546
|
|
|
14547
14547
|
/** @jsxImportSource vue */
|
|
14548
14548
|
|
|
14549
|
-
const COMPONENT_NAME$
|
|
14549
|
+
const COMPONENT_NAME$13 = 'vc-scroller-wheel';
|
|
14550
14550
|
|
|
14551
14551
|
/**
|
|
14552
14552
|
* 为减少一层嵌套,为去除滚动bar的抖动,使用wheel模拟
|
|
@@ -14568,7 +14568,7 @@
|
|
|
14568
14568
|
* 设置scrollTop不会reflow和repaint,不需要考虑transfrom来改变content(transform也只在draw完成)
|
|
14569
14569
|
*/
|
|
14570
14570
|
const ScrollerWheel = /* @__PURE__ */ vue.defineComponent({
|
|
14571
|
-
name: COMPONENT_NAME$
|
|
14571
|
+
name: COMPONENT_NAME$13,
|
|
14572
14572
|
props: Object.assign(props$Q, {
|
|
14573
14573
|
stopPropagation: {
|
|
14574
14574
|
type: Boolean,
|
|
@@ -14747,9 +14747,9 @@
|
|
|
14747
14747
|
|
|
14748
14748
|
/** @jsxImportSource vue */
|
|
14749
14749
|
|
|
14750
|
-
const COMPONENT_NAME$
|
|
14750
|
+
const COMPONENT_NAME$12 = 'vc-drawer';
|
|
14751
14751
|
const DrawerView = /* @__PURE__ */ vue.defineComponent({
|
|
14752
|
-
name: COMPONENT_NAME$
|
|
14752
|
+
name: COMPONENT_NAME$12,
|
|
14753
14753
|
props: props$P,
|
|
14754
14754
|
emits: ['close', 'update:modelValue', 'visible-change'],
|
|
14755
14755
|
setup(props, {
|
|
@@ -14922,9 +14922,9 @@
|
|
|
14922
14922
|
|
|
14923
14923
|
/** @jsxImportSource vue */
|
|
14924
14924
|
|
|
14925
|
-
const COMPONENT_NAME$
|
|
14925
|
+
const COMPONENT_NAME$11 = 'vc-dropdown';
|
|
14926
14926
|
const Dropdown = /* @__PURE__ */ vue.defineComponent({
|
|
14927
|
-
name: COMPONENT_NAME$
|
|
14927
|
+
name: COMPONENT_NAME$11,
|
|
14928
14928
|
props: props$O,
|
|
14929
14929
|
setup(props, {
|
|
14930
14930
|
slots
|
|
@@ -14948,9 +14948,9 @@
|
|
|
14948
14948
|
|
|
14949
14949
|
/** @jsxImportSource vue */
|
|
14950
14950
|
|
|
14951
|
-
const COMPONENT_NAME$
|
|
14951
|
+
const COMPONENT_NAME$10 = 'vc-editor';
|
|
14952
14952
|
const Editor = /* @__PURE__ */ vue.defineComponent({
|
|
14953
|
-
name: COMPONENT_NAME$
|
|
14953
|
+
name: COMPONENT_NAME$10,
|
|
14954
14954
|
props: props$N,
|
|
14955
14955
|
setup(props, {
|
|
14956
14956
|
slots
|
|
@@ -15094,9 +15094,9 @@
|
|
|
15094
15094
|
});
|
|
15095
15095
|
};
|
|
15096
15096
|
|
|
15097
|
-
const COMPONENT_NAME
|
|
15097
|
+
const COMPONENT_NAME$$ = "vc-form";
|
|
15098
15098
|
const Form = vue.defineComponent({
|
|
15099
|
-
name: COMPONENT_NAME
|
|
15099
|
+
name: COMPONENT_NAME$$,
|
|
15100
15100
|
props: props$M,
|
|
15101
15101
|
setup(props, { slots, expose }) {
|
|
15102
15102
|
useForm(expose);
|
|
@@ -15548,9 +15548,9 @@
|
|
|
15548
15548
|
|
|
15549
15549
|
/** @jsxImportSource vue */
|
|
15550
15550
|
|
|
15551
|
-
const COMPONENT_NAME
|
|
15551
|
+
const COMPONENT_NAME$_ = 'vc-form-item';
|
|
15552
15552
|
const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
15553
|
-
name: COMPONENT_NAME
|
|
15553
|
+
name: COMPONENT_NAME$_,
|
|
15554
15554
|
props: props$L,
|
|
15555
15555
|
setup(props, {
|
|
15556
15556
|
slots,
|
|
@@ -15615,9 +15615,9 @@
|
|
|
15615
15615
|
}
|
|
15616
15616
|
};
|
|
15617
15617
|
|
|
15618
|
-
const COMPONENT_NAME$
|
|
15618
|
+
const COMPONENT_NAME$Z = "vcm-form";
|
|
15619
15619
|
const MForm = vue.defineComponent({
|
|
15620
|
-
name: COMPONENT_NAME$
|
|
15620
|
+
name: COMPONENT_NAME$Z,
|
|
15621
15621
|
props: props$K,
|
|
15622
15622
|
setup(props, { slots, expose }) {
|
|
15623
15623
|
useForm(expose, {
|
|
@@ -15648,9 +15648,9 @@
|
|
|
15648
15648
|
|
|
15649
15649
|
/** @jsxImportSource vue */
|
|
15650
15650
|
|
|
15651
|
-
const COMPONENT_NAME$
|
|
15651
|
+
const COMPONENT_NAME$Y = 'vcm-form-item';
|
|
15652
15652
|
const MFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
15653
|
-
name: COMPONENT_NAME$
|
|
15653
|
+
name: COMPONENT_NAME$Y,
|
|
15654
15654
|
props: props$J,
|
|
15655
15655
|
setup(props, {
|
|
15656
15656
|
slots,
|
|
@@ -15704,9 +15704,9 @@
|
|
|
15704
15704
|
}
|
|
15705
15705
|
});
|
|
15706
15706
|
|
|
15707
|
-
const COMPONENT_NAME$
|
|
15707
|
+
const COMPONENT_NAME$X = "vc-fragment";
|
|
15708
15708
|
const Fragment = vue.defineComponent({
|
|
15709
|
-
name: COMPONENT_NAME$
|
|
15709
|
+
name: COMPONENT_NAME$X,
|
|
15710
15710
|
setup(_, { slots }) {
|
|
15711
15711
|
return () => vue.h(vue.Fragment, slots.default?.());
|
|
15712
15712
|
}
|
|
@@ -15723,9 +15723,9 @@
|
|
|
15723
15723
|
|
|
15724
15724
|
/** @jsxImportSource vue */
|
|
15725
15725
|
|
|
15726
|
-
const COMPONENT_NAME$
|
|
15726
|
+
const COMPONENT_NAME$W = 'vc-html-to-image';
|
|
15727
15727
|
const HTMLToImage = /* @__PURE__ */ vue.defineComponent({
|
|
15728
|
-
name: COMPONENT_NAME$
|
|
15728
|
+
name: COMPONENT_NAME$W,
|
|
15729
15729
|
props: props$I,
|
|
15730
15730
|
setup(props, {
|
|
15731
15731
|
slots
|
|
@@ -16183,7 +16183,7 @@
|
|
|
16183
16183
|
|
|
16184
16184
|
/** @jsxImportSource vue */
|
|
16185
16185
|
|
|
16186
|
-
const COMPONENT_NAME$
|
|
16186
|
+
const COMPONENT_NAME$V = 'vc-image';
|
|
16187
16187
|
let isSupportObjectFit = false;
|
|
16188
16188
|
window.addEventListener('DOMContentLoaded', () => {
|
|
16189
16189
|
isSupportObjectFit = !IS_SERVER$2 && document.documentElement.style.objectFit !== undefined;
|
|
@@ -16196,7 +16196,7 @@
|
|
|
16196
16196
|
SCALE_DOWN: 'scale-down'
|
|
16197
16197
|
};
|
|
16198
16198
|
const Image$1 = /* @__PURE__ */ vue.defineComponent({
|
|
16199
|
-
name: COMPONENT_NAME$
|
|
16199
|
+
name: COMPONENT_NAME$V,
|
|
16200
16200
|
inheritAttrs: false,
|
|
16201
16201
|
props: props$H,
|
|
16202
16202
|
setup(props, {
|
|
@@ -16401,9 +16401,9 @@
|
|
|
16401
16401
|
|
|
16402
16402
|
/** @jsxImportSource vue */
|
|
16403
16403
|
|
|
16404
|
-
const COMPONENT_NAME$
|
|
16404
|
+
const COMPONENT_NAME$U = 'vc-image-crop';
|
|
16405
16405
|
const ImageCrop = /* @__PURE__ */ vue.defineComponent({
|
|
16406
|
-
name: COMPONENT_NAME$
|
|
16406
|
+
name: COMPONENT_NAME$U,
|
|
16407
16407
|
props: props$G,
|
|
16408
16408
|
setup(props, {
|
|
16409
16409
|
slots
|
|
@@ -16427,9 +16427,9 @@
|
|
|
16427
16427
|
|
|
16428
16428
|
/** @jsxImportSource vue */
|
|
16429
16429
|
|
|
16430
|
-
const COMPONENT_NAME$
|
|
16430
|
+
const COMPONENT_NAME$T = 'vc-image-preview';
|
|
16431
16431
|
const ImagePreview = /* @__PURE__ */ vue.defineComponent({
|
|
16432
|
-
name: COMPONENT_NAME$
|
|
16432
|
+
name: COMPONENT_NAME$T,
|
|
16433
16433
|
props: props$F,
|
|
16434
16434
|
setup(props, {
|
|
16435
16435
|
slots
|
|
@@ -16453,9 +16453,9 @@
|
|
|
16453
16453
|
|
|
16454
16454
|
/** @jsxImportSource vue */
|
|
16455
16455
|
|
|
16456
|
-
const COMPONENT_NAME$
|
|
16456
|
+
const COMPONENT_NAME$S = 'vc-image-processing';
|
|
16457
16457
|
const ImageProcessing = /* @__PURE__ */ vue.defineComponent({
|
|
16458
|
-
name: COMPONENT_NAME$
|
|
16458
|
+
name: COMPONENT_NAME$S,
|
|
16459
16459
|
props: props$E,
|
|
16460
16460
|
setup(props, {
|
|
16461
16461
|
slots
|
|
@@ -16472,9 +16472,9 @@
|
|
|
16472
16472
|
|
|
16473
16473
|
/** @jsxImportSource vue */
|
|
16474
16474
|
|
|
16475
|
-
const COMPONENT_NAME$
|
|
16475
|
+
const COMPONENT_NAME$R = 'vcm-input';
|
|
16476
16476
|
const MInput = /* @__PURE__ */ vue.defineComponent({
|
|
16477
|
-
name: COMPONENT_NAME$
|
|
16477
|
+
name: COMPONENT_NAME$R,
|
|
16478
16478
|
inheritAttrs: false,
|
|
16479
16479
|
props: {
|
|
16480
16480
|
...props$$,
|
|
@@ -16563,9 +16563,9 @@
|
|
|
16563
16563
|
|
|
16564
16564
|
/** @jsxImportSource vue */
|
|
16565
16565
|
|
|
16566
|
-
const COMPONENT_NAME$
|
|
16566
|
+
const COMPONENT_NAME$Q = 'vcm-input-number';
|
|
16567
16567
|
const MInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
16568
|
-
name: COMPONENT_NAME$
|
|
16568
|
+
name: COMPONENT_NAME$Q,
|
|
16569
16569
|
props: props$X,
|
|
16570
16570
|
inheritAttrs: false,
|
|
16571
16571
|
setup(props, {
|
|
@@ -16614,9 +16614,9 @@
|
|
|
16614
16614
|
|
|
16615
16615
|
/** @jsxImportSource vue */
|
|
16616
16616
|
|
|
16617
|
-
const COMPONENT_NAME$
|
|
16617
|
+
const COMPONENT_NAME$P = 'vcm-input-search';
|
|
16618
16618
|
const MInputSearch = /* @__PURE__ */ vue.defineComponent({
|
|
16619
|
-
name: COMPONENT_NAME$
|
|
16619
|
+
name: COMPONENT_NAME$P,
|
|
16620
16620
|
props: {
|
|
16621
16621
|
...props$W,
|
|
16622
16622
|
cancelText: {
|
|
@@ -16693,9 +16693,9 @@
|
|
|
16693
16693
|
}
|
|
16694
16694
|
};
|
|
16695
16695
|
|
|
16696
|
-
const COMPONENT_NAME$
|
|
16696
|
+
const COMPONENT_NAME$O = "vcm-list";
|
|
16697
16697
|
const MList = vue.defineComponent({
|
|
16698
|
-
name: COMPONENT_NAME$
|
|
16698
|
+
name: COMPONENT_NAME$O,
|
|
16699
16699
|
props: props$D,
|
|
16700
16700
|
setup(props, { slots }) {
|
|
16701
16701
|
vue.provide("vc-list", { props });
|
|
@@ -16750,10 +16750,10 @@
|
|
|
16750
16750
|
|
|
16751
16751
|
/** @jsxImportSource vue */
|
|
16752
16752
|
|
|
16753
|
-
const COMPONENT_NAME$
|
|
16753
|
+
const COMPONENT_NAME$N = 'vcm-list-item';
|
|
16754
16754
|
const HTTP_REGEX = /[a-zA-z]+:\/\/[^\s]*/;
|
|
16755
16755
|
const MListItem = /* @__PURE__ */ vue.defineComponent({
|
|
16756
|
-
name: COMPONENT_NAME$
|
|
16756
|
+
name: COMPONENT_NAME$N,
|
|
16757
16757
|
props: props$C,
|
|
16758
16758
|
emits: ['click'],
|
|
16759
16759
|
setup(props, {
|
|
@@ -16886,11 +16886,11 @@
|
|
|
16886
16886
|
|
|
16887
16887
|
/** @jsxImportSource vue */
|
|
16888
16888
|
|
|
16889
|
-
const COMPONENT_NAME$
|
|
16889
|
+
const COMPONENT_NAME$M = 'vc-marquee';
|
|
16890
16890
|
const ANIMATION = prefixStyle('animation').camel;
|
|
16891
16891
|
const TRANSFORM_KEBAB = prefixStyle('transform').kebab;
|
|
16892
16892
|
const Marquee = /* @__PURE__ */ vue.defineComponent({
|
|
16893
|
-
name: COMPONENT_NAME$
|
|
16893
|
+
name: COMPONENT_NAME$M,
|
|
16894
16894
|
props: props$B,
|
|
16895
16895
|
setup(props, {
|
|
16896
16896
|
slots
|
|
@@ -16951,12 +16951,16 @@
|
|
|
16951
16951
|
tag: {
|
|
16952
16952
|
type: String,
|
|
16953
16953
|
default: "div"
|
|
16954
|
+
},
|
|
16955
|
+
fill: {
|
|
16956
|
+
type: Boolean,
|
|
16957
|
+
default: true
|
|
16954
16958
|
}
|
|
16955
16959
|
};
|
|
16956
16960
|
|
|
16957
|
-
const COMPONENT_NAME$
|
|
16961
|
+
const COMPONENT_NAME$L = "vc-resizer";
|
|
16958
16962
|
const Resizer = vue.defineComponent({
|
|
16959
|
-
name: COMPONENT_NAME$
|
|
16963
|
+
name: COMPONENT_NAME$L,
|
|
16960
16964
|
props: props$A,
|
|
16961
16965
|
emit: ["resize", "change"],
|
|
16962
16966
|
setup(props, { emit, slots, expose }) {
|
|
@@ -17005,13 +17009,13 @@
|
|
|
17005
17009
|
Resize.off(current.value, handleResize);
|
|
17006
17010
|
timer && clearTimeout(timer);
|
|
17007
17011
|
});
|
|
17008
|
-
expose({ refresh });
|
|
17012
|
+
expose({ refresh, offsetHeight: height, offsetWidth: width });
|
|
17009
17013
|
return () => {
|
|
17010
17014
|
return vue.h(
|
|
17011
17015
|
props.tag,
|
|
17012
17016
|
{
|
|
17013
17017
|
ref: current,
|
|
17014
|
-
class: "vc-resizer"
|
|
17018
|
+
class: ["vc-resizer", { "is-fill": props.fill }]
|
|
17015
17019
|
},
|
|
17016
17020
|
slots.default?.(currentExposed.value)
|
|
17017
17021
|
);
|
|
@@ -17037,7 +17041,7 @@
|
|
|
17037
17041
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
17038
17042
|
default: "small"
|
|
17039
17043
|
},
|
|
17040
|
-
|
|
17044
|
+
contentClass: [Object, String],
|
|
17041
17045
|
width: {
|
|
17042
17046
|
type: Number
|
|
17043
17047
|
},
|
|
@@ -17086,6 +17090,10 @@
|
|
|
17086
17090
|
type: Boolean,
|
|
17087
17091
|
default: true
|
|
17088
17092
|
},
|
|
17093
|
+
border: {
|
|
17094
|
+
type: Boolean,
|
|
17095
|
+
default: false
|
|
17096
|
+
},
|
|
17089
17097
|
/**
|
|
17090
17098
|
* 兼容portal设计, 实现Promise方式
|
|
17091
17099
|
*/
|
|
@@ -17099,10 +17107,10 @@
|
|
|
17099
17107
|
|
|
17100
17108
|
/** @jsxImportSource vue */
|
|
17101
17109
|
|
|
17102
|
-
const COMPONENT_NAME$
|
|
17110
|
+
const COMPONENT_NAME$K = 'vc-modal';
|
|
17103
17111
|
let zIndexNumber = 1002;
|
|
17104
17112
|
const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
17105
|
-
name: COMPONENT_NAME$
|
|
17113
|
+
name: COMPONENT_NAME$K,
|
|
17106
17114
|
emits: ['update:modelValue', 'close', 'portal-fulfilled', 'visible-change', 'ok', 'cancel'],
|
|
17107
17115
|
props: props$z,
|
|
17108
17116
|
setup(props, {
|
|
@@ -17383,7 +17391,8 @@
|
|
|
17383
17391
|
"class": [{
|
|
17384
17392
|
'is-drag': props.draggable,
|
|
17385
17393
|
'is-large': props.size === 'large' || props.size === 'medium',
|
|
17386
|
-
'
|
|
17394
|
+
'has-footer': props.footer && (props.cancelText || props.okText),
|
|
17395
|
+
'has-border': props.border
|
|
17387
17396
|
}, 'vc-modal__container'],
|
|
17388
17397
|
"style": [basicStyle.value, draggableStyle.value]
|
|
17389
17398
|
}, [vue.createVNode("div", {
|
|
@@ -17415,7 +17424,7 @@
|
|
|
17415
17424
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
17416
17425
|
"contentClass": [{
|
|
17417
17426
|
'is-confirm': props.mode
|
|
17418
|
-
}, props.
|
|
17427
|
+
}, props.contentClass, 'vc-modal__content']
|
|
17419
17428
|
}, {
|
|
17420
17429
|
default: () => [typeof props.content === 'string' ? vue.createVNode("div", {
|
|
17421
17430
|
"innerHTML": props.content
|
|
@@ -17528,9 +17537,9 @@
|
|
|
17528
17537
|
|
|
17529
17538
|
/** @jsxImportSource vue */
|
|
17530
17539
|
|
|
17531
|
-
const COMPONENT_NAME$
|
|
17540
|
+
const COMPONENT_NAME$J = 'vc-modal';
|
|
17532
17541
|
const MModalView = /* @__PURE__ */ vue.defineComponent({
|
|
17533
|
-
name: COMPONENT_NAME$
|
|
17542
|
+
name: COMPONENT_NAME$J,
|
|
17534
17543
|
emits: ['update:modelValue', 'portal-fulfilled', 'close', 'ok', 'cancel'],
|
|
17535
17544
|
props: props$y,
|
|
17536
17545
|
setup(props, {
|
|
@@ -17742,9 +17751,9 @@
|
|
|
17742
17751
|
|
|
17743
17752
|
/** @jsxImportSource vue */
|
|
17744
17753
|
|
|
17745
|
-
const COMPONENT_NAME$
|
|
17754
|
+
const COMPONENT_NAME$I = 'vc-notice';
|
|
17746
17755
|
const NoticeView = /* @__PURE__ */ vue.defineComponent({
|
|
17747
|
-
name: COMPONENT_NAME$
|
|
17756
|
+
name: COMPONENT_NAME$I,
|
|
17748
17757
|
props: props$x,
|
|
17749
17758
|
emits: ['portal-fulfilled', 'close', 'before-close'],
|
|
17750
17759
|
setup(props, {
|
|
@@ -17917,9 +17926,9 @@
|
|
|
17917
17926
|
|
|
17918
17927
|
/** @jsxImportSource vue */
|
|
17919
17928
|
|
|
17920
|
-
const COMPONENT_NAME$
|
|
17929
|
+
const COMPONENT_NAME$H = 'vc-option';
|
|
17921
17930
|
const Option$1 = /* @__PURE__ */ vue.defineComponent({
|
|
17922
|
-
name: COMPONENT_NAME$
|
|
17931
|
+
name: COMPONENT_NAME$H,
|
|
17923
17932
|
props: props$w,
|
|
17924
17933
|
setup(props, {
|
|
17925
17934
|
slots
|
|
@@ -18032,9 +18041,9 @@
|
|
|
18032
18041
|
|
|
18033
18042
|
/** @jsxImportSource vue */
|
|
18034
18043
|
|
|
18035
|
-
const COMPONENT_NAME$
|
|
18044
|
+
const COMPONENT_NAME$G = 'vc-tag';
|
|
18036
18045
|
const Tag = /* @__PURE__ */ vue.defineComponent({
|
|
18037
|
-
name: COMPONENT_NAME$
|
|
18046
|
+
name: COMPONENT_NAME$G,
|
|
18038
18047
|
props: props$u,
|
|
18039
18048
|
emits: ['close', 'change'],
|
|
18040
18049
|
setup(props, {
|
|
@@ -18103,9 +18112,9 @@
|
|
|
18103
18112
|
|
|
18104
18113
|
/** @jsxImportSource vue */
|
|
18105
18114
|
|
|
18106
|
-
const COMPONENT_NAME$
|
|
18115
|
+
const COMPONENT_NAME$F = 'vc-select-option';
|
|
18107
18116
|
const Option = /* @__PURE__ */ vue.defineComponent({
|
|
18108
|
-
name: COMPONENT_NAME$
|
|
18117
|
+
name: COMPONENT_NAME$F,
|
|
18109
18118
|
props: props$t,
|
|
18110
18119
|
setup(props, {
|
|
18111
18120
|
slots
|
|
@@ -18178,9 +18187,9 @@
|
|
|
18178
18187
|
|
|
18179
18188
|
/** @jsxImportSource vue */
|
|
18180
18189
|
|
|
18181
|
-
const COMPONENT_NAME$
|
|
18190
|
+
const COMPONENT_NAME$E = 'vc-select-option-group';
|
|
18182
18191
|
const OptionGroup = /* @__PURE__ */ vue.defineComponent({
|
|
18183
|
-
name: COMPONENT_NAME$
|
|
18192
|
+
name: COMPONENT_NAME$E,
|
|
18184
18193
|
props: props$s,
|
|
18185
18194
|
setup(props, {
|
|
18186
18195
|
slots
|
|
@@ -18278,9 +18287,9 @@
|
|
|
18278
18287
|
function _isSlot$1(s) {
|
|
18279
18288
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
18280
18289
|
}
|
|
18281
|
-
const COMPONENT_NAME$
|
|
18290
|
+
const COMPONENT_NAME$D = 'vc-select';
|
|
18282
18291
|
const Select = /* @__PURE__ */ vue.defineComponent({
|
|
18283
|
-
name: COMPONENT_NAME$
|
|
18292
|
+
name: COMPONENT_NAME$D,
|
|
18284
18293
|
props: props$r,
|
|
18285
18294
|
emits: ['ready', 'close', 'visible-change', 'clear', 'change', 'update:modelValue'],
|
|
18286
18295
|
setup(props, {
|
|
@@ -18524,9 +18533,9 @@
|
|
|
18524
18533
|
|
|
18525
18534
|
/** @jsxImportSource vue */
|
|
18526
18535
|
|
|
18527
|
-
const COMPONENT_NAME$
|
|
18536
|
+
const COMPONENT_NAME$C = 'vc-pagination';
|
|
18528
18537
|
const Pagination = /* @__PURE__ */ vue.defineComponent({
|
|
18529
|
-
name: COMPONENT_NAME$
|
|
18538
|
+
name: COMPONENT_NAME$C,
|
|
18530
18539
|
props: props$v,
|
|
18531
18540
|
emits: ['update:current', 'change', 'page-size-change'],
|
|
18532
18541
|
setup(props, {
|
|
@@ -18724,9 +18733,9 @@
|
|
|
18724
18733
|
|
|
18725
18734
|
/** @jsxImportSource vue */
|
|
18726
18735
|
|
|
18727
|
-
const COMPONENT_NAME$
|
|
18736
|
+
const COMPONENT_NAME$B = 'vc-picker';
|
|
18728
18737
|
const Picker = /* @__PURE__ */ vue.defineComponent({
|
|
18729
|
-
name: COMPONENT_NAME$
|
|
18738
|
+
name: COMPONENT_NAME$B,
|
|
18730
18739
|
props: props$q,
|
|
18731
18740
|
setup(props, {
|
|
18732
18741
|
slots
|
|
@@ -18750,9 +18759,9 @@
|
|
|
18750
18759
|
|
|
18751
18760
|
/** @jsxImportSource vue */
|
|
18752
18761
|
|
|
18753
|
-
const COMPONENT_NAME$
|
|
18762
|
+
const COMPONENT_NAME$A = 'vc-popconfirm';
|
|
18754
18763
|
const Popconfirm = /* @__PURE__ */ vue.defineComponent({
|
|
18755
|
-
name: COMPONENT_NAME$
|
|
18764
|
+
name: COMPONENT_NAME$A,
|
|
18756
18765
|
props: props$p,
|
|
18757
18766
|
setup(props, {
|
|
18758
18767
|
slots
|
|
@@ -18778,9 +18787,9 @@
|
|
|
18778
18787
|
|
|
18779
18788
|
/** @jsxImportSource vue */
|
|
18780
18789
|
|
|
18781
|
-
const COMPONENT_NAME$
|
|
18790
|
+
const COMPONENT_NAME$z = 'vc-popup';
|
|
18782
18791
|
const Popup = /* @__PURE__ */ vue.defineComponent({
|
|
18783
|
-
name: COMPONENT_NAME$
|
|
18792
|
+
name: COMPONENT_NAME$z,
|
|
18784
18793
|
props: props$o,
|
|
18785
18794
|
setup(props, {
|
|
18786
18795
|
slots
|
|
@@ -18807,9 +18816,9 @@
|
|
|
18807
18816
|
|
|
18808
18817
|
/** @jsxImportSource vue */
|
|
18809
18818
|
|
|
18810
|
-
const COMPONENT_NAME$
|
|
18819
|
+
const COMPONENT_NAME$y = 'vc-print';
|
|
18811
18820
|
const Print = /* @__PURE__ */ vue.defineComponent({
|
|
18812
|
-
name: COMPONENT_NAME$
|
|
18821
|
+
name: COMPONENT_NAME$y,
|
|
18813
18822
|
props: props$n,
|
|
18814
18823
|
setup(props, {
|
|
18815
18824
|
expose,
|
|
@@ -18873,6 +18882,12 @@
|
|
|
18873
18882
|
type: Boolean,
|
|
18874
18883
|
default: true
|
|
18875
18884
|
},
|
|
18885
|
+
textStyle: {
|
|
18886
|
+
type: [String, Object]
|
|
18887
|
+
},
|
|
18888
|
+
textClass: {
|
|
18889
|
+
type: [String, Object]
|
|
18890
|
+
},
|
|
18876
18891
|
animated: {
|
|
18877
18892
|
type: Boolean,
|
|
18878
18893
|
default: false
|
|
@@ -18905,9 +18920,9 @@
|
|
|
18905
18920
|
|
|
18906
18921
|
/** @jsxImportSource vue */
|
|
18907
18922
|
|
|
18908
|
-
const COMPONENT_NAME$
|
|
18923
|
+
const COMPONENT_NAME$x = 'vc-progress-circle';
|
|
18909
18924
|
const Circle$1 = /* @__PURE__ */ vue.defineComponent({
|
|
18910
|
-
name: COMPONENT_NAME$
|
|
18925
|
+
name: COMPONENT_NAME$x,
|
|
18911
18926
|
props: props$m,
|
|
18912
18927
|
setup(props, {
|
|
18913
18928
|
slots
|
|
@@ -18956,17 +18971,20 @@
|
|
|
18956
18971
|
"stroke-linecap": "round",
|
|
18957
18972
|
"fill-opacity": "0"
|
|
18958
18973
|
}, null)]), vue.createVNode("div", {
|
|
18959
|
-
"class":
|
|
18960
|
-
}, [slots.default ? slots.default() : props.showText && vue.createVNode("span",
|
|
18974
|
+
"class": ['vc-progress-circle__inner']
|
|
18975
|
+
}, [slots.default ? slots.default() : props.showText && vue.createVNode("span", {
|
|
18976
|
+
"class": props.textClass,
|
|
18977
|
+
"style": props.textStyle
|
|
18978
|
+
}, [`${props.percent}%`])])])]);
|
|
18961
18979
|
};
|
|
18962
18980
|
}
|
|
18963
18981
|
});
|
|
18964
18982
|
|
|
18965
18983
|
/** @jsxImportSource vue */
|
|
18966
18984
|
|
|
18967
|
-
const COMPONENT_NAME$
|
|
18985
|
+
const COMPONENT_NAME$w = 'vc-progress-line';
|
|
18968
18986
|
const Line$2 = /* @__PURE__ */ vue.defineComponent({
|
|
18969
|
-
name: COMPONENT_NAME$
|
|
18987
|
+
name: COMPONENT_NAME$w,
|
|
18970
18988
|
props: props$m,
|
|
18971
18989
|
setup(props) {
|
|
18972
18990
|
const colorStyle = vue.computed(() => {
|
|
@@ -18995,12 +19013,15 @@
|
|
|
18995
19013
|
"style": innerStyle.value,
|
|
18996
19014
|
"class": [classes.value, 'vc-progress-line__inner']
|
|
18997
19015
|
}, null)])]), props.showText && vue.createVNode("div", {
|
|
18998
|
-
"class":
|
|
19016
|
+
"class": ['vc-progress-line__percent']
|
|
18999
19017
|
}, [['error', 'success'].includes(props.status) ? vue.createVNode(Icon, {
|
|
19000
19018
|
"type": props.status,
|
|
19001
19019
|
"style": colorStyle.value,
|
|
19002
19020
|
"class": [`is-${props.status}`, 'vc-progress-line__icon']
|
|
19003
|
-
}, null) : vue.createVNode("span",
|
|
19021
|
+
}, null) : vue.createVNode("span", {
|
|
19022
|
+
"class": props.textClass,
|
|
19023
|
+
"style": props.textStyle
|
|
19024
|
+
}, [`${props.percent}%`])])]);
|
|
19004
19025
|
};
|
|
19005
19026
|
}
|
|
19006
19027
|
});
|
|
@@ -19010,9 +19031,9 @@
|
|
|
19010
19031
|
function _isSlot(s) {
|
|
19011
19032
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
19012
19033
|
}
|
|
19013
|
-
const COMPONENT_NAME$
|
|
19034
|
+
const COMPONENT_NAME$v = 'vc-progress';
|
|
19014
19035
|
const Progress = /* @__PURE__ */ vue.defineComponent({
|
|
19015
|
-
name: COMPONENT_NAME$
|
|
19036
|
+
name: COMPONENT_NAME$v,
|
|
19016
19037
|
props: props$m,
|
|
19017
19038
|
setup(props, {
|
|
19018
19039
|
slots
|
|
@@ -19164,9 +19185,9 @@
|
|
|
19164
19185
|
|
|
19165
19186
|
/** @jsxImportSource vue */
|
|
19166
19187
|
|
|
19167
|
-
const COMPONENT_NAME$
|
|
19188
|
+
const COMPONENT_NAME$u = 'vc-radio';
|
|
19168
19189
|
const Radio = /* @__PURE__ */ vue.defineComponent({
|
|
19169
|
-
name: COMPONENT_NAME$
|
|
19190
|
+
name: COMPONENT_NAME$u,
|
|
19170
19191
|
props: props$l,
|
|
19171
19192
|
emits: ['update:modelValue', 'change'],
|
|
19172
19193
|
setup(props, {
|
|
@@ -19277,9 +19298,9 @@
|
|
|
19277
19298
|
|
|
19278
19299
|
/** @jsxImportSource vue */
|
|
19279
19300
|
|
|
19280
|
-
const COMPONENT_NAME$
|
|
19301
|
+
const COMPONENT_NAME$t = 'vc-radio-group';
|
|
19281
19302
|
const RadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
19282
|
-
name: COMPONENT_NAME$
|
|
19303
|
+
name: COMPONENT_NAME$t,
|
|
19283
19304
|
props: props$k,
|
|
19284
19305
|
emits: ['update:modelValue', 'change'],
|
|
19285
19306
|
setup(props, {
|
|
@@ -19301,9 +19322,9 @@
|
|
|
19301
19322
|
|
|
19302
19323
|
/** @jsxImportSource vue */
|
|
19303
19324
|
|
|
19304
|
-
const COMPONENT_NAME$
|
|
19325
|
+
const COMPONENT_NAME$s = 'vcm-radio';
|
|
19305
19326
|
const MRadio = /* @__PURE__ */ vue.defineComponent({
|
|
19306
|
-
name: COMPONENT_NAME$
|
|
19327
|
+
name: COMPONENT_NAME$s,
|
|
19307
19328
|
props: props$l,
|
|
19308
19329
|
emits: ['update:modelValue', 'change'],
|
|
19309
19330
|
setup(props, {
|
|
@@ -19344,9 +19365,9 @@
|
|
|
19344
19365
|
|
|
19345
19366
|
/** @jsxImportSource vue */
|
|
19346
19367
|
|
|
19347
|
-
const COMPONENT_NAME$
|
|
19368
|
+
const COMPONENT_NAME$r = 'vcm-radio-group';
|
|
19348
19369
|
const MRadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
19349
|
-
name: COMPONENT_NAME$
|
|
19370
|
+
name: COMPONENT_NAME$r,
|
|
19350
19371
|
props: props$k,
|
|
19351
19372
|
emits: ['update:modelValue', 'change'],
|
|
19352
19373
|
setup(props, {
|
|
@@ -19375,9 +19396,9 @@
|
|
|
19375
19396
|
|
|
19376
19397
|
/** @jsxImportSource vue */
|
|
19377
19398
|
|
|
19378
|
-
const COMPONENT_NAME$
|
|
19399
|
+
const COMPONENT_NAME$q = 'vc-rate';
|
|
19379
19400
|
const Rate = /* @__PURE__ */ vue.defineComponent({
|
|
19380
|
-
name: COMPONENT_NAME$
|
|
19401
|
+
name: COMPONENT_NAME$q,
|
|
19381
19402
|
props: props$j,
|
|
19382
19403
|
setup(props, {
|
|
19383
19404
|
slots
|
|
@@ -19559,9 +19580,9 @@
|
|
|
19559
19580
|
|
|
19560
19581
|
/** @jsxImportSource vue */
|
|
19561
19582
|
|
|
19562
|
-
const COMPONENT_NAME$
|
|
19583
|
+
const COMPONENT_NAME$p = 'vc-recycle-list-scroll-state';
|
|
19563
19584
|
const ScrollState = /* @__PURE__ */ vue.defineComponent({
|
|
19564
|
-
name: COMPONENT_NAME$
|
|
19585
|
+
name: COMPONENT_NAME$p,
|
|
19565
19586
|
setup(_, {
|
|
19566
19587
|
slots
|
|
19567
19588
|
}) {
|
|
@@ -19691,12 +19712,12 @@
|
|
|
19691
19712
|
|
|
19692
19713
|
/** @jsxImportSource vue */
|
|
19693
19714
|
|
|
19694
|
-
const COMPONENT_NAME$
|
|
19715
|
+
const COMPONENT_NAME$o = 'vc-recycle-list-container';
|
|
19695
19716
|
|
|
19696
19717
|
// TODO: 抽离
|
|
19697
19718
|
const transformKey = prefixStyle('transform').camel;
|
|
19698
19719
|
const Container = /* @__PURE__ */ vue.defineComponent({
|
|
19699
|
-
name: COMPONENT_NAME$
|
|
19720
|
+
name: COMPONENT_NAME$o,
|
|
19700
19721
|
props: props$h,
|
|
19701
19722
|
emits: ['refresh'],
|
|
19702
19723
|
setup(props, {
|
|
@@ -19794,51 +19815,6 @@
|
|
|
19794
19815
|
|
|
19795
19816
|
/** @jsxImportSource vue */
|
|
19796
19817
|
|
|
19797
|
-
const COMPONENT_NAME$o = 'vc-recycle-list-item';
|
|
19798
|
-
const Item = /* @__PURE__ */ vue.defineComponent({
|
|
19799
|
-
name: COMPONENT_NAME$o,
|
|
19800
|
-
props: {
|
|
19801
|
-
vertical: {
|
|
19802
|
-
type: Boolean,
|
|
19803
|
-
default: true
|
|
19804
|
-
}
|
|
19805
|
-
},
|
|
19806
|
-
emits: ['resize', 'change'],
|
|
19807
|
-
setup(_, {
|
|
19808
|
-
emit,
|
|
19809
|
-
slots
|
|
19810
|
-
}) {
|
|
19811
|
-
const K = useDirectionKeys();
|
|
19812
|
-
const current = vue.ref();
|
|
19813
|
-
const offsetSize = vue.ref(0);
|
|
19814
|
-
let hasInitial = false;
|
|
19815
|
-
const handleResize = () => {
|
|
19816
|
-
const v = current.value.getBoundingClientRect()[K.size];
|
|
19817
|
-
const changed = offsetSize.value != v;
|
|
19818
|
-
if (changed) {
|
|
19819
|
-
offsetSize.value = v;
|
|
19820
|
-
hasInitial && emit('resize', v);
|
|
19821
|
-
emit('change', v);
|
|
19822
|
-
}
|
|
19823
|
-
hasInitial = true;
|
|
19824
|
-
};
|
|
19825
|
-
vue.onMounted(() => {
|
|
19826
|
-
Resize.on(current.value, handleResize); // 首次会执行一次
|
|
19827
|
-
});
|
|
19828
|
-
vue.onBeforeUnmount(() => {
|
|
19829
|
-
Resize.off(current.value, handleResize);
|
|
19830
|
-
});
|
|
19831
|
-
return () => {
|
|
19832
|
-
return vue.createVNode("div", {
|
|
19833
|
-
"ref": current,
|
|
19834
|
-
"class": "vc-recycle-list-item"
|
|
19835
|
-
}, [slots?.default?.()]);
|
|
19836
|
-
};
|
|
19837
|
-
}
|
|
19838
|
-
});
|
|
19839
|
-
|
|
19840
|
-
/** @jsxImportSource vue */
|
|
19841
|
-
|
|
19842
19818
|
const COMPONENT_NAME$n = 'vc-recycle-list';
|
|
19843
19819
|
const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
19844
19820
|
name: COMPONENT_NAME$n,
|
|
@@ -20349,7 +20325,7 @@
|
|
|
20349
20325
|
// eslint-disable-next-line @stylistic/max-len
|
|
20350
20326
|
slots.placeholder?.() || renderer.value.placeholder && vue.createVNode(Customer, {
|
|
20351
20327
|
"render": renderer.value.placeholder
|
|
20352
|
-
}, null)]), !item.isPlaceholder && vue.createVNode(
|
|
20328
|
+
}, null)]), !item.isPlaceholder && vue.createVNode(Resizer, {
|
|
20353
20329
|
"ref": v => curloads.value[item.id] = v,
|
|
20354
20330
|
"class": {
|
|
20355
20331
|
'vc-recycle-list__transition': hasPlaceholder.value
|
|
@@ -20357,11 +20333,11 @@
|
|
|
20357
20333
|
"style": {
|
|
20358
20334
|
opacity: item.loaded
|
|
20359
20335
|
},
|
|
20336
|
+
"fill": false,
|
|
20360
20337
|
"data-row": item.id,
|
|
20361
20338
|
"data-column": item.column,
|
|
20362
20339
|
"data-size": item.size,
|
|
20363
20340
|
"data-position": item.position,
|
|
20364
|
-
"vertical": props.vertical,
|
|
20365
20341
|
"onResize": handleResize
|
|
20366
20342
|
}, {
|
|
20367
20343
|
default: () => [slots.default?.({
|
|
@@ -37978,14 +37954,14 @@
|
|
|
37978
37954
|
}
|
|
37979
37955
|
}
|
|
37980
37956
|
if (column.children) {
|
|
37981
|
-
let
|
|
37957
|
+
let colspan = 0;
|
|
37982
37958
|
column.children.forEach((subColumn) => {
|
|
37983
37959
|
traverse(subColumn, column);
|
|
37984
|
-
|
|
37960
|
+
colspan += subColumn.colspan;
|
|
37985
37961
|
});
|
|
37986
|
-
column.
|
|
37962
|
+
column.colspan = colspan;
|
|
37987
37963
|
} else {
|
|
37988
|
-
column.
|
|
37964
|
+
column.colspan = 1;
|
|
37989
37965
|
}
|
|
37990
37966
|
};
|
|
37991
37967
|
v.forEach((column) => {
|
|
@@ -37999,9 +37975,9 @@
|
|
|
37999
37975
|
const allColumns = getAllColumns(v);
|
|
38000
37976
|
allColumns.forEach((column) => {
|
|
38001
37977
|
if (!column.children) {
|
|
38002
|
-
column.
|
|
37978
|
+
column.rowspan = maxLevel - column.level + 1;
|
|
38003
37979
|
} else {
|
|
38004
|
-
column.
|
|
37980
|
+
column.rowspan = 1;
|
|
38005
37981
|
}
|
|
38006
37982
|
rows[column.level - 1].push(column);
|
|
38007
37983
|
});
|
|
@@ -38070,6 +38046,7 @@
|
|
|
38070
38046
|
selection: [],
|
|
38071
38047
|
reserveSelection: false,
|
|
38072
38048
|
selectable: null,
|
|
38049
|
+
expandSelectable: null,
|
|
38073
38050
|
hoverRowIndex: null,
|
|
38074
38051
|
// Current
|
|
38075
38052
|
currentRow: null,
|
|
@@ -38596,6 +38573,7 @@
|
|
|
38596
38573
|
this.layout = new Layout(this);
|
|
38597
38574
|
const { props } = options.table;
|
|
38598
38575
|
lodashExports.merge(this.states, {
|
|
38576
|
+
expandSelectable: props.expandSelectable,
|
|
38599
38577
|
treeLazy: props.lazy || false,
|
|
38600
38578
|
treeLazyColumnIdentifier: props.treeMap.hasChildren || "hasChildren",
|
|
38601
38579
|
treeChildrenColumnName: props.treeMap.children || "children"
|
|
@@ -38918,8 +38896,7 @@
|
|
|
38918
38896
|
}
|
|
38919
38897
|
|
|
38920
38898
|
const useStates = (mapper, $store) => {
|
|
38921
|
-
const
|
|
38922
|
-
const store = $store || instance.proxy?.store;
|
|
38899
|
+
const store = $store || vue.inject("vc-table")?.store;
|
|
38923
38900
|
const states = vue.reactive({});
|
|
38924
38901
|
Object.keys(mapper).forEach((key) => {
|
|
38925
38902
|
const value = mapper[key];
|
|
@@ -38954,16 +38931,16 @@
|
|
|
38954
38931
|
emit,
|
|
38955
38932
|
slots
|
|
38956
38933
|
}) {
|
|
38957
|
-
const handleResize = (
|
|
38934
|
+
const handleResize = (e, index) => {
|
|
38958
38935
|
emit('row-resize', {
|
|
38959
38936
|
index,
|
|
38960
|
-
size
|
|
38937
|
+
size: e.height
|
|
38961
38938
|
});
|
|
38962
38939
|
};
|
|
38963
38940
|
return () => {
|
|
38964
38941
|
return props.data.map((row, index) => {
|
|
38965
|
-
return vue.createVNode(
|
|
38966
|
-
"
|
|
38942
|
+
return vue.createVNode(Resizer, {
|
|
38943
|
+
"fill": false,
|
|
38967
38944
|
"onChange": e => handleResize(e, index)
|
|
38968
38945
|
}, {
|
|
38969
38946
|
default: () => [slots.default?.({
|
|
@@ -38979,7 +38956,6 @@
|
|
|
38979
38956
|
const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
38980
38957
|
name: 'vc-table-body',
|
|
38981
38958
|
props: {
|
|
38982
|
-
store: Object,
|
|
38983
38959
|
fixed: String,
|
|
38984
38960
|
heightStyle: [Object, Array, String]
|
|
38985
38961
|
},
|
|
@@ -38990,6 +38966,7 @@
|
|
|
38990
38966
|
}) {
|
|
38991
38967
|
const instance = vue.getCurrentInstance();
|
|
38992
38968
|
const table = vue.inject('vc-table');
|
|
38969
|
+
const allowRender = vue.ref(false);
|
|
38993
38970
|
const states = useStates({
|
|
38994
38971
|
data: 'data',
|
|
38995
38972
|
list: 'list',
|
|
@@ -39007,8 +38984,8 @@
|
|
|
39007
38984
|
}) => type === 'default')
|
|
39008
38985
|
});
|
|
39009
38986
|
const wrapper = vue.ref();
|
|
39010
|
-
vue.watch(() =>
|
|
39011
|
-
if (!
|
|
38987
|
+
vue.watch(() => table.store.states.hoverRowIndex, (v, oldV) => {
|
|
38988
|
+
if (!table.store.states.isComplex || IS_SERVER$2) return;
|
|
39012
38989
|
raf(() => {
|
|
39013
38990
|
const rows = instance.vnode.el.querySelectorAll('.vc-table__row');
|
|
39014
38991
|
const oldRow = rows[oldV];
|
|
@@ -39052,7 +39029,7 @@
|
|
|
39052
39029
|
};
|
|
39053
39030
|
const getRowClass = (row, rowIndex) => {
|
|
39054
39031
|
const classes = ['vc-table__row'];
|
|
39055
|
-
if (table.props.highlight && row ===
|
|
39032
|
+
if (table.props.highlight && row === table.store.states.currentRow) {
|
|
39056
39033
|
classes.push('current-row');
|
|
39057
39034
|
}
|
|
39058
39035
|
if (table.props.stripe && rowIndex % 2 === 1) {
|
|
@@ -39067,7 +39044,7 @@
|
|
|
39067
39044
|
rowIndex
|
|
39068
39045
|
}));
|
|
39069
39046
|
}
|
|
39070
|
-
if (
|
|
39047
|
+
if (table.store.states.expandRows.indexOf(row) > -1) {
|
|
39071
39048
|
classes.push('expanded');
|
|
39072
39049
|
}
|
|
39073
39050
|
return classes;
|
|
@@ -39150,10 +39127,10 @@
|
|
|
39150
39127
|
table.emit('cell-mouse-leave', oldHoverState.row, oldHoverState.column, oldHoverState.cell, e);
|
|
39151
39128
|
};
|
|
39152
39129
|
const handleMouseEnter = debounce$1(index => {
|
|
39153
|
-
|
|
39130
|
+
table.store.setHoverRow(index);
|
|
39154
39131
|
}, 30);
|
|
39155
39132
|
const handleMouseLeave = debounce$1(() => {
|
|
39156
|
-
|
|
39133
|
+
table.store.setHoverRow(null);
|
|
39157
39134
|
}, 30);
|
|
39158
39135
|
const handleEvent = (e, row, name) => {
|
|
39159
39136
|
const cell = getCell(e);
|
|
@@ -39173,10 +39150,13 @@
|
|
|
39173
39150
|
handleEvent(e, row, 'dblclick');
|
|
39174
39151
|
};
|
|
39175
39152
|
const handleClick = (e, row) => {
|
|
39176
|
-
|
|
39153
|
+
table.store.setCurrentRow(row);
|
|
39177
39154
|
handleEvent(e, row, 'click');
|
|
39178
39155
|
};
|
|
39179
39156
|
const renderRow = (rowData, rowIndex) => {
|
|
39157
|
+
const {
|
|
39158
|
+
rowHeight
|
|
39159
|
+
} = table.props;
|
|
39180
39160
|
const {
|
|
39181
39161
|
data: row
|
|
39182
39162
|
} = rowData;
|
|
@@ -39184,7 +39164,8 @@
|
|
|
39184
39164
|
columns
|
|
39185
39165
|
} = states;
|
|
39186
39166
|
const key = getValueOfRow(row, rowIndex);
|
|
39187
|
-
const selected =
|
|
39167
|
+
const selected = table.store.isSelected(row);
|
|
39168
|
+
const height = rowHeight || rowData.height;
|
|
39188
39169
|
return vue.createVNode("div", {
|
|
39189
39170
|
"key": key,
|
|
39190
39171
|
"class": [getRowClass(row, rowIndex), 'vc-table__tr'],
|
|
@@ -39201,7 +39182,7 @@
|
|
|
39201
39182
|
} = column;
|
|
39202
39183
|
const sizeStyle = {
|
|
39203
39184
|
width: `${realWidth}px`,
|
|
39204
|
-
height: `${
|
|
39185
|
+
height: `${height ? `${height}px` : 'auto'}`
|
|
39205
39186
|
};
|
|
39206
39187
|
if (columnsHidden.value[columnIndex]) {
|
|
39207
39188
|
return vue.createVNode("div", {
|
|
@@ -39220,7 +39201,7 @@
|
|
|
39220
39201
|
column,
|
|
39221
39202
|
rowIndex,
|
|
39222
39203
|
columnIndex,
|
|
39223
|
-
store:
|
|
39204
|
+
store: table.store,
|
|
39224
39205
|
selected
|
|
39225
39206
|
})]);
|
|
39226
39207
|
})]);
|
|
@@ -39237,6 +39218,7 @@
|
|
|
39237
39218
|
})]);
|
|
39238
39219
|
};
|
|
39239
39220
|
const handleMergeRowResize = v => {
|
|
39221
|
+
if (table.props.rowHeight) return;
|
|
39240
39222
|
states.list[v.index].rows.forEach(row => {
|
|
39241
39223
|
row.heightMap[props.fixed || 'main'] = v.size;
|
|
39242
39224
|
const heights = [row.heightMap.main];
|
|
@@ -39256,7 +39238,17 @@
|
|
|
39256
39238
|
getRootElement: () => instance.vnode.el
|
|
39257
39239
|
});
|
|
39258
39240
|
const layout = table.layout;
|
|
39241
|
+
let timer;
|
|
39242
|
+
vue.onBeforeMount(() => {
|
|
39243
|
+
if (table.props.delay) {
|
|
39244
|
+
timer = setTimeout(() => allowRender.value = true, table.props.delay);
|
|
39245
|
+
} else {
|
|
39246
|
+
allowRender.value = true;
|
|
39247
|
+
}
|
|
39248
|
+
});
|
|
39249
|
+
vue.onBeforeUnmount(() => (timer && clearTimeout(timer), allowRender.value = false));
|
|
39259
39250
|
return () => {
|
|
39251
|
+
if (!allowRender.value) return;
|
|
39260
39252
|
return vue.createVNode("div", {
|
|
39261
39253
|
"class": "vc-table__body"
|
|
39262
39254
|
}, [table.props.height ? vue.createVNode(RecycleList, {
|
|
@@ -39305,10 +39297,6 @@
|
|
|
39305
39297
|
name: 'vc-table-header',
|
|
39306
39298
|
props: {
|
|
39307
39299
|
fixed: [Boolean, String],
|
|
39308
|
-
store: {
|
|
39309
|
-
type: Object,
|
|
39310
|
-
required: true
|
|
39311
|
-
},
|
|
39312
39300
|
border: Boolean,
|
|
39313
39301
|
// 排序全部交给外部处理,内部不处理数据,只做交互
|
|
39314
39302
|
defaultSort: {
|
|
@@ -39457,7 +39445,7 @@
|
|
|
39457
39445
|
column.width = columnWidth;
|
|
39458
39446
|
column.realWidth = column.width;
|
|
39459
39447
|
table.$emit('header-dragend', column.width, startLeft - startColumnLeft, column, event);
|
|
39460
|
-
|
|
39448
|
+
table.store.scheduleLayout();
|
|
39461
39449
|
document.body.style.cursor = '';
|
|
39462
39450
|
dragging.value = false;
|
|
39463
39451
|
draggingColumn.value = null;
|
|
@@ -39562,7 +39550,7 @@
|
|
|
39562
39550
|
}, [column.renderHeader ? column.renderHeader({
|
|
39563
39551
|
column,
|
|
39564
39552
|
columnIndex,
|
|
39565
|
-
store:
|
|
39553
|
+
store: table.store
|
|
39566
39554
|
}) : column.label, column.tooltip ? vue.createVNode(Icon, {
|
|
39567
39555
|
"type": "o-info",
|
|
39568
39556
|
"onMouseenter": e => handleCellMouseEnter(e, column)
|
|
@@ -39585,10 +39573,6 @@
|
|
|
39585
39573
|
name: 'vc-table-footer',
|
|
39586
39574
|
props: {
|
|
39587
39575
|
fixed: [String, Boolean],
|
|
39588
|
-
store: {
|
|
39589
|
-
type: Object,
|
|
39590
|
-
required: true
|
|
39591
|
-
},
|
|
39592
39576
|
getSummary: Function,
|
|
39593
39577
|
sumText: String,
|
|
39594
39578
|
border: Boolean
|
|
@@ -39610,7 +39594,7 @@
|
|
|
39610
39594
|
} else if (props.fixed === 'right') {
|
|
39611
39595
|
let before = 0;
|
|
39612
39596
|
for (let i = 0; i < index; i++) {
|
|
39613
|
-
before += states.columns[i].
|
|
39597
|
+
before += states.columns[i].colspan;
|
|
39614
39598
|
}
|
|
39615
39599
|
return before < states.columnsCount - states.rightFixedLeafCount;
|
|
39616
39600
|
} else if (!props.fixed && column.fixed) {
|
|
@@ -39704,6 +39688,7 @@
|
|
|
39704
39688
|
width: [String, Number],
|
|
39705
39689
|
height: [String, Number],
|
|
39706
39690
|
maxHeight: [String, Number],
|
|
39691
|
+
rowHeight: [String, Number],
|
|
39707
39692
|
// 列的宽度是否自撑开
|
|
39708
39693
|
fit: {
|
|
39709
39694
|
type: Boolean,
|
|
@@ -39784,7 +39769,9 @@
|
|
|
39784
39769
|
defaultSort: {
|
|
39785
39770
|
type: Object,
|
|
39786
39771
|
default: () => ({})
|
|
39787
|
-
}
|
|
39772
|
+
},
|
|
39773
|
+
// 用于延迟渲染,用于计算高度
|
|
39774
|
+
delay: Number
|
|
39788
39775
|
};
|
|
39789
39776
|
|
|
39790
39777
|
/** @jsxImportSource vue */
|
|
@@ -39913,7 +39900,8 @@
|
|
|
39913
39900
|
};
|
|
39914
39901
|
}
|
|
39915
39902
|
return {
|
|
39916
|
-
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : ''
|
|
39903
|
+
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : '',
|
|
39904
|
+
bottom: 0
|
|
39917
39905
|
};
|
|
39918
39906
|
}
|
|
39919
39907
|
});
|
|
@@ -40196,7 +40184,6 @@
|
|
|
40196
40184
|
"class": "vc-table__header-wrapper"
|
|
40197
40185
|
}, [vue.createVNode(TableHeader, {
|
|
40198
40186
|
"ref": tableHeader,
|
|
40199
|
-
"store": store,
|
|
40200
40187
|
"border": props.border,
|
|
40201
40188
|
"default-sort": props.defaultSort,
|
|
40202
40189
|
"style": bodyWidthStyle.value
|
|
@@ -40212,14 +40199,15 @@
|
|
|
40212
40199
|
}, {
|
|
40213
40200
|
default: () => [vue.createVNode(TableBody, {
|
|
40214
40201
|
"ref": body,
|
|
40215
|
-
"store": store,
|
|
40216
40202
|
"style": [bodyWidthStyle.value],
|
|
40217
40203
|
"height-style": [bodyHeightStyle.value],
|
|
40218
40204
|
"onScroll": handleScollY
|
|
40219
40205
|
}, null), props.data.length === 0 && vue.createVNode("div", {
|
|
40220
40206
|
"ref": emptyBlock,
|
|
40221
40207
|
"style": bodyWidthStyle.value,
|
|
40222
|
-
"class":
|
|
40208
|
+
"class": [{
|
|
40209
|
+
'is-absolute': !!props.height
|
|
40210
|
+
}, 'vc-table__empty-wrapper']
|
|
40223
40211
|
}, [vue.createVNode("span", {
|
|
40224
40212
|
"class": "vc-table__empty-text"
|
|
40225
40213
|
}, [slots.empty ? slots.empty() : props.emptyText || '暂无数据'])]), slots.append && vue.createVNode("div", {
|
|
@@ -40230,7 +40218,6 @@
|
|
|
40230
40218
|
"ref": footerWrapper,
|
|
40231
40219
|
"class": "vc-table__footer-wrapper"
|
|
40232
40220
|
}, [vue.createVNode(TableFooter, {
|
|
40233
|
-
"store": store,
|
|
40234
40221
|
"border": props.border,
|
|
40235
40222
|
"sum-text": props.sumText || '合计',
|
|
40236
40223
|
"get-summary": props.getSummary,
|
|
@@ -40246,7 +40233,6 @@
|
|
|
40246
40233
|
"class": "vc-table__fixed-header-wrapper"
|
|
40247
40234
|
}, [vue.createVNode(TableHeader, {
|
|
40248
40235
|
"ref": leftFixedTableHeader,
|
|
40249
|
-
"store": store,
|
|
40250
40236
|
"border": props.border,
|
|
40251
40237
|
"default-sort": props.defaultSort,
|
|
40252
40238
|
"style": bodyWidthStyle.value,
|
|
@@ -40259,7 +40245,6 @@
|
|
|
40259
40245
|
"class": "vc-table__fixed-body-wrapper"
|
|
40260
40246
|
}, [vue.createVNode(TableBody, {
|
|
40261
40247
|
"ref": leftFixedBody,
|
|
40262
|
-
"store": store,
|
|
40263
40248
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
40264
40249
|
"fixed": "left"
|
|
40265
40250
|
}, null), slots.append && vue.createVNode("div", {
|
|
@@ -40271,7 +40256,6 @@
|
|
|
40271
40256
|
"ref": leftFixedFooterWrapper,
|
|
40272
40257
|
"class": "vc-table__fixed-footer-wrapper"
|
|
40273
40258
|
}, [vue.createVNode(TableFooter, {
|
|
40274
|
-
"store": store,
|
|
40275
40259
|
"border": props.border,
|
|
40276
40260
|
"sum-text": props.sumText || '合计',
|
|
40277
40261
|
"get-summary": props.getSummary,
|
|
@@ -40288,7 +40272,6 @@
|
|
|
40288
40272
|
"class": "vc-table__fixed-header-wrapper"
|
|
40289
40273
|
}, [vue.createVNode(TableHeader, {
|
|
40290
40274
|
"ref": rightFixedTableHeader,
|
|
40291
|
-
"store": store,
|
|
40292
40275
|
"border": props.border,
|
|
40293
40276
|
"default-sort": props.defaultSort,
|
|
40294
40277
|
"style": bodyWidthStyle.value,
|
|
@@ -40301,7 +40284,6 @@
|
|
|
40301
40284
|
"class": "vc-table__fixed-body-wrapper"
|
|
40302
40285
|
}, [vue.createVNode(TableBody, {
|
|
40303
40286
|
"ref": rightFixedBody,
|
|
40304
|
-
"store": store,
|
|
40305
40287
|
"style": [bodyWidthStyle.value, bodyHeightStyle.value],
|
|
40306
40288
|
"fixed": "right"
|
|
40307
40289
|
}, null), slots.append && vue.createVNode("div", {
|
|
@@ -40313,7 +40295,6 @@
|
|
|
40313
40295
|
"ref": rightFixedFooterWrapper,
|
|
40314
40296
|
"class": "vc-table__fixed-footer-wrapper"
|
|
40315
40297
|
}, [vue.createVNode(TableFooter, {
|
|
40316
|
-
"store": store,
|
|
40317
40298
|
"border": props.border,
|
|
40318
40299
|
"sum-text": props.sumText || '合计',
|
|
40319
40300
|
"get-summary": props.getSummary,
|
|
@@ -40378,7 +40359,7 @@
|
|
|
40378
40359
|
"disabled": column.selectable ? !column.selectable.call(null, row, rowIndex) : false,
|
|
40379
40360
|
"onChange": () => store.rowSelectedChanged(row),
|
|
40380
40361
|
"onClick": e => e.stopPropagation()
|
|
40381
|
-
}, null), [[vue.vShow, store.
|
|
40362
|
+
}, null), [[vue.vShow, store.states.expandSelectable || level === 0]]);
|
|
40382
40363
|
},
|
|
40383
40364
|
sortable: false,
|
|
40384
40365
|
resizable: false
|
|
@@ -40612,16 +40593,9 @@
|
|
|
40612
40593
|
* @returns ~
|
|
40613
40594
|
*/
|
|
40614
40595
|
const setColumnWidth = column => {
|
|
40615
|
-
|
|
40616
|
-
|
|
40617
|
-
|
|
40618
|
-
if (realMinWidth.value) {
|
|
40619
|
-
column.minWidth = realMinWidth.value;
|
|
40620
|
-
}
|
|
40621
|
-
if (!column.minWidth) {
|
|
40622
|
-
column.minWidth = 80;
|
|
40623
|
-
}
|
|
40624
|
-
column.realWidth = column.width === undefined ? column.minWidth : column.width;
|
|
40596
|
+
column.width = realWidth.value || column.width;
|
|
40597
|
+
column.minWidth = realMinWidth.value || column.minWidth || 80;
|
|
40598
|
+
column.realWidth = typeof column.width === 'undefined' ? column.minWidth : column.width;
|
|
40625
40599
|
return column;
|
|
40626
40600
|
};
|
|
40627
40601
|
|
|
@@ -40694,6 +40668,8 @@
|
|
|
40694
40668
|
};
|
|
40695
40669
|
const registerColumn = () => {
|
|
40696
40670
|
const defaults = {
|
|
40671
|
+
colspan: 1,
|
|
40672
|
+
rowspan: 1,
|
|
40697
40673
|
...cellStarts[props.type],
|
|
40698
40674
|
id: columnId.value,
|
|
40699
40675
|
realAlign,
|
|
@@ -40982,7 +40958,7 @@
|
|
|
40982
40958
|
if (!Array.from(items).length) return;
|
|
40983
40959
|
let offset = 0;
|
|
40984
40960
|
if (index > 0) {
|
|
40985
|
-
const gutter =
|
|
40961
|
+
const gutter = 12; // margin-right -> 12px
|
|
40986
40962
|
for (let i = 0; i < index; i++) {
|
|
40987
40963
|
offset += parseFloat(items[i].offsetWidth) + gutter;
|
|
40988
40964
|
}
|
|
@@ -41054,7 +41030,7 @@
|
|
|
41054
41030
|
}, [slots.extra?.()]), vue.createVNode("div", {
|
|
41055
41031
|
"ref": wrapper,
|
|
41056
41032
|
"style": {
|
|
41057
|
-
padding: tabs.scrollable.value
|
|
41033
|
+
padding: tabs.scrollable.value ? '0 24px' : 0
|
|
41058
41034
|
},
|
|
41059
41035
|
"class": "vc-tabs__bar"
|
|
41060
41036
|
}, [tabs.scrollable.value && vue.createVNode(Icon, {
|