@deot/vc 1.0.57 → 1.0.59

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.
@@ -117,7 +117,6 @@ var Vc = (function (exports, vue) {
117
117
  const instance = vue.getCurrentInstance();
118
118
  const regex = new RegExp(`${componentName}$`);
119
119
  let parent = instance.parent;
120
- /* istanbul ignore next -- @preserve */
121
120
  while (parent && !(parent?.type?.name && regex.test(parent.type.name)) && (!privateKey || !parent?.[privateKey] || !parent?.proxy?.[privateKey])) {
122
121
  parent = parent.parent || parent?.type?.parent;
123
122
  }
@@ -9076,37 +9075,43 @@ var Vc = (function (exports, vue) {
9076
9075
  if (!message || !target) return;
9077
9076
  message = `[@deot/vc - ${target}]: ${message}`;
9078
9077
  this.message = message;
9079
- /* istanbul ignore next -- @preserve */
9080
9078
  }
9081
9079
  }
9082
9080
  const VARIABLES = {};
9083
9081
  const nil = void 0;
9084
9082
  const defaults$2 = {
9085
- UploadPicker: {
9086
- enhancer: nil
9087
- },
9088
9083
  Editor: {
9089
9084
  options: nil,
9090
9085
  enhancer: nil
9091
9086
  },
9092
- Theme: {
9093
- variables: VARIABLES
9094
- },
9095
9087
  Portal: {
9096
9088
  install: nil
9097
9089
  },
9098
- Upload: {
9099
- onRequest: nil,
9100
- onResponse: nil,
9101
- onMessage: nil
9102
- },
9103
- TableColumn: {
9104
- line: nil
9090
+ RecycleList: {
9091
+ renderRefresh: nil,
9092
+ renderPlaceholder: nil,
9093
+ renderLoading: nil,
9094
+ renderComplete: nil,
9095
+ renderEmpty: nil
9105
9096
  },
9106
9097
  Snapshot: {
9107
9098
  options: nil,
9108
9099
  source: nil,
9109
9100
  download: nil
9101
+ },
9102
+ TableColumn: {
9103
+ line: nil
9104
+ },
9105
+ Theme: {
9106
+ variables: VARIABLES
9107
+ },
9108
+ Upload: {
9109
+ onRequest: nil,
9110
+ onResponse: nil,
9111
+ onMessage: nil
9112
+ },
9113
+ UploadPicker: {
9114
+ enhancer: nil
9110
9115
  }
9111
9116
  };
9112
9117
  class Instance {
@@ -9133,16 +9138,16 @@ var Vc = (function (exports, vue) {
9133
9138
  }
9134
9139
  }
9135
9140
  const VcInstance = new Instance();
9136
- const props$1t = {
9141
+ const props$1u = {
9137
9142
  tag: {
9138
9143
  type: String,
9139
9144
  default: "div"
9140
9145
  }
9141
9146
  };
9142
- const COMPONENT_NAME$29 = "vc-action-sheet";
9147
+ const COMPONENT_NAME$2a = "vc-action-sheet";
9143
9148
  const ActionSheet = /* @__PURE__ */ vue.defineComponent({
9144
- name: COMPONENT_NAME$29,
9145
- props: props$1t,
9149
+ name: COMPONENT_NAME$2a,
9150
+ props: props$1u,
9146
9151
  setup(props2, {
9147
9152
  slots
9148
9153
  }) {
@@ -9154,7 +9159,7 @@ var Vc = (function (exports, vue) {
9154
9159
  }
9155
9160
  });
9156
9161
  const MActionSheet = ActionSheet;
9157
- const props$1s = {
9162
+ const props$1t = {
9158
9163
  modelValue: {
9159
9164
  type: Boolean,
9160
9165
  default: false
@@ -9212,11 +9217,11 @@ var Vc = (function (exports, vue) {
9212
9217
  const isWheel = (el2) => {
9213
9218
  return SCROLLER_WHEEL_REG.test(el2?.className || "");
9214
9219
  };
9215
- const COMPONENT_NAME$28 = "vc-affix";
9220
+ const COMPONENT_NAME$29 = "vc-affix";
9216
9221
  const Affix = /* @__PURE__ */ vue.defineComponent({
9217
- name: COMPONENT_NAME$28,
9222
+ name: COMPONENT_NAME$29,
9218
9223
  emits: ["update:modelValue"],
9219
- props: props$1s,
9224
+ props: props$1t,
9220
9225
  setup(props2, {
9221
9226
  slots,
9222
9227
  expose,
@@ -9376,7 +9381,7 @@ var Vc = (function (exports, vue) {
9376
9381
  }
9377
9382
  });
9378
9383
  const MAffix = Affix;
9379
- const props$1r = {
9384
+ const props$1s = {
9380
9385
  modelValue: {
9381
9386
  type: Boolean,
9382
9387
  default: true
@@ -9402,7 +9407,7 @@ var Vc = (function (exports, vue) {
9402
9407
  default: false
9403
9408
  }
9404
9409
  };
9405
- const props$1q = {
9410
+ const props$1r = {
9406
9411
  type: String,
9407
9412
  inherit: {
9408
9413
  type: Boolean,
@@ -9439,7 +9444,6 @@ var Vc = (function (exports, vue) {
9439
9444
  const key = `${prefix}${url}`;
9440
9445
  const cache = window.localStorage.getItem(key);
9441
9446
  let icons = JSON.parse(cache || '""');
9442
- /* istanbul ignore next -- @preserve */
9443
9447
  if (!icons) {
9444
9448
  const data = await new Promise((resolve$) => {
9445
9449
  const request = new XMLHttpRequest();
@@ -9474,7 +9478,6 @@ var Vc = (function (exports, vue) {
9474
9478
  });
9475
9479
  resolve();
9476
9480
  } catch (e) {
9477
- /* istanbul ignore next -- @preserve */
9478
9481
  reject(new VcError("icon", e));
9479
9482
  }
9480
9483
  })();
@@ -9486,7 +9489,6 @@ var Vc = (function (exports, vue) {
9486
9489
  const icons = {};
9487
9490
  setTimeout(() => {
9488
9491
  try {
9489
- /* istanbul ignore next -- @preserve */
9490
9492
  IS_DEV && console.time(url);
9491
9493
  svgStr.replace(svgReg, "$1")?.match(symbolReg)?.forEach(
9492
9494
  (i) => i.replace(basicReg, (_, ...args) => {
@@ -9501,23 +9503,19 @@ var Vc = (function (exports, vue) {
9501
9503
  return "";
9502
9504
  })
9503
9505
  );
9504
- /* istanbul ignore next -- @preserve */
9505
9506
  IS_DEV && console.timeEnd(url);
9506
9507
  resolve(icons);
9507
9508
  } catch (e) {
9508
- /* istanbul ignore next -- @preserve */
9509
9509
  reject(new VcError("icon", e));
9510
9510
  }
9511
9511
  }, 0);
9512
9512
  });
9513
9513
  }
9514
9514
  on(type, fn) {
9515
- /* istanbul ignore next -- @preserve */
9516
9515
  if (typeof type !== "string" || typeof fn !== "function") return this;
9517
9516
  this.events[type] = this.events[type] || [];
9518
9517
  if (this.events[type].length >= 100) {
9519
9518
  delete this.events[type];
9520
- /* istanbul ignore else -- @preserve */
9521
9519
  if (!IS_SERVER) {
9522
9520
  throw new VcError("icon", `${type} nonexistent`);
9523
9521
  }
@@ -9526,7 +9524,6 @@ var Vc = (function (exports, vue) {
9526
9524
  return this;
9527
9525
  }
9528
9526
  off(type, fn) {
9529
- /* istanbul ignore next -- @preserve */
9530
9527
  if (typeof type !== "string" || typeof fn !== "function") return this;
9531
9528
  this.events[type] = this.events[type]?.filter((i) => i != fn);
9532
9529
  return this;
@@ -9543,10 +9540,10 @@ var Vc = (function (exports, vue) {
9543
9540
  }
9544
9541
  }
9545
9542
  const IconManager = new Manager();
9546
- const COMPONENT_NAME$27 = "vc-icon";
9543
+ const COMPONENT_NAME$28 = "vc-icon";
9547
9544
  const Icon = /* @__PURE__ */ vue.defineComponent({
9548
- name: COMPONENT_NAME$27,
9549
- props: props$1q,
9545
+ name: COMPONENT_NAME$28,
9546
+ props: props$1r,
9550
9547
  setup(props2) {
9551
9548
  const viewBox = vue.ref("0 0 1024 1024");
9552
9549
  const path = vue.ref([]);
@@ -9578,7 +9575,7 @@ var Vc = (function (exports, vue) {
9578
9575
  };
9579
9576
  }
9580
9577
  });
9581
- const props$1p = {
9578
+ const props$1q = {
9582
9579
  /**
9583
9580
  * 进入/离开持续时间
9584
9581
  * {enter: 300, leave: 300}
@@ -9741,10 +9738,10 @@ var Vc = (function (exports, vue) {
9741
9738
  }
9742
9739
  };
9743
9740
  };
9744
- const COMPONENT_NAME$26 = "vc-transition";
9741
+ const COMPONENT_NAME$27 = "vc-transition";
9745
9742
  const Transition = vue.defineComponent({
9746
- name: COMPONENT_NAME$26,
9747
- props: props$1p,
9743
+ name: COMPONENT_NAME$27,
9744
+ props: props$1q,
9748
9745
  // 当不声明emits的情况下,事件存在于attrs中
9749
9746
  inheritAttrs: false,
9750
9747
  setup(props2, { slots, attrs }) {
@@ -9763,10 +9760,10 @@ var Vc = (function (exports, vue) {
9763
9760
  };
9764
9761
  }
9765
9762
  });
9766
- const COMPONENT_NAME$25 = "vc-transition-collapse";
9763
+ const COMPONENT_NAME$26 = "vc-transition-collapse";
9767
9764
  const TransitionCollapse = vue.defineComponent({
9768
- name: COMPONENT_NAME$25,
9769
- props: props$1p,
9765
+ name: COMPONENT_NAME$26,
9766
+ props: props$1q,
9770
9767
  // 当不声明emits的情况下,事件存在于attrs中
9771
9768
  inheritAttrs: false,
9772
9769
  setup(props2, { slots, attrs: _attrs }) {
@@ -9783,7 +9780,6 @@ var Vc = (function (exports, vue) {
9783
9780
  const handleBeforeEnter = (el2) => {
9784
9781
  const duration = props2.duration.enter || props2.duration;
9785
9782
  el2.style.transition = getTransitionStyle(duration);
9786
- /* istanbul ignore next -- @preserve */
9787
9783
  if (!el2.dataset) {
9788
9784
  el2.dataset = {};
9789
9785
  }
@@ -9800,7 +9796,6 @@ var Vc = (function (exports, vue) {
9800
9796
  const next = createNext(done, duration);
9801
9797
  try {
9802
9798
  el2.dataset.oldOverflow = el2.style.overflow;
9803
- /* istanbul ignore next -- @preserve */
9804
9799
  if (el2.scrollHeight !== 0) {
9805
9800
  el2.style.height = el2.scrollHeight + "px";
9806
9801
  el2.style.paddingTop = el2.dataset.oldPaddingTop + "px";
@@ -9823,7 +9818,6 @@ var Vc = (function (exports, vue) {
9823
9818
  attrs.onAfterEnter?.(el2);
9824
9819
  };
9825
9820
  const handleBeforeLeave = (el2) => {
9826
- /* istanbul ignore next -- @preserve */
9827
9821
  if (!el2.dataset) {
9828
9822
  el2.dataset = {};
9829
9823
  }
@@ -9840,7 +9834,6 @@ var Vc = (function (exports, vue) {
9840
9834
  const next = createNext(done, duration);
9841
9835
  try {
9842
9836
  const leaveDuration = props2.duration.leave || props2.duration;
9843
- /* istanbul ignore next -- @preserve */
9844
9837
  if (el2.scrollHeight !== 0) {
9845
9838
  el2.style.transition = getTransitionStyle(leaveDuration);
9846
9839
  el2.style.height = "0px";
@@ -9883,11 +9876,11 @@ var Vc = (function (exports, vue) {
9883
9876
  };
9884
9877
  }
9885
9878
  });
9886
- const COMPONENT_NAME$24 = "vc-transition-fade";
9879
+ const COMPONENT_NAME$25 = "vc-transition-fade";
9887
9880
  const TransitionFade = vue.defineComponent({
9888
- name: COMPONENT_NAME$24,
9881
+ name: COMPONENT_NAME$25,
9889
9882
  props: {
9890
- ...props$1p,
9883
+ ...props$1q,
9891
9884
  // inheritAttrs必须是false
9892
9885
  style: {
9893
9886
  type: Object,
@@ -9919,11 +9912,11 @@ var Vc = (function (exports, vue) {
9919
9912
  };
9920
9913
  }
9921
9914
  });
9922
- const COMPONENT_NAME$23 = "vc-transition-scale";
9915
+ const COMPONENT_NAME$24 = "vc-transition-scale";
9923
9916
  const TransitionScale = vue.defineComponent({
9924
- name: COMPONENT_NAME$23,
9917
+ name: COMPONENT_NAME$24,
9925
9918
  props: {
9926
- ...props$1p,
9919
+ ...props$1q,
9927
9920
  mode: {
9928
9921
  type: String,
9929
9922
  default: "both",
@@ -9960,11 +9953,11 @@ var Vc = (function (exports, vue) {
9960
9953
  };
9961
9954
  }
9962
9955
  });
9963
- const COMPONENT_NAME$22 = "vc-transition-slide";
9956
+ const COMPONENT_NAME$23 = "vc-transition-slide";
9964
9957
  const TransitionSlide = vue.defineComponent({
9965
- name: COMPONENT_NAME$22,
9958
+ name: COMPONENT_NAME$23,
9966
9959
  props: {
9967
- ...props$1p,
9960
+ ...props$1q,
9968
9961
  mode: {
9969
9962
  type: String,
9970
9963
  default: "left",
@@ -10001,11 +9994,11 @@ var Vc = (function (exports, vue) {
10001
9994
  };
10002
9995
  }
10003
9996
  });
10004
- const COMPONENT_NAME$21 = "vc-transition-zoom";
9997
+ const COMPONENT_NAME$22 = "vc-transition-zoom";
10005
9998
  const TransitionZoom = vue.defineComponent({
10006
- name: COMPONENT_NAME$21,
9999
+ name: COMPONENT_NAME$22,
10007
10000
  props: {
10008
- ...props$1p,
10001
+ ...props$1q,
10009
10002
  mode: {
10010
10003
  type: String,
10011
10004
  default: "x",
@@ -10042,7 +10035,7 @@ var Vc = (function (exports, vue) {
10042
10035
  };
10043
10036
  }
10044
10037
  });
10045
- const COMPONENT_NAME$20 = "vc-alert";
10038
+ const COMPONENT_NAME$21 = "vc-alert";
10046
10039
  const THEME_MAP = {
10047
10040
  info: ["#456CF6", "#91d5ff", "#e6f7ff"],
10048
10041
  success: ["#52c41a", "#b7eb8f", "#f6ffed"],
@@ -10050,8 +10043,8 @@ var Vc = (function (exports, vue) {
10050
10043
  warning: ["#ffbf00", "#ffe58f", "#fffbe6"]
10051
10044
  };
10052
10045
  const Alert = /* @__PURE__ */ vue.defineComponent({
10053
- name: COMPONENT_NAME$20,
10054
- props: props$1r,
10046
+ name: COMPONENT_NAME$21,
10047
+ props: props$1s,
10055
10048
  setup(props2, {
10056
10049
  slots,
10057
10050
  emit
@@ -10137,7 +10130,7 @@ var Vc = (function (exports, vue) {
10137
10130
  }
10138
10131
  });
10139
10132
  const MAlert = Alert;
10140
- const props$1o = {
10133
+ const props$1p = {
10141
10134
  // canvas配置参数
10142
10135
  options: Object,
10143
10136
  width: {
@@ -10150,10 +10143,10 @@ var Vc = (function (exports, vue) {
10150
10143
  }
10151
10144
  };
10152
10145
  const isTouch = typeof document !== "undefined" && "ontouchend" in document;
10153
- const COMPONENT_NAME$1$ = "vc-artboard";
10146
+ const COMPONENT_NAME$20 = "vc-artboard";
10154
10147
  const Artboard = /* @__PURE__ */ vue.defineComponent({
10155
- name: COMPONENT_NAME$1$,
10156
- props: props$1o,
10148
+ name: COMPONENT_NAME$20,
10149
+ props: props$1p,
10157
10150
  setup(props2, {
10158
10151
  emit,
10159
10152
  expose
@@ -10328,7 +10321,7 @@ var Vc = (function (exports, vue) {
10328
10321
  }
10329
10322
  });
10330
10323
  const MArtboard = Artboard;
10331
- const props$1n = {
10324
+ const props$1o = {
10332
10325
  size: {
10333
10326
  type: Number,
10334
10327
  default: 28
@@ -10349,10 +10342,10 @@ var Vc = (function (exports, vue) {
10349
10342
  default: false
10350
10343
  }
10351
10344
  };
10352
- const COMPONENT_NAME$1_ = "vc-spin";
10345
+ const COMPONENT_NAME$1$ = "vc-spin";
10353
10346
  const Spin = /* @__PURE__ */ vue.defineComponent({
10354
- name: COMPONENT_NAME$1_,
10355
- props: props$1n,
10347
+ name: COMPONENT_NAME$1$,
10348
+ props: props$1o,
10356
10349
  setup(props2, {
10357
10350
  slots
10358
10351
  }) {
@@ -10385,7 +10378,7 @@ var Vc = (function (exports, vue) {
10385
10378
  };
10386
10379
  }
10387
10380
  });
10388
- const props$1m = {
10381
+ const props$1n = {
10389
10382
  wait: {
10390
10383
  type: Number,
10391
10384
  default: 250
@@ -10400,10 +10393,10 @@ var Vc = (function (exports, vue) {
10400
10393
  },
10401
10394
  exclude: RegExp
10402
10395
  };
10403
- const COMPONENT_NAME$1Z = "vc-debounce";
10396
+ const COMPONENT_NAME$1_ = "vc-debounce";
10404
10397
  const Debounce = vue.defineComponent({
10405
- name: COMPONENT_NAME$1Z,
10406
- props: props$1m,
10398
+ name: COMPONENT_NAME$1_,
10399
+ props: props$1n,
10407
10400
  /**
10408
10401
  * 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
10409
10402
  * 如事件onClick
@@ -10418,7 +10411,6 @@ var Vc = (function (exports, vue) {
10418
10411
  () => {
10419
10412
  const { wait, exclude, include } = props2;
10420
10413
  const ons = Object.entries(attrs).reduce((pre, [key, callback]) => {
10421
- /* istanbul ignore else -- @preserve */
10422
10414
  if ((!exclude || !exclude.test(key)) && (!include || include.test(key)) && typeof callback === "function") {
10423
10415
  pre[key] = debounce(callback, wait, {
10424
10416
  leading: true,
@@ -10443,7 +10435,7 @@ var Vc = (function (exports, vue) {
10443
10435
  };
10444
10436
  }
10445
10437
  });
10446
- const props$1l = {
10438
+ const props$1m = {
10447
10439
  tag: {
10448
10440
  type: String,
10449
10441
  default: "button"
@@ -10472,11 +10464,11 @@ var Vc = (function (exports, vue) {
10472
10464
  default: "button"
10473
10465
  }
10474
10466
  };
10475
- const COMPONENT_NAME$1Y = "vc-button";
10467
+ const COMPONENT_NAME$1Z = "vc-button";
10476
10468
  const Button = /* @__PURE__ */ vue.defineComponent({
10477
- name: COMPONENT_NAME$1Y,
10469
+ name: COMPONENT_NAME$1Z,
10478
10470
  emits: ["click"],
10479
- props: props$1l,
10471
+ props: props$1m,
10480
10472
  setup(props2, {
10481
10473
  slots
10482
10474
  }) {
@@ -10536,7 +10528,7 @@ var Vc = (function (exports, vue) {
10536
10528
  };
10537
10529
  }
10538
10530
  });
10539
- const props$1k = {
10531
+ const props$1l = {
10540
10532
  vertical: {
10541
10533
  type: Boolean,
10542
10534
  default: false
@@ -10554,10 +10546,10 @@ var Vc = (function (exports, vue) {
10554
10546
  default: false
10555
10547
  }
10556
10548
  };
10557
- const COMPONENT_NAME$1X = "vc-button-group";
10549
+ const COMPONENT_NAME$1Y = "vc-button-group";
10558
10550
  const ButtonGroup = /* @__PURE__ */ vue.defineComponent({
10559
- name: COMPONENT_NAME$1X,
10560
- props: props$1k,
10551
+ name: COMPONENT_NAME$1Y,
10552
+ props: props$1l,
10561
10553
  setup(props2, {
10562
10554
  slots
10563
10555
  }) {
@@ -10579,16 +10571,16 @@ var Vc = (function (exports, vue) {
10579
10571
  });
10580
10572
  const MButton = Button;
10581
10573
  const MButtonGroup = ButtonGroup;
10582
- const props$1j = {
10574
+ const props$1k = {
10583
10575
  tag: {
10584
10576
  type: String,
10585
10577
  default: "div"
10586
10578
  }
10587
10579
  };
10588
- const COMPONENT_NAME$1W = "vc-calendar";
10580
+ const COMPONENT_NAME$1X = "vc-calendar";
10589
10581
  const Calendar$1 = /* @__PURE__ */ vue.defineComponent({
10590
- name: COMPONENT_NAME$1W,
10591
- props: props$1j,
10582
+ name: COMPONENT_NAME$1X,
10583
+ props: props$1k,
10592
10584
  setup(props2, {
10593
10585
  slots
10594
10586
  }) {
@@ -10600,7 +10592,7 @@ var Vc = (function (exports, vue) {
10600
10592
  }
10601
10593
  });
10602
10594
  const MCalendar = Calendar$1;
10603
- const props$1i = {
10595
+ const props$1j = {
10604
10596
  border: {
10605
10597
  type: Boolean,
10606
10598
  default: true
@@ -10620,10 +10612,10 @@ var Vc = (function (exports, vue) {
10620
10612
  type: String
10621
10613
  }
10622
10614
  };
10623
- const COMPONENT_NAME$1V = "vc-card";
10615
+ const COMPONENT_NAME$1W = "vc-card";
10624
10616
  const Card = /* @__PURE__ */ vue.defineComponent({
10625
- name: COMPONENT_NAME$1V,
10626
- props: props$1i,
10617
+ name: COMPONENT_NAME$1W,
10618
+ props: props$1j,
10627
10619
  setup(props2, {
10628
10620
  slots
10629
10621
  }) {
@@ -10647,16 +10639,16 @@ var Vc = (function (exports, vue) {
10647
10639
  }
10648
10640
  });
10649
10641
  const MCard = Card;
10650
- const props$1h = {
10642
+ const props$1i = {
10651
10643
  tag: {
10652
10644
  type: String,
10653
10645
  default: "div"
10654
10646
  }
10655
10647
  };
10656
- const COMPONENT_NAME$1U = "vc-carousel";
10648
+ const COMPONENT_NAME$1V = "vc-carousel";
10657
10649
  const Carousel = /* @__PURE__ */ vue.defineComponent({
10658
- name: COMPONENT_NAME$1U,
10659
- props: props$1h,
10650
+ name: COMPONENT_NAME$1V,
10651
+ props: props$1i,
10660
10652
  setup(props2, {
10661
10653
  slots
10662
10654
  }) {
@@ -10694,7 +10686,7 @@ var Vc = (function (exports, vue) {
10694
10686
  data
10695
10687
  });
10696
10688
  };
10697
- const props$1g = {
10689
+ const props$1h = {
10698
10690
  // Array, 作为select等数组存放临时值
10699
10691
  modelValue: [String, Number, Array],
10700
10692
  disabled: {
@@ -10940,12 +10932,12 @@ var Vc = (function (exports, vue) {
10940
10932
  expose?.(exposed);
10941
10933
  return exposed;
10942
10934
  };
10943
- const COMPONENT_NAME$1T = "vc-input";
10935
+ const COMPONENT_NAME$1U = "vc-input";
10944
10936
  const Input$1 = /* @__PURE__ */ vue.defineComponent({
10945
- name: COMPONENT_NAME$1T,
10937
+ name: COMPONENT_NAME$1U,
10946
10938
  inheritAttrs: false,
10947
10939
  props: {
10948
- ...props$1g,
10940
+ ...props$1h,
10949
10941
  indicator: {
10950
10942
  type: [Boolean, Object],
10951
10943
  default: false
@@ -11047,8 +11039,8 @@ var Vc = (function (exports, vue) {
11047
11039
  };
11048
11040
  }
11049
11041
  });
11050
- const props$1f = {
11051
- ...props$1g,
11042
+ const props$1g = {
11043
+ ...props$1h,
11052
11044
  min: {
11053
11045
  type: Number,
11054
11046
  default: 0
@@ -11273,10 +11265,10 @@ var Vc = (function (exports, vue) {
11273
11265
  handleStepper
11274
11266
  };
11275
11267
  };
11276
- const COMPONENT_NAME$1S = "vc-input-number";
11268
+ const COMPONENT_NAME$1T = "vc-input-number";
11277
11269
  const InputNumber = /* @__PURE__ */ vue.defineComponent({
11278
- name: COMPONENT_NAME$1S,
11279
- props: props$1f,
11270
+ name: COMPONENT_NAME$1T,
11271
+ props: props$1g,
11280
11272
  inheritAttrs: false,
11281
11273
  setup(props2, {
11282
11274
  slots,
@@ -11328,17 +11320,17 @@ var Vc = (function (exports, vue) {
11328
11320
  };
11329
11321
  }
11330
11322
  });
11331
- const props$1e = {
11332
- ...props$1g,
11323
+ const props$1f = {
11324
+ ...props$1h,
11333
11325
  enterText: {
11334
11326
  type: [Boolean, String],
11335
11327
  default: true
11336
11328
  }
11337
11329
  };
11338
- const COMPONENT_NAME$1R = "vc-input-search";
11330
+ const COMPONENT_NAME$1S = "vc-input-search";
11339
11331
  const InputSearch = /* @__PURE__ */ vue.defineComponent({
11340
- name: COMPONENT_NAME$1R,
11341
- props: props$1e,
11332
+ name: COMPONENT_NAME$1S,
11333
+ props: props$1f,
11342
11334
  inheritAttrs: false,
11343
11335
  setup(props2, {
11344
11336
  emit,
@@ -11369,7 +11361,7 @@ var Vc = (function (exports, vue) {
11369
11361
  };
11370
11362
  }
11371
11363
  });
11372
- const props$1d = {
11364
+ const props$1e = {
11373
11365
  modelValue: Boolean,
11374
11366
  animation: String,
11375
11367
  placement: {
@@ -11447,7 +11439,7 @@ var Vc = (function (exports, vue) {
11447
11439
  "autoWidth",
11448
11440
  "always"
11449
11441
  ];
11450
- const props$1c = {
11442
+ const props$1d = {
11451
11443
  trigger: {
11452
11444
  type: String,
11453
11445
  default: "hover",
@@ -11465,7 +11457,7 @@ var Vc = (function (exports, vue) {
11465
11457
  type: Boolean,
11466
11458
  default: true
11467
11459
  },
11468
- ...pick(props$1d, wrapperKeys)
11460
+ ...pick(props$1e, wrapperKeys)
11469
11461
  };
11470
11462
  const EXTRA_DISTANCE = 4;
11471
11463
  const HALF_ARROW = 12.73 / 2;
@@ -11719,16 +11711,16 @@ var Vc = (function (exports, vue) {
11719
11711
  getRect
11720
11712
  };
11721
11713
  };
11722
- const props$1b = {
11714
+ const props$1c = {
11723
11715
  render: {
11724
11716
  type: Function,
11725
11717
  default: () => null
11726
11718
  }
11727
11719
  };
11728
- const COMPONENT_NAME$1Q = "vc-customer";
11720
+ const COMPONENT_NAME$1R = "vc-customer";
11729
11721
  const Customer = vue.defineComponent({
11730
- name: COMPONENT_NAME$1Q,
11731
- props: props$1b,
11722
+ name: COMPONENT_NAME$1R,
11723
+ props: props$1c,
11732
11724
  setup(props2, context) {
11733
11725
  return () => vue.h(() => {
11734
11726
  return props2.render(context.attrs, context);
@@ -11800,7 +11792,7 @@ var Vc = (function (exports, vue) {
11800
11792
  return this.target.finally(callback);
11801
11793
  }
11802
11794
  }
11803
- const COMPONENT_NAME$1P = "vc-portal";
11795
+ const COMPONENT_NAME$1Q = "vc-portal";
11804
11796
  class Portal {
11805
11797
  /**
11806
11798
  * 清理Portals类型组件
@@ -11830,7 +11822,6 @@ var Vc = (function (exports, vue) {
11830
11822
  }
11831
11823
  }
11832
11824
  } catch (e) {
11833
- /* istanbul ignore next -- @preserve */
11834
11825
  throw new VcError("instance", e);
11835
11826
  }
11836
11827
  }
@@ -11841,7 +11832,6 @@ var Vc = (function (exports, vue) {
11841
11832
  try {
11842
11833
  Portal.leafs.forEach((leaf) => leaf.destroy());
11843
11834
  } catch (e) {
11844
- /* istanbul ignore next -- @preserve */
11845
11835
  throw new VcError("instance", e);
11846
11836
  }
11847
11837
  }
@@ -11852,7 +11842,7 @@ var Vc = (function (exports, vue) {
11852
11842
  this.wrapper = wrapper;
11853
11843
  this.globalOptions = {
11854
11844
  ...options,
11855
- name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1P)
11845
+ name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1Q)
11856
11846
  };
11857
11847
  }
11858
11848
  popup(propsData, options) {
@@ -11914,7 +11904,6 @@ var Vc = (function (exports, vue) {
11914
11904
  return (...args) => {
11915
11905
  const done = () => {
11916
11906
  const leaf = getLeaf();
11917
- /* istanbul ignore next -- @preserve */
11918
11907
  if (!leaf) {
11919
11908
  throw new VcError("portal", "实例不存在或已卸载");
11920
11909
  }
@@ -11951,7 +11940,7 @@ var Vc = (function (exports, vue) {
11951
11940
  ...rest
11952
11941
  } = options;
11953
11942
  let useAllNodes = fragment;
11954
- const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1P)}` : name$;
11943
+ const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1Q)}` : name$;
11955
11944
  const container = document.createElement(tag);
11956
11945
  const root = typeof el2 === "object" ? el2 : document.querySelector(el2 || "body");
11957
11946
  !alive && Portal.leafs.get(name)?.destroy();
@@ -11965,7 +11954,6 @@ var Vc = (function (exports, vue) {
11965
11954
  if (isDestroyed()) return;
11966
11955
  onDestroyed?.(...args);
11967
11956
  leaf.app?.unmount();
11968
- /* istanbul ignore else -- @preserve */
11969
11957
  if (useAllNodes) {
11970
11958
  root?.contains(container) && root.removeChild(container);
11971
11959
  } else if (container && container._children) {
@@ -11986,23 +11974,20 @@ var Vc = (function (exports, vue) {
11986
11974
  } else {
11987
11975
  const wrapper = this.wrapper;
11988
11976
  const app = vue.createApp({
11989
- name: COMPONENT_NAME$1P,
11977
+ name: COMPONENT_NAME$1Q,
11990
11978
  parent,
11991
11979
  setup() {
11992
11980
  if (alive) {
11993
11981
  const handleExtra = (e) => {
11994
11982
  try {
11995
11983
  const path = e.path || composedPath(e);
11996
- /* istanbul ignore else -- @preserve */
11997
11984
  if (container && e.target && !container.contains(e.target) && !path?.some((item) => utils.eleInRegExp(item, aliveRegExp))) {
11998
- /* istanbul ignore else -- @preserve */
11999
11985
  if (leaf.wrapper && leaf.wrapper?.[aliveVisibleKey]) {
12000
11986
  typeof leaf.wrapper[aliveVisibleKey] === "function" ? leaf.wrapper[aliveVisibleKey](false) : leaf.wrapper[aliveVisibleKey] = false;
12001
11987
  }
12002
11988
  leaveDelay ? setTimeout($onDestroyed, leaveDelay) : $onDestroyed();
12003
11989
  }
12004
11990
  } catch (error2) {
12005
- /* istanbul ignore next -- @preserve */
12006
11991
  throw new VcError("portal", error2);
12007
11992
  }
12008
11993
  };
@@ -12092,16 +12077,16 @@ var Vc = (function (exports, vue) {
12092
12077
  return leaf;
12093
12078
  }
12094
12079
  }
12095
- const props$1a = {
12080
+ const props$1b = {
12096
12081
  tag: {
12097
12082
  type: String,
12098
12083
  default: "div"
12099
12084
  }
12100
12085
  };
12101
- const COMPONENT_NAME$1O = "vc-portal-view";
12086
+ const COMPONENT_NAME$1P = "vc-portal-view";
12102
12087
  const PortalView = /* @__PURE__ */ vue.defineComponent({
12103
- name: COMPONENT_NAME$1O,
12104
- props: props$1a,
12088
+ name: COMPONENT_NAME$1P,
12089
+ props: props$1b,
12105
12090
  setup(props2, {
12106
12091
  slots
12107
12092
  }) {
@@ -12114,10 +12099,10 @@ var Vc = (function (exports, vue) {
12114
12099
  };
12115
12100
  }
12116
12101
  });
12117
- const COMPONENT_NAME$1N = "vc-popover-wrapper";
12102
+ const COMPONENT_NAME$1O = "vc-popover-wrapper";
12118
12103
  const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
12119
- name: COMPONENT_NAME$1N,
12120
- props: props$1d,
12104
+ name: COMPONENT_NAME$1O,
12105
+ props: props$1e,
12121
12106
  emits: ["portal-fulfilled", "close"],
12122
12107
  setup(props2, {
12123
12108
  emit,
@@ -12338,10 +12323,10 @@ var Vc = (function (exports, vue) {
12338
12323
  const PopoverPortal = new Portal(PopoverWrapper, {
12339
12324
  leaveDelay: 0
12340
12325
  });
12341
- const COMPONENT_NAME$1M = "vc-popover";
12326
+ const COMPONENT_NAME$1N = "vc-popover";
12342
12327
  const Popover$1 = /* @__PURE__ */ vue.defineComponent({
12343
- name: COMPONENT_NAME$1M,
12344
- props: props$1c,
12328
+ name: COMPONENT_NAME$1N,
12329
+ props: props$1d,
12345
12330
  emits: ["update:modelValue", "visible-change", "ready", "close"],
12346
12331
  setup(props2, {
12347
12332
  emit,
@@ -12468,9 +12453,9 @@ var Vc = (function (exports, vue) {
12468
12453
  const Popover = Object.assign(Popover$1, {
12469
12454
  open: PopoverPortal.popup.bind(PopoverPortal)
12470
12455
  });
12471
- const COMPONENT_NAME$1L = "vc-cascader-column";
12456
+ const COMPONENT_NAME$1M = "vc-cascader-column";
12472
12457
  const CascaderColumn = /* @__PURE__ */ vue.defineComponent({
12473
- name: COMPONENT_NAME$1L,
12458
+ name: COMPONENT_NAME$1M,
12474
12459
  emits: ["click", "change"],
12475
12460
  props: {
12476
12461
  data: {
@@ -12587,9 +12572,9 @@ var Vc = (function (exports, vue) {
12587
12572
  "portal",
12588
12573
  "portalClass"
12589
12574
  ];
12590
- const props$19 = {
12591
- ...pick(props$1c, popoverKeys$1),
12592
- ...pick(props$1g, inputKeys$2),
12575
+ const props$1a = {
12576
+ ...pick(props$1d, popoverKeys$1),
12577
+ ...pick(props$1h, inputKeys$2),
12593
12578
  renderOption: [Function],
12594
12579
  renderOptionGroup: [Function],
12595
12580
  data: {
@@ -12654,8 +12639,8 @@ var Vc = (function (exports, vue) {
12654
12639
  },
12655
12640
  label: String
12656
12641
  };
12657
- const props$18 = {
12658
- ...props$19,
12642
+ const props$19 = {
12643
+ ...props$1a,
12659
12644
  data: {
12660
12645
  type: Array,
12661
12646
  default: () => []
@@ -12673,11 +12658,11 @@ var Vc = (function (exports, vue) {
12673
12658
  default: true
12674
12659
  }
12675
12660
  };
12676
- const COMPONENT_NAME$1K = "vc-cascader";
12661
+ const COMPONENT_NAME$1L = "vc-cascader";
12677
12662
  const Cascader = /* @__PURE__ */ vue.defineComponent({
12678
- name: COMPONENT_NAME$1K,
12663
+ name: COMPONENT_NAME$1L,
12679
12664
  inheritAttrs: false,
12680
- props: props$18,
12665
+ props: props$19,
12681
12666
  emits: ["update:modelValue", "visible-change", "ready", "change", "close"],
12682
12667
  setup(props2, {
12683
12668
  emit,
@@ -12952,7 +12937,7 @@ var Vc = (function (exports, vue) {
12952
12937
  "globalout",
12953
12938
  "contextmenu"
12954
12939
  ];
12955
- const props$17 = {
12940
+ const props$18 = {
12956
12941
  options: Object,
12957
12942
  pluginOptions: Object,
12958
12943
  theme: [String, Object],
@@ -12964,14 +12949,15 @@ var Vc = (function (exports, vue) {
12964
12949
  watchShallow: Boolean,
12965
12950
  manualUpdate: Boolean
12966
12951
  };
12967
- const COMPONENT_NAME$1J = "vc-chart";
12952
+ const COMPONENT_NAME$1K = "vc-chart";
12968
12953
  const Chart = /* @__PURE__ */ vue.defineComponent({
12969
- name: COMPONENT_NAME$1J,
12970
- props: props$17,
12954
+ name: COMPONENT_NAME$1K,
12955
+ props: props$18,
12971
12956
  emits: [...EVENTS$1, "ready"],
12972
12957
  setup(props2, {
12973
12958
  emit,
12974
- slots
12959
+ slots,
12960
+ expose
12975
12961
  }) {
12976
12962
  const instance = vue.getCurrentInstance();
12977
12963
  const chart = vue.shallowRef(null);
@@ -13066,6 +13052,10 @@ var Vc = (function (exports, vue) {
13066
13052
  }
13067
13053
  });
13068
13054
  });
13055
+ expose({
13056
+ chart,
13057
+ refresh
13058
+ });
13069
13059
  vue.onUnmounted(destroy2);
13070
13060
  return () => {
13071
13061
  return vue.createVNode("div", {
@@ -13076,7 +13066,7 @@ var Vc = (function (exports, vue) {
13076
13066
  }
13077
13067
  });
13078
13068
  const MChart = Chart;
13079
- const props$16 = {
13069
+ const props$17 = {
13080
13070
  disabled: {
13081
13071
  type: Boolean,
13082
13072
  default: false
@@ -13188,10 +13178,10 @@ var Vc = (function (exports, vue) {
13188
13178
  computedLabel
13189
13179
  };
13190
13180
  };
13191
- const COMPONENT_NAME$1I = "vc-checkbox";
13181
+ const COMPONENT_NAME$1J = "vc-checkbox";
13192
13182
  const Checkbox = /* @__PURE__ */ vue.defineComponent({
13193
- name: COMPONENT_NAME$1I,
13194
- props: props$16,
13183
+ name: COMPONENT_NAME$1J,
13184
+ props: props$17,
13195
13185
  emits: ["update:modelValue", "change"],
13196
13186
  setup(props2, {
13197
13187
  slots
@@ -13227,7 +13217,7 @@ var Vc = (function (exports, vue) {
13227
13217
  };
13228
13218
  }
13229
13219
  });
13230
- const props$15 = {
13220
+ const props$16 = {
13231
13221
  modelValue: {
13232
13222
  type: Array,
13233
13223
  default: () => []
@@ -13272,10 +13262,10 @@ var Vc = (function (exports, vue) {
13272
13262
  reset
13273
13263
  };
13274
13264
  };
13275
- const COMPONENT_NAME$1H = "vc-checkbox-group";
13265
+ const COMPONENT_NAME$1I = "vc-checkbox-group";
13276
13266
  const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
13277
- name: COMPONENT_NAME$1H,
13278
- props: props$15,
13267
+ name: COMPONENT_NAME$1I,
13268
+ props: props$16,
13279
13269
  emits: ["update:modelValue", "change"],
13280
13270
  setup(props2, {
13281
13271
  slots
@@ -13289,10 +13279,10 @@ var Vc = (function (exports, vue) {
13289
13279
  };
13290
13280
  }
13291
13281
  });
13292
- const COMPONENT_NAME$1G = "vcm-checkbox";
13282
+ const COMPONENT_NAME$1H = "vcm-checkbox";
13293
13283
  const MCheckbox = /* @__PURE__ */ vue.defineComponent({
13294
- name: COMPONENT_NAME$1G,
13295
- props: props$16,
13284
+ name: COMPONENT_NAME$1H,
13285
+ props: props$17,
13296
13286
  emits: ["update:modelValue", "change"],
13297
13287
  setup(props2, {
13298
13288
  slots
@@ -13328,10 +13318,10 @@ var Vc = (function (exports, vue) {
13328
13318
  };
13329
13319
  }
13330
13320
  });
13331
- const COMPONENT_NAME$1F = "vcm-checkbox-group";
13321
+ const COMPONENT_NAME$1G = "vcm-checkbox-group";
13332
13322
  const MCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
13333
- name: COMPONENT_NAME$1F,
13334
- props: props$15,
13323
+ name: COMPONENT_NAME$1G,
13324
+ props: props$16,
13335
13325
  emits: ["update:modelValue", "change"],
13336
13326
  setup(props2, {
13337
13327
  slots
@@ -13345,7 +13335,7 @@ var Vc = (function (exports, vue) {
13345
13335
  };
13346
13336
  }
13347
13337
  });
13348
- const props$14 = {
13338
+ const props$15 = {
13349
13339
  content: [String, Function],
13350
13340
  mask: {
13351
13341
  type: Boolean,
@@ -13380,11 +13370,11 @@ var Vc = (function (exports, vue) {
13380
13370
  // 这个相当于Modal中的onCancel,支持Promise
13381
13371
  onBeforeClose: Function
13382
13372
  };
13383
- const COMPONENT_NAME$1E = "vc-message";
13373
+ const COMPONENT_NAME$1F = "vc-message";
13384
13374
  const MessageView = /* @__PURE__ */ vue.defineComponent({
13385
- name: COMPONENT_NAME$1E,
13375
+ name: COMPONENT_NAME$1F,
13386
13376
  emits: ["before-close", "close", "portal-fulfilled"],
13387
- props: props$14,
13377
+ props: props$15,
13388
13378
  setup(props2, {
13389
13379
  emit,
13390
13380
  expose
@@ -13511,7 +13501,7 @@ var Vc = (function (exports, vue) {
13511
13501
  const warning$3 = create$4({ mode: "warning" });
13512
13502
  const error$3 = create$4({ mode: "error" });
13513
13503
  const Message = Object.assign(MessageView, { destroy: destroy$5, info: info$3, success: success$3, loading: loading$1, warning: warning$3, error: error$3 });
13514
- const props$13 = {
13504
+ const props$14 = {
13515
13505
  value: String,
13516
13506
  tag: {
13517
13507
  type: [String, Object, Function],
@@ -13625,16 +13615,16 @@ var Vc = (function (exports, vue) {
13625
13615
  };
13626
13616
  return () => vue.h(props2.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
13627
13617
  };
13628
- const COMPONENT_NAME$1D = "vc-clipboard";
13618
+ const COMPONENT_NAME$1E = "vc-clipboard";
13629
13619
  const Clipboard$1 = vue.defineComponent({
13630
- name: COMPONENT_NAME$1D,
13631
- props: props$13,
13620
+ name: COMPONENT_NAME$1E,
13621
+ props: props$14,
13632
13622
  setup() {
13633
13623
  return useClipboard((content) => Message.success({ content }));
13634
13624
  }
13635
13625
  });
13636
13626
  const Clipboard$2 = Object.assign(Clipboard$1, group);
13637
- const props$12 = {
13627
+ const props$13 = {
13638
13628
  content: [String, Function],
13639
13629
  maskClosable: {
13640
13630
  type: Boolean,
@@ -13659,11 +13649,11 @@ var Vc = (function (exports, vue) {
13659
13649
  const MTransitionScale = TransitionScale;
13660
13650
  const MTransitionSlide = TransitionSlide;
13661
13651
  const MTransitionZoom = TransitionZoom;
13662
- const COMPONENT_NAME$1C = "vcm-toast";
13652
+ const COMPONENT_NAME$1D = "vcm-toast";
13663
13653
  const MToastView = /* @__PURE__ */ vue.defineComponent({
13664
- name: COMPONENT_NAME$1C,
13654
+ name: COMPONENT_NAME$1D,
13665
13655
  emits: ["close", "portal-fulfilled"],
13666
- props: props$12,
13656
+ props: props$13,
13667
13657
  setup(props2, {
13668
13658
  emit,
13669
13659
  expose
@@ -13760,16 +13750,16 @@ var Vc = (function (exports, vue) {
13760
13750
  const warning$2 = create$3({ mode: "warning" });
13761
13751
  const error$2 = create$3({ mode: "error" });
13762
13752
  const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
13763
- const COMPONENT_NAME$1B = "vcm-clipboard";
13753
+ const COMPONENT_NAME$1C = "vcm-clipboard";
13764
13754
  const MClipboard$1 = vue.defineComponent({
13765
- name: COMPONENT_NAME$1B,
13766
- props: props$13,
13755
+ name: COMPONENT_NAME$1C,
13756
+ props: props$14,
13767
13757
  setup() {
13768
13758
  return useClipboard((content) => MToast.info({ content }));
13769
13759
  }
13770
13760
  });
13771
13761
  const MClipboard = Object.assign(MClipboard$1, group);
13772
- const props$11 = {
13762
+ const props$12 = {
13773
13763
  tag: {
13774
13764
  type: String,
13775
13765
  default: "div"
@@ -13791,10 +13781,10 @@ var Vc = (function (exports, vue) {
13791
13781
  default: false
13792
13782
  }
13793
13783
  };
13794
- const COMPONENT_NAME$1A = "vc-collapse";
13784
+ const COMPONENT_NAME$1B = "vc-collapse";
13795
13785
  const Collapse = vue.defineComponent({
13796
- name: COMPONENT_NAME$1A,
13797
- props: props$11,
13786
+ name: COMPONENT_NAME$1B,
13787
+ props: props$12,
13798
13788
  emits: ["update:moodelValue", "change"],
13799
13789
  setup(props2, { slots, emit }) {
13800
13790
  const instance = vue.getCurrentInstance();
@@ -13878,7 +13868,7 @@ var Vc = (function (exports, vue) {
13878
13868
  };
13879
13869
  }
13880
13870
  });
13881
- const props$10 = {
13871
+ const props$11 = {
13882
13872
  tag: {
13883
13873
  type: String,
13884
13874
  default: "div"
@@ -13887,7 +13877,7 @@ var Vc = (function (exports, vue) {
13887
13877
  type: [String, Number]
13888
13878
  }
13889
13879
  };
13890
- const props$$ = {
13880
+ const props$10 = {
13891
13881
  tag: {
13892
13882
  type: String,
13893
13883
  default: "div"
@@ -13902,13 +13892,13 @@ var Vc = (function (exports, vue) {
13902
13892
  default: true
13903
13893
  }
13904
13894
  };
13905
- function _isSlot$2(s) {
13895
+ function _isSlot$3(s) {
13906
13896
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
13907
13897
  }
13908
- const COMPONENT_NAME$1z = "vc-expand";
13898
+ const COMPONENT_NAME$1A = "vc-expand";
13909
13899
  const Expand$1 = /* @__PURE__ */ vue.defineComponent({
13910
- name: COMPONENT_NAME$1z,
13911
- props: props$$,
13900
+ name: COMPONENT_NAME$1A,
13901
+ props: props$10,
13912
13902
  setup(props2, {
13913
13903
  slots
13914
13904
  }) {
@@ -13926,7 +13916,7 @@ var Vc = (function (exports, vue) {
13926
13916
  enter: 200,
13927
13917
  leave: 200
13928
13918
  }
13929
- }, _isSlot$2(_slot = vue.withDirectives(vue.createVNode(Content, null, {
13919
+ }, _isSlot$3(_slot = vue.withDirectives(vue.createVNode(Content, null, {
13930
13920
  default: () => [(props2.alive || !props2.alive && isActive.value) && slots.default?.()]
13931
13921
  }), [[vue.vShow, isActive.value]])) ? _slot : {
13932
13922
  default: () => [_slot]
@@ -13934,10 +13924,10 @@ var Vc = (function (exports, vue) {
13934
13924
  };
13935
13925
  }
13936
13926
  });
13937
- const COMPONENT_NAME$1y = "vc-collapse-item";
13927
+ const COMPONENT_NAME$1z = "vc-collapse-item";
13938
13928
  const CollapseItem = /* @__PURE__ */ vue.defineComponent({
13939
- name: COMPONENT_NAME$1y,
13940
- props: props$10,
13929
+ name: COMPONENT_NAME$1z,
13930
+ props: props$11,
13941
13931
  setup(props2, {
13942
13932
  slots,
13943
13933
  expose
@@ -14000,16 +13990,16 @@ var Vc = (function (exports, vue) {
14000
13990
  });
14001
13991
  const MCollapse = Collapse;
14002
13992
  const MCollapseItem = CollapseItem;
14003
- const props$_ = {
13993
+ const props$$ = {
14004
13994
  tag: {
14005
13995
  type: String,
14006
13996
  default: "div"
14007
13997
  }
14008
13998
  };
14009
- const COMPONENT_NAME$1x = "vc-color-picker";
13999
+ const COMPONENT_NAME$1y = "vc-color-picker";
14010
14000
  const ColorPicker$1 = /* @__PURE__ */ vue.defineComponent({
14011
- name: COMPONENT_NAME$1x,
14012
- props: props$_,
14001
+ name: COMPONENT_NAME$1y,
14002
+ props: props$$,
14013
14003
  setup(props2, {
14014
14004
  slots
14015
14005
  }) {
@@ -14021,7 +14011,7 @@ var Vc = (function (exports, vue) {
14021
14011
  }
14022
14012
  });
14023
14013
  const MColorPicker = ColorPicker$1;
14024
- const props$Z = {
14014
+ const props$_ = {
14025
14015
  tag: {
14026
14016
  type: String,
14027
14017
  default: "span"
@@ -14062,14 +14052,14 @@ var Vc = (function (exports, vue) {
14062
14052
  const formatter = (format, arr) => {
14063
14053
  return format.replace("DD", arr[0]).replace("HH", arr[1]).replace("mm", arr[2]).replace("ss", arr[3]).replace("SSS", arr[4]);
14064
14054
  };
14065
- function _isSlot$1(s) {
14055
+ function _isSlot$2(s) {
14066
14056
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14067
14057
  }
14068
- const COMPONENT_NAME$1w = "vc-countdown";
14058
+ const COMPONENT_NAME$1x = "vc-countdown";
14069
14059
  const Countdown = /* @__PURE__ */ vue.defineComponent({
14070
- name: COMPONENT_NAME$1w,
14071
- props: props$Z,
14072
- emits: ["change", "finish", "error"],
14060
+ name: COMPONENT_NAME$1x,
14061
+ props: props$_,
14062
+ emits: ["change", "complete", "error"],
14073
14063
  setup(props2, {
14074
14064
  emit,
14075
14065
  slots
@@ -14152,7 +14142,7 @@ var Vc = (function (exports, vue) {
14152
14142
  second: "00",
14153
14143
  millisecond: "00"
14154
14144
  });
14155
- emit("finish");
14145
+ emit("complete");
14156
14146
  } else {
14157
14147
  emit("change", {
14158
14148
  timestamp,
@@ -14191,7 +14181,7 @@ var Vc = (function (exports, vue) {
14191
14181
  // @ts-ignore
14192
14182
  vue.createVNode(Content, {
14193
14183
  "class": "vc-countdown"
14194
- }, _isSlot$1(_slot = slots.default(binds.value)) ? _slot : {
14184
+ }, _isSlot$2(_slot = slots.default(binds.value)) ? _slot : {
14195
14185
  default: () => [_slot]
14196
14186
  })
14197
14187
  );
@@ -14213,6 +14203,339 @@ var Vc = (function (exports, vue) {
14213
14203
  }
14214
14204
  });
14215
14205
  const MCountdown = Countdown;
14206
+ const props$Z = {
14207
+ tag: {
14208
+ type: String,
14209
+ default: "span"
14210
+ },
14211
+ value: [Number, String],
14212
+ placeholder: String,
14213
+ precision: {
14214
+ type: Number,
14215
+ default: 0
14216
+ },
14217
+ duration: {
14218
+ type: Number,
14219
+ default: 500
14220
+ },
14221
+ decimal: {
14222
+ type: String,
14223
+ default: "."
14224
+ },
14225
+ separator: {
14226
+ type: String,
14227
+ default: ","
14228
+ },
14229
+ numerals: {
14230
+ type: Array,
14231
+ default: () => []
14232
+ },
14233
+ smartEasingThreshold: {
14234
+ type: Number,
14235
+ default: 999
14236
+ },
14237
+ smartEasingAmount: {
14238
+ type: Number,
14239
+ default: 333
14240
+ },
14241
+ easing: {
14242
+ type: [Function, Boolean],
14243
+ default: true
14244
+ },
14245
+ // 10.90 -> 10.9
14246
+ zeroless: {
14247
+ type: Boolean,
14248
+ default: false
14249
+ },
14250
+ // 为true时,自行管理start/update
14251
+ controllable: {
14252
+ type: Boolean,
14253
+ default: false
14254
+ },
14255
+ render: Function
14256
+ };
14257
+ const separated2value = (value, options) => {
14258
+ if (typeof value === "number" || typeof value !== "string") return value;
14259
+ const escapeRegExp = (s) => s.replace(/([.,' ])/g, "\\$1");
14260
+ const sep = escapeRegExp(options.separator);
14261
+ const dec = escapeRegExp(options.decimal);
14262
+ const num = (value || "").replace(new RegExp(sep, "g"), "").replace(new RegExp(dec, "g"), ".");
14263
+ return parseFloat(num);
14264
+ };
14265
+ const value2separated = (value, options) => {
14266
+ const num = typeof value === "number" ? value : parseFloat(value);
14267
+ if (value === "" || Number.isNaN(num)) {
14268
+ return {
14269
+ negative: "",
14270
+ integer: "",
14271
+ decimal: "",
14272
+ separated: "",
14273
+ float: "",
14274
+ value: ""
14275
+ };
14276
+ }
14277
+ const negative = num < 0 ? "-" : "";
14278
+ let [integer, decimal = ""] = `${Math.abs(num)}`.split(".");
14279
+ let separated = integer;
14280
+ if (options.separator) {
14281
+ let v = "";
14282
+ let j = 0;
14283
+ const factor = 3;
14284
+ for (let i = 0, len = separated.length; i < len; ++i) {
14285
+ if (i !== 0 && j % factor === 0) {
14286
+ v = options.separator + v;
14287
+ }
14288
+ j++;
14289
+ v = separated[len - i - 1] + v;
14290
+ }
14291
+ separated = v;
14292
+ }
14293
+ const precision$ = options.zeroless ? Math.min(options.precision, decimal.length) : options.precision;
14294
+ if (precision$) {
14295
+ decimal = decimal.slice(0, precision$).padEnd(precision$, "0");
14296
+ } else {
14297
+ decimal = "";
14298
+ }
14299
+ if (options?.numerals?.length) {
14300
+ separated = separated.replace(/[0-9]/g, (w) => options.numerals[+w]);
14301
+ decimal = decimal.replace(/[0-9]/g, (w) => options.numerals[+w]);
14302
+ }
14303
+ const _decimal = decimal ? options.decimal + decimal : "";
14304
+ return {
14305
+ negative,
14306
+ integer,
14307
+ decimal,
14308
+ separated,
14309
+ float: `${negative}${integer}${_decimal}`,
14310
+ value: `${negative}${separated}${_decimal}`
14311
+ };
14312
+ };
14313
+ function _isSlot$1(s) {
14314
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14315
+ }
14316
+ const COMPONENT_NAME$1w = "vc-counter";
14317
+ const Counter = /* @__PURE__ */ vue.defineComponent({
14318
+ name: COMPONENT_NAME$1w,
14319
+ props: props$Z,
14320
+ emits: ["begin", "complete", "change"],
14321
+ setup(props2, {
14322
+ emit,
14323
+ expose,
14324
+ slots
14325
+ }) {
14326
+ const startTime = vue.ref(null);
14327
+ const duration = vue.ref(props2.duration);
14328
+ const remaining = vue.ref(duration.value);
14329
+ const startVal = vue.ref(0);
14330
+ const endVal = vue.ref(separated2value(props2.value, props2));
14331
+ const frameVal = vue.ref(startVal.value);
14332
+ const finalEndVal = vue.ref(null);
14333
+ const useEasing = vue.ref(!!props2.easing);
14334
+ const isStart = vue.ref(false);
14335
+ const isPaused = vue.ref(false);
14336
+ const isComplete = vue.ref(false);
14337
+ const countdown = vue.ref(false);
14338
+ const rAF = vue.ref(null);
14339
+ const prints = vue.reactive({
14340
+ negative: "",
14341
+ integer: "",
14342
+ decimal: "",
14343
+ separated: "",
14344
+ float: "",
14345
+ value: ""
14346
+ });
14347
+ const easing = vue.computed(() => {
14348
+ return typeof props2.easing === "function" ? props2.easing : (t, b, c, d) => c * (-Math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b;
14349
+ });
14350
+ const displayValue = vue.computed(() => {
14351
+ if (props2.value === "" || typeof props2.value !== "string" && typeof props2.value !== "number") {
14352
+ return props2.placeholder;
14353
+ }
14354
+ return prints.value;
14355
+ });
14356
+ const binds = vue.computed(() => {
14357
+ return {
14358
+ ...prints,
14359
+ value: displayValue.value
14360
+ };
14361
+ });
14362
+ const determineDirectionAndSmartEasing = () => {
14363
+ const v = finalEndVal.value !== null ? finalEndVal.value : endVal.value;
14364
+ countdown.value = startVal.value > v;
14365
+ const animateAmount = v - startVal.value;
14366
+ if (Math.abs(animateAmount) > props2.smartEasingThreshold && props2.easing) {
14367
+ finalEndVal.value = v;
14368
+ const up = countdown.value ? 1 : -1;
14369
+ endVal.value = v + up * props2.smartEasingAmount;
14370
+ duration.value = duration.value / 2;
14371
+ } else {
14372
+ endVal.value = v;
14373
+ finalEndVal.value = null;
14374
+ }
14375
+ if (finalEndVal.value !== null) {
14376
+ useEasing.value = false;
14377
+ } else {
14378
+ useEasing.value = !!props2.easing;
14379
+ }
14380
+ };
14381
+ const run = () => {
14382
+ const done = (timestamp) => {
14383
+ if (!startTime.value) {
14384
+ startTime.value = timestamp;
14385
+ }
14386
+ const progress = timestamp - startTime.value;
14387
+ remaining.value = duration.value - progress;
14388
+ if (useEasing.value) {
14389
+ if (countdown.value) {
14390
+ frameVal.value = startVal.value - easing.value(progress, 0, startVal.value - endVal.value, duration.value);
14391
+ } else {
14392
+ frameVal.value = easing.value(progress, startVal.value, endVal.value - startVal.value, duration.value);
14393
+ }
14394
+ } else {
14395
+ frameVal.value = startVal.value + (endVal.value - startVal.value) * (progress / duration.value);
14396
+ }
14397
+ const wentPast = countdown.value ? frameVal.value < endVal.value : frameVal.value > endVal.value;
14398
+ frameVal.value = wentPast ? endVal.value : frameVal.value;
14399
+ print(frameVal.value);
14400
+ if (progress < duration.value) {
14401
+ rAF.value = requestAnimationFrame(done);
14402
+ } else if (finalEndVal.value !== null) {
14403
+ update(finalEndVal.value);
14404
+ } else {
14405
+ emit("complete");
14406
+ isComplete.value = true;
14407
+ }
14408
+ };
14409
+ determineDirectionAndSmartEasing();
14410
+ rAF.value = requestAnimationFrame(done);
14411
+ };
14412
+ const print = (num) => {
14413
+ Object.assign(prints, value2separated(num, props2));
14414
+ emit("change", prints);
14415
+ };
14416
+ const resetDuration = () => {
14417
+ startTime.value = null;
14418
+ duration.value = props2.duration;
14419
+ remaining.value = duration.value;
14420
+ };
14421
+ const cancel = () => {
14422
+ if (rAF.value === null || typeof rAF.value === "undefined") return;
14423
+ cancelAnimationFrame(rAF.value);
14424
+ };
14425
+ const start = () => {
14426
+ if (isComplete.value || isStart.value) return;
14427
+ cancel();
14428
+ resetDuration();
14429
+ isPaused.value = false;
14430
+ isComplete.value = false;
14431
+ startVal.value = 0;
14432
+ frameVal.value = 0;
14433
+ isStart.value = true;
14434
+ emit("begin");
14435
+ if (duration.value > 0) {
14436
+ run();
14437
+ } else {
14438
+ print(endVal.value);
14439
+ }
14440
+ };
14441
+ const pause = () => {
14442
+ if (isComplete.value) return;
14443
+ if (!isPaused.value) {
14444
+ cancel();
14445
+ }
14446
+ isPaused.value = true;
14447
+ };
14448
+ const resume = () => {
14449
+ if (isComplete.value) return;
14450
+ if (isPaused.value) {
14451
+ startTime.value = null;
14452
+ duration.value = remaining.value;
14453
+ startVal.value = frameVal.value;
14454
+ run();
14455
+ }
14456
+ isPaused.value = false;
14457
+ };
14458
+ const update = (newEndVal) => {
14459
+ if (!isStart.value) return;
14460
+ cancel();
14461
+ startTime.value = null;
14462
+ endVal.value = +newEndVal;
14463
+ if (endVal.value === frameVal.value) {
14464
+ return;
14465
+ }
14466
+ startVal.value = frameVal.value;
14467
+ if (finalEndVal.value === null) {
14468
+ resetDuration();
14469
+ }
14470
+ finalEndVal.value = null;
14471
+ run();
14472
+ };
14473
+ const end = () => {
14474
+ if (isComplete.value) return;
14475
+ cancel();
14476
+ resetDuration();
14477
+ startVal.value = +props2.value;
14478
+ frameVal.value = startVal.value;
14479
+ print(frameVal.value);
14480
+ emit("complete");
14481
+ isComplete.value = true;
14482
+ };
14483
+ const restart = () => {
14484
+ isStart.value = false;
14485
+ isComplete.value = false;
14486
+ start();
14487
+ };
14488
+ vue.watch(() => props2.value, () => {
14489
+ if (props2.controllable || !isStart.value) return;
14490
+ update(props2.value);
14491
+ });
14492
+ vue.watch(() => props2.precision, () => {
14493
+ if (props2.controllable || !isStart.value || !isComplete.value) return;
14494
+ print(+props2.value);
14495
+ });
14496
+ expose({
14497
+ start,
14498
+ pause,
14499
+ resume,
14500
+ update,
14501
+ end,
14502
+ restart,
14503
+ cancel,
14504
+ print
14505
+ });
14506
+ vue.onMounted(() => !props2.controllable && start());
14507
+ vue.onBeforeUnmount(cancel);
14508
+ const Content = props2.tag;
14509
+ return () => {
14510
+ if (slots.default) {
14511
+ let _slot;
14512
+ return (
14513
+ // @ts-ignore
14514
+ vue.createVNode(Content, {
14515
+ "class": "vc-counter"
14516
+ }, _isSlot$1(_slot = slots.default(binds.value)) ? _slot : {
14517
+ default: () => [_slot]
14518
+ })
14519
+ );
14520
+ }
14521
+ if (props2.render) {
14522
+ return vue.createVNode(Customer, vue.mergeProps({
14523
+ "class": "vc-counter",
14524
+ "render": props2.render
14525
+ }, binds.value), null);
14526
+ }
14527
+ return (
14528
+ // @ts-ignore
14529
+ vue.createVNode(Content, {
14530
+ "class": "vc-counter"
14531
+ }, {
14532
+ default: () => [displayValue.value]
14533
+ })
14534
+ );
14535
+ };
14536
+ }
14537
+ });
14538
+ const MCounter = Counter;
14216
14539
  const props$Y = {
14217
14540
  type: {
14218
14541
  type: String,
@@ -14235,8 +14558,8 @@ var Vc = (function (exports, vue) {
14235
14558
  "portalClass"
14236
14559
  ];
14237
14560
  const props$X = {
14238
- ...pick(props$1c, popoverKeys),
14239
- ...pick(props$1g, inputKeys$1),
14561
+ ...pick(props$1d, popoverKeys),
14562
+ ...pick(props$1h, inputKeys$1),
14240
14563
  type: String,
14241
14564
  placeholder: String,
14242
14565
  clearable: {
@@ -18541,7 +18864,7 @@ var Vc = (function (exports, vue) {
18541
18864
  }) {
18542
18865
  const owner = getInstance$1("dropdown", "dropdownId");
18543
18866
  const currentValue = vue.computed(() => {
18544
- const v = typeof props2.value === "undefined" || props2.value === "" ? props2.label : props2.value;
18867
+ const v = typeof props2.value === "undefined" ? props2.label : props2.value;
18545
18868
  return v;
18546
18869
  });
18547
18870
  const classes = vue.computed(() => {
@@ -20976,7 +21299,7 @@ var Vc = (function (exports, vue) {
20976
21299
  name: COMPONENT_NAME$V,
20977
21300
  inheritAttrs: false,
20978
21301
  props: {
20979
- ...props$1g,
21302
+ ...props$1h,
20980
21303
  right: {
20981
21304
  type: Boolean,
20982
21305
  default: false
@@ -21063,7 +21386,7 @@ var Vc = (function (exports, vue) {
21063
21386
  const COMPONENT_NAME$U = "vcm-input-number";
21064
21387
  const MInputNumber = /* @__PURE__ */ vue.defineComponent({
21065
21388
  name: COMPONENT_NAME$U,
21066
- props: props$1f,
21389
+ props: props$1g,
21067
21390
  inheritAttrs: false,
21068
21391
  setup(props2, {
21069
21392
  slots,
@@ -21112,7 +21435,7 @@ var Vc = (function (exports, vue) {
21112
21435
  const MInputSearch = /* @__PURE__ */ vue.defineComponent({
21113
21436
  name: COMPONENT_NAME$T,
21114
21437
  props: {
21115
- ...props$1e,
21438
+ ...props$1f,
21116
21439
  cancelText: {
21117
21440
  type: String,
21118
21441
  default: "取消"
@@ -21385,7 +21708,7 @@ var Vc = (function (exports, vue) {
21385
21708
  default: "div"
21386
21709
  },
21387
21710
  fill: {
21388
- type: Boolean,
21711
+ type: [Boolean, Array],
21389
21712
  default: true
21390
21713
  }
21391
21714
  };
@@ -21398,6 +21721,13 @@ var Vc = (function (exports, vue) {
21398
21721
  const width = vue.ref(0);
21399
21722
  const height = vue.ref(0);
21400
21723
  const current = vue.ref();
21724
+ const classes = vue.computed(() => {
21725
+ const v = Array.isArray(props2.fill) ? props2.fill : [props2.fill, props2.fill];
21726
+ return {
21727
+ "is-fill-width": v[0],
21728
+ "is-fill-height": v[1]
21729
+ };
21730
+ });
21401
21731
  const currentExposed = vue.computed(() => {
21402
21732
  return {
21403
21733
  height: height.value,
@@ -21448,7 +21778,7 @@ var Vc = (function (exports, vue) {
21448
21778
  props2.tag,
21449
21779
  {
21450
21780
  ref: current,
21451
- class: ["vc-resizer", { "is-fill": props2.fill }]
21781
+ class: ["vc-resizer", classes.value]
21452
21782
  },
21453
21783
  slots.default?.(currentExposed.value)
21454
21784
  );
@@ -22571,7 +22901,7 @@ var Vc = (function (exports, vue) {
22571
22901
  const COMPONENT_NAME$H = "vc-select";
22572
22902
  const Select = /* @__PURE__ */ vue.defineComponent({
22573
22903
  name: COMPONENT_NAME$H,
22574
- props: props$19,
22904
+ props: props$1a,
22575
22905
  emits: ["ready", "close", "visible-change", "clear", "change", "update:modelValue"],
22576
22906
  setup(props2, {
22577
22907
  emit,
@@ -24184,7 +24514,7 @@ var Vc = (function (exports, vue) {
24184
24514
  },
24185
24515
  scrollerOptions: Object,
24186
24516
  renderEmpty: Function,
24187
- renderFinish: Function,
24517
+ renderComplete: Function,
24188
24518
  renderLoading: Function,
24189
24519
  renderPlaceholder: Function,
24190
24520
  renderRefresh: Function
@@ -24215,9 +24545,9 @@ var Vc = (function (exports, vue) {
24215
24545
  }, [vue.createVNode(Spin, {
24216
24546
  "size": 20
24217
24547
  }, null)]))]), owner.isEnd.value && (owner.data.length ? vue.createVNode("div", {
24218
- "class": "vc-recycle-list__finish"
24219
- }, [slots.finish?.() || owner.renderer.value.finish ? vue.createVNode(Customer, {
24220
- "render": owner.renderer.value.finish
24548
+ "class": "vc-recycle-list__complete"
24549
+ }, [slots.complete?.() || owner.renderer.value.complete ? vue.createVNode(Customer, {
24550
+ "render": owner.renderer.value.complete
24221
24551
  }, null) : vue.createVNode("div", {
24222
24552
  "class": "vc-recycle-list__center"
24223
24553
  }, [vue.createTextVNode("已全部加载~")])]) : vue.createVNode("div", {
@@ -24486,7 +24816,7 @@ var Vc = (function (exports, vue) {
24486
24816
  refresh: props2.renderRefresh || globalProps.renderRefresh,
24487
24817
  placeholder: props2.renderPlaceholder || globalProps.renderPlaceholder,
24488
24818
  loading: props2.renderLoading || globalProps.renderLoading,
24489
- finish: props2.renderFinish || globalProps.renderFinish,
24819
+ complete: props2.renderComplete || globalProps.renderComplete,
24490
24820
  empty: props2.renderEmpty || globalProps.renderEmpty
24491
24821
  };
24492
24822
  });
@@ -24544,19 +24874,17 @@ var Vc = (function (exports, vue) {
24544
24874
  const refreshItemSize = (index) => {
24545
24875
  const current = props2.inverted ? rebuildData.value[rebuildDataIndexMap.value[index]] : rebuildData.value[index];
24546
24876
  if (!current) return;
24547
- const oldSize = current.size;
24877
+ const original = Object.assign({}, current);
24548
24878
  const dom = preloads.value[index] || curloads.value[props2.inverted ? index : index - firstItemIndex.value];
24549
24879
  if (dom) {
24550
24880
  current.size = dom[K.offsetSize] || placeholderSize.value;
24551
24881
  } else if (current) {
24552
24882
  current.size = placeholderSize.value;
24553
24883
  }
24554
- if (oldSize !== current.size) {
24555
- emit("row-resize", {
24556
- index: current.id,
24557
- size: current.size
24558
- });
24559
- }
24884
+ return {
24885
+ original,
24886
+ changed: current
24887
+ };
24560
24888
  };
24561
24889
  const refreshItemPosition = () => {
24562
24890
  const sizes = Array.from({
@@ -24623,18 +24951,24 @@ var Vc = (function (exports, vue) {
24623
24951
  const refreshLayout = async (start, end) => {
24624
24952
  isRefreshLayout = 1;
24625
24953
  const promiseTasks = [];
24954
+ const resizeChanges = [];
24626
24955
  let item;
24627
24956
  for (let i = start; i < end; i++) {
24628
24957
  item = props2.inverted ? rebuildData.value[rebuildDataIndexMap.value[i]] : rebuildData.value[i];
24629
- if (item && item.loaded) {
24630
- continue;
24631
- }
24958
+ if (item && item.loaded) continue;
24632
24959
  setItemData(i, originalData[i]);
24633
- promiseTasks.push(vue.nextTick(() => refreshItemSize(i)));
24960
+ promiseTasks.push(vue.nextTick(() => {
24961
+ const e = refreshItemSize(i);
24962
+ e && resizeChanges.push(e.changed);
24963
+ }));
24634
24964
  }
24635
24965
  await Promise.all(promiseTasks);
24636
24966
  refreshItemPosition();
24637
24967
  setFirstItemIndex();
24968
+ resizeChanges.length > 0 && emit("row-resize", resizeChanges.map((i) => ({
24969
+ size: i.size,
24970
+ index: i.id
24971
+ })));
24638
24972
  interrupter.next();
24639
24973
  isRefreshLayout = 0;
24640
24974
  };
@@ -26288,11 +26622,19 @@ var Vc = (function (exports, vue) {
26288
26622
  emit,
26289
26623
  slots
26290
26624
  }) {
26625
+ let resizeChanges = [];
26626
+ const emitChanges = () => {
26627
+ if (resizeChanges.length > 0) {
26628
+ emit("row-resize", resizeChanges);
26629
+ resizeChanges = [];
26630
+ }
26631
+ };
26291
26632
  const handleResize = (e, index) => {
26292
- emit("row-resize", {
26633
+ resizeChanges.push({
26293
26634
  index,
26294
26635
  size: e.height
26295
26636
  });
26637
+ vue.nextTick(emitChanges);
26296
26638
  };
26297
26639
  return () => {
26298
26640
  return props2.data.map((mergeData, index) => {
@@ -26648,22 +26990,24 @@ var Vc = (function (exports, vue) {
26648
26990
  return renderRow(row, row.index);
26649
26991
  })]);
26650
26992
  };
26651
- const handleMergeRowResize = (v) => {
26993
+ const handleMergeRowResize = (changes) => {
26652
26994
  if (table.props.rowHeight) return;
26653
- states.list[v.index].rows.forEach((row) => {
26654
- const old = row.heightMap[props2.fixed || "main"];
26655
- if (old === v.size) return;
26656
- row.heightMap[props2.fixed || "main"] = v.size;
26657
- const heights = [row.heightMap.main];
26658
- if (states.leftFixedCount) {
26659
- heights.push(row.heightMap.left);
26660
- }
26661
- if (states.rightFixedCount) {
26662
- heights.push(row.heightMap.right);
26663
- }
26664
- if (heights.every((i) => !!i)) {
26665
- row.height = Math.max(row.heightMap.left, row.heightMap.main, row.heightMap.right) || "";
26666
- }
26995
+ changes.forEach((v) => {
26996
+ states.list[v.index].rows.forEach((row) => {
26997
+ const old = row.heightMap[props2.fixed || "main"];
26998
+ if (old === v.size) return;
26999
+ row.heightMap[props2.fixed || "main"] = v.size;
27000
+ const heights = [row.heightMap.main];
27001
+ if (states.leftFixedCount) {
27002
+ heights.push(row.heightMap.left);
27003
+ }
27004
+ if (states.rightFixedCount) {
27005
+ heights.push(row.heightMap.right);
27006
+ }
27007
+ if (heights.every((i) => !!i)) {
27008
+ row.height = Math.max(row.heightMap.left, row.heightMap.main, row.heightMap.right) || "";
27009
+ }
27010
+ });
26667
27011
  });
26668
27012
  };
26669
27013
  expose({
@@ -29272,7 +29616,7 @@ var Vc = (function (exports, vue) {
29272
29616
  "controllable"
29273
29617
  ];
29274
29618
  const props$8 = {
29275
- ...pick(props$1g, inputKeys),
29619
+ ...pick(props$1h, inputKeys),
29276
29620
  wrap: {
29277
29621
  type: String,
29278
29622
  validator: (v) => /(soft|hard)/.test(v),
@@ -29435,7 +29779,6 @@ var Vc = (function (exports, vue) {
29435
29779
  setup(props2, { slots }) {
29436
29780
  const themeId = getUid("vc-theme");
29437
29781
  const setVar = (name) => {
29438
- /* istanbul ignore next -- @preserve */
29439
29782
  if (!name) return "";
29440
29783
  const globals = VcInstance.options.Theme?.variables;
29441
29784
  return props2.variables?.[name] || globals?.[name] || `var(--${name})`;
@@ -29471,7 +29814,6 @@ var Vc = (function (exports, vue) {
29471
29814
  }
29472
29815
  });
29473
29816
  const setCss = (attrs) => {
29474
- /* istanbul ignore next -- @preserve */
29475
29817
  if (!attrs || typeof attrs === "string") return attrs;
29476
29818
  let content = "";
29477
29819
  Object.entries(attrs).forEach(([key, val]) => {
@@ -29480,7 +29822,6 @@ var Vc = (function (exports, vue) {
29480
29822
  return content;
29481
29823
  };
29482
29824
  const resetPseudo = () => {
29483
- /* istanbul ignore next -- @preserve */
29484
29825
  if (typeof document === "undefined") return;
29485
29826
  const { pseudo } = props2;
29486
29827
  if (!pseudo) return removeStyle(themeId);
@@ -30830,7 +31171,7 @@ var Vc = (function (exports, vue) {
30830
31171
  "allowDispatch"
30831
31172
  ];
30832
31173
  const props$2 = {
30833
- ...pick(props$19, selectKeys),
31174
+ ...pick(props$1a, selectKeys),
30834
31175
  ...pick(props$3, treeNodeContentKeys),
30835
31176
  // 暂不支持,仅作为默认值
30836
31177
  max: {
@@ -31099,7 +31440,7 @@ var Vc = (function (exports, vue) {
31099
31440
  "renderNodeLabel"
31100
31441
  ];
31101
31442
  const props$1 = {
31102
- ...props$19,
31443
+ ...props$1a,
31103
31444
  ...pick(props$2, treeKeys)
31104
31445
  };
31105
31446
  const COMPONENT_NAME$2 = "vc-tree-select";
@@ -31902,6 +32243,8 @@ var Vc = (function (exports, vue) {
31902
32243
  // MColorPickerView,
31903
32244
  Countdown,
31904
32245
  MCountdown,
32246
+ Counter,
32247
+ MCounter,
31905
32248
  Customer,
31906
32249
  MCustomer,
31907
32250
  DatePicker,
@@ -136451,6 +136794,7 @@ ${imported}
136451
136794
  exports.ColorPicker = ColorPicker$1;
136452
136795
  exports.Components = Components;
136453
136796
  exports.Countdown = Countdown;
136797
+ exports.Counter = Counter;
136454
136798
  exports.Customer = Customer;
136455
136799
  exports.DatePicker = DatePicker;
136456
136800
  exports.Debounce = Debounce;
@@ -136495,6 +136839,7 @@ ${imported}
136495
136839
  exports.MCollapseItem = MCollapseItem;
136496
136840
  exports.MColorPicker = MColorPicker;
136497
136841
  exports.MCountdown = MCountdown;
136842
+ exports.MCounter = MCounter;
136498
136843
  exports.MCustomer = MCustomer;
136499
136844
  exports.MDatePicker = MDatePicker;
136500
136845
  exports.MDebounce = Debounce;