@deot/vc 1.0.58 → 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.
@@ -9083,31 +9083,38 @@
9083
9083
  const VARIABLES = {};
9084
9084
  const nil = void 0;
9085
9085
  const defaults$2 = {
9086
- UploadPicker: {
9087
- enhancer: nil
9088
- },
9089
9086
  Editor: {
9090
9087
  options: nil,
9091
9088
  enhancer: nil
9092
9089
  },
9093
- Theme: {
9094
- variables: VARIABLES
9095
- },
9096
9090
  Portal: {
9097
9091
  install: nil
9098
9092
  },
9099
- Upload: {
9100
- onRequest: nil,
9101
- onResponse: nil,
9102
- onMessage: nil
9103
- },
9104
- TableColumn: {
9105
- line: nil
9093
+ RecycleList: {
9094
+ renderRefresh: nil,
9095
+ renderPlaceholder: nil,
9096
+ renderLoading: nil,
9097
+ renderComplete: nil,
9098
+ renderEmpty: nil
9106
9099
  },
9107
9100
  Snapshot: {
9108
9101
  options: nil,
9109
9102
  source: nil,
9110
9103
  download: nil
9104
+ },
9105
+ TableColumn: {
9106
+ line: nil
9107
+ },
9108
+ Theme: {
9109
+ variables: VARIABLES
9110
+ },
9111
+ Upload: {
9112
+ onRequest: nil,
9113
+ onResponse: nil,
9114
+ onMessage: nil
9115
+ },
9116
+ UploadPicker: {
9117
+ enhancer: nil
9111
9118
  }
9112
9119
  };
9113
9120
  class Instance {
@@ -9134,16 +9141,16 @@
9134
9141
  }
9135
9142
  }
9136
9143
  const VcInstance = new Instance();
