@deot/vc-components 1.0.14 → 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.js CHANGED
@@ -69,9 +69,9 @@ const props$1q = {
69
69
 
70
70
  /** @jsxImportSource vue */
71
71
 
72
- const COMPONENT_NAME$1$ = 'vc-action-sheet';
72
+ const COMPONENT_NAME$1_ = 'vc-action-sheet';
73
73
  const ActionSheet = /* @__PURE__ */ defineComponent({
74
- name: COMPONENT_NAME$1$,
74
+ name: COMPONENT_NAME$1_,
75
75
  props: props$1q,
76
76
  setup(props, {
77
77
  slots
@@ -258,9 +258,9 @@ const IconManager = new Manager();
258
258
 
259
259
  /** @jsxImportSource vue */
260
260
 
261
- const COMPONENT_NAME$1_ = 'vc-icon';
261
+ const COMPONENT_NAME$1Z = 'vc-icon';
262
262
  const Icon = /* @__PURE__ */ defineComponent({
263
- name: COMPONENT_NAME$1_,
263
+ name: COMPONENT_NAME$1Z,
264
264
  props: props$1o,
265
265
  setup(props) {
266
266
  const viewBox = ref('0 0 1024 1024');
@@ -459,9 +459,9 @@ const useTransition = () => {
459
459
  };
460
460
  };
461
461
 
462
- const COMPONENT_NAME$1Z = "vc-transition";
462
+ const COMPONENT_NAME$1Y = "vc-transition";
463
463
  const Transition = defineComponent({
464
- name: COMPONENT_NAME$1Z,
464
+ name: COMPONENT_NAME$1Y,
465
465
  props: props$1n,
466
466
  // 当不声明emits的情况下,事件存在于attrs中
467
467
  inheritAttrs: false,
@@ -482,9 +482,9 @@ const Transition = defineComponent({
482
482
  }
483
483
  });
484
484
 
485
- const COMPONENT_NAME$1Y = "vc-transition-collapse";
485
+ const COMPONENT_NAME$1X = "vc-transition-collapse";
486
486
  const TransitionCollapse = defineComponent({
487
- name: COMPONENT_NAME$1Y,
487
+ name: COMPONENT_NAME$1X,
488
488
  props: props$1n,
489
489
  // 当不声明emits的情况下,事件存在于attrs中
490
490
  inheritAttrs: false,
@@ -603,9 +603,9 @@ const TransitionCollapse = defineComponent({
603
603
  }
604
604
  });
605
605
 
606
- const COMPONENT_NAME$1X = "vc-transition-fade";
606
+ const COMPONENT_NAME$1W = "vc-transition-fade";
607
607
  const TransitionFade = defineComponent({
608
- name: COMPONENT_NAME$1X,
608
+ name: COMPONENT_NAME$1W,
609
609
  props: {
610
610
  ...props$1n,
611
611
  // inheritAttrs必须是false
@@ -640,9 +640,9 @@ const TransitionFade = defineComponent({
640
640
  }
641
641
  });
642
642
 
643
- const COMPONENT_NAME$1W = "vc-transition-scale";
643
+ const COMPONENT_NAME$1V = "vc-transition-scale";
644
644
  const TransitionScale = defineComponent({
645
- name: COMPONENT_NAME$1W,
645
+ name: COMPONENT_NAME$1V,
646
646
  props: {
647
647
  ...props$1n,
648
648
  mode: {
@@ -682,9 +682,9 @@ const TransitionScale = defineComponent({
682
682
  }
683
683
  });
684
684
 
685
- const COMPONENT_NAME$1V = "vc-transition-slide";
685
+ const COMPONENT_NAME$1U = "vc-transition-slide";
686
686
  const TransitionSlide = defineComponent({
687
- name: COMPONENT_NAME$1V,
687
+ name: COMPONENT_NAME$1U,
688
688
  props: {
689
689
  ...props$1n,
690
690
  mode: {
@@ -724,9 +724,9 @@ const TransitionSlide = defineComponent({
724
724
  }
725
725
  });
726
726
 
727
- const COMPONENT_NAME$1U = "vc-transition-zoom";
727
+ const COMPONENT_NAME$1T = "vc-transition-zoom";
728
728
  const TransitionZoom = defineComponent({
729
- name: COMPONENT_NAME$1U,
729
+ name: COMPONENT_NAME$1T,
730
730
  props: {
731
731
  ...props$1n,
732
732
  mode: {
@@ -768,7 +768,7 @@ const TransitionZoom = defineComponent({
768
768
 
769
769
  /** @jsxImportSource vue */
770
770
 
771
- const COMPONENT_NAME$1T = 'vc-alert';
771
+ const COMPONENT_NAME$1S = 'vc-alert';
772
772
 
773
773
  // [color, borderColor, backgroundColor], -> CSS
774
774
  const THEME_MAP = {
@@ -778,7 +778,7 @@ const THEME_MAP = {
778
778
  warning: ['#ffbf00', '#ffe58f', '#fffbe6']
779
779
  };
780
780
  const Alert = /* @__PURE__ */ defineComponent({
781
- name: COMPONENT_NAME$1T,
781
+ name: COMPONENT_NAME$1S,
782
782
  props: props$1p,
783
783
  setup(props, {
784
784
  slots,
@@ -877,9 +877,9 @@ const props$1m = {
877
877
 
878
878
  /** @jsxImportSource vue */
879
879
 
880
- const COMPONENT_NAME$1S = 'vc-artboard';
880
+ const COMPONENT_NAME$1R = 'vc-artboard';
881
881
  const Artboard = /* @__PURE__ */ defineComponent({
882
- name: COMPONENT_NAME$1S,
882
+ name: COMPONENT_NAME$1R,
883
883
  props: props$1m,
884
884
  setup(props, {
885
885
  slots
@@ -918,9 +918,9 @@ const props$1l = {
918
918
 
919
919
  /** @jsxImportSource vue */
920
920
 
921
- const COMPONENT_NAME$1R = 'vc-spin';
921
+ const COMPONENT_NAME$1Q = 'vc-spin';
922
922
  const Spin = /* @__PURE__ */ defineComponent({
923
- name: COMPONENT_NAME$1R,
923
+ name: COMPONENT_NAME$1Q,
924
924
  props: props$1l,
925
925
  setup(props, {
926
926
  slots
@@ -971,9 +971,9 @@ const props$1k = {
971
971
  exclude: RegExp
972
972
  };
973
973
 
974
- const COMPONENT_NAME$1Q = "vc-debounce";
974
+ const COMPONENT_NAME$1P = "vc-debounce";
975
975
  const Debounce = defineComponent({
976
- name: COMPONENT_NAME$1Q,
976
+ name: COMPONENT_NAME$1P,
977
977
  props: props$1k,
978
978
  /**
979
979
  * 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
@@ -1045,9 +1045,9 @@ const props$1j = {
1045
1045
 
1046
1046
  /** @jsxImportSource vue */
1047
1047
 
1048
- const COMPONENT_NAME$1P = 'vc-button';
1048
+ const COMPONENT_NAME$1O = 'vc-button';
1049
1049
  const Button = /* @__PURE__ */ defineComponent({
1050
- name: COMPONENT_NAME$1P,
1050
+ name: COMPONENT_NAME$1O,
1051
1051
  emits: ['click'],
1052
1052
  props: props$1j,
1053
1053
  setup(props, {
@@ -1127,9 +1127,9 @@ const props$1i = {
1127
1127
 
1128
1128
  /** @jsxImportSource vue */
1129
1129
 
1130
- const COMPONENT_NAME$1O = 'vc-button-group';
1130
+ const COMPONENT_NAME$1N = 'vc-button-group';
1131
1131
  const ButtonGroup = /* @__PURE__ */ defineComponent({
1132
- name: COMPONENT_NAME$1O,
1132
+ name: COMPONENT_NAME$1N,
1133
1133
  props: props$1i,
1134
1134
  setup(props, {
1135
1135
  slots
@@ -1163,9 +1163,9 @@ const props$1h = {
1163
1163
 
1164
1164
  /** @jsxImportSource vue */
1165
1165
 
1166
- const COMPONENT_NAME$1N = 'vc-calendar';
1166
+ const COMPONENT_NAME$1M = 'vc-calendar';
1167
1167
  const Calendar = /* @__PURE__ */ defineComponent({
1168
- name: COMPONENT_NAME$1N,
1168
+ name: COMPONENT_NAME$1M,
1169
1169
  props: props$1h,
1170
1170
  setup(props, {
1171
1171
  slots
@@ -1203,9 +1203,9 @@ const props$1g = {
1203
1203
 
1204
1204
  /** @jsxImportSource vue */
1205
1205
 
1206
- const COMPONENT_NAME$1M = 'vc-card';
1206
+ const COMPONENT_NAME$1L = 'vc-card';
1207
1207
  const Card = /* @__PURE__ */ defineComponent({
1208
- name: COMPONENT_NAME$1M,
1208
+ name: COMPONENT_NAME$1L,
1209
1209
  props: props$1g,
1210
1210
  setup(props, {
1211
1211
  slots
@@ -1241,9 +1241,9 @@ const props$1f = {
1241
1241
 
1242
1242
  /** @jsxImportSource vue */
1243
1243
 
1244
- const COMPONENT_NAME$1L = 'vc-carousel';
1244
+ const COMPONENT_NAME$1K = 'vc-carousel';
1245
1245
  const Carousel = /* @__PURE__ */ defineComponent({
1246
- name: COMPONENT_NAME$1L,
1246
+ name: COMPONENT_NAME$1K,
1247
1247
  props: props$1f,
1248
1248
  setup(props, {
1249
1249
  slots
@@ -1267,9 +1267,9 @@ const props$1e = {
1267
1267
 
1268
1268
  /** @jsxImportSource vue */
1269
1269
 
1270
- const COMPONENT_NAME$1K = 'vc-cascader';
1270
+ const COMPONENT_NAME$1J = 'vc-cascader';
1271
1271
  const Cascader = /* @__PURE__ */ defineComponent({
1272
- name: COMPONENT_NAME$1K,
1272
+ name: COMPONENT_NAME$1J,
1273
1273
  props: props$1e,
1274
1274
  setup(props, {
1275
1275
  slots
@@ -1338,9 +1338,9 @@ const props$1d = {
1338
1338
 
1339
1339
  /** @jsxImportSource vue */
1340
1340
 
1341
- const COMPONENT_NAME$1J = 'vc-chart';
1341
+ const COMPONENT_NAME$1I = 'vc-chart';
1342
1342
  const Chart = /* @__PURE__ */ defineComponent({
1343
- name: COMPONENT_NAME$1J,
1343
+ name: COMPONENT_NAME$1I,
1344
1344
  props: props$1d,
1345
1345
  emits: [...EVENTS, 'ready'],
1346
1346
  setup(props, {
@@ -1571,9 +1571,9 @@ const useCheckbox = () => {
1571
1571
 
1572
1572
  /** @jsxImportSource vue */
1573
1573
 
1574
- const COMPONENT_NAME$1I = 'vc-checkbox';
1574
+ const COMPONENT_NAME$1H = 'vc-checkbox';
1575
1575
  const Checkbox = /* @__PURE__ */ defineComponent({
1576
- name: COMPONENT_NAME$1I,
1576
+ name: COMPONENT_NAME$1H,
1577
1577
  props: props$1c,
1578
1578
  emits: ['update:modelValue', 'change'],
1579
1579
  setup(props, {
@@ -1660,9 +1660,9 @@ const useCheckboxGroup = () => {
1660
1660
 
1661
1661
  /** @jsxImportSource vue */
1662
1662
 
1663
- const COMPONENT_NAME$1H = 'vc-checkbox-group';
1663
+ const COMPONENT_NAME$1G = 'vc-checkbox-group';
1664
1664
  const CheckboxGroup = /* @__PURE__ */ defineComponent({
1665
- name: COMPONENT_NAME$1H,
1665
+ name: COMPONENT_NAME$1G,
1666
1666
  props: props$1b,
1667
1667
  emits: ['update:modelValue', 'change'],
1668
1668
  setup(props, {
@@ -1680,9 +1680,9 @@ const CheckboxGroup = /* @__PURE__ */ defineComponent({
1680
1680
 
1681
1681
  /** @jsxImportSource vue */
1682
1682
 
1683
- const COMPONENT_NAME$1G = 'vcm-checkbox';
1683
+ const COMPONENT_NAME$1F = 'vcm-checkbox';
1684
1684
  const MCheckbox = /* @__PURE__ */ defineComponent({
1685
- name: COMPONENT_NAME$1G,
1685
+ name: COMPONENT_NAME$1F,
1686
1686
  props: props$1c,
1687
1687
  emits: ['update:modelValue', 'change'],
1688
1688
  setup(props, {
@@ -1722,9 +1722,9 @@ const MCheckbox = /* @__PURE__ */ defineComponent({
1722
1722
 
1723
1723
  /** @jsxImportSource vue */
1724
1724
 
1725
- const COMPONENT_NAME$1F = 'vcm-checkbox-group';
1725
+ const COMPONENT_NAME$1E = 'vcm-checkbox-group';
1726
1726
  const MCheckboxGroup = /* @__PURE__ */ defineComponent({
1727
- name: COMPONENT_NAME$1F,
1727
+ name: COMPONENT_NAME$1E,
1728
1728
  props: props$1b,
1729
1729
  emits: ['update:modelValue', 'change'],
1730
1730
  setup(props, {
@@ -1783,9 +1783,9 @@ const props$19 = {
1783
1783
  }
1784
1784
  };
1785
1785
 
1786
- const COMPONENT_NAME$1E = "vc-customer";
1786
+ const COMPONENT_NAME$1D = "vc-customer";
1787
1787
  const Customer = defineComponent({
1788
- name: COMPONENT_NAME$1E,
1788
+ name: COMPONENT_NAME$1D,
1789
1789
  props: props$19,
1790
1790
  setup(props, context) {
1791
1791
  return () => h(() => {
@@ -1796,9 +1796,9 @@ const Customer = defineComponent({
1796
1796
 
1797
1797
  /** @jsxImportSource vue */
1798
1798
 
1799
- const COMPONENT_NAME$1D = 'vc-message';
1799
+ const COMPONENT_NAME$1C = 'vc-message';
1800
1800
  const MessageView = /* @__PURE__ */ defineComponent({
1801
- name: COMPONENT_NAME$1D,
1801
+ name: COMPONENT_NAME$1C,
1802
1802
  emits: ['before-close', 'close', 'portal-fulfilled'],
1803
1803
  props: props$1a,
1804
1804
  setup(props, {
@@ -1945,7 +1945,7 @@ class PortalLeaf {
1945
1945
  }
1946
1946
  }
1947
1947
 
1948
- const COMPONENT_NAME$1C = "vc-portal";
1948
+ const COMPONENT_NAME$1B = "vc-portal";
1949
1949
  class Portal {
1950
1950
  /**
1951
1951
  * 清理Portals类型组件
@@ -1997,7 +1997,7 @@ class Portal {
1997
1997
  this.wrapper = wrapper;
1998
1998
  this.globalOptions = {
1999
1999
  ...options,
2000
- name: options?.name || wrapper.name || Utils.getUid(COMPONENT_NAME$1C)
2000
+ name: options?.name || wrapper.name || Utils.getUid(COMPONENT_NAME$1B)
2001
2001
  };
2002
2002
  }
2003
2003
  popup(propsData, options) {
@@ -2096,7 +2096,7 @@ class Portal {
2096
2096
  ...rest
2097
2097
  } = options;
2098
2098
  let useAllNodes = fragment;
2099
- const name = multiple ? `${name$}__${Utils.getUid(COMPONENT_NAME$1C)}` : name$;
2099
+ const name = multiple ? `${name$}__${Utils.getUid(COMPONENT_NAME$1B)}` : name$;
2100
2100
  const container = document.createElement(tag);
2101
2101
  const root = typeof el === "object" ? el : document.querySelector(el || "body");
2102
2102
  !alive && Portal.leafs.get(name)?.destroy();
@@ -2130,7 +2130,7 @@ class Portal {
2130
2130
  } else {
2131
2131
  const wrapper = this.wrapper;
2132
2132
  const app = createApp({
2133
- name: COMPONENT_NAME$1C,
2133
+ name: COMPONENT_NAME$1B,
2134
2134
  parent,
2135
2135
  setup() {
2136
2136
  if (alive) {
@@ -2242,13 +2242,13 @@ const props$18 = {
2242
2242
  }
2243
2243
  };
2244
2244
 
2245
- const COMPONENT_NAME$1B = 'vc-portal-view';
2245
+ const COMPONENT_NAME$1A = 'vc-portal-view';
2246
2246
 
2247
2247
  /**
2248
2248
  * 写法不同,但与vue@2.x 保持一致
2249
2249
  */
2250
2250
  const PortalView = /* @__PURE__ */ defineComponent({
2251
- name: COMPONENT_NAME$1B,
2251
+ name: COMPONENT_NAME$1A,
2252
2252
  props: props$18,
2253
2253
  setup(props, {
2254
2254
  slots
@@ -2419,9 +2419,9 @@ const useClipboard = (done) => {
2419
2419
  return () => h(props.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
2420
2420
  };
2421
2421
 
2422
- const COMPONENT_NAME$1A = "vc-clipboard";
2422
+ const COMPONENT_NAME$1z = "vc-clipboard";
2423
2423
  const Clipboard$1 = defineComponent({
2424
- name: COMPONENT_NAME$1A,
2424
+ name: COMPONENT_NAME$1z,
2425
2425
  props: props$17,
2426
2426
  setup() {
2427
2427
  return useClipboard((content) => Message.success({ content }));
@@ -2461,9 +2461,9 @@ const MTransitionZoom = TransitionZoom;
2461
2461
 
2462
2462
  /** @jsxImportSource vue */
2463
2463
 
2464
- const COMPONENT_NAME$1z = 'vcm-toast';
2464
+ const COMPONENT_NAME$1y = 'vcm-toast';
2465
2465
  const MToastView = /* @__PURE__ */ defineComponent({
2466
- name: COMPONENT_NAME$1z,
2466
+ name: COMPONENT_NAME$1y,
2467
2467
  emits: ['close', 'portal-fulfilled'],
2468
2468
  props: props$16,
2469
2469
  setup(props, {
@@ -2565,9 +2565,9 @@ const warning$2 = create$3({ mode: "warning" });
2565
2565
  const error$2 = create$3({ mode: "error" });
2566
2566
  const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
2567
2567
 
2568
- const COMPONENT_NAME$1y = "vcm-clipboard";
2568
+ const COMPONENT_NAME$1x = "vcm-clipboard";
2569
2569
  const MClipboard$1 = defineComponent({
2570
- name: COMPONENT_NAME$1y,
2570
+ name: COMPONENT_NAME$1x,
2571
2571
  props: props$17,
2572
2572
  setup() {
2573
2573
  return useClipboard((content) => MToast.info({ content }));
@@ -2599,9 +2599,9 @@ const props$15 = {
2599
2599
  }
2600
2600
  };
2601
2601
 
2602
- const COMPONENT_NAME$1x = "vc-collapse";
2602
+ const COMPONENT_NAME$1w = "vc-collapse";
2603
2603
  const Collapse = defineComponent({
2604
- name: COMPONENT_NAME$1x,
2604
+ name: COMPONENT_NAME$1w,
2605
2605
  props: props$15,
2606
2606
  emits: ["update:moodelValue", "change"],
2607
2607
  setup(props, { slots, emit }) {
@@ -2718,9 +2718,9 @@ const props$13 = {
2718
2718
  function _isSlot$3(s) {
2719
2719
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
2720
2720
  }
2721
- const COMPONENT_NAME$1w = 'vc-expand';
2721
+ const COMPONENT_NAME$1v = 'vc-expand';
2722
2722
  const Expand$1 = /* @__PURE__ */ defineComponent({
2723
- name: COMPONENT_NAME$1w,
2723
+ name: COMPONENT_NAME$1v,
2724
2724
  props: props$13,
2725
2725
  setup(props, {
2726
2726
  slots
@@ -2750,9 +2750,9 @@ const Expand$1 = /* @__PURE__ */ defineComponent({
2750
2750
 
2751
2751
  /** @jsxImportSource vue */
2752
2752
 
2753
- const COMPONENT_NAME$1v = 'vc-collapse-item';
2753
+ const COMPONENT_NAME$1u = 'vc-collapse-item';
2754
2754
  const CollapseItem = /* @__PURE__ */ defineComponent({
2755
- name: COMPONENT_NAME$1v,
2755
+ name: COMPONENT_NAME$1u,
2756
2756
  props: props$14,
2757
2757
  setup(props, {
2758
2758
  slots,
@@ -2827,9 +2827,9 @@ const props$12 = {
2827
2827
 
2828
2828
  /** @jsxImportSource vue */
2829
2829
 
2830
- const COMPONENT_NAME$1u = 'vc-color-picker';
2830
+ const COMPONENT_NAME$1t = 'vc-color-picker';
2831
2831
  const ColorPicker = /* @__PURE__ */ defineComponent({
2832
- name: COMPONENT_NAME$1u,
2832
+ name: COMPONENT_NAME$1t,
2833
2833
  props: props$12,
2834
2834
  setup(props, {
2835
2835
  slots
@@ -2853,9 +2853,9 @@ const props$11 = {
2853
2853
 
2854
2854
  /** @jsxImportSource vue */
2855
2855
 
2856
- const COMPONENT_NAME$1t = 'vc-countdown';
2856
+ const COMPONENT_NAME$1s = 'vc-countdown';
2857
2857
  const Countdown = /* @__PURE__ */ defineComponent({
2858
- name: COMPONENT_NAME$1t,
2858
+ name: COMPONENT_NAME$1s,
2859
2859
  props: props$11,
2860
2860
  setup(props, {
2861
2861
  slots
@@ -3304,9 +3304,9 @@ const useNativeEmitter = (input, expose) => {
3304
3304
 
3305
3305
  /** @jsxImportSource vue */
3306
3306
 
3307
- const COMPONENT_NAME$1s = 'vc-input';
3307
+ const COMPONENT_NAME$1r = 'vc-input';
3308
3308
  const Input = /* @__PURE__ */ defineComponent({
3309
- name: COMPONENT_NAME$1s,
3309
+ name: COMPONENT_NAME$1r,
3310
3310
  inheritAttrs: false,
3311
3311
  props: {
3312
3312
  ...props$$,
@@ -3640,9 +3640,9 @@ const useInputNumber = () => {
3640
3640
 
3641
3641
  /** @jsxImportSource vue */
3642
3642
 
3643
- const COMPONENT_NAME$1r = 'vc-input-number';
3643
+ const COMPONENT_NAME$1q = 'vc-input-number';
3644
3644
  const InputNumber = /* @__PURE__ */ defineComponent({
3645
- name: COMPONENT_NAME$1r,
3645
+ name: COMPONENT_NAME$1q,
3646
3646
  props: props$X,
3647
3647
  inheritAttrs: false,
3648
3648
  setup(props, {
@@ -3706,9 +3706,9 @@ const props$W = {
3706
3706
 
3707
3707
  /** @jsxImportSource vue */
3708
3708
 
3709
- const COMPONENT_NAME$1q = 'vc-input-search';
3709
+ const COMPONENT_NAME$1p = 'vc-input-search';
3710
3710
  const InputSearch = /* @__PURE__ */ defineComponent({
3711
- name: COMPONENT_NAME$1q,
3711
+ name: COMPONENT_NAME$1p,
3712
3712
  props: props$W,
3713
3713
  inheritAttrs: false,
3714
3714
  setup(props, {
@@ -3999,9 +3999,9 @@ const usePos = () => {
3999
3999
  function _isSlot$2(s) {
4000
4000
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
4001
4001
  }
4002
- const COMPONENT_NAME$1p = 'vc-popover-wrapper';
4002
+ const COMPONENT_NAME$1o = 'vc-popover-wrapper';
4003
4003
  const PopoverWrapper = /* @__PURE__ */ defineComponent({
4004
- name: COMPONENT_NAME$1p,
4004
+ name: COMPONENT_NAME$1o,
4005
4005
  props: props$_,
4006
4006
  emits: ['portal-fulfilled', 'close'],
4007
4007
  setup(props, {
@@ -4253,9 +4253,9 @@ const PopoverPortal = new Portal(PopoverWrapper);
4253
4253
 
4254
4254
  /** @jsxImportSource vue */
4255
4255
 
4256
- const COMPONENT_NAME$1o = 'vc-popover';
4256
+ const COMPONENT_NAME$1n = 'vc-popover';
4257
4257
  const Popover$1 = /* @__PURE__ */ defineComponent({
4258
- name: COMPONENT_NAME$1o,
4258
+ name: COMPONENT_NAME$1n,
4259
4259
  props: props$Z,
4260
4260
  emits: ['update:modelValue', 'visible-change', 'ready', 'close'],
4261
4261
  setup(props, {
@@ -5356,9 +5356,9 @@ const getTimeType = type => {
5356
5356
  }
5357
5357
  return view;
5358
5358
  };
5359
- const COMPONENT_NAME$1n = 'vc-date-confirm';
5359
+ const COMPONENT_NAME$1m = 'vc-date-confirm';
5360
5360
  const Confirm = /* @__PURE__ */ defineComponent({
5361
- name: COMPONENT_NAME$1n,
5361
+ name: COMPONENT_NAME$1m,
5362
5362
  props: {
5363
5363
  showTime: {
5364
5364
  type: Boolean,
@@ -5422,9 +5422,9 @@ const Confirm = /* @__PURE__ */ defineComponent({
5422
5422
 
5423
5423
  /** @jsxImportSource vue */
5424
5424
 
5425
- const COMPONENT_NAME$1m = 'vc-date-header';
5425
+ const COMPONENT_NAME$1l = 'vc-date-header';
5426
5426
  const DateHeader = /* @__PURE__ */ defineComponent({
5427
- name: COMPONENT_NAME$1m,
5427
+ name: COMPONENT_NAME$1l,
5428
5428
  props: {
5429
5429
  panelDate: Date,
5430
5430
  showNext: {
@@ -5508,9 +5508,9 @@ const DateHeader = /* @__PURE__ */ defineComponent({
5508
5508
 
5509
5509
  /** @jsxImportSource vue */
5510
5510
 
5511
- const COMPONENT_NAME$1l = 'vc-date-table';
5511
+ const COMPONENT_NAME$1k = 'vc-date-table';
5512
5512
  const DateTable = /* @__PURE__ */ defineComponent({
5513
- name: COMPONENT_NAME$1l,
5513
+ name: COMPONENT_NAME$1k,
5514
5514
  props: {
5515
5515
  value: Array,
5516
5516
  firstDayOfWeek: {
@@ -5719,9 +5719,9 @@ const DateTable = /* @__PURE__ */ defineComponent({
5719
5719
 
5720
5720
  /** @jsxImportSource vue */
5721
5721
 
5722
- const COMPONENT_NAME$1k = 'vc-month-table';
5722
+ const COMPONENT_NAME$1j = 'vc-month-table';
5723
5723
  const MonthTable = /* @__PURE__ */ defineComponent({
5724
- name: COMPONENT_NAME$1k,
5724
+ name: COMPONENT_NAME$1j,
5725
5725
  props: {
5726
5726
  value: Array,
5727
5727
  panelDate: Date,
@@ -5853,7 +5853,7 @@ const MonthTable = /* @__PURE__ */ defineComponent({
5853
5853
 
5854
5854
  /** @jsxImportSource vue */
5855
5855
 
5856
- const COMPONENT_NAME$1j = 'vc-quarter-table';
5856
+ const COMPONENT_NAME$1i = 'vc-quarter-table';
5857
5857
 
5858
5858
  /**
5859
5859
  * 获取季度对应的月份范围
@@ -5887,7 +5887,7 @@ const getQuarterRangeByMonth = value => {
5887
5887
  }
5888
5888
  };
5889
5889
  const QuarterTable = /* @__PURE__ */ defineComponent({
5890
- name: COMPONENT_NAME$1j,
5890
+ name: COMPONENT_NAME$1i,
5891
5891
  props: {
5892
5892
  value: Array,
5893
5893
  panelDate: Date,
@@ -6010,9 +6010,9 @@ const QuarterTable = /* @__PURE__ */ defineComponent({
6010
6010
 
6011
6011
  /** @jsxImportSource vue */
6012
6012
 
6013
- const COMPONENT_NAME$1i = 'vc-shortcuts-select';
6013
+ const COMPONENT_NAME$1h = 'vc-shortcuts-select';
6014
6014
  const ShortcutsSelect = /* @__PURE__ */ defineComponent({
6015
- name: COMPONENT_NAME$1i,
6015
+ name: COMPONENT_NAME$1h,
6016
6016
  props: {
6017
6017
  panelDate: Date,
6018
6018
  config: Array,
@@ -6052,9 +6052,9 @@ const ShortcutsSelect = /* @__PURE__ */ defineComponent({
6052
6052
 
6053
6053
  /** @jsxImportSource vue */
6054
6054
 
6055
- const COMPONENT_NAME$1h = 'vc-time-select';
6055
+ const COMPONENT_NAME$1g = 'vc-time-select';
6056
6056
  const TimeSelect = /* @__PURE__ */ defineComponent({
6057
- name: COMPONENT_NAME$1h,
6057
+ name: COMPONENT_NAME$1g,
6058
6058
  props: {
6059
6059
  hours: {
6060
6060
  type: [Number, String],
@@ -6333,9 +6333,9 @@ const TimeSelect = /* @__PURE__ */ defineComponent({
6333
6333
 
6334
6334
  /** @jsxImportSource vue */
6335
6335
 
6336
- const COMPONENT_NAME$1g = 'vc-year-table';
6336
+ const COMPONENT_NAME$1f = 'vc-year-table';
6337
6337
  const YearTable = /* @__PURE__ */ defineComponent({
6338
- name: COMPONENT_NAME$1g,
6338
+ name: COMPONENT_NAME$1f,
6339
6339
  props: {
6340
6340
  value: Array,
6341
6341
  panelDate: Date,
@@ -6458,9 +6458,9 @@ const getDateIsInRange = (value, type, leftPanelDate, rightPanelDate) => {
6458
6458
  }
6459
6459
  return true;
6460
6460
  };
6461
- const COMPONENT_NAME$1f = 'vc-date-range-panel';
6461
+ const COMPONENT_NAME$1e = 'vc-date-range-panel';
6462
6462
  const DateRangePanel = /* @__PURE__ */ defineComponent({
6463
- name: COMPONENT_NAME$1f,
6463
+ name: COMPONENT_NAME$1e,
6464
6464
  props: {
6465
6465
  ...props$V,
6466
6466
  confirm: {
@@ -6839,9 +6839,9 @@ const DateRangePanel = /* @__PURE__ */ defineComponent({
6839
6839
 
6840
6840
  /** @jsxImportSource vue */
6841
6841
 
6842
- const COMPONENT_NAME$1e = 'vc-date-panel';
6842
+ const COMPONENT_NAME$1d = 'vc-date-panel';
6843
6843
  const DatePanel = /* @__PURE__ */ defineComponent({
6844
- name: COMPONENT_NAME$1e,
6844
+ name: COMPONENT_NAME$1d,
6845
6845
  props: {
6846
6846
  ...props$V,
6847
6847
  type: String,
@@ -7049,9 +7049,9 @@ const isEqualYear$1 = value => {
7049
7049
  const endYear = value[1].getFullYear();
7050
7050
  return startYear === endYear;
7051
7051
  };
7052
- const COMPONENT_NAME$1d = 'vc-monthrange-panel';
7052
+ const COMPONENT_NAME$1c = 'vc-monthrange-panel';
7053
7053
  const MonthRangePanel = /* @__PURE__ */ defineComponent({
7054
- name: COMPONENT_NAME$1d,
7054
+ name: COMPONENT_NAME$1c,
7055
7055
  props: {
7056
7056
  ...props$V,
7057
7057
  confirm: {
@@ -7226,9 +7226,9 @@ const isEqualYear = value => {
7226
7226
  const endYear = value[1].getFullYear();
7227
7227
  return startYear === endYear;
7228
7228
  };
7229
- const COMPONENT_NAME$1c = 'vc-quarterrange-panel';
7229
+ const COMPONENT_NAME$1b = 'vc-quarterrange-panel';
7230
7230
  const QuarterRangePanel = /* @__PURE__ */ defineComponent({
7231
- name: COMPONENT_NAME$1c,
7231
+ name: COMPONENT_NAME$1b,
7232
7232
  props: {
7233
7233
  ...props$V,
7234
7234
  confirm: {
@@ -7467,9 +7467,9 @@ const getComparedDate = (leftDate, rightDate) => {
7467
7467
  seconds
7468
7468
  };
7469
7469
  };
7470
- const COMPONENT_NAME$1b = 'vc-timerange-panel';
7470
+ const COMPONENT_NAME$1a = 'vc-timerange-panel';
7471
7471
  const TimeRangePanel = /* @__PURE__ */ defineComponent({
7472
- name: COMPONENT_NAME$1b,
7472
+ name: COMPONENT_NAME$1a,
7473
7473
  props: props$U,
7474
7474
  emits: ['pick', 'clear', 'ok'],
7475
7475
  setup(props, {
@@ -7568,9 +7568,9 @@ const TimeRangePanel = /* @__PURE__ */ defineComponent({
7568
7568
 
7569
7569
  /** @jsxImportSource vue */
7570
7570
 
7571
- const COMPONENT_NAME$1a = 'vc-time-panel';
7571
+ const COMPONENT_NAME$19 = 'vc-time-panel';
7572
7572
  const TimePanel = /* @__PURE__ */ defineComponent({
7573
- name: COMPONENT_NAME$1a,
7573
+ name: COMPONENT_NAME$19,
7574
7574
  props: props$U,
7575
7575
  emits: ['pick', 'clear', 'ok'],
7576
7576
  setup(props, {
@@ -7625,7 +7625,7 @@ const TimePanel = /* @__PURE__ */ defineComponent({
7625
7625
 
7626
7626
  /** @jsxImportSource vue */
7627
7627
 
7628
- const COMPONENT_NAME$19 = 'vc-date-picker';
7628
+ const COMPONENT_NAME$18 = 'vc-date-picker';
7629
7629
  const getPanel$1 = type => {
7630
7630
  if (['daterange', 'datetimerange'].includes(type)) {
7631
7631
  return DateRangePanel;
@@ -7636,7 +7636,7 @@ const getPanel$1 = type => {
7636
7636
  }
7637
7637
  return DatePanel;
7638
7638
  };
7639
- const DatePicker = createPicker(COMPONENT_NAME$19, props$10, () => {
7639
+ const DatePicker = createPicker(COMPONENT_NAME$18, props$10, () => {
7640
7640
  const props = getCurrentInstance().props;
7641
7641
  const icon = ref('date');
7642
7642
  const panel = shallowRef({});
@@ -7669,9 +7669,9 @@ const props$T = {
7669
7669
 
7670
7670
  /** @jsxImportSource vue */
7671
7671
 
7672
- const COMPONENT_NAME$18 = 'vc-divider';
7672
+ const COMPONENT_NAME$17 = 'vc-divider';
7673
7673
  const Divider = /* @__PURE__ */ defineComponent({
7674
- name: COMPONENT_NAME$18,
7674
+ name: COMPONENT_NAME$17,
7675
7675
  props: props$T,
7676
7676
  setup(props, {
7677
7677
  slots
@@ -7826,7 +7826,7 @@ const props$Q = {
7826
7826
 
7827
7827
  /** @jsxImportSource vue */
7828
7828
 
7829
- const COMPONENT_NAME$17 = 'vc-scroller-track';
7829
+ const COMPONENT_NAME$16 = 'vc-scroller-track';
7830
7830
  const BAR_MAP = {
7831
7831
  vertical: {
7832
7832
  scroll: 'scrollTop',
@@ -7846,7 +7846,7 @@ const BAR_MAP = {
7846
7846
  }
7847
7847
  };
7848
7848
  const Track = /* @__PURE__ */ defineComponent({
7849
- name: COMPONENT_NAME$17,
7849
+ name: COMPONENT_NAME$16,
7850
7850
  props: props$S,
7851
7851
  emits: ['change'],
7852
7852
  inheritAttrs: false,
@@ -8036,9 +8036,9 @@ const Track = /* @__PURE__ */ defineComponent({
8036
8036
 
8037
8037
  /** @jsxImportSource vue */
8038
8038
 
8039
- const COMPONENT_NAME$16 = 'vc-scroller-bar';
8039
+ const COMPONENT_NAME$15 = 'vc-scroller-bar';
8040
8040
  const Bar = /* @__PURE__ */ defineComponent({
8041
- name: COMPONENT_NAME$16,
8041
+ name: COMPONENT_NAME$15,
8042
8042
  props: props$R,
8043
8043
  emits: ['change'],
8044
8044
  setup(props, {
@@ -8253,7 +8253,7 @@ const useScroller = (expose) => {
8253
8253
 
8254
8254
  /** @jsxImportSource vue */
8255
8255
 
8256
- const COMPONENT_NAME$15 = 'vc-scroller';
8256
+ const COMPONENT_NAME$14 = 'vc-scroller';
8257
8257
 
8258
8258
  /**
8259
8259
  * 作为备选方案,目前推荐使用ScrollerWheel
@@ -8264,7 +8264,7 @@ const COMPONENT_NAME$15 = 'vc-scroller';
8264
8264
  * 2. 增加了一层嵌套
8265
8265
  */
8266
8266
  const Scroller = /* @__PURE__ */ defineComponent({
8267
- name: COMPONENT_NAME$15,
8267
+ name: COMPONENT_NAME$14,
8268
8268
  props: props$Q,
8269
8269
  emits: ['scroll'],
8270
8270
  setup(props, {
@@ -8325,7 +8325,7 @@ const Scroller = /* @__PURE__ */ defineComponent({
8325
8325
 
8326
8326
  /** @jsxImportSource vue */
8327
8327
 
8328
- const COMPONENT_NAME$14 = 'vc-scroller-wheel';
8328
+ const COMPONENT_NAME$13 = 'vc-scroller-wheel';
8329
8329
 
8330
8330
  /**
8331
8331
  * 为减少一层嵌套,为去除滚动bar的抖动,使用wheel模拟
@@ -8347,7 +8347,7 @@ const COMPONENT_NAME$14 = 'vc-scroller-wheel';
8347
8347
  * 设置scrollTop不会reflow和repaint,不需要考虑transfrom来改变content(transform也只在draw完成)
8348
8348
  */
8349
8349
  const ScrollerWheel = /* @__PURE__ */ defineComponent({
8350
- name: COMPONENT_NAME$14,
8350
+ name: COMPONENT_NAME$13,
8351
8351
  props: Object.assign(props$Q, {
8352
8352
  stopPropagation: {
8353
8353
  type: Boolean,
@@ -8526,9 +8526,9 @@ const props$P = {
8526
8526
 
8527
8527
  /** @jsxImportSource vue */
8528
8528
 
8529
- const COMPONENT_NAME$13 = 'vc-drawer';
8529
+ const COMPONENT_NAME$12 = 'vc-drawer';
8530
8530
  const DrawerView = /* @__PURE__ */ defineComponent({
8531
- name: COMPONENT_NAME$13,
8531
+ name: COMPONENT_NAME$12,
8532
8532
  props: props$P,
8533
8533
  emits: ['close', 'update:modelValue', 'visible-change'],
8534
8534
  setup(props, {
@@ -8701,9 +8701,9 @@ const props$O = {
8701
8701
 
8702
8702
  /** @jsxImportSource vue */
8703
8703
 
8704
- const COMPONENT_NAME$12 = 'vc-dropdown';
8704
+ const COMPONENT_NAME$11 = 'vc-dropdown';
8705
8705
  const Dropdown = /* @__PURE__ */ defineComponent({
8706
- name: COMPONENT_NAME$12,
8706
+ name: COMPONENT_NAME$11,
8707
8707
  props: props$O,
8708
8708
  setup(props, {
8709
8709
  slots
@@ -8727,9 +8727,9 @@ const props$N = {
8727
8727
 
8728
8728
  /** @jsxImportSource vue */
8729
8729
 
8730
- const COMPONENT_NAME$11 = 'vc-editor';
8730
+ const COMPONENT_NAME$10 = 'vc-editor';
8731
8731
  const Editor = /* @__PURE__ */ defineComponent({
8732
- name: COMPONENT_NAME$11,
8732
+ name: COMPONENT_NAME$10,
8733
8733
  props: props$N,
8734
8734
  setup(props, {
8735
8735
  slots
@@ -8873,9 +8873,9 @@ const useForm = (expose, options = {}) => {
8873
8873
  });
8874
8874
  };
8875
8875
 
8876
- const COMPONENT_NAME$10 = "vc-form";
8876
+ const COMPONENT_NAME$$ = "vc-form";
8877
8877
  const Form = defineComponent({
8878
- name: COMPONENT_NAME$10,
8878
+ name: COMPONENT_NAME$$,
8879
8879
  props: props$M,
8880
8880
  setup(props, { slots, expose }) {
8881
8881
  useForm(expose);
@@ -9195,9 +9195,9 @@ const useFormItem = (expose) => {
9195
9195
 
9196
9196
  /** @jsxImportSource vue */
9197
9197
 
9198
- const COMPONENT_NAME$$ = 'vc-form-item';
9198
+ const COMPONENT_NAME$_ = 'vc-form-item';
9199
9199
  const FormItem = /* @__PURE__ */ defineComponent({
9200
- name: COMPONENT_NAME$$,
9200
+ name: COMPONENT_NAME$_,
9201
9201
  props: props$L,
9202
9202
  setup(props, {
9203
9203
  slots,
@@ -9262,9 +9262,9 @@ const props$K = {
9262
9262
  }
9263
9263
  };
9264
9264
 
9265
- const COMPONENT_NAME$_ = "vcm-form";
9265
+ const COMPONENT_NAME$Z = "vcm-form";
9266
9266
  const MForm = defineComponent({
9267
- name: COMPONENT_NAME$_,
9267
+ name: COMPONENT_NAME$Z,
9268
9268
  props: props$K,
9269
9269
  setup(props, { slots, expose }) {
9270
9270
  useForm(expose, {
@@ -9295,9 +9295,9 @@ const props$J = {
9295
9295
 
9296
9296
  /** @jsxImportSource vue */
9297
9297
 
9298
- const COMPONENT_NAME$Z = 'vcm-form-item';
9298
+ const COMPONENT_NAME$Y = 'vcm-form-item';
9299
9299
  const MFormItem = /* @__PURE__ */ defineComponent({
9300
- name: COMPONENT_NAME$Z,
9300
+ name: COMPONENT_NAME$Y,
9301
9301
  props: props$J,
9302
9302
  setup(props, {
9303
9303
  slots,
@@ -9351,9 +9351,9 @@ const MFormItem = /* @__PURE__ */ defineComponent({
9351
9351
  }
9352
9352
  });
9353
9353
 
9354
- const COMPONENT_NAME$Y = "vc-fragment";
9354
+ const COMPONENT_NAME$X = "vc-fragment";
9355
9355
  const Fragment = defineComponent({
9356
- name: COMPONENT_NAME$Y,
9356
+ name: COMPONENT_NAME$X,
9357
9357
  setup(_, { slots }) {
9358
9358
  return () => h(Fragment$1, slots.default?.());
9359
9359
  }
@@ -9370,9 +9370,9 @@ const props$I = {
9370
9370
 
9371
9371
  /** @jsxImportSource vue */
9372
9372
 
9373
- const COMPONENT_NAME$X = 'vc-html-to-image';
9373
+ const COMPONENT_NAME$W = 'vc-html-to-image';
9374
9374
  const HTMLToImage = /* @__PURE__ */ defineComponent({
9375
- name: COMPONENT_NAME$X,
9375
+ name: COMPONENT_NAME$W,
9376
9376
  props: props$I,
9377
9377
  setup(props, {
9378
9378
  slots
@@ -9448,7 +9448,7 @@ const IMGStore$1 = new IMGStore();
9448
9448
 
9449
9449
  /** @jsxImportSource vue */
9450
9450
 
9451
- const COMPONENT_NAME$W = 'vc-image';
9451
+ const COMPONENT_NAME$V = 'vc-image';
9452
9452
  let isSupportObjectFit = false;
9453
9453
  window.addEventListener('DOMContentLoaded', () => {
9454
9454
  isSupportObjectFit = !IS_SERVER$1 && document.documentElement.style.objectFit !== undefined;
@@ -9461,7 +9461,7 @@ const ObjectFit = {
9461
9461
  SCALE_DOWN: 'scale-down'
9462
9462
  };
9463
9463
  const Image = /* @__PURE__ */ defineComponent({
9464
- name: COMPONENT_NAME$W,
9464
+ name: COMPONENT_NAME$V,
9465
9465
  inheritAttrs: false,
9466
9466
  props: props$H,
9467
9467
  setup(props, {
@@ -9666,9 +9666,9 @@ const props$G = {
9666
9666
 
9667
9667
  /** @jsxImportSource vue */
9668
9668
 
9669
- const COMPONENT_NAME$V = 'vc-image-crop';
9669
+ const COMPONENT_NAME$U = 'vc-image-crop';
9670
9670
  const ImageCrop = /* @__PURE__ */ defineComponent({
9671
- name: COMPONENT_NAME$V,
9671
+ name: COMPONENT_NAME$U,
9672
9672
  props: props$G,
9673
9673
  setup(props, {
9674
9674
  slots
@@ -9692,9 +9692,9 @@ const props$F = {
9692
9692
 
9693
9693
  /** @jsxImportSource vue */
9694
9694
 
9695
- const COMPONENT_NAME$U = 'vc-image-preview';
9695
+ const COMPONENT_NAME$T = 'vc-image-preview';
9696
9696
  const ImagePreview = /* @__PURE__ */ defineComponent({
9697
- name: COMPONENT_NAME$U,
9697
+ name: COMPONENT_NAME$T,
9698
9698
  props: props$F,
9699
9699
  setup(props, {
9700
9700
  slots
@@ -9718,9 +9718,9 @@ const props$E = {
9718
9718
 
9719
9719
  /** @jsxImportSource vue */
9720
9720
 
9721
- const COMPONENT_NAME$T = 'vc-image-processing';
9721
+ const COMPONENT_NAME$S = 'vc-image-processing';
9722
9722
  const ImageProcessing = /* @__PURE__ */ defineComponent({
9723
- name: COMPONENT_NAME$T,
9723
+ name: COMPONENT_NAME$S,
9724
9724
  props: props$E,
9725
9725
  setup(props, {
9726
9726
  slots
@@ -9737,9 +9737,9 @@ const MImageProcessing = ImageProcessing;
9737
9737
 
9738
9738
  /** @jsxImportSource vue */
9739
9739
 
9740
- const COMPONENT_NAME$S = 'vcm-input';
9740
+ const COMPONENT_NAME$R = 'vcm-input';
9741
9741
  const MInput = /* @__PURE__ */ defineComponent({
9742
- name: COMPONENT_NAME$S,
9742
+ name: COMPONENT_NAME$R,
9743
9743
  inheritAttrs: false,
9744
9744
  props: {
9745
9745
  ...props$$,
@@ -9828,9 +9828,9 @@ const MInput = /* @__PURE__ */ defineComponent({
9828
9828
 
9829
9829
  /** @jsxImportSource vue */
9830
9830
 
9831
- const COMPONENT_NAME$R = 'vcm-input-number';
9831
+ const COMPONENT_NAME$Q = 'vcm-input-number';
9832
9832
  const MInputNumber = /* @__PURE__ */ defineComponent({
9833
- name: COMPONENT_NAME$R,
9833
+ name: COMPONENT_NAME$Q,
9834
9834
  props: props$X,
9835
9835
  inheritAttrs: false,
9836
9836
  setup(props, {
@@ -9879,9 +9879,9 @@ const MInputNumber = /* @__PURE__ */ defineComponent({
9879
9879
 
9880
9880
  /** @jsxImportSource vue */
9881
9881
 
9882
- const COMPONENT_NAME$Q = 'vcm-input-search';
9882
+ const COMPONENT_NAME$P = 'vcm-input-search';
9883
9883
  const MInputSearch = /* @__PURE__ */ defineComponent({
9884
- name: COMPONENT_NAME$Q,
9884
+ name: COMPONENT_NAME$P,
9885
9885
  props: {
9886
9886
  ...props$W,
9887
9887
  cancelText: {
@@ -9958,9 +9958,9 @@ const props$D = {
9958
9958
  }
9959
9959
  };
9960
9960
 
9961
- const COMPONENT_NAME$P = "vcm-list";
9961
+ const COMPONENT_NAME$O = "vcm-list";
9962
9962
  const MList = defineComponent({
9963
- name: COMPONENT_NAME$P,
9963
+ name: COMPONENT_NAME$O,
9964
9964
  props: props$D,
9965
9965
  setup(props, { slots }) {
9966
9966
  provide("vc-list", { props });
@@ -10015,10 +10015,10 @@ const props$C = {
10015
10015
 
10016
10016
  /** @jsxImportSource vue */
10017
10017
 
10018
- const COMPONENT_NAME$O = 'vcm-list-item';
10018
+ const COMPONENT_NAME$N = 'vcm-list-item';
10019
10019
  const HTTP_REGEX = /[a-zA-z]+:\/\/[^\s]*/;
10020
10020
  const MListItem = /* @__PURE__ */ defineComponent({
10021
- name: COMPONENT_NAME$O,
10021
+ name: COMPONENT_NAME$N,
10022
10022
  props: props$C,
10023
10023
  emits: ['click'],
10024
10024
  setup(props, {
@@ -10112,11 +10112,11 @@ const props$B = {
10112
10112
 
10113
10113
  /** @jsxImportSource vue */
10114
10114
 
10115
- const COMPONENT_NAME$N = 'vc-marquee';
10115
+ const COMPONENT_NAME$M = 'vc-marquee';
10116
10116
  const ANIMATION = prefixStyle('animation').camel;
10117
10117
  const TRANSFORM_KEBAB = prefixStyle('transform').kebab;
10118
10118
  const Marquee = /* @__PURE__ */ defineComponent({
10119
- name: COMPONENT_NAME$N,
10119
+ name: COMPONENT_NAME$M,
10120
10120
  props: props$B,
10121
10121
  setup(props, {
10122
10122
  slots
@@ -10177,12 +10177,16 @@ const props$A = {
10177
10177
  tag: {
10178
10178
  type: String,
10179
10179
  default: "div"
10180
+ },
10181
+ fill: {
10182
+ type: Boolean,
10183
+ default: true
10180
10184
  }
10181
10185
  };
10182
10186
 
10183
- const COMPONENT_NAME$M = "vc-resizer";
10187
+ const COMPONENT_NAME$L = "vc-resizer";
10184
10188
  const Resizer = defineComponent({
10185
- name: COMPONENT_NAME$M,
10189
+ name: COMPONENT_NAME$L,
10186
10190
  props: props$A,
10187
10191
  emit: ["resize", "change"],
10188
10192
  setup(props, { emit, slots, expose }) {
@@ -10231,13 +10235,13 @@ const Resizer = defineComponent({
10231
10235
  Resize.off(current.value, handleResize);
10232
10236
  timer && clearTimeout(timer);
10233
10237
  });
10234
- expose({ refresh });
10238
+ expose({ refresh, offsetHeight: height, offsetWidth: width });
10235
10239
  return () => {
10236
10240
  return h(
10237
10241
  props.tag,
10238
10242
  {
10239
10243
  ref: current,
10240
- class: "vc-resizer"
10244
+ class: ["vc-resizer", { "is-fill": props.fill }]
10241
10245
  },
10242
10246
  slots.default?.(currentExposed.value)
10243
10247
  );
@@ -10329,10 +10333,10 @@ const props$z = {
10329
10333
 
10330
10334
  /** @jsxImportSource vue */
10331
10335
 
10332
- const COMPONENT_NAME$L = 'vc-modal';
10336
+ const COMPONENT_NAME$K = 'vc-modal';
10333
10337
  let zIndexNumber = 1002;
10334
10338
  const ModalView = /* @__PURE__ */ defineComponent({
10335
- name: COMPONENT_NAME$L,
10339
+ name: COMPONENT_NAME$K,
10336
10340
  emits: ['update:modelValue', 'close', 'portal-fulfilled', 'visible-change', 'ok', 'cancel'],
10337
10341
  props: props$z,
10338
10342
  setup(props, {
@@ -10759,9 +10763,9 @@ const props$y = {
10759
10763
 
10760
10764
  /** @jsxImportSource vue */
10761
10765
 
10762
- const COMPONENT_NAME$K = 'vc-modal';
10766
+ const COMPONENT_NAME$J = 'vc-modal';
10763
10767
  const MModalView = /* @__PURE__ */ defineComponent({
10764
- name: COMPONENT_NAME$K,
10768
+ name: COMPONENT_NAME$J,
10765
10769
  emits: ['update:modelValue', 'portal-fulfilled', 'close', 'ok', 'cancel'],
10766
10770
  props: props$y,
10767
10771
  setup(props, {
@@ -10973,9 +10977,9 @@ const props$x = {
10973
10977
 
10974
10978
  /** @jsxImportSource vue */
10975
10979
 
10976
- const COMPONENT_NAME$J = 'vc-notice';
10980
+ const COMPONENT_NAME$I = 'vc-notice';
10977
10981
  const NoticeView = /* @__PURE__ */ defineComponent({
10978
- name: COMPONENT_NAME$J,
10982
+ name: COMPONENT_NAME$I,
10979
10983
  props: props$x,
10980
10984
  emits: ['portal-fulfilled', 'close', 'before-close'],
10981
10985
  setup(props, {
@@ -11148,9 +11152,9 @@ const props$w = {
11148
11152
 
11149
11153
  /** @jsxImportSource vue */
11150
11154
 
11151
- const COMPONENT_NAME$I = 'vc-option';
11155
+ const COMPONENT_NAME$H = 'vc-option';
11152
11156
  const Option$1 = /* @__PURE__ */ defineComponent({
11153
- name: COMPONENT_NAME$I,
11157
+ name: COMPONENT_NAME$H,
11154
11158
  props: props$w,
11155
11159
  setup(props, {
11156
11160
  slots
@@ -11263,9 +11267,9 @@ const props$u = {
11263
11267
 
11264
11268
  /** @jsxImportSource vue */
11265
11269
 
11266
- const COMPONENT_NAME$H = 'vc-tag';
11270
+ const COMPONENT_NAME$G = 'vc-tag';
11267
11271
  const Tag = /* @__PURE__ */ defineComponent({
11268
- name: COMPONENT_NAME$H,
11272
+ name: COMPONENT_NAME$G,
11269
11273
  props: props$u,
11270
11274
  emits: ['close', 'change'],
11271
11275
  setup(props, {
@@ -11334,9 +11338,9 @@ const props$t = {
11334
11338
 
11335
11339
  /** @jsxImportSource vue */
11336
11340
 
11337
- const COMPONENT_NAME$G = 'vc-select-option';
11341
+ const COMPONENT_NAME$F = 'vc-select-option';
11338
11342
  const Option = /* @__PURE__ */ defineComponent({
11339
- name: COMPONENT_NAME$G,
11343
+ name: COMPONENT_NAME$F,
11340
11344
  props: props$t,
11341
11345
  setup(props, {
11342
11346
  slots
@@ -11409,9 +11413,9 @@ const props$s = {
11409
11413
 
11410
11414
  /** @jsxImportSource vue */
11411
11415
 
11412
- const COMPONENT_NAME$F = 'vc-select-option-group';
11416
+ const COMPONENT_NAME$E = 'vc-select-option-group';
11413
11417
  const OptionGroup = /* @__PURE__ */ defineComponent({
11414
- name: COMPONENT_NAME$F,
11418
+ name: COMPONENT_NAME$E,
11415
11419
  props: props$s,
11416
11420
  setup(props, {
11417
11421
  slots
@@ -11509,9 +11513,9 @@ const props$r = {
11509
11513
  function _isSlot$1(s) {
11510
11514
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
11511
11515
  }
11512
- const COMPONENT_NAME$E = 'vc-select';
11516
+ const COMPONENT_NAME$D = 'vc-select';
11513
11517
  const Select = /* @__PURE__ */ defineComponent({
11514
- name: COMPONENT_NAME$E,
11518
+ name: COMPONENT_NAME$D,
11515
11519
  props: props$r,
11516
11520
  emits: ['ready', 'close', 'visible-change', 'clear', 'change', 'update:modelValue'],
11517
11521
  setup(props, {
@@ -11755,9 +11759,9 @@ const Select = /* @__PURE__ */ defineComponent({
11755
11759
 
11756
11760
  /** @jsxImportSource vue */
11757
11761
 
11758
- const COMPONENT_NAME$D = 'vc-pagination';
11762
+ const COMPONENT_NAME$C = 'vc-pagination';
11759
11763
  const Pagination = /* @__PURE__ */ defineComponent({
11760
- name: COMPONENT_NAME$D,
11764
+ name: COMPONENT_NAME$C,
11761
11765
  props: props$v,
11762
11766
  emits: ['update:current', 'change', 'page-size-change'],
11763
11767
  setup(props, {
@@ -11955,9 +11959,9 @@ const props$q = {
11955
11959
 
11956
11960
  /** @jsxImportSource vue */
11957
11961
 
11958
- const COMPONENT_NAME$C = 'vc-picker';
11962
+ const COMPONENT_NAME$B = 'vc-picker';
11959
11963
  const Picker = /* @__PURE__ */ defineComponent({
11960
- name: COMPONENT_NAME$C,
11964
+ name: COMPONENT_NAME$B,
11961
11965
  props: props$q,
11962
11966
  setup(props, {
11963
11967
  slots
@@ -11981,9 +11985,9 @@ const props$p = {
11981
11985
 
11982
11986
  /** @jsxImportSource vue */
11983
11987
 
11984
- const COMPONENT_NAME$B = 'vc-popconfirm';
11988
+ const COMPONENT_NAME$A = 'vc-popconfirm';
11985
11989
  const Popconfirm = /* @__PURE__ */ defineComponent({
11986
- name: COMPONENT_NAME$B,
11990
+ name: COMPONENT_NAME$A,
11987
11991
  props: props$p,
11988
11992
  setup(props, {
11989
11993
  slots
@@ -12009,9 +12013,9 @@ const props$o = {
12009
12013
 
12010
12014
  /** @jsxImportSource vue */
12011
12015
 
12012
- const COMPONENT_NAME$A = 'vc-popup';
12016
+ const COMPONENT_NAME$z = 'vc-popup';
12013
12017
  const Popup = /* @__PURE__ */ defineComponent({
12014
- name: COMPONENT_NAME$A,
12018
+ name: COMPONENT_NAME$z,
12015
12019
  props: props$o,
12016
12020
  setup(props, {
12017
12021
  slots
@@ -12038,9 +12042,9 @@ const props$n = {
12038
12042
 
12039
12043
  /** @jsxImportSource vue */
12040
12044
 
12041
- const COMPONENT_NAME$z = 'vc-print';
12045
+ const COMPONENT_NAME$y = 'vc-print';
12042
12046
  const Print = /* @__PURE__ */ defineComponent({
12043
- name: COMPONENT_NAME$z,
12047
+ name: COMPONENT_NAME$y,
12044
12048
  props: props$n,
12045
12049
  setup(props, {
12046
12050
  expose,
@@ -12104,6 +12108,12 @@ const props$m = {
12104
12108
  type: Boolean,
12105
12109
  default: true
12106
12110
  },
12111
+ textStyle: {
12112
+ type: [String, Object]
12113
+ },
12114
+ textClass: {
12115
+ type: [String, Object]
12116
+ },
12107
12117
  animated: {
12108
12118
  type: Boolean,
12109
12119
  default: false
@@ -12136,9 +12146,9 @@ const props$m = {
12136
12146
 
12137
12147
  /** @jsxImportSource vue */
12138
12148
 
12139
- const COMPONENT_NAME$y = 'vc-progress-circle';
12149
+ const COMPONENT_NAME$x = 'vc-progress-circle';
12140
12150
  const Circle = /* @__PURE__ */ defineComponent({
12141
- name: COMPONENT_NAME$y,
12151
+ name: COMPONENT_NAME$x,
12142
12152
  props: props$m,
12143
12153
  setup(props, {
12144
12154
  slots
@@ -12187,17 +12197,20 @@ const Circle = /* @__PURE__ */ defineComponent({
12187
12197
  "stroke-linecap": "round",
12188
12198
  "fill-opacity": "0"
12189
12199
  }, null)]), createVNode("div", {
12190
- "class": "vc-progress-circle__inner"
12191
- }, [slots.default ? slots.default() : props.showText && createVNode("span", null, [`${props.percent}%`])])])]);
12200
+ "class": ['vc-progress-circle__inner']
12201
+ }, [slots.default ? slots.default() : props.showText && createVNode("span", {
12202
+ "class": props.textClass,
12203
+ "style": props.textStyle
12204
+ }, [`${props.percent}%`])])])]);
12192
12205
  };
12193
12206
  }
12194
12207
  });
12195
12208
 
12196
12209
  /** @jsxImportSource vue */
12197
12210
 
12198
- const COMPONENT_NAME$x = 'vc-progress-line';
12211
+ const COMPONENT_NAME$w = 'vc-progress-line';
12199
12212
  const Line = /* @__PURE__ */ defineComponent({
12200
- name: COMPONENT_NAME$x,
12213
+ name: COMPONENT_NAME$w,
12201
12214
  props: props$m,
12202
12215
  setup(props) {
12203
12216
  const colorStyle = computed(() => {
@@ -12226,12 +12239,15 @@ const Line = /* @__PURE__ */ defineComponent({
12226
12239
  "style": innerStyle.value,
12227
12240
  "class": [classes.value, 'vc-progress-line__inner']
12228
12241
  }, null)])]), props.showText && createVNode("div", {
12229
- "class": "vc-progress-line__percent"
12242
+ "class": ['vc-progress-line__percent']
12230
12243
  }, [['error', 'success'].includes(props.status) ? createVNode(Icon, {
12231
12244
  "type": props.status,
12232
12245
  "style": colorStyle.value,
12233
12246
  "class": [`is-${props.status}`, 'vc-progress-line__icon']
12234
- }, null) : createVNode("span", null, [`${props.percent}%`])])]);
12247
+ }, null) : createVNode("span", {
12248
+ "class": props.textClass,
12249
+ "style": props.textStyle
12250
+ }, [`${props.percent}%`])])]);
12235
12251
  };
12236
12252
  }
12237
12253
  });
@@ -12241,9 +12257,9 @@ const Line = /* @__PURE__ */ defineComponent({
12241
12257
  function _isSlot(s) {
12242
12258
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
12243
12259
  }
12244
- const COMPONENT_NAME$w = 'vc-progress';
12260
+ const COMPONENT_NAME$v = 'vc-progress';
12245
12261
  const Progress = /* @__PURE__ */ defineComponent({
12246
- name: COMPONENT_NAME$w,
12262
+ name: COMPONENT_NAME$v,
12247
12263
  props: props$m,
12248
12264
  setup(props, {
12249
12265
  slots
@@ -12395,9 +12411,9 @@ const useRadio = () => {
12395
12411
 
12396
12412
  /** @jsxImportSource vue */
12397
12413
 
12398
- const COMPONENT_NAME$v = 'vc-radio';
12414
+ const COMPONENT_NAME$u = 'vc-radio';
12399
12415
  const Radio = /* @__PURE__ */ defineComponent({
12400
- name: COMPONENT_NAME$v,
12416
+ name: COMPONENT_NAME$u,
12401
12417
  props: props$l,
12402
12418
  emits: ['update:modelValue', 'change'],
12403
12419
  setup(props, {
@@ -12508,9 +12524,9 @@ const useRadioGroup = () => {
12508
12524
 
12509
12525
  /** @jsxImportSource vue */
12510
12526
 
12511
- const COMPONENT_NAME$u = 'vc-radio-group';
12527
+ const COMPONENT_NAME$t = 'vc-radio-group';
12512
12528
  const RadioGroup = /* @__PURE__ */ defineComponent({
12513
- name: COMPONENT_NAME$u,
12529
+ name: COMPONENT_NAME$t,
12514
12530
  props: props$k,
12515
12531
  emits: ['update:modelValue', 'change'],
12516
12532
  setup(props, {
@@ -12532,9 +12548,9 @@ const RadioGroup = /* @__PURE__ */ defineComponent({
12532
12548
 
12533
12549
  /** @jsxImportSource vue */
12534
12550
 
12535
- const COMPONENT_NAME$t = 'vcm-radio';
12551
+ const COMPONENT_NAME$s = 'vcm-radio';
12536
12552
  const MRadio = /* @__PURE__ */ defineComponent({
12537
- name: COMPONENT_NAME$t,
12553
+ name: COMPONENT_NAME$s,
12538
12554
  props: props$l,
12539
12555
  emits: ['update:modelValue', 'change'],
12540
12556
  setup(props, {
@@ -12575,9 +12591,9 @@ const MRadio = /* @__PURE__ */ defineComponent({
12575
12591
 
12576
12592
  /** @jsxImportSource vue */
12577
12593
 
12578
- const COMPONENT_NAME$s = 'vcm-radio-group';
12594
+ const COMPONENT_NAME$r = 'vcm-radio-group';
12579
12595
  const MRadioGroup = /* @__PURE__ */ defineComponent({
12580
- name: COMPONENT_NAME$s,
12596
+ name: COMPONENT_NAME$r,
12581
12597
  props: props$k,
12582
12598
  emits: ['update:modelValue', 'change'],
12583
12599
  setup(props, {
@@ -12606,9 +12622,9 @@ const props$j = {
12606
12622
 
12607
12623
  /** @jsxImportSource vue */
12608
12624
 
12609
- const COMPONENT_NAME$r = 'vc-rate';
12625
+ const COMPONENT_NAME$q = 'vc-rate';
12610
12626
  const Rate = /* @__PURE__ */ defineComponent({
12611
- name: COMPONENT_NAME$r,
12627
+ name: COMPONENT_NAME$q,
12612
12628
  props: props$j,
12613
12629
  setup(props, {
12614
12630
  slots
@@ -12676,9 +12692,9 @@ const props$i = {
12676
12692
 
12677
12693
  /** @jsxImportSource vue */
12678
12694
 
12679
- const COMPONENT_NAME$q = 'vc-recycle-list-scroll-state';
12695
+ const COMPONENT_NAME$p = 'vc-recycle-list-scroll-state';
12680
12696
  const ScrollState = /* @__PURE__ */ defineComponent({
12681
- name: COMPONENT_NAME$q,
12697
+ name: COMPONENT_NAME$p,
12682
12698
  setup(_, {
12683
12699
  slots
12684
12700
  }) {
@@ -12808,12 +12824,12 @@ const useDirectionKeys = () => {
12808
12824
 
12809
12825
  /** @jsxImportSource vue */
12810
12826
 
12811
- const COMPONENT_NAME$p = 'vc-recycle-list-container';
12827
+ const COMPONENT_NAME$o = 'vc-recycle-list-container';
12812
12828
 
12813
12829
  // TODO: 抽离
12814
12830
  const transformKey = $.prefixStyle('transform').camel;
12815
12831
  const Container = /* @__PURE__ */ defineComponent({
12816
- name: COMPONENT_NAME$p,
12832
+ name: COMPONENT_NAME$o,
12817
12833
  props: props$h,
12818
12834
  emits: ['refresh'],
12819
12835
  setup(props, {
@@ -12911,51 +12927,6 @@ const Container = /* @__PURE__ */ defineComponent({
12911
12927
 
12912
12928
  /** @jsxImportSource vue */
12913
12929
 
12914
- const COMPONENT_NAME$o = 'vc-recycle-list-item';
12915
- const Item = /* @__PURE__ */ defineComponent({
12916
- name: COMPONENT_NAME$o,
12917
- props: {
12918
- vertical: {
12919
- type: Boolean,
12920
- default: true
12921
- }
12922
- },
12923
- emits: ['resize', 'change'],
12924
- setup(_, {
12925
- emit,
12926
- slots
12927
- }) {
12928
- const K = useDirectionKeys();
12929
- const current = ref();
12930
- const offsetSize = ref(0);
12931
- let hasInitial = false;
12932
- const handleResize = () => {
12933
- const v = current.value.getBoundingClientRect()[K.size];
12934
- const changed = offsetSize.value != v;
12935
- if (changed) {
12936
- offsetSize.value = v;
12937
- hasInitial && emit('resize', v);
12938
- emit('change', v);
12939
- }
12940
- hasInitial = true;
12941
- };
12942
- onMounted(() => {
12943
- Resize.on(current.value, handleResize); // 首次会执行一次
12944
- });
12945
- onBeforeUnmount(() => {
12946
- Resize.off(current.value, handleResize);
12947
- });
12948
- return () => {
12949
- return createVNode("div", {
12950
- "ref": current,
12951
- "class": "vc-recycle-list-item"
12952
- }, [slots?.default?.()]);
12953
- };
12954
- }
12955
- });
12956
-
12957
- /** @jsxImportSource vue */
12958
-
12959
12930
  const COMPONENT_NAME$n = 'vc-recycle-list';
12960
12931
  const RecycleList = /* @__PURE__ */ defineComponent({
12961
12932
  name: COMPONENT_NAME$n,
@@ -13466,7 +13437,7 @@ const RecycleList = /* @__PURE__ */ defineComponent({
13466
13437
  // eslint-disable-next-line @stylistic/max-len
13467
13438
  slots.placeholder?.() || renderer.value.placeholder && createVNode(Customer, {
13468
13439
  "render": renderer.value.placeholder
13469
- }, null)]), !item.isPlaceholder && createVNode(Item, {
13440
+ }, null)]), !item.isPlaceholder && createVNode(Resizer, {
13470
13441
  "ref": v => curloads.value[item.id] = v,
13471
13442
  "class": {
13472
13443
  'vc-recycle-list__transition': hasPlaceholder.value
@@ -13474,11 +13445,11 @@ const RecycleList = /* @__PURE__ */ defineComponent({
13474
13445
  "style": {
13475
13446
  opacity: item.loaded
13476
13447
  },
13448
+ "fill": false,
13477
13449
  "data-row": item.id,
13478
13450
  "data-column": item.column,
13479
13451
  "data-size": item.size,
13480
13452
  "data-position": item.position,
13481
- "vertical": props.vertical,
13482
13453
  "onResize": handleResize
13483
13454
  }, {
13484
13455
  default: () => [slots.default?.({
@@ -13884,14 +13855,14 @@ const columnsToRowsEffect = (v) => {
13884
13855
  }
13885
13856
  }
13886
13857
  if (column.children) {
13887
- let colSpan = 0;
13858
+ let colspan = 0;
13888
13859
  column.children.forEach((subColumn) => {
13889
13860
  traverse(subColumn, column);
13890
- colSpan += subColumn.colSpan;
13861
+ colspan += subColumn.colspan;
13891
13862
  });
13892
- column.colSpan = colSpan;
13863
+ column.colspan = colspan;
13893
13864
  } else {
13894
- column.colSpan = 1;
13865
+ column.colspan = 1;
13895
13866
  }
13896
13867
  };
13897
13868
  v.forEach((column) => {
@@ -13905,9 +13876,9 @@ const columnsToRowsEffect = (v) => {
13905
13876
  const allColumns = getAllColumns(v);
13906
13877
  allColumns.forEach((column) => {
13907
13878
  if (!column.children) {
13908
- column.rowSpan = maxLevel - column.level + 1;
13879
+ column.rowspan = maxLevel - column.level + 1;
13909
13880
  } else {
13910
- column.rowSpan = 1;
13881
+ column.rowspan = 1;
13911
13882
  }
13912
13883
  rows[column.level - 1].push(column);
13913
13884
  });
@@ -13976,6 +13947,7 @@ class BaseWatcher {
13976
13947
  selection: [],
13977
13948
  reserveSelection: false,
13978
13949
  selectable: null,
13950
+ expandSelectable: null,
13979
13951
  hoverRowIndex: null,
13980
13952
  // Current
13981
13953
  currentRow: null,
@@ -14502,6 +14474,7 @@ class Store extends BaseWatcher {
14502
14474
  this.layout = new Layout(this);
14503
14475
  const { props } = options.table;
14504
14476
  merge(this.states, {
14477
+ expandSelectable: props.expandSelectable,
14505
14478
  treeLazy: props.lazy || false,
14506
14479
  treeLazyColumnIdentifier: props.treeMap.hasChildren || "hasChildren",
14507
14480
  treeChildrenColumnName: props.treeMap.children || "children"
@@ -14824,8 +14797,7 @@ class Store extends BaseWatcher {
14824
14797
  }
14825
14798
 
14826
14799
  const useStates = (mapper, $store) => {
14827
- const instance = getCurrentInstance();
14828
- const store = $store || instance.proxy?.store;
14800
+ const store = $store || inject("vc-table")?.store;
14829
14801
  const states = reactive({});
14830
14802
  Object.keys(mapper).forEach((key) => {
14831
14803
  const value = mapper[key];
@@ -14860,16 +14832,16 @@ const NormalList = /* @__PURE__ */ defineComponent({
14860
14832
  emit,
14861
14833
  slots
14862
14834
  }) {
14863
- const handleResize = (size, index) => {
14835
+ const handleResize = (e, index) => {
14864
14836
  emit('row-resize', {
14865
14837
  index,
14866
- size
14838
+ size: e.height
14867
14839
  });
14868
14840
  };
14869
14841
  return () => {
14870
14842
  return props.data.map((row, index) => {
14871
- return createVNode(Item, {
14872
- "vertical": false,
14843
+ return createVNode(Resizer, {
14844
+ "fill": false,
14873
14845
  "onChange": e => handleResize(e, index)
14874
14846
  }, {
14875
14847
  default: () => [slots.default?.({
@@ -14885,7 +14857,6 @@ const NormalList = /* @__PURE__ */ defineComponent({
14885
14857
  const TableBody = /* @__PURE__ */ defineComponent({
14886
14858
  name: 'vc-table-body',
14887
14859
  props: {
14888
- store: Object,
14889
14860
  fixed: String,
14890
14861
  heightStyle: [Object, Array, String]
14891
14862
  },
@@ -14896,6 +14867,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
14896
14867
  }) {
14897
14868
  const instance = getCurrentInstance();
14898
14869
  const table = inject('vc-table');
14870
+ const allowRender = ref(false);
14899
14871
  const states = useStates({
14900
14872
  data: 'data',
14901
14873
  list: 'list',
@@ -14913,8 +14885,8 @@ const TableBody = /* @__PURE__ */ defineComponent({
14913
14885
  }) => type === 'default')
14914
14886
  });
14915
14887
  const wrapper = ref();
14916
- watch(() => props.store.states.hoverRowIndex, (v, oldV) => {
14917
- if (!props.store.states.isComplex || IS_SERVER$1) return;
14888
+ watch(() => table.store.states.hoverRowIndex, (v, oldV) => {
14889
+ if (!table.store.states.isComplex || IS_SERVER$1) return;
14918
14890
  raf(() => {
14919
14891
  const rows = instance.vnode.el.querySelectorAll('.vc-table__row');
14920
14892
  const oldRow = rows[oldV];
@@ -14958,7 +14930,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
14958
14930
  };
14959
14931
  const getRowClass = (row, rowIndex) => {
14960
14932
  const classes = ['vc-table__row'];
14961
- if (table.props.highlight && row === props.store.states.currentRow) {
14933
+ if (table.props.highlight && row === table.store.states.currentRow) {
14962
14934
  classes.push('current-row');
14963
14935
  }
14964
14936
  if (table.props.stripe && rowIndex % 2 === 1) {
@@ -14973,7 +14945,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
14973
14945
  rowIndex
14974
14946
  }));
14975
14947
  }
14976
- if (props.store.states.expandRows.indexOf(row) > -1) {
14948
+ if (table.store.states.expandRows.indexOf(row) > -1) {
14977
14949
  classes.push('expanded');
14978
14950
  }
14979
14951
  return classes;
@@ -15056,10 +15028,10 @@ const TableBody = /* @__PURE__ */ defineComponent({
15056
15028
  table.emit('cell-mouse-leave', oldHoverState.row, oldHoverState.column, oldHoverState.cell, e);
15057
15029
  };
15058
15030
  const handleMouseEnter = debounce(index => {
15059
- props.store.setHoverRow(index);
15031
+ table.store.setHoverRow(index);
15060
15032
  }, 30);
15061
15033
  const handleMouseLeave = debounce(() => {
15062
- props.store.setHoverRow(null);
15034
+ table.store.setHoverRow(null);
15063
15035
  }, 30);
15064
15036
  const handleEvent = (e, row, name) => {
15065
15037
  const cell = getCell(e);
@@ -15079,10 +15051,13 @@ const TableBody = /* @__PURE__ */ defineComponent({
15079
15051
  handleEvent(e, row, 'dblclick');
15080
15052
  };
15081
15053
  const handleClick = (e, row) => {
15082
- props.store.setCurrentRow(row);
15054
+ table.store.setCurrentRow(row);
15083
15055
  handleEvent(e, row, 'click');
15084
15056
  };
15085
15057
  const renderRow = (rowData, rowIndex) => {
15058
+ const {
15059
+ rowHeight
15060
+ } = table.props;
15086
15061
  const {
15087
15062
  data: row
15088
15063
  } = rowData;
@@ -15090,7 +15065,8 @@ const TableBody = /* @__PURE__ */ defineComponent({
15090
15065
  columns
15091
15066
  } = states;
15092
15067
  const key = getValueOfRow(row, rowIndex);
15093
- const selected = props.store.isSelected(row);
15068
+ const selected = table.store.isSelected(row);
15069
+ const height = rowHeight || rowData.height;
15094
15070
  return createVNode("div", {
15095
15071
  "key": key,
15096
15072
  "class": [getRowClass(row, rowIndex), 'vc-table__tr'],
@@ -15107,7 +15083,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
15107
15083
  } = column;
15108
15084
  const sizeStyle = {
15109
15085
  width: `${realWidth}px`,
15110
- height: `${rowData.height ? `${rowData.height}px` : 'auto'}`
15086
+ height: `${height ? `${height}px` : 'auto'}`
15111
15087
  };
15112
15088
  if (columnsHidden.value[columnIndex]) {
15113
15089
  return createVNode("div", {
@@ -15126,7 +15102,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
15126
15102
  column,
15127
15103
  rowIndex,
15128
15104
  columnIndex,
15129
- store: props.store,
15105
+ store: table.store,
15130
15106
  selected
15131
15107
  })]);
15132
15108
  })]);
@@ -15143,6 +15119,7 @@ const TableBody = /* @__PURE__ */ defineComponent({
15143
15119
  })]);
15144
15120
  };
15145
15121
  const handleMergeRowResize = v => {
15122
+ if (table.props.rowHeight) return;
15146
15123
  states.list[v.index].rows.forEach(row => {
15147
15124
  row.heightMap[props.fixed || 'main'] = v.size;
15148
15125
  const heights = [row.heightMap.main];
@@ -15162,7 +15139,17 @@ const TableBody = /* @__PURE__ */ defineComponent({
15162
15139
  getRootElement: () => instance.vnode.el
15163
15140
  });
15164
15141
  const layout = table.layout;
15142
+ let timer;
15143
+ onBeforeMount(() => {
15144
+ if (table.props.delay) {
15145
+ timer = setTimeout(() => allowRender.value = true, table.props.delay);
15146
+ } else {
15147
+ allowRender.value = true;
15148
+ }
15149
+ });
15150
+ onBeforeUnmount(() => (timer && clearTimeout(timer), allowRender.value = false));
15165
15151
  return () => {
15152
+ if (!allowRender.value) return;
15166
15153
  return createVNode("div", {
15167
15154
  "class": "vc-table__body"
15168
15155
  }, [table.props.height ? createVNode(RecycleList, {
@@ -15211,10 +15198,6 @@ const TableHeader = /* @__PURE__ */ defineComponent({
15211
15198
  name: 'vc-table-header',
15212
15199
  props: {
15213
15200
  fixed: [Boolean, String],
15214
- store: {
15215
- type: Object,
15216
- required: true
15217
- },
15218
15201
  border: Boolean,
15219
15202
  // 排序全部交给外部处理,内部不处理数据,只做交互
15220
15203
  defaultSort: {
@@ -15363,7 +15346,7 @@ const TableHeader = /* @__PURE__ */ defineComponent({
15363
15346
  column.width = columnWidth;
15364
15347
  column.realWidth = column.width;
15365
15348
  table.$emit('header-dragend', column.width, startLeft - startColumnLeft, column, event);
15366
- props.store.scheduleLayout();
15349
+ table.store.scheduleLayout();
15367
15350
  document.body.style.cursor = '';
15368
15351
  dragging.value = false;
15369
15352
  draggingColumn.value = null;
@@ -15468,7 +15451,7 @@ const TableHeader = /* @__PURE__ */ defineComponent({
15468
15451
  }, [column.renderHeader ? column.renderHeader({
15469
15452
  column,
15470
15453
  columnIndex,
15471
- store: props.store
15454
+ store: table.store
15472
15455
  }) : column.label, column.tooltip ? createVNode(Icon, {
15473
15456
  "type": "o-info",
15474
15457
  "onMouseenter": e => handleCellMouseEnter(e, column)
@@ -15491,10 +15474,6 @@ const TableFooter = /* @__PURE__ */ defineComponent({
15491
15474
  name: 'vc-table-footer',
15492
15475
  props: {
15493
15476
  fixed: [String, Boolean],
15494
- store: {
15495
- type: Object,
15496
- required: true
15497
- },
15498
15477
  getSummary: Function,
15499
15478
  sumText: String,
15500
15479
  border: Boolean
@@ -15516,7 +15495,7 @@ const TableFooter = /* @__PURE__ */ defineComponent({
15516
15495
  } else if (props.fixed === 'right') {
15517
15496
  let before = 0;
15518
15497
  for (let i = 0; i < index; i++) {
15519
- before += states.columns[i].colSpan;
15498
+ before += states.columns[i].colspan;
15520
15499
  }
15521
15500
  return before < states.columnsCount - states.rightFixedLeafCount;
15522
15501
  } else if (!props.fixed && column.fixed) {
@@ -15610,6 +15589,7 @@ const props$c = {
15610
15589
  width: [String, Number],
15611
15590
  height: [String, Number],
15612
15591
  maxHeight: [String, Number],
15592
+ rowHeight: [String, Number],
15613
15593
  // 列的宽度是否自撑开
15614
15594
  fit: {
15615
15595
  type: Boolean,
@@ -15690,7 +15670,9 @@ const props$c = {
15690
15670
  defaultSort: {
15691
15671
  type: Object,
15692
15672
  default: () => ({})
15693
- }
15673
+ },
15674
+ // 用于延迟渲染,用于计算高度
15675
+ delay: Number
15694
15676
  };
15695
15677
 
15696
15678
  /** @jsxImportSource vue */
@@ -16103,7 +16085,6 @@ const Table = /* @__PURE__ */ defineComponent({
16103
16085
  "class": "vc-table__header-wrapper"
16104
16086
  }, [createVNode(TableHeader, {
16105
16087
  "ref": tableHeader,
16106
- "store": store,
16107
16088
  "border": props.border,
16108
16089
  "default-sort": props.defaultSort,
16109
16090
  "style": bodyWidthStyle.value
@@ -16119,7 +16100,6 @@ const Table = /* @__PURE__ */ defineComponent({
16119
16100
  }, {
16120
16101
  default: () => [createVNode(TableBody, {
16121
16102
  "ref": body,
16122
- "store": store,
16123
16103
  "style": [bodyWidthStyle.value],
16124
16104
  "height-style": [bodyHeightStyle.value],
16125
16105
  "onScroll": handleScollY
@@ -16139,7 +16119,6 @@ const Table = /* @__PURE__ */ defineComponent({
16139
16119
  "ref": footerWrapper,
16140
16120
  "class": "vc-table__footer-wrapper"
16141
16121
  }, [createVNode(TableFooter, {
16142
- "store": store,
16143
16122
  "border": props.border,
16144
16123
  "sum-text": props.sumText || '合计',
16145
16124
  "get-summary": props.getSummary,
@@ -16155,7 +16134,6 @@ const Table = /* @__PURE__ */ defineComponent({
16155
16134
  "class": "vc-table__fixed-header-wrapper"
16156
16135
  }, [createVNode(TableHeader, {
16157
16136
  "ref": leftFixedTableHeader,
16158
- "store": store,
16159
16137
  "border": props.border,
16160
16138
  "default-sort": props.defaultSort,
16161
16139
  "style": bodyWidthStyle.value,
@@ -16168,7 +16146,6 @@ const Table = /* @__PURE__ */ defineComponent({
16168
16146
  "class": "vc-table__fixed-body-wrapper"
16169
16147
  }, [createVNode(TableBody, {
16170
16148
  "ref": leftFixedBody,
16171
- "store": store,
16172
16149
  "style": [bodyWidthStyle.value, bodyHeightStyle.value],
16173
16150
  "fixed": "left"
16174
16151
  }, null), slots.append && createVNode("div", {
@@ -16180,7 +16157,6 @@ const Table = /* @__PURE__ */ defineComponent({
16180
16157
  "ref": leftFixedFooterWrapper,
16181
16158
  "class": "vc-table__fixed-footer-wrapper"
16182
16159
  }, [createVNode(TableFooter, {
16183
- "store": store,
16184
16160
  "border": props.border,
16185
16161
  "sum-text": props.sumText || '合计',
16186
16162
  "get-summary": props.getSummary,
@@ -16197,7 +16173,6 @@ const Table = /* @__PURE__ */ defineComponent({
16197
16173
  "class": "vc-table__fixed-header-wrapper"
16198
16174
  }, [createVNode(TableHeader, {
16199
16175
  "ref": rightFixedTableHeader,
16200
- "store": store,
16201
16176
  "border": props.border,
16202
16177
  "default-sort": props.defaultSort,
16203
16178
  "style": bodyWidthStyle.value,
@@ -16210,7 +16185,6 @@ const Table = /* @__PURE__ */ defineComponent({
16210
16185
  "class": "vc-table__fixed-body-wrapper"
16211
16186
  }, [createVNode(TableBody, {
16212
16187
  "ref": rightFixedBody,
16213
- "store": store,
16214
16188
  "style": [bodyWidthStyle.value, bodyHeightStyle.value],
16215
16189
  "fixed": "right"
16216
16190
  }, null), slots.append && createVNode("div", {
@@ -16222,7 +16196,6 @@ const Table = /* @__PURE__ */ defineComponent({
16222
16196
  "ref": rightFixedFooterWrapper,
16223
16197
  "class": "vc-table__fixed-footer-wrapper"
16224
16198
  }, [createVNode(TableFooter, {
16225
- "store": store,
16226
16199
  "border": props.border,
16227
16200
  "sum-text": props.sumText || '合计',
16228
16201
  "get-summary": props.getSummary,
@@ -16287,7 +16260,7 @@ const cellForced = {
16287
16260
  "disabled": column.selectable ? !column.selectable.call(null, row, rowIndex) : false,
16288
16261
  "onChange": () => store.rowSelectedChanged(row),
16289
16262
  "onClick": e => e.stopPropagation()
16290
- }, null), [[vShow, store.table.props.expandSelectable || level === 0]]);
16263
+ }, null), [[vShow, store.states.expandSelectable || level === 0]]);
16291
16264
  },
16292
16265
  sortable: false,
16293
16266
  resizable: false
@@ -16521,16 +16494,9 @@ const TableColumn = /* @__PURE__ */ defineComponent({
16521
16494
  * @returns ~
16522
16495
  */
16523
16496
  const setColumnWidth = column => {
16524
- if (realWidth.value) {
16525
- column.width = realWidth.value;
16526
- }
16527
- if (realMinWidth.value) {
16528
- column.minWidth = realMinWidth.value;
16529
- }
16530
- if (!column.minWidth) {
16531
- column.minWidth = 80;
16532
- }
16533
- column.realWidth = column.width === undefined ? column.minWidth : column.width;
16497
+ column.width = realWidth.value || column.width;
16498
+ column.minWidth = realMinWidth.value || column.minWidth || 80;
16499
+ column.realWidth = typeof column.width === 'undefined' ? column.minWidth : column.width;
16534
16500
  return column;
16535
16501
  };
16536
16502
 
@@ -16603,6 +16569,8 @@ const TableColumn = /* @__PURE__ */ defineComponent({
16603
16569
  };
16604
16570
  const registerColumn = () => {
16605
16571
  const defaults = {
16572
+ colspan: 1,
16573
+ rowspan: 1,
16606
16574
  ...cellStarts[props.type],
16607
16575
  id: columnId.value,
16608
16576
  realAlign,