@deot/vc 1.0.63 → 1.0.65

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.
@@ -9138,16 +9138,16 @@ var Vc = (function (exports, vue) {
9138
9138
  }
9139
9139
  }
9140
9140
  const VcInstance = new Instance();
9141
- const props$1u = {
9141
+ const props$1v = {
9142
9142
  tag: {
9143
9143
  type: String,
9144
9144
  default: "div"
9145
9145
  }
9146
9146
  };
9147
- const COMPONENT_NAME$2b = "vc-action-sheet";
9147
+ const COMPONENT_NAME$2g = "vc-action-sheet";
9148
9148
  const ActionSheet = /* @__PURE__ */ vue.defineComponent({
9149
- name: COMPONENT_NAME$2b,
9150
- props: props$1u,
9149
+ name: COMPONENT_NAME$2g,
9150
+ props: props$1v,
9151
9151
  setup(props2, {
9152
9152
  slots
9153
9153
  }) {
@@ -9159,7 +9159,7 @@ var Vc = (function (exports, vue) {
9159
9159
  }
9160
9160
  });
9161
9161
  const MActionSheet = ActionSheet;
9162
- const props$1t = {
9162
+ const props$1u = {
9163
9163
  modelValue: {
9164
9164
  type: Boolean,
9165
9165
  default: false
@@ -9217,11 +9217,11 @@ var Vc = (function (exports, vue) {
9217
9217
  const isWheel = (el2) => {
9218
9218
  return SCROLLER_WHEEL_REG.test(el2?.className || "");
9219
9219
  };
9220
- const COMPONENT_NAME$2a = "vc-affix";
9220
+ const COMPONENT_NAME$2f = "vc-affix";
9221
9221
  const Affix = /* @__PURE__ */ vue.defineComponent({
9222
- name: COMPONENT_NAME$2a,
9222
+ name: COMPONENT_NAME$2f,
9223
9223
  emits: ["update:modelValue"],
9224
- props: props$1t,
9224
+ props: props$1u,
9225
9225
  setup(props2, {
9226
9226
  slots,
9227
9227
  expose,
@@ -9381,7 +9381,7 @@ var Vc = (function (exports, vue) {
9381
9381
  }
9382
9382
  });
9383
9383
  const MAffix = Affix;
9384
- const props$1s = {
9384
+ const props$1t = {
9385
9385
  modelValue: {
9386
9386
  type: Boolean,
9387
9387
  default: true
@@ -9407,7 +9407,7 @@ var Vc = (function (exports, vue) {
9407
9407
  default: false
9408
9408
  }
9409
9409
  };
9410
- const props$1r = {
9410
+ const props$1s = {
9411
9411
  type: String,
9412
9412
  inherit: {
9413
9413
  type: Boolean,
@@ -9540,10 +9540,10 @@ var Vc = (function (exports, vue) {
9540
9540
  }
9541
9541
  }
9542
9542
  const IconManager = new Manager();
9543
- const COMPONENT_NAME$29 = "vc-icon";
9543
+ const COMPONENT_NAME$2e = "vc-icon";
9544
9544
  const Icon = /* @__PURE__ */ vue.defineComponent({
9545
- name: COMPONENT_NAME$29,
9546
- props: props$1r,
9545
+ name: COMPONENT_NAME$2e,
9546
+ props: props$1s,
9547
9547
  setup(props2) {
9548
9548
  const viewBox = vue.ref("0 0 1024 1024");
9549
9549
  const path = vue.ref([]);
@@ -9575,7 +9575,7 @@ var Vc = (function (exports, vue) {
9575
9575
  };
9576
9576
  }
9577
9577
  });
9578
- const props$1q = {
9578
+ const props$1r = {
9579
9579
  /**
9580
9580
  * 进入/离开持续时间
9581
9581
  * {enter: 300, leave: 300}
@@ -9738,10 +9738,10 @@ var Vc = (function (exports, vue) {
9738
9738
  }
9739
9739
  };
9740
9740
  };
9741
- const COMPONENT_NAME$28 = "vc-transition";
9741
+ const COMPONENT_NAME$2d = "vc-transition";
9742
9742
  const Transition = vue.defineComponent({
9743
- name: COMPONENT_NAME$28,
9744
- props: props$1q,
9743
+ name: COMPONENT_NAME$2d,
9744
+ props: props$1r,
9745
9745
  // 当不声明emits的情况下,事件存在于attrs中
9746
9746
  inheritAttrs: false,
9747
9747
  setup(props2, { slots, attrs }) {
@@ -9760,10 +9760,10 @@ var Vc = (function (exports, vue) {
9760
9760
  };
9761
9761
  }
9762
9762
  });
9763
- const COMPONENT_NAME$27 = "vc-transition-collapse";
9763
+ const COMPONENT_NAME$2c = "vc-transition-collapse";
9764
9764
  const TransitionCollapse = vue.defineComponent({
9765
- name: COMPONENT_NAME$27,
9766
- props: props$1q,
9765
+ name: COMPONENT_NAME$2c,
9766
+ props: props$1r,
9767
9767
  // 当不声明emits的情况下,事件存在于attrs中
9768
9768
  inheritAttrs: false,
9769
9769
  setup(props2, { slots, attrs: _attrs }) {
@@ -9876,11 +9876,11 @@ var Vc = (function (exports, vue) {
9876
9876
  };
9877
9877
  }
9878
9878
  });
9879
- const COMPONENT_NAME$26 = "vc-transition-fade";
9879
+ const COMPONENT_NAME$2b = "vc-transition-fade";
9880
9880
  const TransitionFade = vue.defineComponent({
9881
- name: COMPONENT_NAME$26,
9881
+ name: COMPONENT_NAME$2b,
9882
9882
  props: {
9883
- ...props$1q,
9883
+ ...props$1r,
9884
9884
  // inheritAttrs必须是false
9885
9885
  style: {
9886
9886
  type: Object,
@@ -9912,11 +9912,11 @@ var Vc = (function (exports, vue) {
9912
9912
  };
9913
9913
  }
9914
9914
  });
9915
- const COMPONENT_NAME$25 = "vc-transition-scale";
9915
+ const COMPONENT_NAME$2a = "vc-transition-scale";
9916
9916
  const TransitionScale = vue.defineComponent({
9917
- name: COMPONENT_NAME$25,
9917
+ name: COMPONENT_NAME$2a,
9918
9918
  props: {
9919
- ...props$1q,
9919
+ ...props$1r,
9920
9920
  mode: {
9921
9921
  type: String,
9922
9922
  default: "both",
@@ -9953,11 +9953,11 @@ var Vc = (function (exports, vue) {
9953
9953
  };
9954
9954
  }
9955
9955
  });
9956
- const COMPONENT_NAME$24 = "vc-transition-slide";
9956
+ const COMPONENT_NAME$29 = "vc-transition-slide";
9957
9957
  const TransitionSlide = vue.defineComponent({
9958
- name: COMPONENT_NAME$24,
9958
+ name: COMPONENT_NAME$29,
9959
9959
  props: {
9960
- ...props$1q,
9960
+ ...props$1r,
9961
9961
  mode: {
9962
9962
  type: String,
9963
9963
  default: "left",
@@ -9994,11 +9994,11 @@ var Vc = (function (exports, vue) {
9994
9994
  };
9995
9995
  }
9996
9996
  });
9997
- const COMPONENT_NAME$23 = "vc-transition-zoom";
9997
+ const COMPONENT_NAME$28 = "vc-transition-zoom";
9998
9998
  const TransitionZoom = vue.defineComponent({
9999
- name: COMPONENT_NAME$23,
9999
+ name: COMPONENT_NAME$28,
10000
10000
  props: {
10001
- ...props$1q,
10001
+ ...props$1r,
10002
10002
  mode: {
10003
10003
  type: String,
10004
10004
  default: "x",
@@ -10035,7 +10035,7 @@ var Vc = (function (exports, vue) {
10035
10035
  };
10036
10036
  }
10037
10037
  });
10038
- const COMPONENT_NAME$22 = "vc-alert";
10038
+ const COMPONENT_NAME$27 = "vc-alert";
10039
10039
  const THEME_MAP = {
10040
10040
  info: ["#456CF6", "#91d5ff", "#e6f7ff"],
10041
10041
  success: ["#52c41a", "#b7eb8f", "#f6ffed"],
@@ -10043,8 +10043,8 @@ var Vc = (function (exports, vue) {
10043
10043
  warning: ["#ffbf00", "#ffe58f", "#fffbe6"]
10044
10044
  };
10045
10045
  const Alert = /* @__PURE__ */ vue.defineComponent({
10046
- name: COMPONENT_NAME$22,
10047
- props: props$1s,
10046
+ name: COMPONENT_NAME$27,
10047
+ props: props$1t,
10048
10048
  setup(props2, {
10049
10049
  slots,
10050
10050
  emit
@@ -10130,7 +10130,7 @@ var Vc = (function (exports, vue) {
10130
10130
  }
10131
10131
  });
10132
10132
  const MAlert = Alert;
10133
- const props$1p = {
10133
+ const props$1q = {
10134
10134
  // canvas配置参数
10135
10135
  options: Object,
10136
10136
  width: {
@@ -10143,10 +10143,10 @@ var Vc = (function (exports, vue) {
10143
10143
  }
10144
10144
  };
10145
10145
  const isTouch = typeof document !== "undefined" && "ontouchend" in document;
10146
- const COMPONENT_NAME$21 = "vc-artboard";
10146
+ const COMPONENT_NAME$26 = "vc-artboard";
10147
10147
  const Artboard = /* @__PURE__ */ vue.defineComponent({
10148
- name: COMPONENT_NAME$21,
10149
- props: props$1p,
10148
+ name: COMPONENT_NAME$26,
10149
+ props: props$1q,
10150
10150
  setup(props2, {
10151
10151
  emit,
10152
10152
  expose
@@ -10321,7 +10321,7 @@ var Vc = (function (exports, vue) {
10321
10321
  }
10322
10322
  });
10323
10323
  const MArtboard = Artboard;
10324
- const props$1o = {
10324
+ const props$1p = {
10325
10325
  size: {
10326
10326
  type: Number,
10327
10327
  default: 28
@@ -10342,10 +10342,10 @@ var Vc = (function (exports, vue) {
10342
10342
  default: false
10343
10343
  }
10344
10344
  };
10345
- const COMPONENT_NAME$20 = "vc-spin";
10345
+ const COMPONENT_NAME$25 = "vc-spin";
10346
10346
  const Spin = /* @__PURE__ */ vue.defineComponent({
10347
- name: COMPONENT_NAME$20,
10348
- props: props$1o,
10347
+ name: COMPONENT_NAME$25,
10348
+ props: props$1p,
10349
10349
  setup(props2, {
10350
10350
  slots
10351
10351
  }) {
@@ -10378,7 +10378,7 @@ var Vc = (function (exports, vue) {
10378
10378
  };
10379
10379
  }
10380
10380
  });
10381
- const props$1n = {
10381
+ const props$1o = {
10382
10382
  wait: {
10383
10383
  type: Number,
10384
10384
  default: 250
@@ -10393,10 +10393,10 @@ var Vc = (function (exports, vue) {
10393
10393
  },
10394
10394
  exclude: RegExp
10395
10395
  };
10396
- const COMPONENT_NAME$1$ = "vc-debounce";
10396
+ const COMPONENT_NAME$24 = "vc-debounce";
10397
10397
  const Debounce = vue.defineComponent({
10398
- name: COMPONENT_NAME$1$,
10399
- props: props$1n,
10398
+ name: COMPONENT_NAME$24,
10399
+ props: props$1o,
10400
10400
  /**
10401
10401
  * 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
10402
10402
  * 如事件onClick
@@ -10435,7 +10435,7 @@ var Vc = (function (exports, vue) {
10435
10435
  };
10436
10436
  }
10437
10437
  });
10438
- const props$1m = {
10438
+ const props$1n = {
10439
10439
  tag: {
10440
10440
  type: String,
10441
10441
  default: "button"
@@ -10464,11 +10464,11 @@ var Vc = (function (exports, vue) {
10464
10464
  default: "button"
10465
10465
  }
10466
10466
  };
10467
- const COMPONENT_NAME$1_ = "vc-button";
10467
+ const COMPONENT_NAME$23 = "vc-button";
10468
10468
  const Button = /* @__PURE__ */ vue.defineComponent({
10469
- name: COMPONENT_NAME$1_,
10469
+ name: COMPONENT_NAME$23,
10470
10470
  emits: ["click"],
10471
- props: props$1m,
10471
+ props: props$1n,
10472
10472
  setup(props2, {
10473
10473
  slots
10474
10474
  }) {
@@ -10528,7 +10528,7 @@ var Vc = (function (exports, vue) {
10528
10528
  };
10529
10529
  }
10530
10530
  });
10531
- const props$1l = {
10531
+ const props$1m = {
10532
10532
  vertical: {
10533
10533
  type: Boolean,
10534
10534
  default: false
@@ -10546,10 +10546,10 @@ var Vc = (function (exports, vue) {
10546
10546
  default: false
10547
10547
  }
10548
10548
  };
10549
- const COMPONENT_NAME$1Z = "vc-button-group";
10549
+ const COMPONENT_NAME$22 = "vc-button-group";
10550
10550
  const ButtonGroup = /* @__PURE__ */ vue.defineComponent({
10551
- name: COMPONENT_NAME$1Z,
10552
- props: props$1l,
10551
+ name: COMPONENT_NAME$22,
10552
+ props: props$1m,
10553
10553
  setup(props2, {
10554
10554
  slots
10555
10555
  }) {
@@ -10571,16 +10571,16 @@ var Vc = (function (exports, vue) {
10571
10571
  });
10572
10572
  const MButton = Button;
10573
10573
  const MButtonGroup = ButtonGroup;
10574
- const props$1k = {
10574
+ const props$1l = {
10575
10575
  tag: {
10576
10576
  type: String,
10577
10577
  default: "div"
10578
10578
  }
10579
10579
  };
10580
- const COMPONENT_NAME$1Y = "vc-calendar";
10580
+ const COMPONENT_NAME$21 = "vc-calendar";
10581
10581
  const Calendar$1 = /* @__PURE__ */ vue.defineComponent({
10582
- name: COMPONENT_NAME$1Y,
10583
- props: props$1k,
10582
+ name: COMPONENT_NAME$21,
10583
+ props: props$1l,
10584
10584
  setup(props2, {
10585
10585
  slots
10586
10586
  }) {
@@ -10592,7 +10592,7 @@ var Vc = (function (exports, vue) {
10592
10592
  }
10593
10593
  });
10594
10594
  const MCalendar = Calendar$1;
10595
- const props$1j = {
10595
+ const props$1k = {
10596
10596
  border: {
10597
10597
  type: Boolean,
10598
10598
  default: true
@@ -10612,10 +10612,10 @@ var Vc = (function (exports, vue) {
10612
10612
  type: String
10613
10613
  }
10614
10614
  };
10615
- const COMPONENT_NAME$1X = "vc-card";
10615
+ const COMPONENT_NAME$20 = "vc-card";
10616
10616
  const Card = /* @__PURE__ */ vue.defineComponent({
10617
- name: COMPONENT_NAME$1X,
10618
- props: props$1j,
10617
+ name: COMPONENT_NAME$20,
10618
+ props: props$1k,
10619
10619
  setup(props2, {
10620
10620
  slots
10621
10621
  }) {
@@ -10639,27 +10639,719 @@ var Vc = (function (exports, vue) {
10639
10639
  }
10640
10640
  });
10641
10641
  const MCard = Card;
10642
- const props$1i = {
10643
- tag: {
10642
+ const DRAG_CLICK_SUPPRESS_PX = 5;
10643
+ const swallowNextClickFromDrag = () => {
10644
+ let invoked = false;
10645
+ const options = { capture: true, once: true };
10646
+ const swallow = (e) => {
10647
+ invoked = true;
10648
+ e.preventDefault();
10649
+ e.stopPropagation();
10650
+ e.stopImmediatePropagation();
10651
+ };
10652
+ document.addEventListener("click", swallow, options);
10653
+ setTimeout(() => !invoked && document.removeEventListener("click", swallow, options), 0);
10654
+ };
10655
+ const useCarousel = (wrapper, content, expose) => {
10656
+ const instance = vue.getCurrentInstance();
10657
+ const props2 = instance.props;
10658
+ const { emit } = instance;
10659
+ const items = vue.ref([]);
10660
+ const activeIndex = vue.ref(-1);
10661
+ const timer = vue.ref(null);
10662
+ const offset = vue.ref(0);
10663
+ const carouselId = vue.ref(getUid("carousel"));
10664
+ const start = vue.ref();
10665
+ const startX = vue.ref();
10666
+ const startY = vue.ref();
10667
+ const dragMovedPastThreshold = vue.ref(false);
10668
+ const allowTransition = vue.ref(false);
10669
+ const direction = vue.computed(() => {
10670
+ return props2.vertical ? "vertical" : "horizontal";
10671
+ });
10672
+ const hasLabel = vue.computed(() => {
10673
+ return items.value.some((item) => item.props.label.toString().length > 0);
10674
+ });
10675
+ const dotsClasses = vue.computed(() => {
10676
+ const classes = ["is-" + direction.value];
10677
+ if (hasLabel.value) {
10678
+ classes.push("is-labels");
10679
+ }
10680
+ if (props2.dots === "outside" || props2.card) {
10681
+ classes.push("is-outside");
10682
+ }
10683
+ return classes;
10684
+ });
10685
+ const resetItems = (oldIndex) => {
10686
+ items.value.forEach((item, index) => {
10687
+ item.exposed?.reset?.(index, activeIndex.value, oldIndex);
10688
+ });
10689
+ };
10690
+ const playSlides = () => {
10691
+ allowTransition.value = true;
10692
+ if (activeIndex.value < items.value.length - 1) {
10693
+ activeIndex.value++;
10694
+ } else if (props2.loop) {
10695
+ activeIndex.value = 0;
10696
+ }
10697
+ };
10698
+ const pauseTimer = () => {
10699
+ if (timer.value) {
10700
+ clearInterval(timer.value);
10701
+ timer.value = null;
10702
+ }
10703
+ };
10704
+ const startTimer = () => {
10705
+ if (props2.t <= 0 || !props2.autoplay || timer.value) return;
10706
+ timer.value = setInterval(playSlides, props2.t);
10707
+ };
10708
+ const setActiveItem = (index) => {
10709
+ if (typeof index === "string") {
10710
+ const filteredItems = items.value.filter((item) => item.props.name === index);
10711
+ if (filteredItems.length > 0) {
10712
+ index = items.value.indexOf(filteredItems[0]);
10713
+ }
10714
+ }
10715
+ index = Number(index);
10716
+ if (isNaN(index) || index !== Math.floor(index)) {
10717
+ throw new VcError("carousel", "索引必须是整数");
10718
+ }
10719
+ const length = items.value.length;
10720
+ const oldIndex = activeIndex.value;
10721
+ if (index < 0) {
10722
+ activeIndex.value = props2.loop ? length - 1 : 0;
10723
+ } else if (index >= length) {
10724
+ activeIndex.value = props2.loop ? 0 : length - 1;
10725
+ } else {
10726
+ activeIndex.value = index;
10727
+ }
10728
+ if (oldIndex === activeIndex.value) {
10729
+ resetItems(oldIndex);
10730
+ }
10731
+ };
10732
+ const prev = () => {
10733
+ setActiveItem(activeIndex.value - 1);
10734
+ };
10735
+ const next = () => {
10736
+ setActiveItem(activeIndex.value + 1);
10737
+ };
10738
+ const handleDotClick = (index) => {
10739
+ activeIndex.value = index;
10740
+ };
10741
+ const handleStart = (e) => {
10742
+ allowTransition.value = true;
10743
+ if (!props2.draggable) return;
10744
+ pauseTimer();
10745
+ start.value = true;
10746
+ dragMovedPastThreshold.value = false;
10747
+ startX.value = e.screenX;
10748
+ startY.value = e.screenY;
10749
+ };
10750
+ const handleMove = (e) => {
10751
+ if (!start.value || !props2.draggable) return;
10752
+ offset.value = !props2.vertical ? e.screenX - startX.value : e.screenY - startY.value;
10753
+ if (Math.abs(offset.value) > DRAG_CLICK_SUPPRESS_PX) {
10754
+ dragMovedPastThreshold.value = true;
10755
+ }
10756
+ resetItems();
10757
+ };
10758
+ const handleEnd = () => {
10759
+ if (!props2.draggable) return;
10760
+ const shouldSwallowClick = dragMovedPastThreshold.value;
10761
+ start.value = false;
10762
+ startTimer();
10763
+ const $offset = Math.abs(offset.value);
10764
+ const $direction = offset.value > 0;
10765
+ offset.value = 0;
10766
+ if ($offset > 5) {
10767
+ $direction && prev();
10768
+ !$direction && next();
10769
+ } else {
10770
+ resetItems();
10771
+ }
10772
+ if (shouldSwallowClick) {
10773
+ swallowNextClickFromDrag();
10774
+ }
10775
+ dragMovedPastThreshold.value = false;
10776
+ };
10777
+ vue.watch(
10778
+ () => items.value,
10779
+ (v) => {
10780
+ if (v.length > 0) setActiveItem(props2.initialIndex);
10781
+ }
10782
+ );
10783
+ vue.watch(
10784
+ () => activeIndex.value,
10785
+ (v, oldV) => {
10786
+ resetItems(oldV);
10787
+ emit("change", v, oldV);
10788
+ }
10789
+ );
10790
+ vue.watch(
10791
+ () => props2.autoplay,
10792
+ (v) => {
10793
+ v ? startTimer() : pauseTimer();
10794
+ }
10795
+ );
10796
+ vue.watch(
10797
+ () => props2.loop,
10798
+ () => {
10799
+ setActiveItem(activeIndex.value);
10800
+ }
10801
+ );
10802
+ vue.watch(
10803
+ () => props2.t,
10804
+ () => {
10805
+ pauseTimer();
10806
+ startTimer();
10807
+ }
10808
+ );
10809
+ vue.onMounted(() => {
10810
+ vue.nextTick(() => {
10811
+ if (wrapper.value) Resize.on(wrapper.value, resetItems);
10812
+ if (props2.initialIndex < items.value.length && props2.initialIndex >= 0) {
10813
+ activeIndex.value = props2.initialIndex;
10814
+ }
10815
+ startTimer();
10816
+ });
10817
+ });
10818
+ vue.onBeforeUnmount(() => {
10819
+ if (wrapper.value) Resize.off(wrapper.value, resetItems);
10820
+ pauseTimer();
10821
+ startTimer();
10822
+ });
10823
+ const add = (item) => {
10824
+ if (!item) return;
10825
+ vue.nextTick(() => {
10826
+ if (content.value) {
10827
+ const index = Array.from(content.value.children).filter((i) => /vcm?-carousel-item/.test(i.className)).indexOf(item.vnode.el);
10828
+ items.value.splice(index, 0, item);
10829
+ return;
10830
+ }
10831
+ items.value.push(item);
10832
+ });
10833
+ };
10834
+ const remove = (item) => {
10835
+ if (!item) return;
10836
+ items.value.splice(items.value.indexOf(item), 1);
10837
+ };
10838
+ vue.provide("vc-carousel", {
10839
+ props: props2,
10840
+ items,
10841
+ offset,
10842
+ allowTransition,
10843
+ setActiveItem,
10844
+ wrapper,
10845
+ content,
10846
+ add,
10847
+ remove
10848
+ });
10849
+ expose({
10850
+ setActiveItem,
10851
+ prev,
10852
+ next
10853
+ });
10854
+ return {
10855
+ carouselId,
10856
+ allowTransition,
10857
+ items,
10858
+ activeIndex,
10859
+ offset,
10860
+ direction,
10861
+ hasLabel,
10862
+ dotsClasses,
10863
+ start,
10864
+ startX,
10865
+ startY,
10866
+ handleStart,
10867
+ handleMove,
10868
+ handleEnd,
10869
+ handleDotClick,
10870
+ prev,
10871
+ next,
10872
+ setActiveItem,
10873
+ pauseTimer,
10874
+ startTimer
10875
+ };
10876
+ };
10877
+ const props$1j = {
10878
+ t: {
10879
+ type: Number,
10880
+ default: 3e3
10881
+ },
10882
+ card: Boolean,
10883
+ gutter: {
10884
+ type: Number,
10885
+ default: 0
10886
+ },
10887
+ height: [String, Number],
10888
+ initialIndex: {
10889
+ type: Number,
10890
+ default: 0
10891
+ },
10892
+ trigger: {
10644
10893
  type: String,
10645
- default: "div"
10894
+ default: "hover"
10895
+ },
10896
+ autoplay: {
10897
+ type: Boolean,
10898
+ default: true
10899
+ },
10900
+ dots: {
10901
+ type: [String, Boolean],
10902
+ default: "bottom"
10903
+ // bottom/outside | false
10904
+ },
10905
+ arrow: {
10906
+ type: [String, Boolean],
10907
+ default: "hover"
10908
+ // hover/always | false
10909
+ },
10910
+ loop: {
10911
+ type: Boolean,
10912
+ default: true
10913
+ },
10914
+ vertical: {
10915
+ type: Boolean,
10916
+ default: false
10917
+ },
10918
+ draggable: {
10919
+ type: Boolean,
10920
+ default: true
10646
10921
  }
10647
10922
  };
10648
- const COMPONENT_NAME$1W = "vc-carousel";
10923
+ const COMPONENT_NAME$1$ = "vc-carousel";
10649
10924
  const Carousel = /* @__PURE__ */ vue.defineComponent({
10650
- name: COMPONENT_NAME$1W,
10925
+ name: COMPONENT_NAME$1$,
10926
+ props: props$1j,
10927
+ setup(props2, {
10928
+ slots,
10929
+ expose
10930
+ }) {
10931
+ const isHover = vue.ref(false);
10932
+ const wrapper = vue.ref(null);
10933
+ const content = vue.ref(null);
10934
+ const arrowDisplay = vue.computed(() => {
10935
+ return props2.arrow && !props2.vertical;
10936
+ });
10937
+ const carousel = useCarousel(wrapper, content, expose);
10938
+ const itemInStage = (item, index, items) => {
10939
+ const length = items.length;
10940
+ const isInStage = item.exposed.isInStage.value;
10941
+ if (index === length - 1 && isInStage && items[0].exposed.isActive.value || isInStage && items[index + 1] && items[index + 1].exposed.isActive.value) {
10942
+ return "left";
10943
+ } else if (index === 0 && isInStage && items[length - 1].exposed.isActive.value || isInStage && items[index - 1] && items[index - 1].exposed.isActive.value) {
10944
+ return "right";
10945
+ }
10946
+ return false;
10947
+ };
10948
+ const handleButtonEnter = (arrow) => {
10949
+ if (props2.vertical) return;
10950
+ carousel.items.value.forEach((item, index, items) => {
10951
+ if (arrow === itemInStage(item, index, items)) {
10952
+ item.exposed.isHover.value = true;
10953
+ }
10954
+ });
10955
+ };
10956
+ const handleButtonLeave = () => {
10957
+ if (props2.vertical) return;
10958
+ carousel.items.value.forEach((item) => {
10959
+ item.exposed.isHover.value = false;
10960
+ });
10961
+ };
10962
+ const handleDotHover = (index) => {
10963
+ if (props2.trigger === "hover" && index !== carousel.activeIndex.value) {
10964
+ carousel.activeIndex.value = index;
10965
+ }
10966
+ };
10967
+ const handleMouseEnter = () => {
10968
+ isHover.value = true;
10969
+ carousel.pauseTimer();
10970
+ };
10971
+ const handleMouseLeave = () => {
10972
+ isHover.value = false;
10973
+ carousel.startTimer();
10974
+ };
10975
+ const throttledArrowClick = throttle$1(carousel.setActiveItem);
10976
+ const throttledDotHover = throttle$1(handleDotHover);
10977
+ return () => {
10978
+ return vue.createVNode("div", {
10979
+ "ref": wrapper,
10980
+ "class": ["vc-carousel", `is-${carousel.direction.value}`],
10981
+ "onMousedown": vue.withModifiers(carousel.handleStart, ["stop", "prevent"]),
10982
+ "onMousemove": vue.withModifiers(carousel.handleMove, ["stop", "prevent"]),
10983
+ "onMouseup": vue.withModifiers(carousel.handleEnd, ["stop", "prevent"]),
10984
+ "onMouseenter": vue.withModifiers(handleMouseEnter, ["stop"]),
10985
+ "onMouseleave": vue.withModifiers(handleMouseLeave, ["stop"])
10986
+ }, [vue.createVNode("div", {
10987
+ "ref": content,
10988
+ "class": "vc-carousel__wrapper",
10989
+ "style": {
10990
+ height: props2.height ? `${props2.height}px` : "auto"
10991
+ }
10992
+ }, [arrowDisplay.value && vue.createVNode(TransitionSlide, {
10993
+ "mode": "left-part"
10994
+ }, {
10995
+ default: () => [vue.withDirectives(vue.createVNode("button", {
10996
+ "type": "button",
10997
+ "class": "vc-carousel__arrow is-left-arrow",
10998
+ "onMouseenter": () => handleButtonEnter("left"),
10999
+ "onMouseleave": handleButtonLeave,
11000
+ "onClick": vue.withModifiers(() => throttledArrowClick(carousel.activeIndex.value - 1), ["stop"])
11001
+ }, [vue.createVNode(Icon, {
11002
+ "type": "left"
11003
+ }, null)]), [[vue.vShow, (props2.arrow === "always" || isHover.value) && (props2.loop || carousel.activeIndex.value > 0)]])]
11004
+ }), arrowDisplay.value && vue.createVNode(TransitionSlide, {
11005
+ "mode": "right-part"
11006
+ }, {
11007
+ default: () => [vue.withDirectives(vue.createVNode("button", {
11008
+ "type": "button",
11009
+ "class": "vc-carousel__arrow is-right-arrow",
11010
+ "onMouseenter": () => handleButtonEnter("right"),
11011
+ "onMouseleave": handleButtonLeave,
11012
+ "onClick": vue.withModifiers(() => throttledArrowClick(carousel.activeIndex.value + 1), ["stop"])
11013
+ }, [vue.createVNode(Icon, {
11014
+ "type": "right"
11015
+ }, null)]), [[vue.vShow, (props2.arrow === "always" || isHover.value) && (props2.loop || carousel.activeIndex.value < carousel.items.value.length - 1)]])]
11016
+ }), slots.default?.()]), props2.dots && vue.createVNode("ul", {
11017
+ "class": ["vc-carousel__dots", ...carousel.dotsClasses.value]
11018
+ }, [carousel.items.value.map((item, index) => vue.createVNode("li", {
11019
+ "key": index,
11020
+ "class": ["vc-carousel__dot", `is-${carousel.direction.value}`, {
11021
+ "is-active": index === carousel.activeIndex.value
11022
+ }],
11023
+ "onMouseenter": () => throttledDotHover(index),
11024
+ "onClick": () => carousel.handleDotClick(index)
11025
+ }, [vue.createVNode("button", {
11026
+ "class": "vc-carousel__button"
11027
+ }, [carousel.hasLabel.value && vue.createVNode("span", null, [item.props.label])])]))])]);
11028
+ };
11029
+ }
11030
+ });
11031
+ const props$1i = {
11032
+ name: String,
11033
+ label: {
11034
+ type: [String, Number],
11035
+ default: ""
11036
+ },
11037
+ // card大小
11038
+ width: {
11039
+ type: [Number, String],
11040
+ default: "70%"
11041
+ },
11042
+ // card之间间距, 或者滑动时候的间距
11043
+ gutter: {
11044
+ type: Number,
11045
+ default: 0
11046
+ },
11047
+ scale: {
11048
+ type: Number,
11049
+ default: 0.83
11050
+ }
11051
+ };
11052
+ const TRANSFORM = prefixStyle("transform").camel;
11053
+ const useCarouselItem = (expose) => {
11054
+ const instance = vue.getCurrentInstance();
11055
+ const carousel = vue.inject("vc-carousel", {});
11056
+ const props2 = instance.props;
11057
+ const translate = vue.ref(0);
11058
+ const currentScale = vue.ref(1);
11059
+ const isHover = vue.ref(false);
11060
+ const isActive = vue.ref(false);
11061
+ const isReady = vue.ref(false);
11062
+ const isInStage = vue.ref(false);
11063
+ const isAnimating = vue.ref(false);
11064
+ const isVertical = vue.computed(() => {
11065
+ return carousel.props.vertical;
11066
+ });
11067
+ const isCard = vue.computed(() => {
11068
+ return carousel.props.card;
11069
+ });
11070
+ const isMove = vue.computed(() => {
11071
+ return carousel.offset.value !== 0;
11072
+ });
11073
+ const itemGutter = vue.computed(() => {
11074
+ return props2.gutter || carousel.props.gutter || 0;
11075
+ });
11076
+ const itemStyle = vue.computed(() => {
11077
+ const translateType = isVertical.value ? "translateY" : "translateX";
11078
+ if (carousel.props.card) {
11079
+ return {
11080
+ [TRANSFORM]: `${translateType}(${translate.value}px) scale(${currentScale.value})`,
11081
+ width: props2.width
11082
+ };
11083
+ } else {
11084
+ return {
11085
+ [TRANSFORM]: `${translateType}(${translate.value}px) scale(${currentScale.value})`,
11086
+ width: itemGutter.value ? props2.width : "100%"
11087
+ };
11088
+ }
11089
+ });
11090
+ vue.onBeforeMount(() => {
11091
+ carousel.add?.(instance);
11092
+ if (!isCard.value && itemGutter.value && carousel.props.loop) {
11093
+ throw new VcError("carousel", "slide模式下loop不能为true");
11094
+ }
11095
+ });
11096
+ vue.onBeforeUnmount(() => {
11097
+ carousel.remove?.(instance);
11098
+ });
11099
+ const processIndex = (index, activeIndex, length) => {
11100
+ if (activeIndex === 0 && index === length - 1) {
11101
+ return -1;
11102
+ } else if (activeIndex === length - 1 && index === 0) {
11103
+ return length;
11104
+ } else if (index < activeIndex - 1 && activeIndex - index >= length / 2) {
11105
+ return length + 1;
11106
+ } else if (index > activeIndex + 1 && index - activeIndex >= length / 2) {
11107
+ return -2;
11108
+ }
11109
+ return index;
11110
+ };
11111
+ const calcCardTranslate = (index, activeIndex) => {
11112
+ let value;
11113
+ const widthNumber = +props2.width / 100;
11114
+ const parentW = carousel.wrapper.value.offsetWidth;
11115
+ if (isInStage.value) {
11116
+ if (index === activeIndex) {
11117
+ value = parentW * (1 - widthNumber) / 2;
11118
+ } else if (index > activeIndex) {
11119
+ value = parentW * (1 + widthNumber * props2.scale) / 2 + itemGutter.value;
11120
+ } else {
11121
+ value = -(parentW * ((widthNumber * props2.scale - 1) / 2 + widthNumber)) - itemGutter.value;
11122
+ }
11123
+ } else if (index < activeIndex) {
11124
+ value = parentW * (1 - widthNumber) / 2;
11125
+ } else {
11126
+ value = parentW * (1 - widthNumber) / 2;
11127
+ }
11128
+ return value;
11129
+ };
11130
+ const calcSlideOffset = (index, activeIndex, wrapperWidth) => {
11131
+ const { length } = carousel.items.value;
11132
+ const offset = wrapperWidth - (carousel.wrapper?.value?.offsetWidth || 0);
11133
+ const gutter = itemGutter.value;
11134
+ if (!gutter || isVertical.value) return 0;
11135
+ let slideOffset = 0;
11136
+ if (length === 1) {
11137
+ return offset / 2;
11138
+ }
11139
+ if (activeIndex == 0) {
11140
+ if (index - activeIndex === 0) {
11141
+ slideOffset = gutter;
11142
+ } else if (index - activeIndex === 1) {
11143
+ slideOffset = -offset + gutter * 2;
11144
+ }
11145
+ }
11146
+ if (activeIndex !== 0 && activeIndex != length - 1) {
11147
+ if (index - activeIndex === 0) {
11148
+ slideOffset = offset / 2;
11149
+ } else if (index - activeIndex === 1) {
11150
+ slideOffset = -offset / 2 + gutter;
11151
+ } else if (index - activeIndex === -1) {
11152
+ slideOffset = offset * 3 / 2 - gutter;
11153
+ }
11154
+ }
11155
+ if (activeIndex == length - 1) {
11156
+ if (index - activeIndex === 0) {
11157
+ slideOffset = offset - gutter;
11158
+ } else if (index - activeIndex === -1) {
11159
+ slideOffset = offset * 2 - gutter * 2;
11160
+ }
11161
+ }
11162
+ return slideOffset;
11163
+ };
11164
+ const calcTranslate = (index, activeIndex) => {
11165
+ const distance = carousel.wrapper.value[isVertical.value ? "offsetHeight" : "offsetWidth"];
11166
+ const slideOffset = calcSlideOffset(index, activeIndex, distance);
11167
+ return distance * (index - activeIndex) + carousel.offset.value + slideOffset;
11168
+ };
11169
+ const reset = (index, activeIndex, oldIndex) => {
11170
+ const { length } = carousel.items.value;
11171
+ if (carousel.allowTransition.value && !isCard.value && oldIndex !== void 0) {
11172
+ isAnimating.value = index === activeIndex || index === oldIndex;
11173
+ if (!isVertical.value && !isAnimating.value && itemGutter.value && (index - activeIndex === 1 || index - activeIndex === -1)) {
11174
+ isAnimating.value = true;
11175
+ }
11176
+ }
11177
+ if (index !== activeIndex && length > 2 && carousel.props.loop) {
11178
+ index = processIndex(index, activeIndex, length);
11179
+ }
11180
+ if (isCard.value) {
11181
+ if (isVertical.value) {
11182
+ throw new VcError("carousel", "卡片模式不支持垂直方向");
11183
+ }
11184
+ isInStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
11185
+ isActive.value = index === activeIndex;
11186
+ translate.value = calcCardTranslate(index, activeIndex);
11187
+ currentScale.value = isActive.value ? 1 : props2.scale;
11188
+ } else {
11189
+ isActive.value = index === activeIndex;
11190
+ translate.value = calcTranslate(index, activeIndex);
11191
+ }
11192
+ isReady.value = true;
11193
+ };
11194
+ const handleItemClick = () => {
11195
+ if (parent && isCard.value) {
11196
+ const index = carousel.items.value.indexOf(instance);
11197
+ carousel.setActiveItem(index);
11198
+ }
11199
+ };
11200
+ expose({
11201
+ reset,
11202
+ isInStage,
11203
+ isHover,
11204
+ isActive
11205
+ });
11206
+ return {
11207
+ translate,
11208
+ currentScale,
11209
+ isHover,
11210
+ isActive,
11211
+ isReady,
11212
+ isInStage,
11213
+ isAnimating,
11214
+ isVertical,
11215
+ isCard,
11216
+ isMove,
11217
+ itemGutter,
11218
+ itemStyle,
11219
+ reset,
11220
+ handleItemClick
11221
+ };
11222
+ };
11223
+ const COMPONENT_NAME$1_ = "vc-carousel-item";
11224
+ const CarouselItem = /* @__PURE__ */ vue.defineComponent({
11225
+ name: COMPONENT_NAME$1_,
10651
11226
  props: props$1i,
11227
+ setup(_, {
11228
+ slots,
11229
+ expose
11230
+ }) {
11231
+ const it = useCarouselItem(expose);
11232
+ return () => {
11233
+ return vue.withDirectives(vue.createVNode("div", {
11234
+ "class": ["vc-carousel-item", {
11235
+ "is-active": it.isActive.value,
11236
+ "is-card": it.isCard.value,
11237
+ "is-in-stage": it.isInStage.value,
11238
+ "is-hover": it.isHover.value,
11239
+ "is-animating": it.isAnimating.value && !it.isMove.value
11240
+ }],
11241
+ "style": it.itemStyle.value,
11242
+ "onClick": it.handleItemClick
11243
+ }, [it.isCard.value && vue.withDirectives(vue.createVNode("div", {
11244
+ "class": "vc-carousel-item__mask"
11245
+ }, null), [[vue.vShow, !it.isActive.value]]), slots.default?.()]), [[vue.vShow, it.isReady.value]]);
11246
+ };
11247
+ }
11248
+ });
11249
+ const COMPONENT_NAME$1Z = "vcm-carousel";
11250
+ const MCarousel = /* @__PURE__ */ vue.defineComponent({
11251
+ name: COMPONENT_NAME$1Z,
11252
+ props: {
11253
+ ...props$1j,
11254
+ dots: {
11255
+ type: [String, Boolean],
11256
+ default: false
11257
+ },
11258
+ indicator: {
11259
+ type: Boolean,
11260
+ default: true
11261
+ }
11262
+ },
10652
11263
  setup(props2, {
10653
- slots
11264
+ slots,
11265
+ expose
10654
11266
  }) {
11267
+ const wrapper = vue.ref(null);
11268
+ const content = vue.ref(null);
11269
+ const carousel = useCarousel(wrapper, content, expose);
11270
+ let scrollStatus = 0;
11271
+ const handleTouchStart = (e) => {
11272
+ carousel.handleStart(e.touches[0]);
11273
+ scrollStatus = 0;
11274
+ };
11275
+ const handleTouchMove = (e) => {
11276
+ const absX = Math.abs(e.touches[0].screenX - carousel.startX.value);
11277
+ const absY = Math.abs(e.touches[0].screenY - carousel.startY.value);
11278
+ if (!props2.vertical && absX > absY && scrollStatus !== 1) {
11279
+ e.preventDefault();
11280
+ carousel.handleMove(e.touches[0]);
11281
+ scrollStatus = 2;
11282
+ return;
11283
+ }
11284
+ if (props2.vertical && absY > absX) {
11285
+ e.preventDefault();
11286
+ carousel.handleMove(e.touches[0]);
11287
+ return;
11288
+ }
11289
+ if (scrollStatus === 0) {
11290
+ scrollStatus = 1;
11291
+ }
11292
+ };
11293
+ const handleTouchEnd = () => {
11294
+ carousel.handleEnd();
11295
+ scrollStatus = 0;
11296
+ };
10655
11297
  return () => {
10656
11298
  return vue.createVNode("div", {
10657
- "class": "vc-carousel"
10658
- }, [slots?.default?.()]);
11299
+ "ref": wrapper,
11300
+ "class": ["vcm-carousel", `is-${carousel.direction.value}`],
11301
+ "onTouchstart": vue.withModifiers(handleTouchStart, ["stop"]),
11302
+ "onTouchmove": vue.withModifiers(handleTouchMove, ["stop"]),
11303
+ "onTouchend": vue.withModifiers(handleTouchEnd, ["stop"])
11304
+ }, [vue.createVNode("div", {
11305
+ "ref": content,
11306
+ "style": {
11307
+ height: props2.height ? `${props2.height}px` : "auto"
11308
+ },
11309
+ "class": "vcm-carousel__wrapper"
11310
+ }, [slots.default?.()]), props2.dots && vue.createVNode("ul", {
11311
+ "class": ["vcm-carousel__dots", ...carousel.dotsClasses.value]
11312
+ }, [carousel.items.value.map((_, index) => vue.createVNode("li", {
11313
+ "key": index,
11314
+ "class": ["vcm-carousel__dot", "is-" + carousel.direction.value, {
11315
+ "is-active": index === carousel.activeIndex.value
11316
+ }],
11317
+ "onClick": (e) => {
11318
+ e.stopPropagation();
11319
+ carousel.handleDotClick(index);
11320
+ }
11321
+ }, [vue.createVNode("button", {
11322
+ "class": "vcm-carousel__button"
11323
+ }, [carousel.hasLabel.value && vue.createVNode("span", null, [carousel.items.value[index].props.label])])]))]), !props2.card && props2.indicator && vue.createVNode("div", {
11324
+ "class": "vcm-carousel__indicator"
11325
+ }, [vue.createVNode("span", null, [carousel.activeIndex.value + 1]), vue.createVNode("span", null, [vue.createTextVNode(" / ")]), vue.createVNode("span", null, [carousel.items.value.length])])]);
11326
+ };
11327
+ }
11328
+ });
11329
+ const COMPONENT_NAME$1Y = "vcm-carousel-item";
11330
+ const MCarouselItem = /* @__PURE__ */ vue.defineComponent({
11331
+ name: COMPONENT_NAME$1Y,
11332
+ props: props$1i,
11333
+ setup(_, {
11334
+ slots,
11335
+ expose
11336
+ }) {
11337
+ const it = useCarouselItem(expose);
11338
+ return () => {
11339
+ return vue.withDirectives(vue.createVNode("div", {
11340
+ "style": it.itemStyle.value,
11341
+ "class": {
11342
+ "vcm-carousel-item": true,
11343
+ "is-active": it.isActive.value,
11344
+ "is-card": it.isCard.value,
11345
+ "is-animating": it.isAnimating.value && !it.isMove.value,
11346
+ "is-in-stage": it.isInStage.value
11347
+ },
11348
+ "onClick": it.handleItemClick
11349
+ }, [it.isCard.value && !it.isActive.value && vue.createVNode("div", {
11350
+ "class": "vcm-carousel-item__mask"
11351
+ }, null), slots.default?.()]), [[vue.vShow, it.isReady.value]]);
10659
11352
  };
10660
11353
  }
10661
11354
  });
10662
- const MCarousel = Carousel;
10663
11355
  const getSelectedData = (value = [], source = []) => {
10664
11356
  const label = [];
10665
11357
  const data = [];
@@ -10932,9 +11624,9 @@ var Vc = (function (exports, vue) {
10932
11624
  expose?.(exposed);
10933
11625
  return exposed;
10934
11626
  };
10935
- const COMPONENT_NAME$1V = "vc-input";
11627
+ const COMPONENT_NAME$1X = "vc-input";
10936
11628
  const Input$1 = /* @__PURE__ */ vue.defineComponent({
10937
- name: COMPONENT_NAME$1V,
11629
+ name: COMPONENT_NAME$1X,
10938
11630
  inheritAttrs: false,
10939
11631
  props: {
10940
11632
  ...props$1h,
@@ -11265,9 +11957,9 @@ var Vc = (function (exports, vue) {
11265
11957
  handleStepper
11266
11958
  };
11267
11959
  };
11268
- const COMPONENT_NAME$1U = "vc-input-number";
11960
+ const COMPONENT_NAME$1W = "vc-input-number";
11269
11961
  const InputNumber = /* @__PURE__ */ vue.defineComponent({
11270
- name: COMPONENT_NAME$1U,
11962
+ name: COMPONENT_NAME$1W,
11271
11963
  props: props$1g,
11272
11964
  inheritAttrs: false,
11273
11965
  setup(props2, {
@@ -11327,9 +12019,9 @@ var Vc = (function (exports, vue) {
11327
12019
  default: true
11328
12020
  }
11329
12021
  };
11330
- const COMPONENT_NAME$1T = "vc-input-search";
12022
+ const COMPONENT_NAME$1V = "vc-input-search";
11331
12023
  const InputSearch = /* @__PURE__ */ vue.defineComponent({
11332
- name: COMPONENT_NAME$1T,
12024
+ name: COMPONENT_NAME$1V,
11333
12025
  props: props$1f,
11334
12026
  inheritAttrs: false,
11335
12027
  setup(props2, {
@@ -11717,9 +12409,9 @@ var Vc = (function (exports, vue) {
11717
12409
  default: () => null
11718
12410
  }
11719
12411
  };
11720
- const COMPONENT_NAME$1S = "vc-customer";
12412
+ const COMPONENT_NAME$1U = "vc-customer";
11721
12413
  const Customer = vue.defineComponent({
11722
- name: COMPONENT_NAME$1S,
12414
+ name: COMPONENT_NAME$1U,
11723
12415
  props: props$1c,
11724
12416
  setup(props2, context) {
11725
12417
  return () => vue.h(() => {
@@ -11792,7 +12484,7 @@ var Vc = (function (exports, vue) {
11792
12484
  return this.target.finally(callback);
11793
12485
  }
11794
12486
  }
11795
- const COMPONENT_NAME$1R = "vc-portal";
12487
+ const COMPONENT_NAME$1T = "vc-portal";
11796
12488
  class Portal {
11797
12489
  /**
11798
12490
  * 清理Portals类型组件
@@ -11842,7 +12534,7 @@ var Vc = (function (exports, vue) {
11842
12534
  this.wrapper = wrapper;
11843
12535
  this.globalOptions = {
11844
12536
  ...options,
11845
- name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1R)
12537
+ name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1T)
11846
12538
  };
11847
12539
  }
11848
12540
  popup(propsData, options) {
@@ -11935,12 +12627,12 @@ var Vc = (function (exports, vue) {
11935
12627
  components,
11936
12628
  uses,
11937
12629
  slots,
11938
- parent,
12630
+ parent: parent2,
11939
12631
  propsData,
11940
12632
  ...rest
11941
12633
  } = options;
11942
12634
  let useAllNodes = fragment;
11943
- const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1R)}` : name$;
12635
+ const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1T)}` : name$;
11944
12636
  const container = document.createElement(tag);
11945
12637
  const root = typeof el2 === "object" ? el2 : document.querySelector(el2 || "body");
11946
12638
  !alive && Portal.leafs.get(name)?.destroy();
@@ -11974,8 +12666,8 @@ var Vc = (function (exports, vue) {
11974
12666
  } else {
11975
12667
  const wrapper = this.wrapper;
11976
12668
  const app = vue.createApp({
11977
- name: COMPONENT_NAME$1R,
11978
- parent,
12669
+ name: COMPONENT_NAME$1T,
12670
+ parent: parent2,
11979
12671
  setup() {
11980
12672
  if (alive) {
11981
12673
  const handleExtra = (e) => {
@@ -12083,9 +12775,9 @@ var Vc = (function (exports, vue) {
12083
12775
  default: "div"
12084
12776
  }
12085
12777
  };
12086
- const COMPONENT_NAME$1Q = "vc-portal-view";
12778
+ const COMPONENT_NAME$1S = "vc-portal-view";
12087
12779
  const PortalView = /* @__PURE__ */ vue.defineComponent({
12088
- name: COMPONENT_NAME$1Q,
12780
+ name: COMPONENT_NAME$1S,
12089
12781
  props: props$1b,
12090
12782
  setup(props2, {
12091
12783
  slots
@@ -12099,9 +12791,9 @@ var Vc = (function (exports, vue) {
12099
12791
  };
12100
12792
  }
12101
12793
  });
12102
- const COMPONENT_NAME$1P = "vc-popover-wrapper";
12794
+ const COMPONENT_NAME$1R = "vc-popover-wrapper";
12103
12795
  const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
12104
- name: COMPONENT_NAME$1P,
12796
+ name: COMPONENT_NAME$1R,
12105
12797
  props: props$1e,
12106
12798
  emits: ["portal-fulfilled", "close"],
12107
12799
  setup(props2, {
@@ -12323,9 +13015,9 @@ var Vc = (function (exports, vue) {
12323
13015
  const PopoverPortal = new Portal(PopoverWrapper, {
12324
13016
  leaveDelay: 0
12325
13017
  });
12326
- const COMPONENT_NAME$1O = "vc-popover";
13018
+ const COMPONENT_NAME$1Q = "vc-popover";
12327
13019
  const Popover$1 = /* @__PURE__ */ vue.defineComponent({
12328
- name: COMPONENT_NAME$1O,
13020
+ name: COMPONENT_NAME$1Q,
12329
13021
  props: props$1d,
12330
13022
  emits: ["update:modelValue", "visible-change", "ready", "close"],
12331
13023
  setup(props2, {
@@ -12453,9 +13145,9 @@ var Vc = (function (exports, vue) {
12453
13145
  const Popover = Object.assign(Popover$1, {
12454
13146
  open: PopoverPortal.popup.bind(PopoverPortal)
12455
13147
  });
12456
- const COMPONENT_NAME$1N = "vc-cascader-column";
13148
+ const COMPONENT_NAME$1P = "vc-cascader-column";
12457
13149
  const CascaderColumn = /* @__PURE__ */ vue.defineComponent({
12458
- name: COMPONENT_NAME$1N,
13150
+ name: COMPONENT_NAME$1P,
12459
13151
  emits: ["click", "change"],
12460
13152
  props: {
12461
13153
  data: {
@@ -12658,9 +13350,9 @@ var Vc = (function (exports, vue) {
12658
13350
  default: true
12659
13351
  }
12660
13352
  };
12661
- const COMPONENT_NAME$1M = "vc-cascader";
13353
+ const COMPONENT_NAME$1O = "vc-cascader";
12662
13354
  const Cascader = /* @__PURE__ */ vue.defineComponent({
12663
- name: COMPONENT_NAME$1M,
13355
+ name: COMPONENT_NAME$1O,
12664
13356
  inheritAttrs: false,
12665
13357
  props: props$19,
12666
13358
  emits: ["update:modelValue", "visible-change", "ready", "change", "close"],
@@ -12947,9 +13639,9 @@ var Vc = (function (exports, vue) {
12947
13639
  watchShallow: Boolean,
12948
13640
  manualUpdate: Boolean
12949
13641
  };
12950
- const COMPONENT_NAME$1L = "vc-chart";
13642
+ const COMPONENT_NAME$1N = "vc-chart";
12951
13643
  const Chart = /* @__PURE__ */ vue.defineComponent({
12952
- name: COMPONENT_NAME$1L,
13644
+ name: COMPONENT_NAME$1N,
12953
13645
  props: props$18,
12954
13646
  emits: [...EVENTS$1, "ready"],
12955
13647
  setup(props2, {
@@ -13176,9 +13868,9 @@ var Vc = (function (exports, vue) {
13176
13868
  computedLabel
13177
13869
  };
13178
13870
  };
13179
- const COMPONENT_NAME$1K = "vc-checkbox";
13871
+ const COMPONENT_NAME$1M = "vc-checkbox";
13180
13872
  const Checkbox = /* @__PURE__ */ vue.defineComponent({
13181
- name: COMPONENT_NAME$1K,
13873
+ name: COMPONENT_NAME$1M,
13182
13874
  props: props$17,
13183
13875
  emits: ["update:modelValue", "change"],
13184
13876
  setup(props2, {
@@ -13260,9 +13952,9 @@ var Vc = (function (exports, vue) {
13260
13952
  reset
13261
13953
  };
13262
13954
  };
13263
- const COMPONENT_NAME$1J = "vc-checkbox-group";
13955
+ const COMPONENT_NAME$1L = "vc-checkbox-group";
13264
13956
  const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
13265
- name: COMPONENT_NAME$1J,
13957
+ name: COMPONENT_NAME$1L,
13266
13958
  props: props$16,
13267
13959
  emits: ["update:modelValue", "change"],
13268
13960
  setup(props2, {
@@ -13277,9 +13969,9 @@ var Vc = (function (exports, vue) {
13277
13969
  };
13278
13970
  }
13279
13971
  });
13280
- const COMPONENT_NAME$1I = "vcm-checkbox";
13972
+ const COMPONENT_NAME$1K = "vcm-checkbox";
13281
13973
  const MCheckbox = /* @__PURE__ */ vue.defineComponent({
13282
- name: COMPONENT_NAME$1I,
13974
+ name: COMPONENT_NAME$1K,
13283
13975
  props: props$17,
13284
13976
  emits: ["update:modelValue", "change"],
13285
13977
  setup(props2, {
@@ -13316,9 +14008,9 @@ var Vc = (function (exports, vue) {
13316
14008
  };
13317
14009
  }
13318
14010
  });
13319
- const COMPONENT_NAME$1H = "vcm-checkbox-group";
14011
+ const COMPONENT_NAME$1J = "vcm-checkbox-group";
13320
14012
  const MCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
13321
- name: COMPONENT_NAME$1H,
14013
+ name: COMPONENT_NAME$1J,
13322
14014
  props: props$16,
13323
14015
  emits: ["update:modelValue", "change"],
13324
14016
  setup(props2, {
@@ -13368,9 +14060,9 @@ var Vc = (function (exports, vue) {
13368
14060
  // 这个相当于Modal中的onCancel,支持Promise
13369
14061
  onBeforeClose: Function
13370
14062
  };
13371
- const COMPONENT_NAME$1G = "vc-message";
14063
+ const COMPONENT_NAME$1I = "vc-message";
13372
14064
  const MessageView = /* @__PURE__ */ vue.defineComponent({
13373
- name: COMPONENT_NAME$1G,
14065
+ name: COMPONENT_NAME$1I,
13374
14066
  emits: ["before-close", "close", "portal-fulfilled"],
13375
14067
  props: props$15,
13376
14068
  setup(props2, {
@@ -13613,9 +14305,9 @@ var Vc = (function (exports, vue) {
13613
14305
  };
13614
14306
  return () => vue.h(props2.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
13615
14307
  };
13616
- const COMPONENT_NAME$1F = "vc-clipboard";
14308
+ const COMPONENT_NAME$1H = "vc-clipboard";
13617
14309
  const Clipboard$1 = vue.defineComponent({
13618
- name: COMPONENT_NAME$1F,
14310
+ name: COMPONENT_NAME$1H,
13619
14311
  props: props$14,
13620
14312
  setup() {
13621
14313
  return useClipboard((content) => Message.success({ content }));
@@ -13647,9 +14339,9 @@ var Vc = (function (exports, vue) {
13647
14339
  const MTransitionScale = TransitionScale;
13648
14340
  const MTransitionSlide = TransitionSlide;
13649
14341
  const MTransitionZoom = TransitionZoom;
13650
- const COMPONENT_NAME$1E = "vcm-toast";
14342
+ const COMPONENT_NAME$1G = "vcm-toast";
13651
14343
  const MToastView = /* @__PURE__ */ vue.defineComponent({
13652
- name: COMPONENT_NAME$1E,
14344
+ name: COMPONENT_NAME$1G,
13653
14345
  emits: ["close", "portal-fulfilled"],
13654
14346
  props: props$13,
13655
14347
  setup(props2, {
@@ -13748,9 +14440,9 @@ var Vc = (function (exports, vue) {
13748
14440
  const warning$2 = create$3({ mode: "warning" });
13749
14441
  const error$2 = create$3({ mode: "error" });
13750
14442
  const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
13751
- const COMPONENT_NAME$1D = "vcm-clipboard";
14443
+ const COMPONENT_NAME$1F = "vcm-clipboard";
13752
14444
  const MClipboard$1 = vue.defineComponent({
13753
- name: COMPONENT_NAME$1D,
14445
+ name: COMPONENT_NAME$1F,
13754
14446
  props: props$14,
13755
14447
  setup() {
13756
14448
  return useClipboard((content) => MToast.info({ content }));
@@ -13779,9 +14471,9 @@ var Vc = (function (exports, vue) {
13779
14471
  default: false
13780
14472
  }
13781
14473
  };
13782
- const COMPONENT_NAME$1C = "vc-collapse";
14474
+ const COMPONENT_NAME$1E = "vc-collapse";
13783
14475
  const Collapse = vue.defineComponent({
13784
- name: COMPONENT_NAME$1C,
14476
+ name: COMPONENT_NAME$1E,
13785
14477
  props: props$12,
13786
14478
  emits: ["update:moodelValue", "change"],
13787
14479
  setup(props2, { slots, emit }) {
@@ -13893,9 +14585,9 @@ var Vc = (function (exports, vue) {
13893
14585
  function _isSlot$3(s) {
13894
14586
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
13895
14587
  }
13896
- const COMPONENT_NAME$1B = "vc-expand";
14588
+ const COMPONENT_NAME$1D = "vc-expand";
13897
14589
  const Expand$1 = /* @__PURE__ */ vue.defineComponent({
13898
- name: COMPONENT_NAME$1B,
14590
+ name: COMPONENT_NAME$1D,
13899
14591
  props: props$10,
13900
14592
  setup(props2, {
13901
14593
  slots
@@ -13922,9 +14614,9 @@ var Vc = (function (exports, vue) {
13922
14614
  };
13923
14615
  }
13924
14616
  });
13925
- const COMPONENT_NAME$1A = "vc-collapse-item";
14617
+ const COMPONENT_NAME$1C = "vc-collapse-item";
13926
14618
  const CollapseItem = /* @__PURE__ */ vue.defineComponent({
13927
- name: COMPONENT_NAME$1A,
14619
+ name: COMPONENT_NAME$1C,
13928
14620
  props: props$11,
13929
14621
  setup(props2, {
13930
14622
  slots,
@@ -13994,9 +14686,9 @@ var Vc = (function (exports, vue) {
13994
14686
  default: "div"
13995
14687
  }
13996
14688
  };
13997
- const COMPONENT_NAME$1z = "vc-color-picker";
14689
+ const COMPONENT_NAME$1B = "vc-color-picker";
13998
14690
  const ColorPicker$1 = /* @__PURE__ */ vue.defineComponent({
13999
- name: COMPONENT_NAME$1z,
14691
+ name: COMPONENT_NAME$1B,
14000
14692
  props: props$$,
14001
14693
  setup(props2, {
14002
14694
  slots
@@ -14053,9 +14745,9 @@ var Vc = (function (exports, vue) {
14053
14745
  function _isSlot$2(s) {
14054
14746
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14055
14747
  }
14056
- const COMPONENT_NAME$1y = "vc-countdown";
14748
+ const COMPONENT_NAME$1A = "vc-countdown";
14057
14749
  const Countdown = /* @__PURE__ */ vue.defineComponent({
14058
- name: COMPONENT_NAME$1y,
14750
+ name: COMPONENT_NAME$1A,
14059
14751
  props: props$_,
14060
14752
  emits: ["change", "complete", "error"],
14061
14753
  setup(props2, {
@@ -14317,9 +15009,9 @@ var Vc = (function (exports, vue) {
14317
15009
  function _isSlot$1(s) {
14318
15010
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14319
15011
  }
14320
- const COMPONENT_NAME$1x = "vc-counter";
15012
+ const COMPONENT_NAME$1z = "vc-counter";
14321
15013
  const Counter = /* @__PURE__ */ vue.defineComponent({
14322
- name: COMPONENT_NAME$1x,
15014
+ name: COMPONENT_NAME$1z,
14323
15015
  props: props$Z,
14324
15016
  emits: ["begin", "complete", "change"],
14325
15017
  setup(props2, {
@@ -15567,9 +16259,9 @@ var Vc = (function (exports, vue) {
15567
16259
  }
15568
16260
  return view;
15569
16261
  };
15570
- const COMPONENT_NAME$1w = "vc-date-confirm";
16262
+ const COMPONENT_NAME$1y = "vc-date-confirm";
15571
16263
  const Confirm = /* @__PURE__ */ vue.defineComponent({
15572
- name: COMPONENT_NAME$1w,
16264
+ name: COMPONENT_NAME$1y,
15573
16265
  props: {
15574
16266
  showTime: {
15575
16267
  type: Boolean,
@@ -15630,9 +16322,9 @@ var Vc = (function (exports, vue) {
15630
16322
  };
15631
16323
  }
15632
16324
  });
15633
- const COMPONENT_NAME$1v = "vc-date-header";
16325
+ const COMPONENT_NAME$1x = "vc-date-header";
15634
16326
  const DateHeader = /* @__PURE__ */ vue.defineComponent({
15635
- name: COMPONENT_NAME$1v,
16327
+ name: COMPONENT_NAME$1x,
15636
16328
  props: {
15637
16329
  panelDate: Date,
15638
16330
  showNext: {
@@ -15713,9 +16405,9 @@ var Vc = (function (exports, vue) {
15713
16405
  };
15714
16406
  }
15715
16407
  });
15716
- const COMPONENT_NAME$1u = "vc-date-table";
16408
+ const COMPONENT_NAME$1w = "vc-date-table";
15717
16409
  const DateTable = /* @__PURE__ */ vue.defineComponent({
15718
- name: COMPONENT_NAME$1u,
16410
+ name: COMPONENT_NAME$1w,
15719
16411
  props: {
15720
16412
  value: Array,
15721
16413
  firstDayOfWeek: {
@@ -15915,9 +16607,9 @@ var Vc = (function (exports, vue) {
15915
16607
  };
15916
16608
  }
15917
16609
  });
15918
- const COMPONENT_NAME$1t = "vc-month-table";
16610
+ const COMPONENT_NAME$1v = "vc-month-table";
15919
16611
  const MonthTable = /* @__PURE__ */ vue.defineComponent({
15920
- name: COMPONENT_NAME$1t,
16612
+ name: COMPONENT_NAME$1v,
15921
16613
  props: {
15922
16614
  value: Array,
15923
16615
  panelDate: Date,
@@ -16043,7 +16735,7 @@ var Vc = (function (exports, vue) {
16043
16735
  };
16044
16736
  }
16045
16737
  });
16046
- const COMPONENT_NAME$1s = "vc-quarter-table";
16738
+ const COMPONENT_NAME$1u = "vc-quarter-table";
16047
16739
  const getMonthRange = (panelDate, quarter) => {
16048
16740
  const year = panelDate.getFullYear();
16049
16741
  const [startMonth, endMonth] = [quarter * 3, quarter * 3 + 2];
@@ -16070,7 +16762,7 @@ var Vc = (function (exports, vue) {
16070
16762
  }
16071
16763
  };
16072
16764
  const QuarterTable = /* @__PURE__ */ vue.defineComponent({
16073
- name: COMPONENT_NAME$1s,
16765
+ name: COMPONENT_NAME$1u,
16074
16766
  props: {
16075
16767
  value: Array,
16076
16768
  panelDate: Date,
@@ -16188,9 +16880,9 @@ var Vc = (function (exports, vue) {
16188
16880
  };
16189
16881
  }
16190
16882
  });
16191
- const COMPONENT_NAME$1r = "vc-shortcuts-select";
16883
+ const COMPONENT_NAME$1t = "vc-shortcuts-select";
16192
16884
  const ShortcutsSelect = /* @__PURE__ */ vue.defineComponent({
16193
- name: COMPONENT_NAME$1r,
16885
+ name: COMPONENT_NAME$1t,
16194
16886
  props: {
16195
16887
  panelDate: Date,
16196
16888
  config: Array,
@@ -16227,9 +16919,9 @@ var Vc = (function (exports, vue) {
16227
16919
  };
16228
16920
  }
16229
16921
  });
16230
- const COMPONENT_NAME$1q = "vc-time-select";
16922
+ const COMPONENT_NAME$1s = "vc-time-select";
16231
16923
  const TimeSelect = /* @__PURE__ */ vue.defineComponent({
16232
- name: COMPONENT_NAME$1q,
16924
+ name: COMPONENT_NAME$1s,
16233
16925
  props: {
16234
16926
  hours: {
16235
16927
  type: [Number, String],
@@ -16505,9 +17197,9 @@ var Vc = (function (exports, vue) {
16505
17197
  };
16506
17198
  }
16507
17199
  });
16508
- const COMPONENT_NAME$1p = "vc-year-table";
17200
+ const COMPONENT_NAME$1r = "vc-year-table";
16509
17201
  const YearTable = /* @__PURE__ */ vue.defineComponent({
16510
- name: COMPONENT_NAME$1p,
17202
+ name: COMPONENT_NAME$1r,
16511
17203
  props: {
16512
17204
  value: Array,
16513
17205
  panelDate: Date,
@@ -16623,9 +17315,9 @@ var Vc = (function (exports, vue) {
16623
17315
  }
16624
17316
  return true;
16625
17317
  };
16626
- const COMPONENT_NAME$1o = "vc-date-range-panel";
17318
+ const COMPONENT_NAME$1q = "vc-date-range-panel";
16627
17319
  const DateRangePanel = /* @__PURE__ */ vue.defineComponent({
16628
- name: COMPONENT_NAME$1o,
17320
+ name: COMPONENT_NAME$1q,
16629
17321
  props: {
16630
17322
  ...props$W,
16631
17323
  confirm: {
@@ -16986,9 +17678,9 @@ var Vc = (function (exports, vue) {
16986
17678
  };
16987
17679
  }
16988
17680
  });
16989
- const COMPONENT_NAME$1n = "vc-date-panel";
17681
+ const COMPONENT_NAME$1p = "vc-date-panel";
16990
17682
  const DatePanel = /* @__PURE__ */ vue.defineComponent({
16991
- name: COMPONENT_NAME$1n,
17683
+ name: COMPONENT_NAME$1p,
16992
17684
  props: {
16993
17685
  ...props$W,
16994
17686
  type: String,
@@ -17187,9 +17879,9 @@ var Vc = (function (exports, vue) {
17187
17879
  const endYear = value[1].getFullYear();
17188
17880
  return startYear === endYear;
17189
17881
  };
17190
- const COMPONENT_NAME$1m = "vc-monthrange-panel";
17882
+ const COMPONENT_NAME$1o = "vc-monthrange-panel";
17191
17883
  const MonthRangePanel = /* @__PURE__ */ vue.defineComponent({
17192
- name: COMPONENT_NAME$1m,
17884
+ name: COMPONENT_NAME$1o,
17193
17885
  props: {
17194
17886
  ...props$W,
17195
17887
  confirm: {
@@ -17359,9 +18051,9 @@ var Vc = (function (exports, vue) {
17359
18051
  const endYear = value[1].getFullYear();
17360
18052
  return startYear === endYear;
17361
18053
  };
17362
- const COMPONENT_NAME$1l = "vc-quarterrange-panel";
18054
+ const COMPONENT_NAME$1n = "vc-quarterrange-panel";
17363
18055
  const QuarterRangePanel = /* @__PURE__ */ vue.defineComponent({
17364
- name: COMPONENT_NAME$1l,
18056
+ name: COMPONENT_NAME$1n,
17365
18057
  props: {
17366
18058
  ...props$W,
17367
18059
  confirm: {
@@ -17592,9 +18284,9 @@ var Vc = (function (exports, vue) {
17592
18284
  seconds
17593
18285
  };
17594
18286
  };
17595
- const COMPONENT_NAME$1k = "vc-timerange-panel";
18287
+ const COMPONENT_NAME$1m = "vc-timerange-panel";
17596
18288
  const TimeRangePanel = /* @__PURE__ */ vue.defineComponent({
17597
- name: COMPONENT_NAME$1k,
18289
+ name: COMPONENT_NAME$1m,
17598
18290
  props: props$V,
17599
18291
  emits: ["pick", "clear", "ok"],
17600
18292
  setup(props2, {
@@ -17692,9 +18384,9 @@ var Vc = (function (exports, vue) {
17692
18384
  };
17693
18385
  }
17694
18386
  });
17695
- const COMPONENT_NAME$1j = "vc-time-panel";
18387
+ const COMPONENT_NAME$1l = "vc-time-panel";
17696
18388
  const TimePanel = /* @__PURE__ */ vue.defineComponent({
17697
- name: COMPONENT_NAME$1j,
18389
+ name: COMPONENT_NAME$1l,
17698
18390
  props: props$V,
17699
18391
  emits: ["pick", "clear", "ok"],
17700
18392
  setup(props2, {
@@ -17746,7 +18438,7 @@ var Vc = (function (exports, vue) {
17746
18438
  };
17747
18439
  }
17748
18440
  });
17749
- const COMPONENT_NAME$1i = "vc-date-picker";
18441
+ const COMPONENT_NAME$1k = "vc-date-picker";
17750
18442
  const getPanel$1 = (type) => {
17751
18443
  if (["daterange", "datetimerange"].includes(type)) {
17752
18444
  return DateRangePanel;
@@ -17757,7 +18449,7 @@ var Vc = (function (exports, vue) {
17757
18449
  }
17758
18450
  return DatePanel;
17759
18451
  };
17760
- const DatePicker = createPicker(COMPONENT_NAME$1i, props$Y, () => {
18452
+ const DatePicker = createPicker(COMPONENT_NAME$1k, props$Y, () => {
17761
18453
  const props2 = vue.getCurrentInstance().props;
17762
18454
  const icon = vue.ref("date");
17763
18455
  const panel = vue.shallowRef({});
@@ -17793,9 +18485,9 @@ var Vc = (function (exports, vue) {
17793
18485
  }
17794
18486
  }
17795
18487
  };
17796
- const COMPONENT_NAME$1h = "vc-divider";
18488
+ const COMPONENT_NAME$1j = "vc-divider";
17797
18489
  const Divider = /* @__PURE__ */ vue.defineComponent({
17798
- name: COMPONENT_NAME$1h,
18490
+ name: COMPONENT_NAME$1j,
17799
18491
  props: props$U,
17800
18492
  setup(props2, {
17801
18493
  slots
@@ -17924,7 +18616,7 @@ var Vc = (function (exports, vue) {
17924
18616
  barTo: props$S.to,
17925
18617
  ...pick(props$S, barKeys)
17926
18618
  };
17927
- const COMPONENT_NAME$1g = "vc-scroller-track";
18619
+ const COMPONENT_NAME$1i = "vc-scroller-track";
17928
18620
  const BAR_MAP = {
17929
18621
  vertical: {
17930
18622
  scroll: "scrollTop",
@@ -17944,7 +18636,7 @@ var Vc = (function (exports, vue) {
17944
18636
  }
17945
18637
  };
17946
18638
  const Track$1 = /* @__PURE__ */ vue.defineComponent({
17947
- name: COMPONENT_NAME$1g,
18639
+ name: COMPONENT_NAME$1i,
17948
18640
  props: props$T,
17949
18641
  emits: ["change"],
17950
18642
  inheritAttrs: false,
@@ -18106,9 +18798,9 @@ var Vc = (function (exports, vue) {
18106
18798
  };
18107
18799
  }
18108
18800
  });
18109
- const COMPONENT_NAME$1f = "vc-scroller-bar";
18801
+ const COMPONENT_NAME$1h = "vc-scroller-bar";
18110
18802
  const Bar = /* @__PURE__ */ vue.defineComponent({
18111
- name: COMPONENT_NAME$1f,
18803
+ name: COMPONENT_NAME$1h,
18112
18804
  props: props$S,
18113
18805
  emits: ["change"],
18114
18806
  setup(props2, {
@@ -18339,9 +19031,9 @@ var Vc = (function (exports, vue) {
18339
19031
  refreshPosition
18340
19032
  };
18341
19033
  };
18342
- const COMPONENT_NAME$1e = "vc-scroller";
19034
+ const COMPONENT_NAME$1g = "vc-scroller";
18343
19035
  const Scroller = /* @__PURE__ */ vue.defineComponent({
18344
- name: COMPONENT_NAME$1e,
19036
+ name: COMPONENT_NAME$1g,
18345
19037
  props: props$R,
18346
19038
  emits: ["scroll"],
18347
19039
  setup(props2, {
@@ -18399,9 +19091,9 @@ var Vc = (function (exports, vue) {
18399
19091
  };
18400
19092
  }
18401
19093
  });
18402
- const COMPONENT_NAME$1d = "vc-scroller-wheel";
19094
+ const COMPONENT_NAME$1f = "vc-scroller-wheel";
18403
19095
  const ScrollerWheel = /* @__PURE__ */ vue.defineComponent({
18404
- name: COMPONENT_NAME$1d,
19096
+ name: COMPONENT_NAME$1f,
18405
19097
  props: Object.assign({}, props$R, {
18406
19098
  stopPropagation: {
18407
19099
  type: Boolean,
@@ -18582,9 +19274,9 @@ var Vc = (function (exports, vue) {
18582
19274
  type: Function
18583
19275
  }
18584
19276
  };
18585
- const COMPONENT_NAME$1c = "vc-drawer";
19277
+ const COMPONENT_NAME$1e = "vc-drawer";
18586
19278
  const DrawerView = /* @__PURE__ */ vue.defineComponent({
18587
- name: COMPONENT_NAME$1c,
19279
+ name: COMPONENT_NAME$1e,
18588
19280
  props: props$Q,
18589
19281
  emits: ["close", "update:modelValue", "visible-change"],
18590
19282
  setup(props2, {
@@ -18756,9 +19448,9 @@ var Vc = (function (exports, vue) {
18756
19448
  default: false
18757
19449
  }
18758
19450
  };
18759
- const COMPONENT_NAME$1b = "vc-dropdown";
19451
+ const COMPONENT_NAME$1d = "vc-dropdown";
18760
19452
  const Dropdown = /* @__PURE__ */ vue.defineComponent({
18761
- name: COMPONENT_NAME$1b,
19453
+ name: COMPONENT_NAME$1d,
18762
19454
  props: props$P,
18763
19455
  inheritAttrs: false,
18764
19456
  emits: ["update:modelValue", "ready", "close", "visible-change", "click"],
@@ -18821,9 +19513,9 @@ var Vc = (function (exports, vue) {
18821
19513
  };
18822
19514
  }
18823
19515
  });
18824
- const COMPONENT_NAME$1a = "vc-dropdown-menu";
19516
+ const COMPONENT_NAME$1c = "vc-dropdown-menu";
18825
19517
  const DropdownMenu = /* @__PURE__ */ vue.defineComponent({
18826
- name: COMPONENT_NAME$1a,
19518
+ name: COMPONENT_NAME$1c,
18827
19519
  setup(_, {
18828
19520
  slots
18829
19521
  }) {
@@ -18834,9 +19526,9 @@ var Vc = (function (exports, vue) {
18834
19526
  };
18835
19527
  }
18836
19528
  });
18837
- const COMPONENT_NAME$19 = "vc-dropdown-item";
19529
+ const COMPONENT_NAME$1b = "vc-dropdown-item";
18838
19530
  const DropdownItem = /* @__PURE__ */ vue.defineComponent({
18839
- name: COMPONENT_NAME$19,
19531
+ name: COMPONENT_NAME$1b,
18840
19532
  emits: ["click"],
18841
19533
  props: {
18842
19534
  value: {
@@ -19035,9 +19727,9 @@ var Vc = (function (exports, vue) {
19035
19727
  ["link", "upload/video", "upload/image", "undo", "redo"]
19036
19728
  ]
19037
19729
  };
19038
- const COMPONENT_NAME$18 = "vc-editor-toolbar";
19730
+ const COMPONENT_NAME$1a = "vc-editor-toolbar";
19039
19731
  const EditorToolbar = /* @__PURE__ */ vue.defineComponent({
19040
- name: COMPONENT_NAME$18,
19732
+ name: COMPONENT_NAME$1a,
19041
19733
  props: {
19042
19734
  options: [Array, Object],
19043
19735
  elementId: String
@@ -19237,9 +19929,9 @@ var Vc = (function (exports, vue) {
19237
19929
  default: "div"
19238
19930
  }
19239
19931
  };
19240
- const COMPONENT_NAME$17 = "vc-image-preview";
19932
+ const COMPONENT_NAME$19 = "vc-image-preview";
19241
19933
  const ImagePreview$1 = /* @__PURE__ */ vue.defineComponent({
19242
- name: COMPONENT_NAME$17,
19934
+ name: COMPONENT_NAME$19,
19243
19935
  props: props$O,
19244
19936
  setup(props2, {
19245
19937
  slots
@@ -19429,9 +20121,9 @@ var Vc = (function (exports, vue) {
19429
20121
  default: false
19430
20122
  }
19431
20123
  };
19432
- const COMPONENT_NAME$16 = "vc-upload";
20124
+ const COMPONENT_NAME$18 = "vc-upload";
19433
20125
  const Upload$1 = vue.defineComponent({
19434
- name: COMPONENT_NAME$16,
20126
+ name: COMPONENT_NAME$18,
19435
20127
  props: props$N,
19436
20128
  emits: [
19437
20129
  "message",
@@ -19954,9 +20646,9 @@ var Vc = (function (exports, vue) {
19954
20646
  default: true
19955
20647
  }
19956
20648
  };
19957
- const COMPONENT_NAME$15 = "vc-editor";
20649
+ const COMPONENT_NAME$17 = "vc-editor";
19958
20650
  const Editor$1 = /* @__PURE__ */ vue.defineComponent({
19959
- name: COMPONENT_NAME$15,
20651
+ name: COMPONENT_NAME$17,
19960
20652
  props: props$M,
19961
20653
  defaults: defaults$3,
19962
20654
  emits: ["ready", "blur", "focus", "input", "update:modelValue", "change"],
@@ -20137,7 +20829,7 @@ var Vc = (function (exports, vue) {
20137
20829
  };
20138
20830
  }
20139
20831
  });
20140
- const COMPONENT_NAME$14 = "vc-editor-view";
20832
+ const COMPONENT_NAME$16 = "vc-editor-view";
20141
20833
  const setImages = (v) => {
20142
20834
  if (!v) return;
20143
20835
  const IMG_REGX = /<img.*?(?:>|\/>)/gi;
@@ -20154,7 +20846,7 @@ var Vc = (function (exports, vue) {
20154
20846
  return;
20155
20847
  };
20156
20848
  const EditorView = /* @__PURE__ */ vue.defineComponent({
20157
- name: COMPONENT_NAME$14,
20849
+ name: COMPONENT_NAME$16,
20158
20850
  props: {
20159
20851
  value: {
20160
20852
  type: String,
@@ -20362,9 +21054,9 @@ var Vc = (function (exports, vue) {
20362
21054
  validateField
20363
21055
  });
20364
21056
  };
20365
- const COMPONENT_NAME$13 = "vc-form";
21057
+ const COMPONENT_NAME$15 = "vc-form";
20366
21058
  const Form = vue.defineComponent({
20367
- name: COMPONENT_NAME$13,
21059
+ name: COMPONENT_NAME$15,
20368
21060
  props: props$L,
20369
21061
  setup(props2, { slots, expose }) {
20370
21062
  useForm(expose);
@@ -20707,9 +21399,9 @@ var Vc = (function (exports, vue) {
20707
21399
  labelPosition
20708
21400
  };
20709
21401
  };
20710
- const COMPONENT_NAME$12 = "vc-form-item";
21402
+ const COMPONENT_NAME$14 = "vc-form-item";
20711
21403
  const FormItem = /* @__PURE__ */ vue.defineComponent({
20712
- name: COMPONENT_NAME$12,
21404
+ name: COMPONENT_NAME$14,
20713
21405
  props: props$K,
20714
21406
  setup(props2, {
20715
21407
  slots,
@@ -20775,9 +21467,9 @@ var Vc = (function (exports, vue) {
20775
21467
  default: false
20776
21468
  }
20777
21469
  };
20778
- const COMPONENT_NAME$11 = "vcm-form";
21470
+ const COMPONENT_NAME$13 = "vcm-form";
20779
21471
  const MForm = vue.defineComponent({
20780
- name: COMPONENT_NAME$11,
21472
+ name: COMPONENT_NAME$13,
20781
21473
  props: props$J,
20782
21474
  setup(props2, { slots, expose }) {
20783
21475
  useForm(expose, {
@@ -20804,9 +21496,9 @@ var Vc = (function (exports, vue) {
20804
21496
  default: 12
20805
21497
  }
20806
21498
  };
20807
- const COMPONENT_NAME$10 = "vcm-form-item";
21499
+ const COMPONENT_NAME$12 = "vcm-form-item";
20808
21500
  const MFormItem = /* @__PURE__ */ vue.defineComponent({
20809
- name: COMPONENT_NAME$10,
21501
+ name: COMPONENT_NAME$12,
20810
21502
  props: props$I,
20811
21503
  setup(props2, {
20812
21504
  slots,
@@ -20860,9 +21552,9 @@ var Vc = (function (exports, vue) {
20860
21552
  };
20861
21553
  }
20862
21554
  });
20863
- const COMPONENT_NAME$$ = "vc-fragment";
21555
+ const COMPONENT_NAME$11 = "vc-fragment";
20864
21556
  const Fragment = vue.defineComponent({
20865
- name: COMPONENT_NAME$$,
21557
+ name: COMPONENT_NAME$11,
20866
21558
  setup(_, { slots }) {
20867
21559
  return () => vue.h(vue.Fragment, slots.default?.());
20868
21560
  }
@@ -20896,9 +21588,9 @@ var Vc = (function (exports, vue) {
20896
21588
  default: () => ({})
20897
21589
  }
20898
21590
  };
20899
- const COMPONENT_NAME$_ = "vc-snapshot";
21591
+ const COMPONENT_NAME$10 = "vc-snapshot";
20900
21592
  const Snapshot = /* @__PURE__ */ vue.defineComponent({
20901
- name: COMPONENT_NAME$_,
21593
+ name: COMPONENT_NAME$10,
20902
21594
  props: props$H,
20903
21595
  emits: ["ready"],
20904
21596
  setup(props2, {
@@ -21050,7 +21742,7 @@ var Vc = (function (exports, vue) {
21050
21742
  }
21051
21743
  }
21052
21744
  const IMGStore$1 = new IMGStore();
21053
- const COMPONENT_NAME$Z = "vc-image";
21745
+ const COMPONENT_NAME$$ = "vc-image";
21054
21746
  let isSupportObjectFit = false;
21055
21747
  window.addEventListener("DOMContentLoaded", () => {
21056
21748
  isSupportObjectFit = !IS_SERVER$3 && document.documentElement.style.objectFit !== void 0;
@@ -21063,7 +21755,7 @@ var Vc = (function (exports, vue) {
21063
21755
  SCALE_DOWN: "scale-down"
21064
21756
  };
21065
21757
  const Image$1$1 = /* @__PURE__ */ vue.defineComponent({
21066
- name: COMPONENT_NAME$Z,
21758
+ name: COMPONENT_NAME$$,
21067
21759
  inheritAttrs: false,
21068
21760
  props: props$G,
21069
21761
  setup(props2, {
@@ -21271,9 +21963,9 @@ var Vc = (function (exports, vue) {
21271
21963
  default: "div"
21272
21964
  }
21273
21965
  };
21274
- const COMPONENT_NAME$Y = "vc-image-crop";
21966
+ const COMPONENT_NAME$_ = "vc-image-crop";
21275
21967
  const ImageCrop = /* @__PURE__ */ vue.defineComponent({
21276
- name: COMPONENT_NAME$Y,
21968
+ name: COMPONENT_NAME$_,
21277
21969
  props: props$F,
21278
21970
  setup(props2, {
21279
21971
  slots
@@ -21293,9 +21985,9 @@ var Vc = (function (exports, vue) {
21293
21985
  default: "div"
21294
21986
  }
21295
21987
  };
21296
- const COMPONENT_NAME$X = "vc-image-processing";
21988
+ const COMPONENT_NAME$Z = "vc-image-processing";
21297
21989
  const ImageProcessing = /* @__PURE__ */ vue.defineComponent({
21298
- name: COMPONENT_NAME$X,
21990
+ name: COMPONENT_NAME$Z,
21299
21991
  props: props$E,
21300
21992
  setup(props2, {
21301
21993
  slots
@@ -21308,9 +22000,9 @@ var Vc = (function (exports, vue) {
21308
22000
  }
21309
22001
  });
21310
22002
  const MImageProcessing = ImageProcessing;
21311
- const COMPONENT_NAME$W = "vcm-input";
22003
+ const COMPONENT_NAME$Y = "vcm-input";
21312
22004
  const MInput = /* @__PURE__ */ vue.defineComponent({
21313
- name: COMPONENT_NAME$W,
22005
+ name: COMPONENT_NAME$Y,
21314
22006
  inheritAttrs: false,
21315
22007
  props: {
21316
22008
  ...props$1h,
@@ -21397,9 +22089,9 @@ var Vc = (function (exports, vue) {
21397
22089
  };
21398
22090
  }
21399
22091
  });
21400
- const COMPONENT_NAME$V = "vcm-input-number";
22092
+ const COMPONENT_NAME$X = "vcm-input-number";
21401
22093
  const MInputNumber = /* @__PURE__ */ vue.defineComponent({
21402
- name: COMPONENT_NAME$V,
22094
+ name: COMPONENT_NAME$X,
21403
22095
  props: props$1g,
21404
22096
  inheritAttrs: false,
21405
22097
  setup(props2, {
@@ -21445,9 +22137,9 @@ var Vc = (function (exports, vue) {
21445
22137
  };
21446
22138
  }
21447
22139
  });
21448
- const COMPONENT_NAME$U = "vcm-input-search";
22140
+ const COMPONENT_NAME$W = "vcm-input-search";
21449
22141
  const MInputSearch = /* @__PURE__ */ vue.defineComponent({
21450
- name: COMPONENT_NAME$U,
22142
+ name: COMPONENT_NAME$W,
21451
22143
  props: {
21452
22144
  ...props$1f,
21453
22145
  cancelText: {
@@ -21521,9 +22213,9 @@ var Vc = (function (exports, vue) {
21521
22213
  default: true
21522
22214
  }
21523
22215
  };
21524
- const COMPONENT_NAME$T = "vcm-list";
22216
+ const COMPONENT_NAME$V = "vcm-list";
21525
22217
  const MList = vue.defineComponent({
21526
- name: COMPONENT_NAME$T,
22218
+ name: COMPONENT_NAME$V,
21527
22219
  props: props$D,
21528
22220
  setup(props2, { slots }) {
21529
22221
  vue.provide("vc-list", { props: props2 });
@@ -21574,10 +22266,10 @@ var Vc = (function (exports, vue) {
21574
22266
  // MListItem是否独立存在
21575
22267
  alone: Boolean
21576
22268
  };
21577
- const COMPONENT_NAME$S = "vcm-list-item";
22269
+ const COMPONENT_NAME$U = "vcm-list-item";
21578
22270
  const HTTP_REGEX = /[a-zA-z]+:\/\/[^\s]*/;
21579
22271
  const MListItem = /* @__PURE__ */ vue.defineComponent({
21580
- name: COMPONENT_NAME$S,
22272
+ name: COMPONENT_NAME$U,
21581
22273
  props: props$C,
21582
22274
  emits: ["click"],
21583
22275
  setup(props2, {
@@ -21661,11 +22353,11 @@ var Vc = (function (exports, vue) {
21661
22353
  default: false
21662
22354
  }
21663
22355
  };
21664
- const COMPONENT_NAME$R = "vc-marquee";
22356
+ const COMPONENT_NAME$T = "vc-marquee";
21665
22357
  const ANIMATION = prefixStyle("animation").camel;
21666
22358
  const TRANSFORM_KEBAB = prefixStyle("transform").kebab;
21667
22359
  const Marquee = /* @__PURE__ */ vue.defineComponent({
21668
- name: COMPONENT_NAME$R,
22360
+ name: COMPONENT_NAME$T,
21669
22361
  props: props$B,
21670
22362
  setup(props2, {
21671
22363
  slots
@@ -21726,9 +22418,9 @@ var Vc = (function (exports, vue) {
21726
22418
  default: true
21727
22419
  }
21728
22420
  };
21729
- const COMPONENT_NAME$Q = "vc-resizer";
22421
+ const COMPONENT_NAME$S = "vc-resizer";
21730
22422
  const Resizer = vue.defineComponent({
21731
- name: COMPONENT_NAME$Q,
22423
+ name: COMPONENT_NAME$S,
21732
22424
  props: props$A,
21733
22425
  emits: ["resize"],
21734
22426
  setup(props2, { emit, slots, expose }) {
@@ -21894,10 +22586,10 @@ var Vc = (function (exports, vue) {
21894
22586
  type: Function
21895
22587
  }
21896
22588
  };
21897
- const COMPONENT_NAME$P = "vc-modal";
22589
+ const COMPONENT_NAME$R = "vc-modal";
21898
22590
  let zIndexNumber = 1002;
21899
22591
  const ModalView = /* @__PURE__ */ vue.defineComponent({
21900
- name: COMPONENT_NAME$P,
22592
+ name: COMPONENT_NAME$R,
21901
22593
  emits: ["update:modelValue", "close", "portal-fulfilled", "visible-change", "ok", "cancel"],
21902
22594
  props: props$z,
21903
22595
  setup(props2, {
@@ -22287,9 +22979,9 @@ var Vc = (function (exports, vue) {
22287
22979
  type: Function
22288
22980
  }
22289
22981
  };
22290
- const COMPONENT_NAME$O = "vc-modal";
22982
+ const COMPONENT_NAME$Q = "vc-modal";
22291
22983
  const MModalView = /* @__PURE__ */ vue.defineComponent({
22292
- name: COMPONENT_NAME$O,
22984
+ name: COMPONENT_NAME$Q,
22293
22985
  emits: ["update:modelValue", "portal-fulfilled", "close", "ok", "cancel"],
22294
22986
  props: props$y,
22295
22987
  setup(props2, {
@@ -22484,9 +23176,9 @@ var Vc = (function (exports, vue) {
22484
23176
  // 这个相当于Modal中的onCancel,支持Promise
22485
23177
  onBeforeClose: Function
22486
23178
  };
22487
- const COMPONENT_NAME$N = "vc-notice";
23179
+ const COMPONENT_NAME$P = "vc-notice";
22488
23180
  const NoticeView = /* @__PURE__ */ vue.defineComponent({
22489
- name: COMPONENT_NAME$N,
23181
+ name: COMPONENT_NAME$P,
22490
23182
  props: props$x,
22491
23183
  emits: ["portal-fulfilled", "close", "before-close"],
22492
23184
  setup(props2, {
@@ -22652,9 +23344,9 @@ var Vc = (function (exports, vue) {
22652
23344
  default: "div"
22653
23345
  }
22654
23346
  };
22655
- const COMPONENT_NAME$M = "vc-option";
23347
+ const COMPONENT_NAME$O = "vc-option";
22656
23348
  const Option$1 = /* @__PURE__ */ vue.defineComponent({
22657
- name: COMPONENT_NAME$M,
23349
+ name: COMPONENT_NAME$O,
22658
23350
  props: props$w,
22659
23351
  setup(props2, {
22660
23352
  slots
@@ -22732,9 +23424,9 @@ var Vc = (function (exports, vue) {
22732
23424
  type: [String, Number]
22733
23425
  }
22734
23426
  };
22735
- const COMPONENT_NAME$L = "vc-tag";
23427
+ const COMPONENT_NAME$N = "vc-tag";
22736
23428
  const Tag = /* @__PURE__ */ vue.defineComponent({
22737
- name: COMPONENT_NAME$L,
23429
+ name: COMPONENT_NAME$N,
22738
23430
  props: props$u,
22739
23431
  emits: ["close", "change"],
22740
23432
  setup(props2, {
@@ -22801,9 +23493,9 @@ var Vc = (function (exports, vue) {
22801
23493
  render: [Function],
22802
23494
  row: Object
22803
23495
  };
22804
- const COMPONENT_NAME$K = "vc-select-option";
23496
+ const COMPONENT_NAME$M = "vc-select-option";
22805
23497
  const Option = /* @__PURE__ */ vue.defineComponent({
22806
- name: COMPONENT_NAME$K,
23498
+ name: COMPONENT_NAME$M,
22807
23499
  props: props$t,
22808
23500
  setup(props2, {
22809
23501
  slots,
@@ -22892,9 +23584,9 @@ var Vc = (function (exports, vue) {
22892
23584
  row: Object,
22893
23585
  render: [Function]
22894
23586
  };
22895
- const COMPONENT_NAME$J = "vc-select-option-group";
23587
+ const COMPONENT_NAME$L = "vc-select-option-group";
22896
23588
  const OptionGroup = /* @__PURE__ */ vue.defineComponent({
22897
- name: COMPONENT_NAME$J,
23589
+ name: COMPONENT_NAME$L,
22898
23590
  props: props$s,
22899
23591
  setup(props2, {
22900
23592
  slots
@@ -22921,9 +23613,9 @@ var Vc = (function (exports, vue) {
22921
23613
  };
22922
23614
  }
22923
23615
  });
22924
- const COMPONENT_NAME$I = "vc-select-all";
23616
+ const COMPONENT_NAME$K = "vc-select-all";
22925
23617
  const SelectAll = /* @__PURE__ */ vue.defineComponent({
22926
- name: COMPONENT_NAME$I,
23618
+ name: COMPONENT_NAME$K,
22927
23619
  props: {
22928
23620
  data: {
22929
23621
  type: Array,
@@ -22977,9 +23669,9 @@ var Vc = (function (exports, vue) {
22977
23669
  };
22978
23670
  }
22979
23671
  });
22980
- const COMPONENT_NAME$H = "vc-select";
23672
+ const COMPONENT_NAME$J = "vc-select";
22981
23673
  const Select = /* @__PURE__ */ vue.defineComponent({
22982
- name: COMPONENT_NAME$H,
23674
+ name: COMPONENT_NAME$J,
22983
23675
  props: props$1a,
22984
23676
  emits: ["ready", "close", "visible-change", "clear", "change", "update:modelValue"],
22985
23677
  setup(props2, {
@@ -23260,9 +23952,9 @@ var Vc = (function (exports, vue) {
23260
23952
  };
23261
23953
  }
23262
23954
  });
23263
- const COMPONENT_NAME$G = "vc-pagination";
23955
+ const COMPONENT_NAME$I = "vc-pagination";
23264
23956
  const Pagination = /* @__PURE__ */ vue.defineComponent({
23265
- name: COMPONENT_NAME$G,
23957
+ name: COMPONENT_NAME$I,
23266
23958
  props: props$v,
23267
23959
  emits: ["update:current", "change", "page-size-change"],
23268
23960
  setup(props2, {
@@ -23453,9 +24145,9 @@ var Vc = (function (exports, vue) {
23453
24145
  default: "div"
23454
24146
  }
23455
24147
  };
23456
- const COMPONENT_NAME$F = "vc-picker";
24148
+ const COMPONENT_NAME$H = "vc-picker";
23457
24149
  const Picker$1 = /* @__PURE__ */ vue.defineComponent({
23458
- name: COMPONENT_NAME$F,
24150
+ name: COMPONENT_NAME$H,
23459
24151
  props: props$r,
23460
24152
  setup(props2, {
23461
24153
  slots
@@ -23513,9 +24205,9 @@ var Vc = (function (exports, vue) {
23513
24205
  width: [String, Number],
23514
24206
  portalClass: [String, Object]
23515
24207
  };
23516
- const COMPONENT_NAME$E = "vc-popconfirm";
24208
+ const COMPONENT_NAME$G = "vc-popconfirm";
23517
24209
  const Popconfirm = /* @__PURE__ */ vue.defineComponent({
23518
- name: COMPONENT_NAME$E,
24210
+ name: COMPONENT_NAME$G,
23519
24211
  props: props$q,
23520
24212
  inheritAttrs: false,
23521
24213
  emits: ["update:modelValue", "visible-change", "ready", "close", "cancel", "ok"],
@@ -23675,9 +24367,9 @@ var Vc = (function (exports, vue) {
23675
24367
  })
23676
24368
  }
23677
24369
  };
23678
- const COMPONENT_NAME$D = "vc-popup";
24370
+ const COMPONENT_NAME$F = "vc-popup";
23679
24371
  const MPopup = /* @__PURE__ */ vue.defineComponent({
23680
- name: COMPONENT_NAME$D,
24372
+ name: COMPONENT_NAME$F,
23681
24373
  props: props$p,
23682
24374
  emits: ["update:modelValue", "close", "portal-fulfilled", "visible-change"],
23683
24375
  setup(props2, {
@@ -23786,9 +24478,9 @@ var Vc = (function (exports, vue) {
23786
24478
  default: "div"
23787
24479
  }
23788
24480
  };
23789
- const COMPONENT_NAME$C = "vc-print";
24481
+ const COMPONENT_NAME$E = "vc-print";
23790
24482
  const Print = /* @__PURE__ */ vue.defineComponent({
23791
- name: COMPONENT_NAME$C,
24483
+ name: COMPONENT_NAME$E,
23792
24484
  props: props$o,
23793
24485
  setup(props2, {
23794
24486
  expose,
@@ -23859,7 +24551,7 @@ var Vc = (function (exports, vue) {
23859
24551
  },
23860
24552
  strokeColor: {
23861
24553
  type: String,
23862
- default: "#2d8cf0"
24554
+ default: "#456CF6"
23863
24555
  },
23864
24556
  trackColor: {
23865
24557
  type: String,
@@ -23878,9 +24570,9 @@ var Vc = (function (exports, vue) {
23878
24570
  })
23879
24571
  }
23880
24572
  };
23881
- const COMPONENT_NAME$B = "vc-progress-circle";
24573
+ const COMPONENT_NAME$D = "vc-progress-circle";
23882
24574
  const Circle$1 = /* @__PURE__ */ vue.defineComponent({
23883
- name: COMPONENT_NAME$B,
24575
+ name: COMPONENT_NAME$D,
23884
24576
  props: props$n,
23885
24577
  setup(props2, {
23886
24578
  slots
@@ -23937,9 +24629,9 @@ var Vc = (function (exports, vue) {
23937
24629
  };
23938
24630
  }
23939
24631
  });
23940
- const COMPONENT_NAME$A = "vc-progress-line";
24632
+ const COMPONENT_NAME$C = "vc-progress-line";
23941
24633
  const Line$2 = /* @__PURE__ */ vue.defineComponent({
23942
- name: COMPONENT_NAME$A,
24634
+ name: COMPONENT_NAME$C,
23943
24635
  props: props$n,
23944
24636
  setup(props2) {
23945
24637
  const colorStyle = vue.computed(() => {
@@ -23983,9 +24675,9 @@ var Vc = (function (exports, vue) {
23983
24675
  function _isSlot(s) {
23984
24676
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
23985
24677
  }
23986
- const COMPONENT_NAME$z = "vc-progress";
24678
+ const COMPONENT_NAME$B = "vc-progress";
23987
24679
  const Progress = /* @__PURE__ */ vue.defineComponent({
23988
- name: COMPONENT_NAME$z,
24680
+ name: COMPONENT_NAME$B,
23989
24681
  props: props$n,
23990
24682
  setup(props2, {
23991
24683
  slots
@@ -24141,9 +24833,9 @@ var Vc = (function (exports, vue) {
24141
24833
  computedLabel
24142
24834
  };
24143
24835
  };
24144
- const COMPONENT_NAME$y = "vc-radio";
24836
+ const COMPONENT_NAME$A = "vc-radio";
24145
24837
  const Radio = /* @__PURE__ */ vue.defineComponent({
24146
- name: COMPONENT_NAME$y,
24838
+ name: COMPONENT_NAME$A,
24147
24839
  props: props$m,
24148
24840
  emits: ["update:modelValue", "change"],
24149
24841
  setup(props2, {
@@ -24184,9 +24876,9 @@ var Vc = (function (exports, vue) {
24184
24876
  };
24185
24877
  }
24186
24878
  });
24187
- const COMPONENT_NAME$x = "vc-radio-button";
24879
+ const COMPONENT_NAME$z = "vc-radio-button";
24188
24880
  const RadioButton = /* @__PURE__ */ vue.defineComponent({
24189
- name: COMPONENT_NAME$x,
24881
+ name: COMPONENT_NAME$z,
24190
24882
  props: {
24191
24883
  ...props$m,
24192
24884
  labelStyle: [String, Object],
@@ -24294,9 +24986,9 @@ var Vc = (function (exports, vue) {
24294
24986
  reset
24295
24987
  };
24296
24988
  };
24297
- const COMPONENT_NAME$w = "vc-radio-group";
24989
+ const COMPONENT_NAME$y = "vc-radio-group";
24298
24990
  const RadioGroup = /* @__PURE__ */ vue.defineComponent({
24299
- name: COMPONENT_NAME$w,
24991
+ name: COMPONENT_NAME$y,
24300
24992
  props: props$l,
24301
24993
  emits: ["update:modelValue", "change"],
24302
24994
  setup(props2, {
@@ -24314,9 +25006,9 @@ var Vc = (function (exports, vue) {
24314
25006
  };
24315
25007
  }
24316
25008
  });
24317
- const COMPONENT_NAME$v = "vcm-radio";
25009
+ const COMPONENT_NAME$x = "vcm-radio";
24318
25010
  const MRadio = /* @__PURE__ */ vue.defineComponent({
24319
- name: COMPONENT_NAME$v,
25011
+ name: COMPONENT_NAME$x,
24320
25012
  props: props$m,
24321
25013
  emits: ["update:modelValue", "change"],
24322
25014
  setup(props2, {
@@ -24357,9 +25049,9 @@ var Vc = (function (exports, vue) {
24357
25049
  };
24358
25050
  }
24359
25051
  });
24360
- const COMPONENT_NAME$u = "vcm-radio-group";
25052
+ const COMPONENT_NAME$w = "vcm-radio-group";
24361
25053
  const MRadioGroup = /* @__PURE__ */ vue.defineComponent({
24362
- name: COMPONENT_NAME$u,
25054
+ name: COMPONENT_NAME$w,
24363
25055
  props: props$l,
24364
25056
  emits: ["update:modelValue", "change"],
24365
25057
  setup(props2, {
@@ -24421,9 +25113,9 @@ var Vc = (function (exports, vue) {
24421
25113
  default: () => ({})
24422
25114
  }
24423
25115
  };
24424
- const COMPONENT_NAME$t = "vc-rate";
25116
+ const COMPONENT_NAME$v = "vc-rate";
24425
25117
  const Rate = /* @__PURE__ */ vue.defineComponent({
24426
- name: COMPONENT_NAME$t,
25118
+ name: COMPONENT_NAME$v,
24427
25119
  props: props$k,
24428
25120
  emits: ["update:modelValue", "change"],
24429
25121
  setup(props2, {
@@ -24618,9 +25310,9 @@ var Vc = (function (exports, vue) {
24618
25310
  renderPlaceholder: Function,
24619
25311
  renderRefresh: Function
24620
25312
  };
24621
- const COMPONENT_NAME$s = "vc-recycle-list-scroll-state";
25313
+ const COMPONENT_NAME$u = "vc-recycle-list-scroll-state";
24622
25314
  const ScrollState = /* @__PURE__ */ vue.defineComponent({
24623
- name: COMPONENT_NAME$s,
25315
+ name: COMPONENT_NAME$u,
24624
25316
  setup(_, {
24625
25317
  slots
24626
25318
  }) {
@@ -24744,10 +25436,10 @@ var Vc = (function (exports, vue) {
24744
25436
  );
24745
25437
  return keys;
24746
25438
  };
24747
- const COMPONENT_NAME$r = "vc-recycle-list-container";
25439
+ const COMPONENT_NAME$t = "vc-recycle-list-container";
24748
25440
  const transformKey = prefixStyle("transform").camel;
24749
25441
  const Container$1 = /* @__PURE__ */ vue.defineComponent({
24750
- name: COMPONENT_NAME$r,
25442
+ name: COMPONENT_NAME$t,
24751
25443
  props: props$i,
24752
25444
  emits: ["refresh"],
24753
25445
  setup(props2, {
@@ -24840,9 +25532,9 @@ var Vc = (function (exports, vue) {
24840
25532
  };
24841
25533
  }
24842
25534
  });
24843
- const COMPONENT_NAME$q = "vc-recycle-list";
25535
+ const COMPONENT_NAME$s = "vc-recycle-list";
24844
25536
  const RecycleList = /* @__PURE__ */ vue.defineComponent({
24845
- name: COMPONENT_NAME$q,
25537
+ name: COMPONENT_NAME$s,
24846
25538
  props: props$j,
24847
25539
  emits: ["scroll", "row-resize"],
24848
25540
  setup(props2, {
@@ -25367,9 +26059,9 @@ var Vc = (function (exports, vue) {
25367
26059
  default: "div"
25368
26060
  }
25369
26061
  };
25370
- const COMPONENT_NAME$p = "vc-slider";
26062
+ const COMPONENT_NAME$r = "vc-slider";
25371
26063
  const Slider = /* @__PURE__ */ vue.defineComponent({
25372
- name: COMPONENT_NAME$p,
26064
+ name: COMPONENT_NAME$r,
25373
26065
  props: props$h,
25374
26066
  setup(props2, {
25375
26067
  slots
@@ -25388,9 +26080,9 @@ var Vc = (function (exports, vue) {
25388
26080
  default: "div"
25389
26081
  }
25390
26082
  };
25391
- const COMPONENT_NAME$o = "vc-sort-list";
26083
+ const COMPONENT_NAME$q = "vc-sort-list";
25392
26084
  const SortList = /* @__PURE__ */ vue.defineComponent({
25393
- name: COMPONENT_NAME$o,
26085
+ name: COMPONENT_NAME$q,
25394
26086
  props: props$g,
25395
26087
  setup(props2, {
25396
26088
  slots
@@ -25409,9 +26101,9 @@ var Vc = (function (exports, vue) {
25409
26101
  default: "div"
25410
26102
  }
25411
26103
  };
25412
- const COMPONENT_NAME$n = "vc-steps";
26104
+ const COMPONENT_NAME$p = "vc-steps";
25413
26105
  const Steps = /* @__PURE__ */ vue.defineComponent({
25414
- name: COMPONENT_NAME$n,
26106
+ name: COMPONENT_NAME$p,
25415
26107
  props: props$f,
25416
26108
  setup(props2, {
25417
26109
  slots
@@ -25531,9 +26223,9 @@ var Vc = (function (exports, vue) {
25531
26223
  reset
25532
26224
  };
25533
26225
  };
25534
- const COMPONENT_NAME$m = "vc-switch";
26226
+ const COMPONENT_NAME$o = "vc-switch";
25535
26227
  const Switch = /* @__PURE__ */ vue.defineComponent({
25536
- name: COMPONENT_NAME$m,
26228
+ name: COMPONENT_NAME$o,
25537
26229
  props: props$e,
25538
26230
  // click -> onClick要被拦截,此处不能放置
25539
26231
  emits: ["update:modelValue", "change", "click"],
@@ -25604,9 +26296,9 @@ var Vc = (function (exports, vue) {
25604
26296
  };
25605
26297
  }
25606
26298
  });
25607
- const COMPONENT_NAME$l = "vcm-switch";
26299
+ const COMPONENT_NAME$n = "vcm-switch";
25608
26300
  const MSwitch = /* @__PURE__ */ vue.defineComponent({
25609
- name: COMPONENT_NAME$l,
26301
+ name: COMPONENT_NAME$n,
25610
26302
  props: props$e,
25611
26303
  // click -> onClick要被拦截,此处不能放置
25612
26304
  emits: ["update:modelValue", "change", "click"],
@@ -25742,9 +26434,9 @@ var Vc = (function (exports, vue) {
25742
26434
  };
25743
26435
  const columnsToRowsEffect = (v) => {
25744
26436
  let maxLevel = 1;
25745
- const traverse = (column, parent) => {
25746
- if (parent) {
25747
- column.level = parent.level + 1;
26437
+ const traverse = (column, parent2) => {
26438
+ if (parent2) {
26439
+ column.level = parent2.level + 1;
25748
26440
  if (maxLevel < column.level) {
25749
26441
  maxLevel = column.level;
25750
26442
  }
@@ -25798,8 +26490,8 @@ var Vc = (function (exports, vue) {
25798
26490
  level: baseLevel = 0
25799
26491
  } = opts;
25800
26492
  const isNil = (array) => !(Array.isArray(array) && array.length);
25801
- function _walker(parent, children, level) {
25802
- cb(parent, children, level);
26493
+ function _walker(parent2, children, level) {
26494
+ cb(parent2, children, level);
25803
26495
  children.forEach((item) => {
25804
26496
  if (item[lazyKey]) {
25805
26497
  cb(item, null, level + 1);
@@ -26012,8 +26704,8 @@ var Vc = (function (exports, vue) {
26012
26704
  const res = {};
26013
26705
  walkTreeNode(
26014
26706
  data,
26015
- (parent, children, level) => {
26016
- const parentId = getRowValue(parent, primaryKey);
26707
+ (parent2, children, level) => {
26708
+ const parentId = getRowValue(parent2, primaryKey);
26017
26709
  if (Array.isArray(children)) {
26018
26710
  res[parentId] = {
26019
26711
  children: children.map((row) => getRowValue(row, primaryKey)),
@@ -26153,9 +26845,9 @@ var Vc = (function (exports, vue) {
26153
26845
  this.store.states.treeData[key].expanded = true;
26154
26846
  walkTreeNode(
26155
26847
  data,
26156
- (parent, _, level) => {
26157
- const id = getRowValue(parent, primaryKey);
26158
- Object.defineProperty(parent, "__KEY__", {
26848
+ (parent2, _, level) => {
26849
+ const id = getRowValue(parent2, primaryKey);
26850
+ Object.defineProperty(parent2, "__KEY__", {
26159
26851
  value: `${level}__${id}`,
26160
26852
  writable: false
26161
26853
  });
@@ -26448,13 +27140,13 @@ var Vc = (function (exports, vue) {
26448
27140
  * @param index ~
26449
27141
  * @param parent ~
26450
27142
  */
26451
- insertColumn(column, index, parent) {
27143
+ insertColumn(column, index, parent2) {
26452
27144
  let array = this.states._columns;
26453
- if (parent) {
26454
- array = parent.children;
27145
+ if (parent2) {
27146
+ array = parent2.children;
26455
27147
  if (!array) {
26456
27148
  array = [];
26457
- parent.children = array;
27149
+ parent2.children = array;
26458
27150
  }
26459
27151
  }
26460
27152
  if (typeof index !== "undefined") {
@@ -26471,10 +27163,10 @@ var Vc = (function (exports, vue) {
26471
27163
  this.scheduleLayout();
26472
27164
  }
26473
27165
  }
26474
- removeColumn(column, parent) {
27166
+ removeColumn(column, parent2) {
26475
27167
  let array = this.states._columns;
26476
- if (parent) {
26477
- array = parent.children || [];
27168
+ if (parent2) {
27169
+ array = parent2.children || [];
26478
27170
  }
26479
27171
  if (array) {
26480
27172
  array.splice(array.indexOf(column), 1);
@@ -26707,9 +27399,9 @@ var Vc = (function (exports, vue) {
26707
27399
  });
26708
27400
  return states;
26709
27401
  };
26710
- const COMPONENT_NAME$k = "vc-table-normal-list";
27402
+ const COMPONENT_NAME$m = "vc-table-normal-list";
26711
27403
  const NormalList = /* @__PURE__ */ vue.defineComponent({
26712
- name: COMPONENT_NAME$k,
27404
+ name: COMPONENT_NAME$m,
26713
27405
  props: {
26714
27406
  data: {
26715
27407
  type: Array,
@@ -27703,9 +28395,9 @@ var Vc = (function (exports, vue) {
27703
28395
  default: void 0
27704
28396
  }
27705
28397
  };
27706
- const COMPONENT_NAME$j = "vc-table";
28398
+ const COMPONENT_NAME$l = "vc-table";
27707
28399
  const Table$1 = /* @__PURE__ */ vue.defineComponent({
27708
- name: COMPONENT_NAME$j,
28400
+ name: COMPONENT_NAME$l,
27709
28401
  props: props$d,
27710
28402
  emits: ["select", "select-all", "selection-change", "cell-mouse-enter", "cell-mouse-leave", "cell-click", "cell-dblclick", "row-click", "row-contextmenu", "row-dblclick", "header-click", "header-contextmenu", "current-change", "header-dragend", "expand-change", "sort-change", "update:sort"],
27711
28403
  setup(props2, {
@@ -28442,9 +29134,9 @@ var Vc = (function (exports, vue) {
28442
29134
  }) {
28443
29135
  const instance = vue.getCurrentInstance();
28444
29136
  const table = vue.inject("vc-table");
28445
- const parent = vue.inject("vc-table-column", table);
28446
- const isSubColumn = table !== parent;
28447
- const columnId = vue.ref((parent.tableId || parent.columnId) + getUid("column"));
29137
+ const parent2 = vue.inject("vc-table-column", table);
29138
+ const isSubColumn = table !== parent2;
29139
+ const columnId = vue.ref((parent2.tableId || parent2.columnId) + getUid("column"));
28448
29140
  const realWidth = vue.computed(() => {
28449
29141
  return parseWidth(props2.width);
28450
29142
  });
@@ -28570,13 +29262,13 @@ var Vc = (function (exports, vue) {
28570
29262
  registerWatchers();
28571
29263
  });
28572
29264
  vue.onMounted(() => {
28573
- const children = isSubColumn ? parent.vnode.el.children : parent.hiddenColumns.value.children;
29265
+ const children = isSubColumn ? parent2.vnode.el.children : parent2.hiddenColumns.value.children;
28574
29266
  const columnIndex = [...children].indexOf(instance.vnode.el);
28575
- table.store.insertColumn(columnConfig, columnIndex, isSubColumn && parent.columnConfig);
29267
+ table.store.insertColumn(columnConfig, columnIndex, isSubColumn && parent2.columnConfig);
28576
29268
  });
28577
29269
  vue.onUnmounted(() => {
28578
29270
  if (!instance.parent) return;
28579
- table.store.removeColumn(columnConfig, isSubColumn && parent.columnConfig);
29271
+ table.store.removeColumn(columnConfig, isSubColumn && parent2.columnConfig);
28580
29272
  });
28581
29273
  vue.provide("vc-table-column", {
28582
29274
  columnId,
@@ -28821,9 +29513,9 @@ var Vc = (function (exports, vue) {
28821
29513
  handleChange
28822
29514
  };
28823
29515
  };
28824
- const COMPONENT_NAME$i = "vc-tabs";
29516
+ const COMPONENT_NAME$k = "vc-tabs";
28825
29517
  const Tabs = /* @__PURE__ */ vue.defineComponent({
28826
- name: COMPONENT_NAME$i,
29518
+ name: COMPONENT_NAME$k,
28827
29519
  props: props$c,
28828
29520
  emits: ["update:modelValue", "change", "click"],
28829
29521
  setup(props2, {
@@ -29052,9 +29744,9 @@ var Vc = (function (exports, vue) {
29052
29744
  currentValue
29053
29745
  };
29054
29746
  };
29055
- const COMPONENT_NAME$h = "vc-tabs-pane";
29747
+ const COMPONENT_NAME$j = "vc-tabs-pane";
29056
29748
  const TabsPane = /* @__PURE__ */ vue.defineComponent({
29057
- name: COMPONENT_NAME$h,
29749
+ name: COMPONENT_NAME$j,
29058
29750
  props: props$b,
29059
29751
  setup(_, {
29060
29752
  slots
@@ -29105,9 +29797,9 @@ var Vc = (function (exports, vue) {
29105
29797
  default: false
29106
29798
  }
29107
29799
  };
29108
- const COMPONENT_NAME$g = "vcm-tabs";
29800
+ const COMPONENT_NAME$i = "vcm-tabs";
29109
29801
  const MTabs = /* @__PURE__ */ vue.defineComponent({
29110
- name: COMPONENT_NAME$g,
29802
+ name: COMPONENT_NAME$i,
29111
29803
  props: props$a,
29112
29804
  emits: ["update:modelValue", "change", "click"],
29113
29805
  setup(props2, {
@@ -29335,9 +30027,9 @@ var Vc = (function (exports, vue) {
29335
30027
  };
29336
30028
  }
29337
30029
  });
29338
- const COMPONENT_NAME$f = "vcm-tabs-pane";
30030
+ const COMPONENT_NAME$h = "vcm-tabs-pane";
29339
30031
  const MTabsPane = /* @__PURE__ */ vue.defineComponent({
29340
- name: COMPONENT_NAME$f,
30032
+ name: COMPONENT_NAME$h,
29341
30033
  props: props$b,
29342
30034
  setup(_, {
29343
30035
  slots
@@ -29396,9 +30088,9 @@ var Vc = (function (exports, vue) {
29396
30088
  default: "dark"
29397
30089
  }
29398
30090
  };
29399
- const COMPONENT_NAME$e = "vc-text";
30091
+ const COMPONENT_NAME$g = "vc-text";
29400
30092
  const Text$2 = /* @__PURE__ */ vue.defineComponent({
29401
- name: COMPONENT_NAME$e,
30093
+ name: COMPONENT_NAME$g,
29402
30094
  props: props$9,
29403
30095
  setup(props2, {
29404
30096
  emit
@@ -29757,9 +30449,9 @@ var Vc = (function (exports, vue) {
29757
30449
  type: [Object, Array]
29758
30450
  }
29759
30451
  };
29760
- const COMPONENT_NAME$d = "vc-textarea";
30452
+ const COMPONENT_NAME$f = "vc-textarea";
29761
30453
  const Textarea = /* @__PURE__ */ vue.defineComponent({
29762
- name: COMPONENT_NAME$d,
30454
+ name: COMPONENT_NAME$f,
29763
30455
  props: Object.assign({}, props$8, {
29764
30456
  indicator: {
29765
30457
  type: [Boolean, Object],
@@ -29812,9 +30504,9 @@ var Vc = (function (exports, vue) {
29812
30504
  };
29813
30505
  }
29814
30506
  });
29815
- const COMPONENT_NAME$c = "vcm-textarea";
30507
+ const COMPONENT_NAME$e = "vcm-textarea";
29816
30508
  const MTextarea = /* @__PURE__ */ vue.defineComponent({
29817
- name: COMPONENT_NAME$c,
30509
+ name: COMPONENT_NAME$e,
29818
30510
  props: Object.assign({}, props$8, {
29819
30511
  align: {
29820
30512
  type: String,
@@ -29895,9 +30587,9 @@ var Vc = (function (exports, vue) {
29895
30587
  type: [String, Object]
29896
30588
  }
29897
30589
  };
29898
- const COMPONENT_NAME$b = "vc-theme";
30590
+ const COMPONENT_NAME$d = "vc-theme";
29899
30591
  const Theme$1 = vue.defineComponent({
29900
- name: COMPONENT_NAME$b,
30592
+ name: COMPONENT_NAME$d,
29901
30593
  props: props$7,
29902
30594
  setup(props2, { slots }) {
29903
30595
  const themeId = getUid("vc-theme");
@@ -29979,9 +30671,9 @@ var Vc = (function (exports, vue) {
29979
30671
  };
29980
30672
  }
29981
30673
  });
29982
- const COMPONENT_NAME$a = "vc-theme-view";
30674
+ const COMPONENT_NAME$c = "vc-theme-view";
29983
30675
  const ThemeView = vue.defineComponent({
29984
- name: COMPONENT_NAME$a,
30676
+ name: COMPONENT_NAME$c,
29985
30677
  props: props$7,
29986
30678
  setup(props2, { slots }) {
29987
30679
  return () => {
@@ -29996,9 +30688,9 @@ var Vc = (function (exports, vue) {
29996
30688
  };
29997
30689
  }
29998
30690
  });
29999
- const COMPONENT_NAME$9 = "vc-theme-text";
30691
+ const COMPONENT_NAME$b = "vc-theme-text";
30000
30692
  const ThemeText = vue.defineComponent({
30001
- name: COMPONENT_NAME$9,
30693
+ name: COMPONENT_NAME$b,
30002
30694
  props: props$7,
30003
30695
  setup(props2, { slots }) {
30004
30696
  return () => {
@@ -30013,9 +30705,9 @@ var Vc = (function (exports, vue) {
30013
30705
  };
30014
30706
  }
30015
30707
  });
30016
- const COMPONENT_NAME$8 = "vc-theme-image";
30708
+ const COMPONENT_NAME$a = "vc-theme-image";
30017
30709
  const ThemeImage = vue.defineComponent({
30018
- name: COMPONENT_NAME$8,
30710
+ name: COMPONENT_NAME$a,
30019
30711
  props: props$7,
30020
30712
  setup(props2, { slots }) {
30021
30713
  return () => {
@@ -30063,12 +30755,12 @@ var Vc = (function (exports, vue) {
30063
30755
  default: false
30064
30756
  }
30065
30757
  };
30066
- const COMPONENT_NAME$7 = "vc-time-picker";
30758
+ const COMPONENT_NAME$9 = "vc-time-picker";
30067
30759
  const getPanel = (type) => {
30068
30760
  const isRange = type === "timerange";
30069
30761
  return isRange ? TimeRangePanel : TimePanel;
30070
30762
  };
30071
- const TimePicker = createPicker(COMPONENT_NAME$7, props$6, () => {
30763
+ const TimePicker = createPicker(COMPONENT_NAME$9, props$6, () => {
30072
30764
  const props2 = vue.getCurrentInstance().props;
30073
30765
  const icon = vue.ref("icon");
30074
30766
  const panel = vue.shallowRef({});
@@ -30099,9 +30791,9 @@ var Vc = (function (exports, vue) {
30099
30791
  default: "div"
30100
30792
  }
30101
30793
  };
30102
- const COMPONENT_NAME$6 = "vc-timeline";
30794
+ const COMPONENT_NAME$8 = "vc-timeline";
30103
30795
  const Timeline = /* @__PURE__ */ vue.defineComponent({
30104
- name: COMPONENT_NAME$6,
30796
+ name: COMPONENT_NAME$8,
30105
30797
  props: props$5,
30106
30798
  setup(props2, {
30107
30799
  slots
@@ -30122,9 +30814,9 @@ var Vc = (function (exports, vue) {
30122
30814
  default: "div"
30123
30815
  }
30124
30816
  };
30125
- const COMPONENT_NAME$5 = "vc-touch";
30817
+ const COMPONENT_NAME$7 = "vc-touch";
30126
30818
  const Touch = /* @__PURE__ */ vue.defineComponent({
30127
- name: COMPONENT_NAME$5,
30819
+ name: COMPONENT_NAME$7,
30128
30820
  props: props$4,
30129
30821
  setup(props2, {
30130
30822
  slots
@@ -30185,10 +30877,10 @@ var Vc = (function (exports, vue) {
30185
30877
  node.states.checked = false;
30186
30878
  node.states.indeterminate = false;
30187
30879
  }
30188
- const parent = node.parentNode;
30189
- if (!parent || parent.states.level === 0) return;
30880
+ const parent2 = node.parentNode;
30881
+ if (!parent2 || parent2.states.level === 0) return;
30190
30882
  if (!node.store.checkStrictly) {
30191
- reInitChecked(parent);
30883
+ reInitChecked(parent2);
30192
30884
  }
30193
30885
  };
30194
30886
  const getPropertyFromData = (node, prop) => {
@@ -30281,21 +30973,21 @@ var Vc = (function (exports, vue) {
30281
30973
  this.updateLeafState();
30282
30974
  }
30283
30975
  getNextSiblingNode() {
30284
- const parent = this.parentNode;
30285
- if (parent) {
30286
- const index = parent.childNodes.indexOf(this);
30976
+ const parent2 = this.parentNode;
30977
+ if (parent2) {
30978
+ const index = parent2.childNodes.indexOf(this);
30287
30979
  if (index > -1) {
30288
- return parent.childNodes[index + 1];
30980
+ return parent2.childNodes[index + 1];
30289
30981
  }
30290
30982
  }
30291
30983
  return null;
30292
30984
  }
30293
30985
  getPreviousSiblingNode() {
30294
- const parent = this.parentNode;
30295
- if (parent) {
30296
- const index = parent.childNodes.indexOf(this);
30986
+ const parent2 = this.parentNode;
30987
+ if (parent2) {
30988
+ const index = parent2.childNodes.indexOf(this);
30297
30989
  if (index > -1) {
30298
- return index > 0 ? parent.childNodes[index - 1] : null;
30990
+ return index > 0 ? parent2.childNodes[index - 1] : null;
30299
30991
  }
30300
30992
  }
30301
30993
  return null;
@@ -30317,8 +31009,8 @@ var Vc = (function (exports, vue) {
30317
31009
  }
30318
31010
  }
30319
31011
  contains(target, deep = true) {
30320
- const walk = function(parent) {
30321
- const children = parent.childNodes || [];
31012
+ const walk = function(parent2) {
31013
+ const children = parent2.childNodes || [];
30322
31014
  let result = false;
30323
31015
  for (let i = 0, j = children.length; i < j; i++) {
30324
31016
  const child = children[i];
@@ -30332,9 +31024,9 @@ var Vc = (function (exports, vue) {
30332
31024
  return walk(this);
30333
31025
  }
30334
31026
  remove() {
30335
- const parent = this.parentNode;
30336
- if (parent) {
30337
- parent.removeChild(this);
31027
+ const parent2 = this.parentNode;
31028
+ if (parent2) {
31029
+ parent2.removeChild(this);
30338
31030
  }
30339
31031
  }
30340
31032
  insertChild(states, index, batch) {
@@ -30407,10 +31099,10 @@ var Vc = (function (exports, vue) {
30407
31099
  async expand(expandParent) {
30408
31100
  const done = () => {
30409
31101
  if (expandParent) {
30410
- let parent = this.parentNode;
30411
- while (parent && parent.states.level > 0) {
30412
- parent.states.expanded = true;
30413
- parent = parent.parentNode;
31102
+ let parent2 = this.parentNode;
31103
+ while (parent2 && parent2.states.level > 0) {
31104
+ parent2.states.expanded = true;
31105
+ parent2 = parent2.parentNode;
30414
31106
  }
30415
31107
  }
30416
31108
  this.states.expanded = true;
@@ -30487,10 +31179,10 @@ var Vc = (function (exports, vue) {
30487
31179
  handleDescendants();
30488
31180
  }
30489
31181
  }
30490
- const parent = this.parentNode;
30491
- if (!parent || parent.states.level === 0) return;
31182
+ const parent2 = this.parentNode;
31183
+ if (!parent2 || parent2.states.level === 0) return;
30492
31184
  if (!recursion) {
30493
- reInitChecked(parent);
31185
+ reInitChecked(parent2);
30494
31186
  }
30495
31187
  }
30496
31188
  getChildren(forceInit = false) {
@@ -30628,21 +31320,68 @@ var Vc = (function (exports, vue) {
30628
31320
  parentNode.insertChild({ data });
30629
31321
  }
30630
31322
  }
31323
+ /**
31324
+ * 级联非 strict:仅对「选中集合里的最深节点」做 setChecked(true, deep),
31325
+ * 避免对祖先逐个 deep 勾选把未出现在 checkedValues 里的兄弟子树再次全选。
31326
+ * @param checkedValues ~
31327
+ * @returns ~
31328
+ */
31329
+ _getCascadeCheckedAnchorIds(checkedValues) {
31330
+ const checkedSet = new Set(checkedValues);
31331
+ const nodesMap = this.nodesMap;
31332
+ const anchors = [];
31333
+ for (const id of checkedValues) {
31334
+ const node = nodesMap[id];
31335
+ if (!node) continue;
31336
+ const hasSelectedChildInSet = node.childNodes.some(
31337
+ (child) => checkedSet.has(child.getter.value)
31338
+ );
31339
+ if (!hasSelectedChildInSet) {
31340
+ anchors.push(id);
31341
+ }
31342
+ }
31343
+ anchors.sort((a, b) => {
31344
+ const na = nodesMap[a];
31345
+ const nb = nodesMap[b];
31346
+ if (!na || !nb) return 0;
31347
+ return nb.states.level - na.states.level;
31348
+ });
31349
+ return anchors;
31350
+ }
30631
31351
  _initDefaultCheckedNodes() {
30632
31352
  const checkedValues = this.checkedValues || [];
30633
31353
  const nodesMap = this.nodesMap;
30634
- checkedValues.forEach((id) => {
31354
+ if (this.checkStrictly) {
31355
+ checkedValues.forEach((id) => {
31356
+ const node = nodesMap[id];
31357
+ if (node) {
31358
+ node.setChecked(true, false);
31359
+ }
31360
+ });
31361
+ return;
31362
+ }
31363
+ const anchorIds = this._getCascadeCheckedAnchorIds(checkedValues);
31364
+ anchorIds.forEach((id) => {
30635
31365
  const node = nodesMap[id];
30636
31366
  if (node) {
30637
- node.setChecked(true, !this.checkStrictly);
31367
+ node.setChecked(true, true);
30638
31368
  }
30639
31369
  });
30640
31370
  }
30641
31371
  _initDefaultCheckedNode(node) {
30642
31372
  const checkedValues = this.checkedValues || [];
30643
31373
  const nodeValue = node.getter.value;
30644
- if (checkedValues.indexOf(nodeValue) !== -1) {
30645
- node.setChecked(true, !this.checkStrictly);
31374
+ if (checkedValues.indexOf(nodeValue) === -1) return;
31375
+ if (this.checkStrictly) {
31376
+ node.setChecked(true, false);
31377
+ return;
31378
+ }
31379
+ const checkedSet = new Set(checkedValues);
31380
+ const hasSelectedChildInSet = node.childNodes.some(
31381
+ (child) => checkedSet.has(child.getter.value)
31382
+ );
31383
+ if (!hasSelectedChildInSet) {
31384
+ node.setChecked(true, true);
30646
31385
  }
30647
31386
  }
30648
31387
  setCheckedValues(newVal) {
@@ -30740,10 +31479,10 @@ var Vc = (function (exports, vue) {
30740
31479
  node.setChecked(false, false);
30741
31480
  }
30742
31481
  } else {
30743
- let parent = node.parentNode;
30744
- while (parent && parent.states.level > 0) {
30745
- cache[parent.states.data[key]] = true;
30746
- parent = parent.parentNode;
31482
+ let parent2 = node.parentNode;
31483
+ while (parent2 && parent2.states.level > 0) {
31484
+ cache[parent2.states.data[key]] = true;
31485
+ parent2 = parent2.parentNode;
30747
31486
  }
30748
31487
  if (node.states.isLeaf || this.checkStrictly) {
30749
31488
  node.setChecked(true, false);
@@ -30865,9 +31604,9 @@ var Vc = (function (exports, vue) {
30865
31604
  default: true
30866
31605
  }
30867
31606
  };
30868
- const COMPONENT_NAME$4 = "vc-tree-node";
31607
+ const COMPONENT_NAME$6 = "vc-tree-node";
30869
31608
  const TreeNodeContent = /* @__PURE__ */ vue.defineComponent({
30870
- name: COMPONENT_NAME$4,
31609
+ name: COMPONENT_NAME$6,
30871
31610
  props: props$3,
30872
31611
  emits: ["node-expand"],
30873
31612
  setup(props2, {
@@ -31360,9 +32099,9 @@ var Vc = (function (exports, vue) {
31360
32099
  default: () => KEY_VALUE
31361
32100
  }
31362
32101
  };
31363
- const COMPONENT_NAME$3 = "vc-tree";
32102
+ const COMPONENT_NAME$5 = "vc-tree";
31364
32103
  const Tree2 = /* @__PURE__ */ vue.defineComponent({
31365
- name: COMPONENT_NAME$3,
32104
+ name: COMPONENT_NAME$5,
31366
32105
  props: props$2,
31367
32106
  emits: ["update:modelValue", "change", "check-change", "current-change", "node-click", "node-contextmenu", "node-collapse", "node-expand", "check", "node-drag-start", "node-drag-end", "node-drop", "node-drag-leave", "node-drag-enter", "node-drag-over"],
31368
32107
  setup(props2, {
@@ -31421,10 +32160,10 @@ var Vc = (function (exports, vue) {
31421
32160
  const node = store.getNode(data);
31422
32161
  if (!node) return [];
31423
32162
  const path = [node.states.data];
31424
- let parent = node.parentNode;
31425
- while (parent && parent !== root) {
31426
- path.push(parent.states.data);
31427
- parent = parent.parentNode;
32163
+ let parent2 = node.parentNode;
32164
+ while (parent2 && parent2 !== root) {
32165
+ path.push(parent2.states.data);
32166
+ parent2 = parent2.parentNode;
31428
32167
  }
31429
32168
  return path.reverse();
31430
32169
  };
@@ -31556,6 +32295,217 @@ var Vc = (function (exports, vue) {
31556
32295
  };
31557
32296
  }
31558
32297
  });
32298
+ const COMPONENT_NAME$4 = "vc-tree-select-content";
32299
+ const TreeSelectContent = /* @__PURE__ */ vue.defineComponent({
32300
+ name: COMPONENT_NAME$4,
32301
+ props: {
32302
+ value: {
32303
+ type: Array,
32304
+ required: true
32305
+ },
32306
+ data: {
32307
+ type: Array,
32308
+ default: () => []
32309
+ },
32310
+ checkStrictly: {
32311
+ type: Boolean,
32312
+ default: false
32313
+ },
32314
+ renderNodeLabel: Function
32315
+ },
32316
+ emits: ["change"],
32317
+ setup(props2, {
32318
+ emit
32319
+ }) {
32320
+ return () => {
32321
+ return vue.createVNode(Scroller, {
32322
+ "class": "vc-tree-select__options",
32323
+ "max-height": "200px"
32324
+ }, {
32325
+ default: () => [vue.createVNode(Tree2, {
32326
+ "model-value": props2.value,
32327
+ "expanded-values": props2.value,
32328
+ "data": props2.data,
32329
+ "checkStrictly": props2.checkStrictly,
32330
+ "allowDispatch": false,
32331
+ "showCheckbox": true,
32332
+ "renderNodeLabel": props2.renderNodeLabel,
32333
+ "onChange": (_, data) => emit("change", _, data)
32334
+ }, null)]
32335
+ });
32336
+ };
32337
+ }
32338
+ });
32339
+ const COMPONENT_NAME$3 = "vc-tree-select-content-cascader";
32340
+ const TreeSelectContentCascader = /* @__PURE__ */ vue.defineComponent({
32341
+ name: COMPONENT_NAME$3,
32342
+ props: {
32343
+ value: {
32344
+ type: Array,
32345
+ required: true
32346
+ },
32347
+ data: {
32348
+ type: Array,
32349
+ default: () => []
32350
+ },
32351
+ checkStrictly: {
32352
+ type: Boolean,
32353
+ default: false
32354
+ },
32355
+ renderNodeLabel: Function,
32356
+ numerable: {
32357
+ type: Boolean,
32358
+ default: false
32359
+ },
32360
+ separator: {
32361
+ type: String,
32362
+ default: ","
32363
+ },
32364
+ max: {
32365
+ type: Number,
32366
+ default: 1
32367
+ },
32368
+ nullValue: {
32369
+ type: [Number, String, Object],
32370
+ default: void 0
32371
+ }
32372
+ },
32373
+ emits: ["change"],
32374
+ setup(props2, {
32375
+ emit
32376
+ }) {
32377
+ const treeRef = vue.ref(null);
32378
+ const currentValue = vue.ref([]);
32379
+ const rebuildData = vue.computed(() => {
32380
+ if (!props2.data.length) return [];
32381
+ let temp = props2.data;
32382
+ const data = [];
32383
+ currentValue.value.forEach((cur) => {
32384
+ const col = temp;
32385
+ data.push(col);
32386
+ const next = (temp.find((i) => i.value == cur) || {}).children || [];
32387
+ temp = next;
32388
+ });
32389
+ data.push(temp);
32390
+ return data;
32391
+ });
32392
+ const panelTick = vue.ref(0);
32393
+ const columns = vue.computed(() => Array.from({
32394
+ length: currentValue.value.length + 1
32395
+ }).map((_, index) => index));
32396
+ const handleHover = (value, columnIndex) => {
32397
+ const len = currentValue.value.length - columnIndex;
32398
+ currentValue.value.splice(columnIndex, len, value);
32399
+ };
32400
+ const sync = async () => {
32401
+ await vue.nextTick();
32402
+ const tree = treeRef.value;
32403
+ if (!tree) return;
32404
+ const data = {
32405
+ checkedNodes: tree.getCheckedNodes(),
32406
+ checkedValues: tree.getCheckedValues(),
32407
+ halfCheckedNodes: tree.getHalfCheckedNodes(),
32408
+ halfCheckedValues: tree.getHalfCheckedValues()
32409
+ };
32410
+ panelTick.value++;
32411
+ emit("change", null, data);
32412
+ };
32413
+ const getNodeState = (item) => {
32414
+ const tree = treeRef.value;
32415
+ if (!tree) {
32416
+ return {
32417
+ checked: false,
32418
+ indeterminate: false
32419
+ };
32420
+ }
32421
+ const node = tree.getNode(item);
32422
+ if (!node) {
32423
+ return {
32424
+ checked: false,
32425
+ indeterminate: false
32426
+ };
32427
+ }
32428
+ return {
32429
+ checked: !!node.states.checked,
32430
+ indeterminate: !!node.states.indeterminate
32431
+ };
32432
+ };
32433
+ const hasChildren = (item) => {
32434
+ return !!(item.children && item.children.length > 0);
32435
+ };
32436
+ const handleCheckboxChange = async (v, item) => {
32437
+ const tree = treeRef.value;
32438
+ if (!tree) return;
32439
+ tree.setChecked(item, v, !props2.checkStrictly);
32440
+ sync();
32441
+ };
32442
+ const handleLabelClick = (v, item) => {
32443
+ const tree = treeRef.value;
32444
+ if (!tree) return;
32445
+ tree.setChecked(item, v, !props2.checkStrictly);
32446
+ sync();
32447
+ };
32448
+ return () => {
32449
+ return vue.createVNode("div", {
32450
+ "class": "vc-tree-select__cascader"
32451
+ }, [vue.createVNode(Tree2, {
32452
+ "ref": treeRef,
32453
+ "class": "vc-tree-select__cascader-tree-hidden",
32454
+ "model-value": props2.value,
32455
+ "expanded-values": props2.value,
32456
+ "data": props2.data,
32457
+ "checkStrictly": props2.checkStrictly,
32458
+ "allowDispatch": false,
32459
+ "showCheckbox": true,
32460
+ "renderNodeLabel": props2.renderNodeLabel,
32461
+ "numerable": props2.numerable,
32462
+ "separator": props2.separator,
32463
+ "max": props2.max,
32464
+ "nullValue": props2.nullValue
32465
+ }, null), vue.createVNode("div", {
32466
+ "class": "vc-tree-select__cascader-columns"
32467
+ }, [columns.value.map((columnIndex) => {
32468
+ const col = rebuildData.value[columnIndex];
32469
+ if (!col || !col.length) return null;
32470
+ return vue.createVNode("div", {
32471
+ "class": "vc-tree-select__cascader-column",
32472
+ "key": columnIndex
32473
+ }, [vue.createVNode("div", {
32474
+ "class": "vc-tree-select__cascader-column-wrapper"
32475
+ }, [col.map((item) => {
32476
+ const state = getNodeState(item);
32477
+ const isSelect = currentValue.value[columnIndex] === item.value;
32478
+ const child = hasChildren(item);
32479
+ return vue.createVNode("div", {
32480
+ "key": item.value,
32481
+ "class": ["vc-tree-select__cascader-item", {
32482
+ "is-select": isSelect
32483
+ }],
32484
+ "onMouseenter": () => handleHover(item.value, columnIndex),
32485
+ "onClick": () => handleLabelClick(!state.checked, item)
32486
+ }, [vue.createVNode("span", {
32487
+ "class": "vc-tree-select__cascader-checkbox",
32488
+ "onClick": (e) => e.stopPropagation()
32489
+ }, [vue.createVNode(Checkbox, {
32490
+ "modelValue": state.checked,
32491
+ "indeterminate": state.indeterminate,
32492
+ "disabled": !!item.disabled,
32493
+ "onChange": (v) => handleCheckboxChange(v, item)
32494
+ }, null)]), vue.createVNode("span", {
32495
+ "class": "vc-tree-select__cascader-label"
32496
+ }, [props2.renderNodeLabel && treeRef.value?.getNode?.(item) ? vue.createVNode(Customer, {
32497
+ "render": props2.renderNodeLabel,
32498
+ "store": treeRef.value.getNode(item),
32499
+ "row": item
32500
+ }, null) : vue.createVNode("span", null, [item.label])]), child ? vue.createVNode(Icon, {
32501
+ "type": "right",
32502
+ "class": "vc-tree-select__cascader-icon"
32503
+ }, null) : null]);
32504
+ })])]);
32505
+ })])]);
32506
+ };
32507
+ }
32508
+ });
31559
32509
  const treeKeys = [
31560
32510
  "checkStrictly",
31561
32511
  "data",
@@ -31564,7 +32514,18 @@ var Vc = (function (exports, vue) {
31564
32514
  ];
31565
32515
  const props$1 = {
31566
32516
  ...props$1a,
31567
- ...pick(props$2, treeKeys)
32517
+ ...pick(props$2, treeKeys),
32518
+ autoWidth: {
32519
+ type: Boolean,
32520
+ default: void 0
32521
+ },
32522
+ /**
32523
+ * 级联列模式:与 Cascader 相同的 hover 展开下一级,勾选逻辑与树形模式一致
32524
+ */
32525
+ cascader: {
32526
+ type: Boolean,
32527
+ default: false
32528
+ }
31568
32529
  };
31569
32530
  const COMPONENT_NAME$2 = "vc-tree-select";
31570
32531
  const TreeSelect = /* @__PURE__ */ vue.defineComponent({
@@ -31587,12 +32548,37 @@ var Vc = (function (exports, vue) {
31587
32548
  const searchValue = vue.ref("");
31588
32549
  const searchRegex = vue.ref(new RegExp(""));
31589
32550
  const currentValue = vue.ref([]);
32551
+ const currentValueGroups = vue.computed(() => {
32552
+ if (props2.checkStrictly) return;
32553
+ if (!props2.data?.length || !Array.isArray(currentValue.value) || !currentValue.value.length) {
32554
+ return [];
32555
+ }
32556
+ const pathMap = /* @__PURE__ */ new Map();
32557
+ const traverse = (data, path = []) => {
32558
+ data.forEach((item) => {
32559
+ const v = item.value;
32560
+ if (v == null) return;
32561
+ const fullPath = [...path, v];
32562
+ pathMap.set(v, fullPath);
32563
+ if (item.children?.length) traverse(item.children, fullPath);
32564
+ });
32565
+ };
32566
+ traverse(props2.data);
32567
+ const allPaths = currentValue.value.map((v) => pathMap.get(v)).filter(Boolean);
32568
+ return allPaths.filter((path) => !allPaths.some((other) => other !== path && other.length > path.length && path.every((v, i) => v === other[i])));
32569
+ });
31590
32570
  const source = vue.computed(() => {
31591
32571
  return flattenData$1(props2.data, {
31592
32572
  parent: true,
31593
32573
  cascader: true
31594
32574
  });
31595
32575
  });
32576
+ const labelMap = vue.computed(() => {
32577
+ return source.value.reduce((pre, cur) => {
32578
+ pre[cur.value] = cur.label || "";
32579
+ return pre;
32580
+ }, {});
32581
+ });
31596
32582
  const icon = vue.computed(() => {
31597
32583
  return isActive.value ? "up" : "down";
31598
32584
  });
@@ -31609,17 +32595,34 @@ var Vc = (function (exports, vue) {
31609
32595
  "is-disabled": props2.disabled
31610
32596
  };
31611
32597
  });
31612
- const currentLabel = vue.computed(() => {
32598
+ const displayTags = vue.computed(() => {
31613
32599
  if (!props2.data.length) {
31614
32600
  return [];
31615
32601
  }
31616
- return currentValue.value.map(getLabel.bind(null, source.value));
32602
+ if (props2.checkStrictly) {
32603
+ return currentValue.value.map((v) => ({
32604
+ value: v,
32605
+ label: labelMap.value[v] || ""
32606
+ }));
32607
+ }
32608
+ return (currentValueGroups.value || []).map((path) => {
32609
+ const value = path[path.length - 1];
32610
+ const label = path.map((v) => labelMap.value[v] || "").filter(Boolean).join(" / ");
32611
+ return {
32612
+ path,
32613
+ value,
32614
+ label
32615
+ };
32616
+ });
31617
32617
  });
31618
32618
  const collapseTagCount = vue.computed(() => {
31619
32619
  if (!props2.maxTags) return 0;
31620
- const v = currentValue.value.length - props2.maxTags;
32620
+ const v = displayTags.value.length - props2.maxTags;
31621
32621
  return v < 0 ? 0 : v;
31622
32622
  });
32623
+ const autoWidth = vue.computed(() => {
32624
+ return typeof props2.autoWidth === "boolean" ? props2.autoWidth : !!props2.cascader;
32625
+ });
31623
32626
  const sync = () => {
31624
32627
  const v = toModelValue(currentValue.value, {
31625
32628
  modelValue: props2.modelValue,
@@ -31628,8 +32631,9 @@ var Vc = (function (exports, vue) {
31628
32631
  separator: props2.separator,
31629
32632
  nullValue: props2.nullValue
31630
32633
  });
31631
- emit("update:modelValue", v, currentLabel.value);
31632
- emit("change", v, currentLabel.value);
32634
+ const labels = displayTags.value.map((item) => item.label);
32635
+ emit("update:modelValue", v, labels);
32636
+ emit("change", v, labels);
31633
32637
  formItem?.change?.(currentValue.value);
31634
32638
  };
31635
32639
  const _loadData = debounce(function() {
@@ -31648,8 +32652,15 @@ var Vc = (function (exports, vue) {
31648
32652
  const close = () => {
31649
32653
  isActive.value = false;
31650
32654
  };
31651
- const handleClose = (index) => {
31652
- currentValue.value.splice(index, 1);
32655
+ const handleClose = (item) => {
32656
+ if (props2.checkStrictly) {
32657
+ const index = currentValue.value.findIndex((v) => v === item.value);
32658
+ if (index === -1) return;
32659
+ currentValue.value = currentValue.value.filter((_, i) => i !== index);
32660
+ } else if (item.path) {
32661
+ const remaining = (currentValueGroups.value || []).filter((p) => !(p.length === item.path.length && p.every((v, i) => v === item.path[i])));
32662
+ currentValue.value = [...new Set(remaining.flat())];
32663
+ }
31653
32664
  sync();
31654
32665
  };
31655
32666
  const handleClear = (e) => {
@@ -31686,6 +32697,7 @@ var Vc = (function (exports, vue) {
31686
32697
  multiple,
31687
32698
  isActive,
31688
32699
  current: currentValue,
32700
+ currentValueGroups,
31689
32701
  // for portal
31690
32702
  toggle(v) {
31691
32703
  v = typeof v === "boolean" ? v : !isActive.value;
@@ -31700,7 +32712,7 @@ var Vc = (function (exports, vue) {
31700
32712
  "trigger": props2.trigger,
31701
32713
  "tag": props2.tag,
31702
32714
  "placement": props2.placement,
31703
- "auto-width": props2.autoWidth,
32715
+ "autoWidth": autoWidth.value,
31704
32716
  "disabled": props2.disabled,
31705
32717
  "portalClass": [["is-padding-none", props2.portalClass]],
31706
32718
  "class": [classes.value, its.value.class, "vc-tree-select"],
@@ -31717,22 +32729,22 @@ var Vc = (function (exports, vue) {
31717
32729
  return vue.createVNode(Input$1, {
31718
32730
  "id": props2.id,
31719
32731
  "disabled": props2.disabled,
31720
- "modelValue": currentLabel.value[0] || props2.extra,
32732
+ "modelValue": displayTags.value[0]?.label || props2.extra,
31721
32733
  "allow-dispatch": false,
31722
32734
  "class": "vc-tree-select__input",
31723
32735
  "readonly": true,
31724
32736
  "placeholder": its.value.attrs?.placeholder || "请选择"
31725
32737
  }, {
31726
- content: multiple.value && currentValue.value && currentValue.value.length > 0 ? () => {
32738
+ content: multiple.value && displayTags.value.length > 0 ? () => {
31727
32739
  return vue.createVNode("div", {
31728
32740
  "class": [classes.value, "vc-tree-select__tags"]
31729
- }, [currentValue.value.slice(0, props2.maxTags).map((item, index) => {
32741
+ }, [displayTags.value.slice(0, props2.maxTags).map((item) => {
31730
32742
  return vue.createVNode(Tag, {
31731
- "key": item,
32743
+ "key": item.path ? item.path.join("-") : item.value,
31732
32744
  "closable": !props2.disabled,
31733
- "onClose": () => handleClose(index)
32745
+ "onClose": () => handleClose(item)
31734
32746
  }, {
31735
- default: () => [currentLabel.value[index] || ""]
32747
+ default: () => [item.label]
31736
32748
  });
31737
32749
  }), collapseTagCount.value ? vue.createVNode(Tag, null, {
31738
32750
  default: () => [`+${collapseTagCount.value}...`]
@@ -31765,16 +32777,23 @@ var Vc = (function (exports, vue) {
31765
32777
  }, [vue.createVNode(Spin, {
31766
32778
  "size": 16
31767
32779
  }, null)]), vue.createVNode(Scroller, {
31768
- "class": "vc-tree-select__options",
32780
+ "class": ["vc-tree-select__options", props2.cascader && "is-cascader"],
31769
32781
  "max-height": "200px"
31770
32782
  }, {
31771
- default: () => [vue.createVNode(Tree2, {
31772
- "model-value": currentValue.value,
31773
- "expanded-values": currentValue.value,
32783
+ default: () => [props2.cascader ? vue.createVNode(TreeSelectContentCascader, {
32784
+ "value": currentValue.value,
32785
+ "data": props2.data,
32786
+ "checkStrictly": props2.checkStrictly,
32787
+ "renderNodeLabel": props2.renderNodeLabel,
32788
+ "numerable": props2.numerable,
32789
+ "separator": props2.separator,
32790
+ "max": props2.max,
32791
+ "nullValue": props2.nullValue,
32792
+ "onChange": handleChange
32793
+ }, null) : vue.createVNode(TreeSelectContent, {
32794
+ "value": currentValue.value,
31774
32795
  "data": props2.data,
31775
32796
  "checkStrictly": props2.checkStrictly,
31776
- "allowDispatch": false,
31777
- "showCheckbox": true,
31778
32797
  "renderNodeLabel": props2.renderNodeLabel,
31779
32798
  "onChange": handleChange
31780
32799
  }, null)]
@@ -32343,8 +33362,8 @@ var Vc = (function (exports, vue) {
32343
33362
  MCard,
32344
33363
  Carousel,
32345
33364
  MCarousel,
32346
- // CarouselItem,
32347
- // MCarouselItem,
33365
+ CarouselItem,
33366
+ MCarouselItem,
32348
33367
  Cascader,
32349
33368
  MCascader,
32350
33369
  // MCascaderView,
@@ -138696,6 +139715,7 @@ ${r}
138696
139715
  exports.Calendar = Calendar$1;
138697
139716
  exports.Card = Card;
138698
139717
  exports.Carousel = Carousel;
139718
+ exports.CarouselItem = CarouselItem;
138699
139719
  exports.Cascader = Cascader;
138700
139720
  exports.Chart = Chart;
138701
139721
  exports.Checkbox = Checkbox;
@@ -138742,6 +139762,7 @@ ${r}
138742
139762
  exports.MCalendar = MCalendar;
138743
139763
  exports.MCard = MCard;
138744
139764
  exports.MCarousel = MCarousel;
139765
+ exports.MCarouselItem = MCarouselItem;
138745
139766
  exports.MCascader = MCascader;
138746
139767
  exports.MChart = MChart;
138747
139768
  exports.MCheckbox = MCheckbox;