9137
- const props$1t = {
9144
+ const props$1u = {
9138
9145
  tag: {
9139
9146
  type: String,
9140
9147
  default: "div"
9141
9148
  }
9142
9149
  };
9143
- const COMPONENT_NAME$29 = "vc-action-sheet";
9150
+ const COMPONENT_NAME$2a = "vc-action-sheet";
9144
9151
  const ActionSheet = /* @__PURE__ */ vue.defineComponent({
9145
- name: COMPONENT_NAME$29,
9146
- props: props$1t,
9152
+ name: COMPONENT_NAME$2a,
9153
+ props: props$1u,
9147
9154
  setup(props2, {
9148
9155
  slots
9149
9156
  }) {
@@ -9155,7 +9162,7 @@
9155
9162
  }
9156
9163
  });
9157
9164
  const MActionSheet = ActionSheet;
9158
- const props$1s = {
9165
+ const props$1t = {
9159
9166
  modelValue: {
9160
9167
  type: Boolean,
9161
9168
  default: false
@@ -9213,11 +9220,11 @@
9213
9220
  const isWheel = (el2) => {
9214
9221
  return SCROLLER_WHEEL_REG.test(el2?.className || "");
9215
9222
  };
9216
- const COMPONENT_NAME$28 = "vc-affix";
9223
+ const COMPONENT_NAME$29 = "vc-affix";
9217
9224
  const Affix = /* @__PURE__ */ vue.defineComponent({
9218
- name: COMPONENT_NAME$28,
9225
+ name: COMPONENT_NAME$29,
9219
9226
  emits: ["update:modelValue"],
9220
- props: props$1s,
9227
+ props: props$1t,
9221
9228
  setup(props2, {
9222
9229
  slots,
9223
9230
  expose,
@@ -9377,7 +9384,7 @@
9377
9384
  }
9378
9385
  });
9379
9386
  const MAffix = Affix;
9380
- const props$1r = {
9387
+ const props$1s = {
9381
9388
  modelValue: {
9382
9389
  type: Boolean,
9383
9390
  default: true
@@ -9403,7 +9410,7 @@
9403
9410
  default: false
9404
9411
  }
9405
9412
  };
9406
- const props$1q = {
9413
+ const props$1r = {
9407
9414
  type: String,
9408
9415
  inherit: {
9409
9416
  type: Boolean,
@@ -9536,10 +9543,10 @@
9536
9543
  }
9537
9544
  }
9538
9545
  const IconManager = new Manager();
9539
- const COMPONENT_NAME$27 = "vc-icon";
9546
+ const COMPONENT_NAME$28 = "vc-icon";
9540
9547
  const Icon = /* @__PURE__ */ vue.defineComponent({
9541
- name: COMPONENT_NAME$27,
9542
- props: props$1q,
9548
+ name: COMPONENT_NAME$28,
9549
+ props: props$1r,
9543
9550
  setup(props2) {
9544
9551
  const viewBox = vue.ref("0 0 1024 1024");
9545
9552
  const path = vue.ref([]);
@@ -9571,7 +9578,7 @@
9571
9578
  };
9572
9579
  }
9573
9580
  });
9574
- const props$1p = {
9581
+ const props$1q = {
9575
9582
  /**
9576
9583
  * 进入/离开持续时间
9577
9584
  * {enter: 300, leave: 300}
@@ -9734,10 +9741,10 @@
9734
9741
  }
9735
9742
  };
9736
9743
  };
9737
- const COMPONENT_NAME$26 = "vc-transition";
9744
+ const COMPONENT_NAME$27 = "vc-transition";
9738
9745
  const Transition = vue.defineComponent({
9739
- name: COMPONENT_NAME$26,
9740
- props: props$1p,
9746
+ name: COMPONENT_NAME$27,
9747
+ props: props$1q,
9741
9748
  // 当不声明emits的情况下,事件存在于attrs中
9742
9749
  inheritAttrs: false,
9743
9750
  setup(props2, { slots, attrs }) {
@@ -9756,10 +9763,10 @@
9756
9763
  };
9757
9764
  }
9758
9765
  });
9759
- const COMPONENT_NAME$25 = "vc-transition-collapse";
9766
+ const COMPONENT_NAME$26 = "vc-transition-collapse";
9760
9767
  const TransitionCollapse = vue.defineComponent({
9761
- name: COMPONENT_NAME$25,
9762
- props: props$1p,
9768
+ name: COMPONENT_NAME$26,
9769
+ props: props$1q,
9763
9770
  // 当不声明emits的情况下,事件存在于attrs中
9764
9771
  inheritAttrs: false,
9765
9772
  setup(props2, { slots, attrs: _attrs }) {
@@ -9872,11 +9879,11 @@
9872
9879
  };
9873
9880
  }
9874
9881
  });
9875
- const COMPONENT_NAME$24 = "vc-transition-fade";
9882
+ const COMPONENT_NAME$25 = "vc-transition-fade";
9876
9883
  const TransitionFade = vue.defineComponent({
9877
- name: COMPONENT_NAME$24,
9884
+ name: COMPONENT_NAME$25,
9878
9885
  props: {
9879
- ...props$1p,
9886
+ ...props$1q,
9880
9887
  // inheritAttrs必须是false
9881
9888
  style: {
9882
9889
  type: Object,
@@ -9908,11 +9915,11 @@
9908
9915
  };
9909
9916
  }
9910
9917
  });
9911
- const COMPONENT_NAME$23 = "vc-transition-scale";
9918
+ const COMPONENT_NAME$24 = "vc-transition-scale";
9912
9919
  const TransitionScale = vue.defineComponent({
9913
- name: COMPONENT_NAME$23,
9920
+ name: COMPONENT_NAME$24,
9914
9921
  props: {
9915
- ...props$1p,
9922
+ ...props$1q,
9916
9923
  mode: {
9917
9924
  type: String,
9918
9925
  default: "both",
@@ -9949,11 +9956,11 @@
9949
9956
  };
9950
9957
  }
9951
9958
  });
9952
- const COMPONENT_NAME$22 = "vc-transition-slide";
9959
+ const COMPONENT_NAME$23 = "vc-transition-slide";
9953
9960
  const TransitionSlide = vue.defineComponent({
9954
- name: COMPONENT_NAME$22,
9961
+ name: COMPONENT_NAME$23,
9955
9962
  props: {
9956
- ...props$1p,
9963
+ ...props$1q,
9957
9964
  mode: {
9958
9965
  type: String,
9959
9966
  default: "left",
@@ -9990,11 +9997,11 @@
9990
9997
  };
9991
9998
  }
9992
9999
  });
9993
- const COMPONENT_NAME$21 = "vc-transition-zoom";
10000
+ const COMPONENT_NAME$22 = "vc-transition-zoom";
9994
10001
  const TransitionZoom = vue.defineComponent({
9995
- name: COMPONENT_NAME$21,
10002
+ name: COMPONENT_NAME$22,
9996
10003
  props: {
9997
- ...props$1p,
10004
+ ...props$1q,
9998
10005
  mode: {
9999
10006
  type: String,
10000
10007
  default: "x",
@@ -10031,7 +10038,7 @@
10031
10038
  };
10032
10039
  }
10033
10040
  });
10034
- const COMPONENT_NAME$20 = "vc-alert";
10041
+ const COMPONENT_NAME$21 = "vc-alert";
10035
10042
  const THEME_MAP = {
10036
10043
  info: ["#456CF6", "#91d5ff", "#e6f7ff"],
10037
10044
  success: ["#52c41a", "#b7eb8f", "#f6ffed"],
@@ -10039,8 +10046,8 @@
10039
10046
  warning: ["#ffbf00", "#ffe58f", "#fffbe6"]
10040
10047
  };
10041
10048
  const Alert = /* @__PURE__ */ vue.defineComponent({
10042
- name: COMPONENT_NAME$20,
10043
- props: props$1r,
10049
+ name: COMPONENT_NAME$21,
10050
+ props: props$1s,
10044
10051
  setup(props2, {
10045
10052
  slots,
10046
10053
  emit
@@ -10126,7 +10133,7 @@
10126
10133
  }
10127
10134
  });
10128
10135
  const MAlert = Alert;
10129
- const props$1o = {
10136
+ const props$1p = {
10130
10137
  // canvas配置参数
10131
10138
  options: Object,
10132
10139
  width: {
@@ -10139,10 +10146,10 @@
10139
10146
  }
10140
10147
  };
10141
10148
  const isTouch = typeof document !== "undefined" && "ontouchend" in document;
10142
- const COMPONENT_NAME$1$ = "vc-artboard";
10149
+ const COMPONENT_NAME$20 = "vc-artboard";
10143
10150
  const Artboard = /* @__PURE__ */ vue.defineComponent({
10144
- name: COMPONENT_NAME$1$,
10145
- props: props$1o,
10151
+ name: COMPONENT_NAME$20,
10152
+ props: props$1p,
10146
10153
  setup(props2, {
10147
10154
  emit,
10148
10155
  expose
@@ -10317,7 +10324,7 @@
10317
10324
  }
10318
10325
  });
10319
10326
  const MArtboard = Artboard;
10320
- const props$1n = {
10327
+ const props$1o = {
10321
10328
  size: {
10322
10329
  type: Number,
10323
10330
  default: 28
@@ -10338,10 +10345,10 @@
10338
10345
  default: false
10339
10346
  }
10340
10347
  };
10341
- const COMPONENT_NAME$1_ = "vc-spin";
10348
+ const COMPONENT_NAME$1$ = "vc-spin";
10342
10349
  const Spin = /* @__PURE__ */ vue.defineComponent({
10343
- name: COMPONENT_NAME$1_,
10344
- props: props$1n,
10350
+ name: COMPONENT_NAME$1$,
10351
+ props: props$1o,
10345
10352
  setup(props2, {
10346
10353
  slots
10347
10354
  }) {
@@ -10374,7 +10381,7 @@
10374
10381
  };
10375
10382
  }
10376
10383
  });
10377
- const props$1m = {
10384
+ const props$1n = {
10378
10385
  wait: {
10379
10386
  type: Number,
10380
10387
  default: 250
@@ -10389,10 +10396,10 @@
10389
10396
  },
10390
10397
  exclude: RegExp
10391
10398
  };
10392
- const COMPONENT_NAME$1Z = "vc-debounce";
10399
+ const COMPONENT_NAME$1_ = "vc-debounce";
10393
10400
  const Debounce = vue.defineComponent({
10394
- name: COMPONENT_NAME$1Z,
10395
- props: props$1m,
10401
+ name: COMPONENT_NAME$1_,
10402
+ props: props$1n,
10396
10403
  /**
10397
10404
  * 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
10398
10405
  * 如事件onClick
@@ -10431,7 +10438,7 @@
10431
10438
  };
10432
10439
  }
10433
10440
  });
10434
- const props$1l = {
10441
+ const props$1m = {
10435
10442
  tag: {
10436
10443
  type: String,
10437
10444
  default: "button"
@@ -10460,11 +10467,11 @@
10460
10467
  default: "button"
10461
10468
  }
10462
10469
  };
10463
- const COMPONENT_NAME$1Y = "vc-button";
10470
+ const COMPONENT_NAME$1Z = "vc-button";
10464
10471
  const Button = /* @__PURE__ */ vue.defineComponent({
10465
- name: COMPONENT_NAME$1Y,
10472
+ name: COMPONENT_NAME$1Z,
10466
10473
  emits: ["click"],
10467
- props: props$1l,
10474
+ props: props$1m,
10468
10475
  setup(props2, {
10469
10476
  slots
10470
10477
  }) {
@@ -10524,7 +10531,7 @@
10524
10531
  };
10525
10532
  }
10526
10533
  });
10527
- const props$1k = {
10534
+ const props$1l = {
10528
10535
  vertical: {
10529
10536
  type: Boolean,
10530
10537
  default: false
@@ -10542,10 +10549,10 @@
10542
10549
  default: false
10543
10550
  }
10544
10551
  };
10545
- const COMPONENT_NAME$1X = "vc-button-group";
10552
+ const COMPONENT_NAME$1Y = "vc-button-group";
10546
10553
  const ButtonGroup = /* @__PURE__ */ vue.defineComponent({
10547
- name: COMPONENT_NAME$1X,
10548
- props: props$1k,
10554
+ name: COMPONENT_NAME$1Y,
10555
+ props: props$1l,
10549
10556
  setup(props2, {
10550
10557
  slots
10551
10558
  }) {
@@ -10567,16 +10574,16 @@
10567
10574
  });
10568
10575
  const MButton = Button;
10569
10576
  const MButtonGroup = ButtonGroup;
10570
- const props$1j = {
10577
+ const props$1k = {
10571
10578
  tag: {
10572
10579
  type: String,
10573
10580
  default: "div"
10574
10581
  }
10575
10582
  };
10576
- const COMPONENT_NAME$1W = "vc-calendar";
10583
+ const COMPONENT_NAME$1X = "vc-calendar";
10577
10584
  const Calendar$1 = /* @__PURE__ */ vue.defineComponent({
10578
- name: COMPONENT_NAME$1W,
10579
- props: props$1j,
10585
+ name: COMPONENT_NAME$1X,
10586
+ props: props$1k,
10580
10587
  setup(props2, {
10581
10588
  slots
10582
10589
  }) {
@@ -10588,7 +10595,7 @@
10588
10595
  }
10589
10596
  });
10590
10597
  const MCalendar = Calendar$1;
10591
- const props$1i = {
10598
+ const props$1j = {
10592
10599
  border: {
10593
10600
  type: Boolean,
10594
10601
  default: true
@@ -10608,10 +10615,10 @@
10608
10615
  type: String
10609
10616
  }
10610
10617
  };
10611
- const COMPONENT_NAME$1V = "vc-card";
10618
+ const COMPONENT_NAME$1W = "vc-card";
10612
10619
  const Card = /* @__PURE__ */ vue.defineComponent({
10613
- name: COMPONENT_NAME$1V,
10614
- props: props$1i,
10620
+ name: COMPONENT_NAME$1W,
10621
+ props: props$1j,
10615
10622
  setup(props2, {
10616
10623
  slots
10617
10624
  }) {
@@ -10635,16 +10642,16 @@
10635
10642
  }
10636
10643
  });
10637
10644
  const MCard = Card;
10638
- const props$1h = {
10645
+ const props$1i = {
10639
10646
  tag: {
10640
10647
  type: String,
10641
10648
  default: "div"
10642
10649
  }
10643
10650
  };
10644
- const COMPONENT_NAME$1U = "vc-carousel";
10651
+ const COMPONENT_NAME$1V = "vc-carousel";
10645
10652
  const Carousel = /* @__PURE__ */ vue.defineComponent({
10646
- name: COMPONENT_NAME$1U,
10647
- props: props$1h,
10653
+ name: COMPONENT_NAME$1V,
10654
+ props: props$1i,
10648
10655
  setup(props2, {
10649
10656
  slots
10650
10657
  }) {
@@ -10682,7 +10689,7 @@
10682
10689
  data
10683
10690
  });
10684
10691
  };
10685
- const props$1g = {
10692
+ const props$1h = {
10686
10693
  // Array, 作为select等数组存放临时值
10687
10694
  modelValue: [String, Number, Array],
10688
10695
  disabled: {
@@ -10928,12 +10935,12 @@
10928
10935
  expose?.(exposed);
10929
10936
  return exposed;
10930
10937
  };
10931
- const COMPONENT_NAME$1T = "vc-input";
10938
+ const COMPONENT_NAME$1U = "vc-input";
10932
10939
  const Input$1 = /* @__PURE__ */ vue.defineComponent({
10933
- name: COMPONENT_NAME$1T,
10940
+ name: COMPONENT_NAME$1U,
10934
10941
  inheritAttrs: false,
10935
10942
  props: {
10936
- ...props$1g,
10943
+ ...props$1h,
10937
10944
  indicator: {
10938
10945
  type: [Boolean, Object],
10939
10946
  default: false
@@ -11035,8 +11042,8 @@
11035
11042
  };
11036
11043
  }
11037
11044
  });
11038
- const props$1f = {
11039
- ...props$1g,
11045
+ const props$1g = {
11046
+ ...props$1h,
11040
11047
  min: {
11041
11048
  type: Number,
11042
11049
  default: 0
@@ -11261,10 +11268,10 @@
11261
11268
  handleStepper
11262
11269
  };
11263
11270
  };
11264
- const COMPONENT_NAME$1S = "vc-input-number";
11271
+ const COMPONENT_NAME$1T = "vc-input-number";
11265
11272
  const InputNumber = /* @__PURE__ */ vue.defineComponent({
11266
- name: COMPONENT_NAME$1S,
11267
- props: props$1f,
11273
+ name: COMPONENT_NAME$1T,
11274
+ props: props$1g,
11268
11275
  inheritAttrs: false,
11269
11276
  setup(props2, {
11270
11277
  slots,
@@ -11316,17 +11323,17 @@
11316
11323
  };
11317
11324
  }
11318
11325
  });
11319
- const props$1e = {
11320
- ...props$1g,
11326
+ const props$1f = {
11327
+ ...props$1h,
11321
11328
  enterText: {
11322
11329
  type: [Boolean, String],
11323
11330
  default: true
11324
11331
  }
11325
11332
  };
11326
- const COMPONENT_NAME$1R = "vc-input-search";
11333
+ const COMPONENT_NAME$1S = "vc-input-search";
11327
11334
  const InputSearch = /* @__PURE__ */ vue.defineComponent({
11328
- name: COMPONENT_NAME$1R,
11329
- props: props$1e,
11335
+ name: COMPONENT_NAME$1S,
11336
+ props: props$1f,
11330
11337
  inheritAttrs: false,
11331
11338
  setup(props2, {
11332
11339
  emit,
@@ -11357,7 +11364,7 @@
11357
11364
  };
11358
11365
  }
11359
11366
  });
11360
- const props$1d = {
11367
+ const props$1e = {
11361
11368
  modelValue: Boolean,
11362
11369
  animation: String,
11363
11370
  placement: {
@@ -11435,7 +11442,7 @@
11435
11442
  "autoWidth",
11436
11443
  "always"
11437
11444
  ];
11438
- const props$1c = {
11445
+ const props$1d = {
11439
11446
  trigger: {
11440
11447
  type: String,
11441
11448
  default: "hover",
@@ -11453,7 +11460,7 @@
11453
11460
  type: Boolean,
11454
11461
  default: true
11455
11462
  },
11456
- ...pick(props$1d, wrapperKeys)
11463
+ ...pick(props$1e, wrapperKeys)
11457
11464
  };
11458
11465
  const EXTRA_DISTANCE = 4;
11459
11466
  const HALF_ARROW = 12.73 / 2;
@@ -11707,16 +11714,16 @@
11707
11714
  getRect
11708
11715
  };
11709
11716
  };
11710
- const props$1b = {
11717
+ const props$1c = {
11711
11718
  render: {
11712
11719
  type: Function,
11713
11720
  default: () => null
11714
11721
  }
11715
11722
  };
11716
- const COMPONENT_NAME$1Q = "vc-customer";
11723
+ const COMPONENT_NAME$1R = "vc-customer";
11717
11724
  const Customer = vue.defineComponent({
11718
- name: COMPONENT_NAME$1Q,
11719
- props: props$1b,
11725
+ name: COMPONENT_NAME$1R,
11726
+ props: props$1c,
11720
11727
  setup(props2, context) {
11721
11728
  return () => vue.h(() => {
11722
11729
  return props2.render(context.attrs, context);
@@ -11788,7 +11795,7 @@
11788
11795
  return this.target.finally(callback);
11789
11796
  }
11790
11797
  }
11791
- const COMPONENT_NAME$1P = "vc-portal";
11798
+ const COMPONENT_NAME$1Q = "vc-portal";
11792
11799
  class Portal {
11793
11800
  /**
11794
11801
  * 清理Portals类型组件
@@ -11838,7 +11845,7 @@
11838
11845
  this.wrapper = wrapper;
11839
11846
  this.globalOptions = {
11840
11847
  ...options,
11841
- name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1P)
11848
+ name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1Q)
11842
11849
  };
11843
11850
  }
11844
11851
  popup(propsData, options) {
@@ -11936,7 +11943,7 @@
11936
11943
  ...rest
11937
11944
  } = options;
11938
11945
  let useAllNodes = fragment;
11939
- const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1P)}` : name$;
11946
+ const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1Q)}` : name$;
11940
11947
  const container = document.createElement(tag);
11941
11948
  const root = typeof el2 === "object" ? el2 : document.querySelector(el2 || "body");
11942
11949
  !alive && Portal.leafs.get(name)?.destroy();
@@ -11970,7 +11977,7 @@
11970
11977
  } else {
11971
11978
  const wrapper = this.wrapper;
11972
11979
  const app = vue.createApp({
11973
- name: COMPONENT_NAME$1P,
11980
+ name: COMPONENT_NAME$1Q,
11974
11981
  parent,
11975
11982
  setup() {
11976
11983
  if (alive) {
@@ -12073,16 +12080,16 @@
12073
12080
  return leaf;
12074
12081
  }
12075
12082
  }
12076
- const props$1a = {
12083
+ const props$1b = {
12077
12084
  tag: {
12078
12085
  type: String,
12079
12086
  default: "div"
12080
12087
  }
12081
12088
  };
12082
- const COMPONENT_NAME$1O = "vc-portal-view";
12089
+ const COMPONENT_NAME$1P = "vc-portal-view";
12083
12090
  const PortalView = /* @__PURE__ */ vue.defineComponent({
12084
- name: COMPONENT_NAME$1O,
12085
- props: props$1a,
12091
+ name: COMPONENT_NAME$1P,
12092
+ props: props$1b,
12086
12093
  setup(props2, {
12087
12094
  slots
12088
12095
  }) {
@@ -12095,10 +12102,10 @@
12095
12102
  };
12096
12103
  }
12097
12104
  });
12098
- const COMPONENT_NAME$1N = "vc-popover-wrapper";
12105
+ const COMPONENT_NAME$1O = "vc-popover-wrapper";
12099
12106
  const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
12100
- name: COMPONENT_NAME$1N,
12101
- props: props$1d,
12107
+ name: COMPONENT_NAME$1O,
12108
+ props: props$1e,
12102
12109
  emits: ["portal-fulfilled", "close"],
12103
12110
  setup(props2, {
12104
12111
  emit,
@@ -12319,10 +12326,10 @@
12319
12326
  const PopoverPortal = new Portal(PopoverWrapper, {
12320
12327
  leaveDelay: 0
12321
12328
  });
12322
- const COMPONENT_NAME$1M = "vc-popover";
12329
+ const COMPONENT_NAME$1N = "vc-popover";
12323
12330
  const Popover$1 = /* @__PURE__ */ vue.defineComponent({
12324
- name: COMPONENT_NAME$1M,
12325
- props: props$1c,
12331
+ name: COMPONENT_NAME$1N,
12332
+ props: props$1d,
12326
12333
  emits: ["update:modelValue", "visible-change", "ready", "close"],
12327
12334
  setup(props2, {
12328
12335
  emit,
@@ -12449,9 +12456,9 @@
12449
12456
  const Popover = Object.assign(Popover$1, {
12450
12457
  open: PopoverPortal.popup.bind(PopoverPortal)
12451
12458
  });
12452
- const COMPONENT_NAME$1L = "vc-cascader-column";
12459
+ const COMPONENT_NAME$1M = "vc-cascader-column";
12453
12460
  const CascaderColumn = /* @__PURE__ */ vue.defineComponent({
12454
- name: COMPONENT_NAME$1L,
12461
+ name: COMPONENT_NAME$1M,
12455
12462
  emits: ["click", "change"],
12456
12463
  props: {
12457
12464
  data: {
@@ -12568,9 +12575,9 @@
12568
12575
  "portal",
12569
12576
  "portalClass"
12570
12577
  ];
12571
- const props$19 = {
12572
- ...pick(props$1c, popoverKeys$1),
12573
- ...pick(props$1g, inputKeys$2),
12578
+ const props$1a = {
12579
+ ...pick(props$1d, popoverKeys$1),
12580
+ ...pick(props$1h, inputKeys$2),
12574
12581
  renderOption: [Function],
12575
12582
  renderOptionGroup: [Function],
12576
12583
  data: {
@@ -12635,8 +12642,8 @@
12635
12642
  },
12636
12643
  label: String
12637
12644
  };
12638
- const props$18 = {
12639
- ...props$19,
12645
+ const props$19 = {
12646
+ ...props$1a,
12640
12647
  data: {
12641
12648
  type: Array,
12642
12649
  default: () => []
@@ -12654,11 +12661,11 @@
12654
12661
  default: true
12655
12662
  }
12656
12663
  };
12657
- const COMPONENT_NAME$1K = "vc-cascader";
12664
+ const COMPONENT_NAME$1L = "vc-cascader";
12658
12665
  const Cascader = /* @__PURE__ */ vue.defineComponent({
12659
- name: COMPONENT_NAME$1K,
12666
+ name: COMPONENT_NAME$1L,
12660
12667
  inheritAttrs: false,
12661
- props: props$18,
12668
+ props: props$19,
12662
12669
  emits: ["update:modelValue", "visible-change", "ready", "change", "close"],
12663
12670
  setup(props2, {
12664
12671
  emit,
@@ -12933,7 +12940,7 @@
12933
12940
  "globalout",
12934
12941
  "contextmenu"
12935
12942
  ];
12936
- const props$17 = {
12943
+ const props$18 = {
12937
12944
  options: Object,
12938
12945
  pluginOptions: Object,
12939
12946
  theme: [String, Object],
@@ -12945,10 +12952,10 @@
12945
12952
  watchShallow: Boolean,
12946
12953
  manualUpdate: Boolean
12947
12954
  };
12948
- const COMPONENT_NAME$1J = "vc-chart";
12955
+ const COMPONENT_NAME$1K = "vc-chart";
12949
12956
  const Chart = /* @__PURE__ */ vue.defineComponent({
12950
- name: COMPONENT_NAME$1J,
12951
- props: props$17,
12957
+ name: COMPONENT_NAME$1K,
12958
+ props: props$18,
12952
12959
  emits: [...EVENTS$1, "ready"],
12953
12960
  setup(props2, {
12954
12961
  emit,
@@ -13062,7 +13069,7 @@
13062
13069
  }
13063
13070
  });
13064
13071
  const MChart = Chart;
13065
- const props$16 = {
13072
+ const props$17 = {
13066
13073
  disabled: {
13067
13074
  type: Boolean,
13068
13075
  default: false
@@ -13174,10 +13181,10 @@
13174
13181
  computedLabel
13175
13182
  };
13176
13183
  };
13177
- const COMPONENT_NAME$1I = "vc-checkbox";
13184
+ const COMPONENT_NAME$1J = "vc-checkbox";
13178
13185
  const Checkbox = /* @__PURE__ */ vue.defineComponent({
13179
- name: COMPONENT_NAME$1I,
13180
- props: props$16,
13186
+ name: COMPONENT_NAME$1J,
13187
+ props: props$17,
13181
13188
  emits: ["update:modelValue", "change"],
13182
13189
  setup(props2, {
13183
13190
  slots
@@ -13213,7 +13220,7 @@
13213
13220
  };
13214
13221
  }
13215
13222
  });
13216
- const props$15 = {
13223
+ const props$16 = {
13217
13224
  modelValue: {
13218
13225
  type: Array,
13219
13226
  default: () => []
@@ -13258,10 +13265,10 @@
13258
13265
  reset
13259
13266
  };
13260
13267
  };
13261
- const COMPONENT_NAME$1H = "vc-checkbox-group";
13268
+ const COMPONENT_NAME$1I = "vc-checkbox-group";
13262
13269
  const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
13263
- name: COMPONENT_NAME$1H,
13264
- props: props$15,
13270
+ name: COMPONENT_NAME$1I,
13271
+ props: props$16,
13265
13272
  emits: ["update:modelValue", "change"],
13266
13273
  setup(props2, {
13267
13274
  slots
@@ -13275,10 +13282,10 @@
13275
13282
  };
13276
13283
  }
13277
13284
  });
13278
- const COMPONENT_NAME$1G = "vcm-checkbox";
13285
+ const COMPONENT_NAME$1H = "vcm-checkbox";
13279
13286
  const MCheckbox = /* @__PURE__ */ vue.defineComponent({
13280
- name: COMPONENT_NAME$1G,
13281
- props: props$16,
13287
+ name: COMPONENT_NAME$1H,
13288
+ props: props$17,
13282
13289
  emits: ["update:modelValue", "change"],
13283
13290
  setup(props2, {
13284
13291
  slots
@@ -13314,10 +13321,10 @@
13314
13321
  };
13315
13322
  }
13316
13323
  });
13317
- const COMPONENT_NAME$1F = "vcm-checkbox-group";
13324
+ const COMPONENT_NAME$1G = "vcm-checkbox-group";
13318
13325
  const MCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
13319
- name: COMPONENT_NAME$1F,
13320
- props: props$15,
13326
+ name: COMPONENT_NAME$1G,
13327
+ props: props$16,
13321
13328
  emits: ["update:modelValue", "change"],
13322
13329
  setup(props2, {
13323
13330
  slots
@@ -13331,7 +13338,7 @@
13331
13338
  };
13332
13339
  }
13333
13340
  });
13334
- const props$14 = {
13341
+ const props$15 = {
13335
13342
  content: [String, Function],
13336
13343
  mask: {
13337
13344
  type: Boolean,
@@ -13366,11 +13373,11 @@
13366
13373
  // 这个相当于Modal中的onCancel,支持Promise
13367
13374
  onBeforeClose: Function
13368
13375
  };
13369
- const COMPONENT_NAME$1E = "vc-message";
13376
+ const COMPONENT_NAME$1F = "vc-message";
13370
13377
  const MessageView = /* @__PURE__ */ vue.defineComponent({
13371
- name: COMPONENT_NAME$1E,
13378
+ name: COMPONENT_NAME$1F,
13372
13379
  emits: ["before-close", "close", "portal-fulfilled"],
13373
- props: props$14,
13380
+ props: props$15,
13374
13381
  setup(props2, {
13375
13382
  emit,
13376
13383
  expose
@@ -13497,7 +13504,7 @@
13497
13504
  const warning$3 = create$4({ mode: "warning" });
13498
13505
  const error$3 = create$4({ mode: "error" });
13499
13506
  const Message = Object.assign(MessageView, { destroy: destroy$5, info: info$3, success: success$3, loading: loading$1, warning: warning$3, error: error$3 });
13500
- const props$13 = {
13507
+ const props$14 = {
13501
13508
  value: String,
13502
13509
  tag: {
13503
13510
  type: [String, Object, Function],
@@ -13611,16 +13618,16 @@
13611
13618
  };
13612
13619
  return () => vue.h(props2.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
13613
13620
  };
13614
- const COMPONENT_NAME$1D = "vc-clipboard";
13621
+ const COMPONENT_NAME$1E = "vc-clipboard";
13615
13622
  const Clipboard$1 = vue.defineComponent({
13616
- name: COMPONENT_NAME$1D,
13617
- props: props$13,
13623
+ name: COMPONENT_NAME$1E,
13624
+ props: props$14,
13618
13625
  setup() {
13619
13626
  return useClipboard((content) => Message.success({ content }));
13620
13627
  }
13621
13628
  });
13622
13629
  const Clipboard$2 = Object.assign(Clipboard$1, group);
13623
- const props$12 = {
13630
+ const props$13 = {
13624
13631
  content: [String, Function],
13625
13632
  maskClosable: {
13626
13633
  type: Boolean,
@@ -13645,11 +13652,11 @@
13645
13652
  const MTransitionScale = TransitionScale;
13646
13653
  const MTransitionSlide = TransitionSlide;
13647
13654
  const MTransitionZoom = TransitionZoom;
13648
- const COMPONENT_NAME$1C = "vcm-toast";
13655
+ const COMPONENT_NAME$1D = "vcm-toast";
13649
13656
  const MToastView = /* @__PURE__ */ vue.defineComponent({
13650
- name: COMPONENT_NAME$1C,
13657
+ name: COMPONENT_NAME$1D,
13651
13658
  emits: ["close", "portal-fulfilled"],
13652
- props: props$12,
13659
+ props: props$13,
13653
13660
  setup(props2, {
13654
13661
  emit,
13655
13662
  expose
@@ -13746,16 +13753,16 @@
13746
13753
  const warning$2 = create$3({ mode: "warning" });
13747
13754
  const error$2 = create$3({ mode: "error" });
13748
13755
  const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
13749
- const COMPONENT_NAME$1B = "vcm-clipboard";
13756
+ const COMPONENT_NAME$1C = "vcm-clipboard";
13750
13757
  const MClipboard$1 = vue.defineComponent({
13751
- name: COMPONENT_NAME$1B,
13752
- props: props$13,
13758
+ name: COMPONENT_NAME$1C,
13759
+ props: props$14,
13753
13760
  setup() {
13754
13761
  return useClipboard((content) => MToast.info({ content }));
13755
13762
  }
13756
13763
  });
13757
13764
  const MClipboard = Object.assign(MClipboard$1, group);
13758
- const props$11 = {
13765
+ const props$12 = {
13759
13766
  tag: {
13760
13767
  type: String,
13761
13768
  default: "div"
@@ -13777,10 +13784,10 @@
13777
13784
  default: false
13778
13785
  }
13779
13786
  };
13780
- const COMPONENT_NAME$1A = "vc-collapse";
13787
+ const COMPONENT_NAME$1B = "vc-collapse";
13781
13788
  const Collapse = vue.defineComponent({
13782
- name: COMPONENT_NAME$1A,
13783
- props: props$11,
13789
+ name: COMPONENT_NAME$1B,
13790
+ props: props$12,
13784
13791
  emits: ["update:moodelValue", "change"],
13785
13792
  setup(props2, { slots, emit }) {
13786
13793
  const instance = vue.getCurrentInstance();
@@ -13864,7 +13871,7 @@
13864
13871
  };
13865
13872
  }
13866
13873
  });
13867
- const props$10 = {
13874
+ const props$11 = {
13868
13875
  tag: {
13869
13876
  type: String,
13870
13877
  default: "div"
@@ -13873,7 +13880,7 @@
13873
13880
  type: [String, Number]
13874
13881
  }
13875
13882
  };
13876
- const props$$ = {
13883
+ const props$10 = {
13877
13884
  tag: {
13878
13885
  type: String,
13879
13886
  default: "div"
@@ -13888,13 +13895,13 @@
13888
13895
  default: true
13889
13896
  }
13890
13897
  };
13891
- function _isSlot$2(s) {
13898
+ function _isSlot$3(s) {
13892
13899
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
13893
13900
  }
13894
- const COMPONENT_NAME$1z = "vc-expand";
13901
+ const COMPONENT_NAME$1A = "vc-expand";
13895
13902
  const Expand$1 = /* @__PURE__ */ vue.defineComponent({
13896
- name: COMPONENT_NAME$1z,
13897
- props: props$$,
13903
+ name: COMPONENT_NAME$1A,
13904
+ props: props$10,
13898
13905
  setup(props2, {
13899
13906
  slots
13900
13907
  }) {
@@ -13912,7 +13919,7 @@
13912
13919
  enter: 200,
13913
13920
  leave: 200
13914
13921
  }
13915
- }, _isSlot$2(_slot = vue.withDirectives(vue.createVNode(Content, null, {
13922
+ }, _isSlot$3(_slot = vue.withDirectives(vue.createVNode(Content, null, {
13916
13923
  default: () => [(props2.alive || !props2.alive && isActive.value) && slots.default?.()]
13917
13924
  }), [[vue.vShow, isActive.value]])) ? _slot : {
13918
13925
  default: () => [_slot]
@@ -13920,10 +13927,10 @@
13920
13927
  };
13921
13928
  }
13922
13929
  });
13923
- const COMPONENT_NAME$1y = "vc-collapse-item";
13930
+ const COMPONENT_NAME$1z = "vc-collapse-item";
13924
13931
  const CollapseItem = /* @__PURE__ */ vue.defineComponent({
13925
- name: COMPONENT_NAME$1y,
13926
- props: props$10,
13932
+ name: COMPONENT_NAME$1z,
13933
+ props: props$11,
13927
13934
  setup(props2, {
13928
13935
  slots,
13929
13936
  expose
@@ -13986,16 +13993,16 @@
13986
13993
  });
13987
13994
  const MCollapse = Collapse;
13988
13995
  const MCollapseItem = CollapseItem;
13989
- const props$_ = {
13996
+ const props$$ = {
13990
13997
  tag: {
13991
13998
  type: String,
13992
13999
  default: "div"
13993
14000
  }
13994
14001
  };
13995
- const COMPONENT_NAME$1x = "vc-color-picker";
14002
+ const COMPONENT_NAME$1y = "vc-color-picker";
13996
14003
  const ColorPicker$1 = /* @__PURE__ */ vue.defineComponent({
13997
- name: COMPONENT_NAME$1x,
13998
- props: props$_,
14004
+ name: COMPONENT_NAME$1y,
14005
+ props: props$$,
13999
14006
  setup(props2, {
14000
14007
  slots
14001
14008
  }) {
@@ -14007,7 +14014,7 @@
14007
14014
  }
14008
14015
  });
14009
14016
  const MColorPicker = ColorPicker$1;
14010
- const props$Z = {
14017
+ const props$_ = {
14011
14018
  tag: {
14012
14019
  type: String,
14013
14020
  default: "span"
@@ -14048,14 +14055,14 @@
14048
14055
  const formatter = (format, arr) => {
14049
14056
  return format.replace("DD", arr[0]).replace("HH", arr[1]).replace("mm", arr[2]).replace("ss", arr[3]).replace("SSS", arr[4]);
14050
14057
  };
14051
- function _isSlot$1(s) {
14058
+ function _isSlot$2(s) {
14052
14059
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14053
14060
  }
14054
- const COMPONENT_NAME$1w = "vc-countdown";
14061
+ const COMPONENT_NAME$1x = "vc-countdown";
14055
14062
  const Countdown = /* @__PURE__ */ vue.defineComponent({
14056
- name: COMPONENT_NAME$1w,
14057
- props: props$Z,
14058
- emits: ["change", "finish", "error"],
14063
+ name: COMPONENT_NAME$1x,
14064
+ props: props$_,
14065
+ emits: ["change", "complete", "error"],
14059
14066
  setup(props2, {
14060
14067
  emit,
14061
14068
  slots
@@ -14138,7 +14145,7 @@
14138
14145
  second: "00",
14139
14146
  millisecond: "00"
14140
14147
  });
14141
- emit("finish");
14148
+ emit("complete");
14142
14149
  } else {
14143
14150
  emit("change", {
14144
14151
  timestamp,
@@ -14177,7 +14184,7 @@
14177
14184
  // @ts-ignore
14178
14185
  vue.createVNode(Content, {
14179
14186
  "class": "vc-countdown"
14180
- }, _isSlot$1(_slot = slots.default(binds.value)) ? _slot : {
14187
+ }, _isSlot$2(_slot = slots.default(binds.value)) ? _slot : {
14181
14188
  default: () => [_slot]
14182
14189
  })
14183
14190
  );
@@ -14199,6 +14206,339 @@
14199
14206
  }
14200
14207
  });
14201
14208
  const MCountdown = Countdown;
14209
+ const props$Z = {
14210
+ tag: {
14211
+ type: String,
14212
+ default: "span"
14213
+ },
14214
+ value: [Number, String],
14215
+ placeholder: String,
14216
+ precision: {
14217
+ type: Number,
14218
+ default: 0
14219
+ },
14220
+ duration: {
14221
+ type: Number,
14222
+ default: 500
14223
+ },
14224
+ decimal: {
14225
+ type: String,
14226
+ default: "."
14227
+ },
14228
+ separator: {
14229
+ type: String,
14230
+ default: ","
14231
+ },
14232
+ numerals: {
14233
+ type: Array,
14234
+ default: () => []
14235
+ },
14236
+ smartEasingThreshold: {
14237
+ type: Number,
14238
+ default: 999
14239
+ },
14240
+ smartEasingAmount: {
14241
+ type: Number,
14242
+ default: 333
14243
+ },
14244
+ easing: {
14245
+ type: [Function, Boolean],
14246
+ default: true
14247
+ },
14248
+ // 10.90 -> 10.9
14249
+ zeroless: {
14250
+ type: Boolean,
14251
+ default: false
14252
+ },
14253
+ // 为true时,自行管理start/update
14254
+ controllable: {
14255
+ type: Boolean,
14256
+ default: false
14257
+ },
14258
+ render: Function
14259
+ };
14260
+ const separated2value = (value, options) => {
14261
+ if (typeof value === "number" || typeof value !== "string") return value;
14262
+ const escapeRegExp = (s) => s.replace(/([.,' ])/g, "\\$1");
14263
+ const sep = escapeRegExp(options.separator);
14264
+ const dec = escapeRegExp(options.decimal);
14265
+ const num = (value || "").replace(new RegExp(sep, "g"), "").replace(new RegExp(dec, "g"), ".");
14266
+ return parseFloat(num);
14267
+ };
14268
+ const value2separated = (value, options) => {
14269
+ const num = typeof value === "number" ? value : parseFloat(value);
14270
+ if (value === "" || Number.isNaN(num)) {
14271
+ return {
14272
+ negative: "",
14273
+ integer: "",
14274
+ decimal: "",
14275
+ separated: "",
14276
+ float: "",
14277
+ value: ""
14278
+ };
14279
+ }
14280
+ const negative = num < 0 ? "-" : "";
14281
+ let [integer, decimal = ""] = `${Math.abs(num)}`.split(".");
14282
+ let separated = integer;
14283
+ if (options.separator) {
14284
+ let v = "";
14285
+ let j = 0;
14286
+ const factor = 3;
14287
+ for (let i = 0, len = separated.length; i < len; ++i) {
14288
+ if (i !== 0 && j % factor === 0) {
14289
+ v = options.separator + v;
14290
+ }
14291
+ j++;
14292
+ v = separated[len - i - 1] + v;
14293
+ }
14294
+ separated = v;
14295
+ }
14296
+ const precision$ = options.zeroless ? Math.min(options.precision, decimal.length) : options.precision;
14297
+ if (precision$) {
14298
+ decimal = decimal.slice(0, precision$).padEnd(precision$, "0");
14299
+ } else {
14300
+ decimal = "";
14301
+ }
14302
+ if (options?.numerals?.length) {
14303
+ separated = separated.replace(/[0-9]/g, (w) => options.numerals[+w]);
14304
+ decimal = decimal.replace(/[0-9]/g, (w) => options.numerals[+w]);
14305
+ }
14306
+ const _decimal = decimal ? options.decimal + decimal : "";
14307
+ return {
14308
+ negative,
14309
+ integer,
14310
+ decimal,
14311
+ separated,
14312
+ float: `${negative}${integer}${_decimal}`,
14313
+ value: `${negative}${separated}${_decimal}`
14314
+ };
14315
+ };
14316
+ function _isSlot$1(s) {
14317
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14318
+ }
14319
+ const COMPONENT_NAME$1w = "vc-counter";
14320
+ const Counter = /* @__PURE__ */ vue.defineComponent({
14321
+ name: COMPONENT_NAME$1w,
14322
+ props: props$Z,
14323
+ emits: ["begin", "complete", "change"],
14324
+ setup(props2, {
14325
+ emit,
14326
+ expose,
14327
+ slots
14328
+ }) {
14329
+ const startTime = vue.ref(null);
14330
+ const duration = vue.ref(props2.duration);
14331
+ const remaining = vue.ref(duration.value);
14332
+ const startVal = vue.ref(0);
14333
+ const endVal = vue.ref(separated2value(props2.value, props2));
14334
+ const frameVal = vue.ref(startVal.value);
14335
+ const finalEndVal = vue.ref(null);
14336
+ const useEasing = vue.ref(!!props2.easing);
14337
+ const isStart = vue.ref(false);
14338
+ const isPaused = vue.ref(false);
14339
+ const isComplete = vue.ref(false);
14340
+ const countdown = vue.ref(false);
14341
+ const rAF = vue.ref(null);
14342
+ const prints = vue.reactive({
14343
+ negative: "",
14344
+ integer: "",
14345
+ decimal: "",
14346
+ separated: "",
14347
+ float: "",
14348
+ value: ""
14349
+ });
14350
+ const easing = vue.computed(() => {
14351
+ return typeof props2.easing === "function" ? props2.easing : (t, b, c, d) => c * (-Math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b;
14352
+ });
14353
+ const displayValue = vue.computed(() => {
14354
+ if (props2.value === "" || typeof props2.value !== "string" && typeof props2.value !== "number") {
14355
+ return props2.placeholder;
14356
+ }
14357
+ return prints.value;
14358
+ });
14359
+ const binds = vue.computed(() => {
14360
+ return {
14361
+ ...prints,
14362
+ value: displayValue.value
14363
+ };
14364
+ });
14365
+ const determineDirectionAndSmartEasing = () => {
14366
+ const v = finalEndVal.value !== null ? finalEndVal.value : endVal.value;
14367
+ countdown.value = startVal.value > v;
14368
+ const animateAmount = v - startVal.value;
14369
+ if (Math.abs(animateAmount) > props2.smartEasingThreshold && props2.easing) {
14370
+ finalEndVal.value = v;
14371
+ const up = countdown.value ? 1 : -1;
14372
+ endVal.value = v + up * props2.smartEasingAmount;
14373
+ duration.value = duration.value / 2;
14374
+ } else {
14375
+ endVal.value = v;
14376
+ finalEndVal.value = null;
14377
+ }
14378
+ if (finalEndVal.value !== null) {
14379
+ useEasing.value = false;
14380
+ } else {
14381
+ useEasing.value = !!props2.easing;
14382
+ }
14383
+ };
14384
+ const run = () => {
14385
+ const done = (timestamp) => {
14386
+ if (!startTime.value) {
14387
+ startTime.value = timestamp;
14388
+ }
14389
+ const progress = timestamp - startTime.value;
14390
+ remaining.value = duration.value - progress;
14391
+ if (useEasing.value) {
14392
+ if (countdown.value) {
14393
+ frameVal.value = startVal.value - easing.value(progress, 0, startVal.value - endVal.value, duration.value);
14394
+ } else {
14395
+ frameVal.value = easing.value(progress, startVal.value, endVal.value - startVal.value, duration.value);
14396
+ }
14397
+ } else {
14398
+ frameVal.value = startVal.value + (endVal.value - startVal.value) * (progress / duration.value);
14399
+ }
14400
+ const wentPast = countdown.value ? frameVal.value < endVal.value : frameVal.value > endVal.value;
14401
+ frameVal.value = wentPast ? endVal.value : frameVal.value;
14402
+ print(frameVal.value);
14403
+ if (progress < duration.value) {
14404
+ rAF.value = requestAnimationFrame(done);
14405
+ } else if (finalEndVal.value !== null) {
14406
+ update(finalEndVal.value);
14407
+ } else {
14408
+ emit("complete");
14409
+ isComplete.value = true;
14410
+ }
14411
+ };
14412
+ determineDirectionAndSmartEasing();
14413
+ rAF.value = requestAnimationFrame(done);
14414
+ };
14415
+ const print = (num) => {
14416
+ Object.assign(prints, value2separated(num, props2));
14417
+ emit("change", prints);
14418
+ };
14419
+ const resetDuration = () => {
14420
+ startTime.value = null;
14421
+ duration.value = props2.duration;
14422
+ remaining.value = duration.value;
14423
+ };
14424
+ const cancel = () => {
14425
+ if (rAF.value === null || typeof rAF.value === "undefined") return;
14426
+ cancelAnimationFrame(rAF.value);
14427
+ };
14428
+ const start = () => {
14429
+ if (isComplete.value || isStart.value) return;
14430
+ cancel();
14431
+ resetDuration();
14432
+ isPaused.value = false;
14433
+ isComplete.value = false;
14434
+ startVal.value = 0;
14435
+ frameVal.value = 0;
14436
+ isStart.value = true;
14437
+ emit("begin");
14438
+ if (duration.value > 0) {
14439
+ run();
14440
+ } else {
14441
+ print(endVal.value);
14442
+ }
14443
+ };
14444
+ const pause = () => {
14445
+ if (isComplete.value) return;
14446
+ if (!isPaused.value) {
14447
+ cancel();
14448
+ }
14449
+ isPaused.value = true;
14450
+ };
14451
+ const resume = () => {
14452
+ if (isComplete.value) return;
14453
+ if (isPaused.value) {
14454
+ startTime.value = null;
14455
+ duration.value = remaining.value;
14456
+ startVal.value = frameVal.value;
14457
+ run();
14458
+ }
14459
+ isPaused.value = false;
14460
+ };
14461
+ const update = (newEndVal) => {
14462
+ if (!isStart.value) return;
14463
+ cancel();
14464
+ startTime.value = null;
14465
+ endVal.value = +newEndVal;
14466
+ if (endVal.value === frameVal.value) {
14467
+ return;
14468
+ }
14469
+ startVal.value = frameVal.value;
14470
+ if (finalEndVal.value === null) {
14471
+ resetDuration();
14472
+ }
14473
+ finalEndVal.value = null;
14474
+ run();
14475
+ };
14476
+ const end = () => {
14477
+ if (isComplete.value) return;
14478
+ cancel();
14479
+ resetDuration();
14480
+ startVal.value = +props2.value;
14481
+ frameVal.value = startVal.value;
14482
+ print(frameVal.value);
14483
+ emit("complete");
14484
+ isComplete.value = true;
14485
+ };
14486
+ const restart = () => {
14487
+ isStart.value = false;
14488
+ isComplete.value = false;
14489
+ start();
14490
+ };
14491
+ vue.watch(() => props2.value, () => {
14492
+ if (props2.controllable || !isStart.value) return;
14493
+ update(props2.value);
14494
+ });
14495
+ vue.watch(() => props2.precision, () => {
14496
+ if (props2.controllable || !isStart.value || !isComplete.value) return;
14497
+ print(+props2.value);
14498
+ });
14499
+ expose({
14500
+ start,
14501
+ pause,
14502
+ resume,
14503
+ update,
14504
+ end,
14505
+ restart,
14506
+ cancel,
14507
+ print
14508
+ });
14509
+ vue.onMounted(() => !props2.controllable && start());
14510
+ vue.onBeforeUnmount(cancel);
14511
+ const Content = props2.tag;
14512
+ return () => {
14513
+ if (slots.default) {
14514
+ let _slot;
14515
+ return (
14516
+ // @ts-ignore
14517
+ vue.createVNode(Content, {
14518
+ "class": "vc-counter"
14519
+ }, _isSlot$1(_slot = slots.default(binds.value)) ? _slot : {
14520
+ default: () => [_slot]
14521
+ })
14522
+ );
14523
+ }
14524
+ if (props2.render) {
14525
+ return vue.createVNode(Customer, vue.mergeProps({
14526
+ "class": "vc-counter",
14527
+ "render": props2.render
14528
+ }, binds.value), null);
14529
+ }
14530
+ return (
14531
+ // @ts-ignore
14532
+ vue.createVNode(Content, {
14533
+ "class": "vc-counter"
14534
+ }, {
14535
+ default: () => [displayValue.value]
14536
+ })
14537
+ );
14538
+ };
14539
+ }
14540
+ });
14541
+ const MCounter = Counter;
14202
14542
  const props$Y = {
14203
14543
  type: {
14204
14544
  type: String,
@@ -14221,8 +14561,8 @@
14221
14561
  "portalClass"
14222
14562
  ];
14223
14563
  const props$X = {
14224
- ...pick(props$1c, popoverKeys),
14225
- ...pick(props$1g, inputKeys$1),
14564
+ ...pick(props$1d, popoverKeys),
14565
+ ...pick(props$1h, inputKeys$1),
14226
14566
  type: String,
14227
14567
  placeholder: String,
14228
14568
  clearable: {
@@ -20962,7 +21302,7 @@
20962
21302
  name: COMPONENT_NAME$V,
20963
21303
  inheritAttrs: false,
20964
21304
  props: {
20965
- ...props$1g,
21305
+ ...props$1h,
20966
21306
  right: {
20967
21307
  type: Boolean,
20968
21308
  default: false
@@ -21049,7 +21389,7 @@
21049
21389
  const COMPONENT_NAME$U = "vcm-input-number";
21050
21390
  const MInputNumber = /* @__PURE__ */ vue.defineComponent({
21051
21391
  name: COMPONENT_NAME$U,
21052
- props: props$1f,
21392
+ props: props$1g,
21053
21393
  inheritAttrs: false,
21054
21394
  setup(props2, {
21055
21395
  slots,
@@ -21098,7 +21438,7 @@
21098
21438
  const MInputSearch = /* @__PURE__ */ vue.defineComponent({
21099
21439
  name: COMPONENT_NAME$T,
21100
21440
  props: {
21101
- ...props$1e,
21441
+ ...props$1f,
21102
21442
  cancelText: {
21103
21443
  type: String,
21104
21444
  default: "取消"
@@ -22564,7 +22904,7 @@
22564
22904
  const COMPONENT_NAME$H = "vc-select";
22565
22905
  const Select = /* @__PURE__ */ vue.defineComponent({
22566
22906
  name: COMPONENT_NAME$H,
22567
- props: props$19,
22907
+ props: props$1a,
22568
22908
  emits: ["ready", "close", "visible-change", "clear", "change", "update:modelValue"],
22569
22909
  setup(props2, {
22570
22910
  emit,
@@ -24177,7 +24517,7 @@
24177
24517
  },
24178
24518
  scrollerOptions: Object,
24179
24519
  renderEmpty: Function,
24180
- renderFinish: Function,
24520
+ renderComplete: Function,
24181
24521
  renderLoading: Function,
24182
24522
  renderPlaceholder: Function,
24183
24523
  renderRefresh: Function
@@ -24208,9 +24548,9 @@
24208
24548
  }, [vue.createVNode(Spin, {
24209
24549
  "size": 20
24210
24550
  }, null)]))]), owner.isEnd.value && (owner.data.length ? vue.createVNode("div", {
24211
- "class": "vc-recycle-list__finish"
24212
- }, [slots.finish?.() || owner.renderer.value.finish ? vue.createVNode(Customer, {
24213
- "render": owner.renderer.value.finish
24551
+ "class": "vc-recycle-list__complete"
24552
+ }, [slots.complete?.() || owner.renderer.value.complete ? vue.createVNode(Customer, {
24553
+ "render": owner.renderer.value.complete
24214
24554
  }, null) : vue.createVNode("div", {
24215
24555
  "class": "vc-recycle-list__center"
24216
24556
  }, [vue.createTextVNode("已全部加载~")])]) : vue.createVNode("div", {
@@ -24479,7 +24819,7 @@
24479
24819
  refresh: props2.renderRefresh || globalProps.renderRefresh,
24480
24820
  placeholder: props2.renderPlaceholder || globalProps.renderPlaceholder,
24481
24821
  loading: props2.renderLoading || globalProps.renderLoading,
24482
- finish: props2.renderFinish || globalProps.renderFinish,
24822
+ complete: props2.renderComplete || globalProps.renderComplete,
24483
24823
  empty: props2.renderEmpty || globalProps.renderEmpty
24484
24824
  };
24485
24825
  });
@@ -29279,7 +29619,7 @@
29279
29619
  "controllable"
29280
29620
  ];
29281
29621
  const props$8 = {
29282
- ...pick(props$1g, inputKeys),
29622
+ ...pick(props$1h, inputKeys),
29283
29623
  wrap: {
29284
29624
  type: String,
29285
29625
  validator: (v) => /(soft|hard)/.test(v),
@@ -30834,7 +31174,7 @@
30834
31174
  "allowDispatch"
30835
31175
  ];
30836
31176
  const props$2 = {
30837
- ...pick(props$19, selectKeys),
31177
+ ...pick(props$1a, selectKeys),
30838
31178
  ...pick(props$3, treeNodeContentKeys),
30839
31179
  // 暂不支持,仅作为默认值
30840
31180
  max: {
@@ -31103,7 +31443,7 @@
31103
31443
  "renderNodeLabel"
31104
31444
  ];
31105
31445
  const props$1 = {
31106
- ...props$19,
31446
+ ...props$1a,
31107
31447
  ...pick(props$2, treeKeys)
31108
31448
  };
31109
31449
  const COMPONENT_NAME$2 = "vc-tree-select";
@@ -31906,6 +32246,8 @@
31906
32246
  // MColorPickerView,
31907
32247
  Countdown,
31908
32248
  MCountdown,
32249
+ Counter,
32250
+ MCounter,
31909
32251
  Customer,
31910
32252
  MCustomer,
31911
32253
  DatePicker,
@@ -136455,6 +136797,7 @@ ${imported}
136455
136797
  exports.ColorPicker = ColorPicker$1;
136456
136798
  exports.Components = Components;
136457
136799
  exports.Countdown = Countdown;
136800
+ exports.Counter = Counter;
136458
136801
  exports.Customer = Customer;
136459
136802
  exports.DatePicker = DatePicker;
136460
136803
  exports.Debounce = Debounce;
@@ -136499,6 +136842,7 @@ ${imported}
136499
136842
  exports.MCollapseItem = MCollapseItem;
136500
136843
  exports.MColorPicker = MColorPicker;
136501
136844
  exports.MCountdown = MCountdown;
136845
+ exports.MCounter = MCounter;
136502
136846
  exports.MCustomer = MCustomer;
136503
136847
  exports.MDatePicker = MDatePicker;
136504
136848
  exports.MDebounce = Debounce;