@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.
@@ -9080,31 +9080,38 @@ var Vc = (function (exports, vue) {
9080
9080
  const VARIABLES = {};
9081
9081
  const nil = void 0;
9082
9082
  const defaults$2 = {
9083
- UploadPicker: {
9084
- enhancer: nil
9085
- },
9086
9083
  Editor: {
9087
9084
  options: nil,
9088
9085
  enhancer: nil
9089
9086
  },
9090
- Theme: {
9091
- variables: VARIABLES
9092
- },
9093
9087
  Portal: {
9094
9088
  install: nil
9095
9089
  },
9096
- Upload: {
9097
- onRequest: nil,
9098
- onResponse: nil,
9099
- onMessage: nil
9100
- },
9101
- TableColumn: {
9102
- line: nil
9090
+ RecycleList: {
9091
+ renderRefresh: nil,
9092
+ renderPlaceholder: nil,
9093
+ renderLoading: nil,
9094
+ renderComplete: nil,
9095
+ renderEmpty: nil
9103
9096
  },
9104
9097
  Snapshot: {
9105
9098
  options: nil,
9106
9099
  source: nil,
9107
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
9108
9115
  }
9109
9116
  };
9110
9117
  class Instance {
@@ -9131,16 +9138,16 @@ var Vc = (function (exports, vue) {
9131
9138
  }
9132
9139
  }
9133
9140
  const VcInstance = new Instance();
9134
- const props$1t = {
9141
+ const props$1u = {
9135
9142
  tag: {
9136
9143
  type: String,
9137
9144
  default: "div"
9138
9145
  }
9139
9146
  };
9140
- const COMPONENT_NAME$29 = "vc-action-sheet";
9147
+ const COMPONENT_NAME$2a = "vc-action-sheet";
9141
9148
  const ActionSheet = /* @__PURE__ */ vue.defineComponent({
9142
- name: COMPONENT_NAME$29,
9143
- props: props$1t,
9149
+ name: COMPONENT_NAME$2a,
9150
+ props: props$1u,
9144
9151
  setup(props2, {
9145
9152
  slots
9146
9153
  }) {
@@ -9152,7 +9159,7 @@ var Vc = (function (exports, vue) {
9152
9159
  }
9153
9160
  });
9154
9161
  const MActionSheet = ActionSheet;
9155
- const props$1s = {
9162
+ const props$1t = {
9156
9163
  modelValue: {
9157
9164
  type: Boolean,
9158
9165
  default: false
@@ -9210,11 +9217,11 @@ var Vc = (function (exports, vue) {
9210
9217
  const isWheel = (el2) => {
9211
9218
  return SCROLLER_WHEEL_REG.test(el2?.className || "");
9212
9219
  };
9213
- const COMPONENT_NAME$28 = "vc-affix";
9220
+ const COMPONENT_NAME$29 = "vc-affix";
9214
9221
  const Affix = /* @__PURE__ */ vue.defineComponent({
9215
- name: COMPONENT_NAME$28,
9222
+ name: COMPONENT_NAME$29,
9216
9223
  emits: ["update:modelValue"],
9217
- props: props$1s,
9224
+ props: props$1t,
9218
9225
  setup(props2, {
9219
9226
  slots,
9220
9227
  expose,
@@ -9374,7 +9381,7 @@ var Vc = (function (exports, vue) {
9374
9381
  }
9375
9382
  });
9376
9383
  const MAffix = Affix;
9377
- const props$1r = {
9384
+ const props$1s = {
9378
9385
  modelValue: {
9379
9386
  type: Boolean,
9380
9387
  default: true
@@ -9400,7 +9407,7 @@ var Vc = (function (exports, vue) {
9400
9407
  default: false
9401
9408
  }
9402
9409
  };
9403
- const props$1q = {
9410
+ const props$1r = {
9404
9411
  type: String,
9405
9412
  inherit: {
9406
9413
  type: Boolean,
@@ -9533,10 +9540,10 @@ var Vc = (function (exports, vue) {
9533
9540
  }
9534
9541
  }
9535
9542
  const IconManager = new Manager();
9536
- const COMPONENT_NAME$27 = "vc-icon";
9543
+ const COMPONENT_NAME$28 = "vc-icon";
9537
9544
  const Icon = /* @__PURE__ */ vue.defineComponent({
9538
- name: COMPONENT_NAME$27,
9539
- props: props$1q,
9545
+ name: COMPONENT_NAME$28,
9546
+ props: props$1r,
9540
9547
  setup(props2) {
9541
9548
  const viewBox = vue.ref("0 0 1024 1024");
9542
9549
  const path = vue.ref([]);
@@ -9568,7 +9575,7 @@ var Vc = (function (exports, vue) {
9568
9575
  };
9569
9576
  }
9570
9577
  });
9571
- const props$1p = {
9578
+ const props$1q = {
9572
9579
  /**
9573
9580
  * 进入/离开持续时间
9574
9581
  * {enter: 300, leave: 300}
@@ -9731,10 +9738,10 @@ var Vc = (function (exports, vue) {
9731
9738
  }
9732
9739
  };
9733
9740
  };
9734
- const COMPONENT_NAME$26 = "vc-transition";
9741
+ const COMPONENT_NAME$27 = "vc-transition";
9735
9742
  const Transition = vue.defineComponent({
9736
- name: COMPONENT_NAME$26,
9737
- props: props$1p,
9743
+ name: COMPONENT_NAME$27,
9744
+ props: props$1q,
9738
9745
  // 当不声明emits的情况下,事件存在于attrs中
9739
9746
  inheritAttrs: false,
9740
9747
  setup(props2, { slots, attrs }) {
@@ -9753,10 +9760,10 @@ var Vc = (function (exports, vue) {
9753
9760
  };
9754
9761
  }
9755
9762
  });
9756
- const COMPONENT_NAME$25 = "vc-transition-collapse";
9763
+ const COMPONENT_NAME$26 = "vc-transition-collapse";
9757
9764
  const TransitionCollapse = vue.defineComponent({
9758
- name: COMPONENT_NAME$25,
9759
- props: props$1p,
9765
+ name: COMPONENT_NAME$26,
9766
+ props: props$1q,
9760
9767
  // 当不声明emits的情况下,事件存在于attrs中
9761
9768
  inheritAttrs: false,
9762
9769
  setup(props2, { slots, attrs: _attrs }) {
@@ -9869,11 +9876,11 @@ var Vc = (function (exports, vue) {
9869
9876
  };
9870
9877
  }
9871
9878
  });
9872
- const COMPONENT_NAME$24 = "vc-transition-fade";
9879
+ const COMPONENT_NAME$25 = "vc-transition-fade";
9873
9880
  const TransitionFade = vue.defineComponent({
9874
- name: COMPONENT_NAME$24,
9881
+ name: COMPONENT_NAME$25,
9875
9882
  props: {
9876
- ...props$1p,
9883
+ ...props$1q,
9877
9884
  // inheritAttrs必须是false
9878
9885
  style: {
9879
9886
  type: Object,
@@ -9905,11 +9912,11 @@ var Vc = (function (exports, vue) {
9905
9912
  };
9906
9913
  }
9907
9914
  });
9908
- const COMPONENT_NAME$23 = "vc-transition-scale";
9915
+ const COMPONENT_NAME$24 = "vc-transition-scale";
9909
9916
  const TransitionScale = vue.defineComponent({
9910
- name: COMPONENT_NAME$23,
9917
+ name: COMPONENT_NAME$24,
9911
9918
  props: {
9912
- ...props$1p,
9919
+ ...props$1q,
9913
9920
  mode: {
9914
9921
  type: String,
9915
9922
  default: "both",
@@ -9946,11 +9953,11 @@ var Vc = (function (exports, vue) {
9946
9953
  };
9947
9954
  }
9948
9955
  });
9949
- const COMPONENT_NAME$22 = "vc-transition-slide";
9956
+ const COMPONENT_NAME$23 = "vc-transition-slide";
9950
9957
  const TransitionSlide = vue.defineComponent({
9951
- name: COMPONENT_NAME$22,
9958
+ name: COMPONENT_NAME$23,
9952
9959
  props: {
9953
- ...props$1p,
9960
+ ...props$1q,
9954
9961
  mode: {
9955
9962
  type: String,
9956
9963
  default: "left",
@@ -9987,11 +9994,11 @@ var Vc = (function (exports, vue) {
9987
9994
  };
9988
9995
  }
9989
9996
  });
9990
- const COMPONENT_NAME$21 = "vc-transition-zoom";
9997
+ const COMPONENT_NAME$22 = "vc-transition-zoom";
9991
9998
  const TransitionZoom = vue.defineComponent({
9992
- name: COMPONENT_NAME$21,
9999
+ name: COMPONENT_NAME$22,
9993
10000
  props: {
9994
- ...props$1p,
10001
+ ...props$1q,
9995
10002
  mode: {
9996
10003
  type: String,
9997
10004
  default: "x",
@@ -10028,7 +10035,7 @@ var Vc = (function (exports, vue) {
10028
10035
  };
10029
10036
  }
10030
10037
  });
10031
- const COMPONENT_NAME$20 = "vc-alert";
10038
+ const COMPONENT_NAME$21 = "vc-alert";
10032
10039
  const THEME_MAP = {
10033
10040
  info: ["#456CF6", "#91d5ff", "#e6f7ff"],
10034
10041
  success: ["#52c41a", "#b7eb8f", "#f6ffed"],
@@ -10036,8 +10043,8 @@ var Vc = (function (exports, vue) {
10036
10043
  warning: ["#ffbf00", "#ffe58f", "#fffbe6"]
10037
10044
  };
10038
10045
  const Alert = /* @__PURE__ */ vue.defineComponent({
10039
- name: COMPONENT_NAME$20,
10040
- props: props$1r,
10046
+ name: COMPONENT_NAME$21,
10047
+ props: props$1s,
10041
10048
  setup(props2, {
10042
10049
  slots,
10043
10050
  emit
@@ -10123,7 +10130,7 @@ var Vc = (function (exports, vue) {
10123
10130
  }
10124
10131
  });
10125
10132
  const MAlert = Alert;
10126
- const props$1o = {
10133
+ const props$1p = {
10127
10134
  // canvas配置参数
10128
10135
  options: Object,
10129
10136
  width: {
@@ -10136,10 +10143,10 @@ var Vc = (function (exports, vue) {
10136
10143
  }
10137
10144
  };
10138
10145
  const isTouch = typeof document !== "undefined" && "ontouchend" in document;
10139
- const COMPONENT_NAME$1$ = "vc-artboard";
10146
+ const COMPONENT_NAME$20 = "vc-artboard";
10140
10147
  const Artboard = /* @__PURE__ */ vue.defineComponent({
10141
- name: COMPONENT_NAME$1$,
10142
- props: props$1o,
10148
+ name: COMPONENT_NAME$20,
10149
+ props: props$1p,
10143
10150
  setup(props2, {
10144
10151
  emit,
10145
10152
  expose
@@ -10314,7 +10321,7 @@ var Vc = (function (exports, vue) {
10314
10321
  }
10315
10322
  });
10316
10323
  const MArtboard = Artboard;
10317
- const props$1n = {
10324
+ const props$1o = {
10318
10325
  size: {
10319
10326
  type: Number,
10320
10327
  default: 28
@@ -10335,10 +10342,10 @@ var Vc = (function (exports, vue) {
10335
10342
  default: false
10336
10343
  }
10337
10344
  };
10338
- const COMPONENT_NAME$1_ = "vc-spin";
10345
+ const COMPONENT_NAME$1$ = "vc-spin";
10339
10346
  const Spin = /* @__PURE__ */ vue.defineComponent({
10340
- name: COMPONENT_NAME$1_,
10341
- props: props$1n,
10347
+ name: COMPONENT_NAME$1$,
10348
+ props: props$1o,
10342
10349
  setup(props2, {
10343
10350
  slots
10344
10351
  }) {
@@ -10371,7 +10378,7 @@ var Vc = (function (exports, vue) {
10371
10378
  };
10372
10379
  }
10373
10380
  });
10374
- const props$1m = {
10381
+ const props$1n = {
10375
10382
  wait: {
10376
10383
  type: Number,
10377
10384
  default: 250
@@ -10386,10 +10393,10 @@ var Vc = (function (exports, vue) {
10386
10393
  },
10387
10394
  exclude: RegExp
10388
10395
  };
10389
- const COMPONENT_NAME$1Z = "vc-debounce";
10396
+ const COMPONENT_NAME$1_ = "vc-debounce";
10390
10397
  const Debounce = vue.defineComponent({
10391
- name: COMPONENT_NAME$1Z,
10392
- props: props$1m,
10398
+ name: COMPONENT_NAME$1_,
10399
+ props: props$1n,
10393
10400
  /**
10394
10401
  * 不声明emits使得事件被透传放入attrs中, 这样可以让所有的事件透传
10395
10402
  * 如事件onClick
@@ -10428,7 +10435,7 @@ var Vc = (function (exports, vue) {
10428
10435
  };
10429
10436
  }
10430
10437
  });
10431
- const props$1l = {
10438
+ const props$1m = {
10432
10439
  tag: {
10433
10440
  type: String,
10434
10441
  default: "button"
@@ -10457,11 +10464,11 @@ var Vc = (function (exports, vue) {
10457
10464
  default: "button"
10458
10465
  }
10459
10466
  };
10460
- const COMPONENT_NAME$1Y = "vc-button";
10467
+ const COMPONENT_NAME$1Z = "vc-button";
10461
10468
  const Button = /* @__PURE__ */ vue.defineComponent({
10462
- name: COMPONENT_NAME$1Y,
10469
+ name: COMPONENT_NAME$1Z,
10463
10470
  emits: ["click"],
10464
- props: props$1l,
10471
+ props: props$1m,
10465
10472
  setup(props2, {
10466
10473
  slots
10467
10474
  }) {
@@ -10521,7 +10528,7 @@ var Vc = (function (exports, vue) {
10521
10528
  };
10522
10529
  }
10523
10530
  });
10524
- const props$1k = {
10531
+ const props$1l = {
10525
10532
  vertical: {
10526
10533
  type: Boolean,
10527
10534
  default: false
@@ -10539,10 +10546,10 @@ var Vc = (function (exports, vue) {
10539
10546
  default: false
10540
10547
  }
10541
10548
  };
10542
- const COMPONENT_NAME$1X = "vc-button-group";
10549
+ const COMPONENT_NAME$1Y = "vc-button-group";
10543
10550
  const ButtonGroup = /* @__PURE__ */ vue.defineComponent({
10544
- name: COMPONENT_NAME$1X,
10545
- props: props$1k,
10551
+ name: COMPONENT_NAME$1Y,
10552
+ props: props$1l,
10546
10553
  setup(props2, {
10547
10554
  slots
10548
10555
  }) {
@@ -10564,16 +10571,16 @@ var Vc = (function (exports, vue) {
10564
10571
  });
10565
10572
  const MButton = Button;
10566
10573
  const MButtonGroup = ButtonGroup;
10567
- const props$1j = {
10574
+ const props$1k = {
10568
10575
  tag: {
10569
10576
  type: String,
10570
10577
  default: "div"
10571
10578
  }
10572
10579
  };
10573
- const COMPONENT_NAME$1W = "vc-calendar";
10580
+ const COMPONENT_NAME$1X = "vc-calendar";
10574
10581
  const Calendar$1 = /* @__PURE__ */ vue.defineComponent({
10575
- name: COMPONENT_NAME$1W,
10576
- props: props$1j,
10582
+ name: COMPONENT_NAME$1X,
10583
+ props: props$1k,
10577
10584
  setup(props2, {
10578
10585
  slots
10579
10586
  }) {
@@ -10585,7 +10592,7 @@ var Vc = (function (exports, vue) {
10585
10592
  }
10586
10593
  });
10587
10594
  const MCalendar = Calendar$1;
10588
- const props$1i = {
10595
+ const props$1j = {
10589
10596
  border: {
10590
10597
  type: Boolean,
10591
10598
  default: true
@@ -10605,10 +10612,10 @@ var Vc = (function (exports, vue) {
10605
10612
  type: String
10606
10613
  }
10607
10614
  };
10608
- const COMPONENT_NAME$1V = "vc-card";
10615
+ const COMPONENT_NAME$1W = "vc-card";
10609
10616
  const Card = /* @__PURE__ */ vue.defineComponent({
10610
- name: COMPONENT_NAME$1V,
10611
- props: props$1i,
10617
+ name: COMPONENT_NAME$1W,
10618
+ props: props$1j,
10612
10619
  setup(props2, {
10613
10620
  slots
10614
10621
  }) {
@@ -10632,16 +10639,16 @@ var Vc = (function (exports, vue) {
10632
10639
  }
10633
10640
  });
10634
10641
  const MCard = Card;
10635
- const props$1h = {
10642
+ const props$1i = {
10636
10643
  tag: {
10637
10644
  type: String,
10638
10645
  default: "div"
10639
10646
  }
10640
10647
  };
10641
- const COMPONENT_NAME$1U = "vc-carousel";
10648
+ const COMPONENT_NAME$1V = "vc-carousel";
10642
10649
  const Carousel = /* @__PURE__ */ vue.defineComponent({
10643
- name: COMPONENT_NAME$1U,
10644
- props: props$1h,
10650
+ name: COMPONENT_NAME$1V,
10651
+ props: props$1i,
10645
10652
  setup(props2, {
10646
10653
  slots
10647
10654
  }) {
@@ -10679,7 +10686,7 @@ var Vc = (function (exports, vue) {
10679
10686
  data
10680
10687
  });
10681
10688
  };
10682
- const props$1g = {
10689
+ const props$1h = {
10683
10690
  // Array, 作为select等数组存放临时值
10684
10691
  modelValue: [String, Number, Array],
10685
10692
  disabled: {
@@ -10925,12 +10932,12 @@ var Vc = (function (exports, vue) {
10925
10932
  expose?.(exposed);
10926
10933
  return exposed;
10927
10934
  };
10928
- const COMPONENT_NAME$1T = "vc-input";
10935
+ const COMPONENT_NAME$1U = "vc-input";
10929
10936
  const Input$1 = /* @__PURE__ */ vue.defineComponent({
10930
- name: COMPONENT_NAME$1T,
10937
+ name: COMPONENT_NAME$1U,
10931
10938
  inheritAttrs: false,
10932
10939
  props: {
10933
- ...props$1g,
10940
+ ...props$1h,
10934
10941
  indicator: {
10935
10942
  type: [Boolean, Object],
10936
10943
  default: false
@@ -11032,8 +11039,8 @@ var Vc = (function (exports, vue) {
11032
11039
  };
11033
11040
  }
11034
11041
  });
11035
- const props$1f = {
11036
- ...props$1g,
11042
+ const props$1g = {
11043
+ ...props$1h,
11037
11044
  min: {
11038
11045
  type: Number,
11039
11046
  default: 0
@@ -11258,10 +11265,10 @@ var Vc = (function (exports, vue) {
11258
11265
  handleStepper
11259
11266
  };
11260
11267
  };
11261
- const COMPONENT_NAME$1S = "vc-input-number";
11268
+ const COMPONENT_NAME$1T = "vc-input-number";
11262
11269
  const InputNumber = /* @__PURE__ */ vue.defineComponent({
11263
- name: COMPONENT_NAME$1S,
11264
- props: props$1f,
11270
+ name: COMPONENT_NAME$1T,
11271
+ props: props$1g,
11265
11272
  inheritAttrs: false,
11266
11273
  setup(props2, {
11267
11274
  slots,
@@ -11313,17 +11320,17 @@ var Vc = (function (exports, vue) {
11313
11320
  };
11314
11321
  }
11315
11322
  });
11316
- const props$1e = {
11317
- ...props$1g,
11323
+ const props$1f = {
11324
+ ...props$1h,
11318
11325
  enterText: {
11319
11326
  type: [Boolean, String],
11320
11327
  default: true
11321
11328
  }
11322
11329
  };
11323
- const COMPONENT_NAME$1R = "vc-input-search";
11330
+ const COMPONENT_NAME$1S = "vc-input-search";
11324
11331
  const InputSearch = /* @__PURE__ */ vue.defineComponent({
11325
- name: COMPONENT_NAME$1R,
11326
- props: props$1e,
11332
+ name: COMPONENT_NAME$1S,
11333
+ props: props$1f,
11327
11334
  inheritAttrs: false,
11328
11335
  setup(props2, {
11329
11336
  emit,
@@ -11354,7 +11361,7 @@ var Vc = (function (exports, vue) {
11354
11361
  };
11355
11362
  }
11356
11363
  });
11357
- const props$1d = {
11364
+ const props$1e = {
11358
11365
  modelValue: Boolean,
11359
11366
  animation: String,
11360
11367
  placement: {
@@ -11432,7 +11439,7 @@ var Vc = (function (exports, vue) {
11432
11439
  "autoWidth",
11433
11440
  "always"
11434
11441
  ];
11435
- const props$1c = {
11442
+ const props$1d = {
11436
11443
  trigger: {
11437
11444
  type: String,
11438
11445
  default: "hover",
@@ -11450,7 +11457,7 @@ var Vc = (function (exports, vue) {
11450
11457
  type: Boolean,
11451
11458
  default: true
11452
11459
  },
11453
- ...pick(props$1d, wrapperKeys)
11460
+ ...pick(props$1e, wrapperKeys)
11454
11461
  };
11455
11462
  const EXTRA_DISTANCE = 4;
11456
11463
  const HALF_ARROW = 12.73 / 2;
@@ -11704,16 +11711,16 @@ var Vc = (function (exports, vue) {
11704
11711
  getRect
11705
11712
  };
11706
11713
  };
11707
- const props$1b = {
11714
+ const props$1c = {
11708
11715
  render: {
11709
11716
  type: Function,
11710
11717
  default: () => null
11711
11718
  }
11712
11719
  };
11713
- const COMPONENT_NAME$1Q = "vc-customer";
11720
+ const COMPONENT_NAME$1R = "vc-customer";
11714
11721
  const Customer = vue.defineComponent({
11715
- name: COMPONENT_NAME$1Q,
11716
- props: props$1b,
11722
+ name: COMPONENT_NAME$1R,
11723
+ props: props$1c,
11717
11724
  setup(props2, context) {
11718
11725
  return () => vue.h(() => {
11719
11726
  return props2.render(context.attrs, context);
@@ -11785,7 +11792,7 @@ var Vc = (function (exports, vue) {
11785
11792
  return this.target.finally(callback);
11786
11793
  }
11787
11794
  }
11788
- const COMPONENT_NAME$1P = "vc-portal";
11795
+ const COMPONENT_NAME$1Q = "vc-portal";
11789
11796
  class Portal {
11790
11797
  /**
11791
11798
  * 清理Portals类型组件
@@ -11835,7 +11842,7 @@ var Vc = (function (exports, vue) {
11835
11842
  this.wrapper = wrapper;
11836
11843
  this.globalOptions = {
11837
11844
  ...options,
11838
- name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1P)
11845
+ name: options?.name || wrapper.name || getUid(COMPONENT_NAME$1Q)
11839
11846
  };
11840
11847
  }
11841
11848
  popup(propsData, options) {
@@ -11933,7 +11940,7 @@ var Vc = (function (exports, vue) {
11933
11940
  ...rest
11934
11941
  } = options;
11935
11942
  let useAllNodes = fragment;
11936
- const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1P)}` : name$;
11943
+ const name = multiple ? `${name$}__${getUid(COMPONENT_NAME$1Q)}` : name$;
11937
11944
  const container = document.createElement(tag);
11938
11945
  const root = typeof el2 === "object" ? el2 : document.querySelector(el2 || "body");
11939
11946
  !alive && Portal.leafs.get(name)?.destroy();
@@ -11967,7 +11974,7 @@ var Vc = (function (exports, vue) {
11967
11974
  } else {
11968
11975
  const wrapper = this.wrapper;
11969
11976
  const app = vue.createApp({
11970
- name: COMPONENT_NAME$1P,
11977
+ name: COMPONENT_NAME$1Q,
11971
11978
  parent,
11972
11979
  setup() {
11973
11980
  if (alive) {
@@ -12070,16 +12077,16 @@ var Vc = (function (exports, vue) {
12070
12077
  return leaf;
12071
12078
  }
12072
12079
  }
12073
- const props$1a = {
12080
+ const props$1b = {
12074
12081
  tag: {
12075
12082
  type: String,
12076
12083
  default: "div"
12077
12084
  }
12078
12085
  };
12079
- const COMPONENT_NAME$1O = "vc-portal-view";
12086
+ const COMPONENT_NAME$1P = "vc-portal-view";
12080
12087
  const PortalView = /* @__PURE__ */ vue.defineComponent({
12081
- name: COMPONENT_NAME$1O,
12082
- props: props$1a,
12088
+ name: COMPONENT_NAME$1P,
12089
+ props: props$1b,
12083
12090
  setup(props2, {
12084
12091
  slots
12085
12092
  }) {
@@ -12092,10 +12099,10 @@ var Vc = (function (exports, vue) {
12092
12099
  };
12093
12100
  }
12094
12101
  });
12095
- const COMPONENT_NAME$1N = "vc-popover-wrapper";
12102
+ const COMPONENT_NAME$1O = "vc-popover-wrapper";
12096
12103
  const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
12097
- name: COMPONENT_NAME$1N,
12098
- props: props$1d,
12104
+ name: COMPONENT_NAME$1O,
12105
+ props: props$1e,
12099
12106
  emits: ["portal-fulfilled", "close"],
12100
12107
  setup(props2, {
12101
12108
  emit,
@@ -12316,10 +12323,10 @@ var Vc = (function (exports, vue) {
12316
12323
  const PopoverPortal = new Portal(PopoverWrapper, {
12317
12324
  leaveDelay: 0
12318
12325
  });
12319
- const COMPONENT_NAME$1M = "vc-popover";
12326
+ const COMPONENT_NAME$1N = "vc-popover";
12320
12327
  const Popover$1 = /* @__PURE__ */ vue.defineComponent({
12321
- name: COMPONENT_NAME$1M,
12322
- props: props$1c,
12328
+ name: COMPONENT_NAME$1N,
12329
+ props: props$1d,
12323
12330
  emits: ["update:modelValue", "visible-change", "ready", "close"],
12324
12331
  setup(props2, {
12325
12332
  emit,
@@ -12446,9 +12453,9 @@ var Vc = (function (exports, vue) {
12446
12453
  const Popover = Object.assign(Popover$1, {
12447
12454
  open: PopoverPortal.popup.bind(PopoverPortal)
12448
12455
  });
12449
- const COMPONENT_NAME$1L = "vc-cascader-column";
12456
+ const COMPONENT_NAME$1M = "vc-cascader-column";
12450
12457
  const CascaderColumn = /* @__PURE__ */ vue.defineComponent({
12451
- name: COMPONENT_NAME$1L,
12458
+ name: COMPONENT_NAME$1M,
12452
12459
  emits: ["click", "change"],
12453
12460
  props: {
12454
12461
  data: {
@@ -12565,9 +12572,9 @@ var Vc = (function (exports, vue) {
12565
12572
  "portal",
12566
12573
  "portalClass"
12567
12574
  ];
12568
- const props$19 = {
12569
- ...pick(props$1c, popoverKeys$1),
12570
- ...pick(props$1g, inputKeys$2),
12575
+ const props$1a = {
12576
+ ...pick(props$1d, popoverKeys$1),
12577
+ ...pick(props$1h, inputKeys$2),
12571
12578
  renderOption: [Function],
12572
12579
  renderOptionGroup: [Function],
12573
12580
  data: {
@@ -12632,8 +12639,8 @@ var Vc = (function (exports, vue) {
12632
12639
  },
12633
12640
  label: String
12634
12641
  };
12635
- const props$18 = {
12636
- ...props$19,
12642
+ const props$19 = {
12643
+ ...props$1a,
12637
12644
  data: {
12638
12645
  type: Array,
12639
12646
  default: () => []
@@ -12651,11 +12658,11 @@ var Vc = (function (exports, vue) {
12651
12658
  default: true
12652
12659
  }
12653
12660
  };
12654
- const COMPONENT_NAME$1K = "vc-cascader";
12661
+ const COMPONENT_NAME$1L = "vc-cascader";
12655
12662
  const Cascader = /* @__PURE__ */ vue.defineComponent({
12656
- name: COMPONENT_NAME$1K,
12663
+ name: COMPONENT_NAME$1L,
12657
12664
  inheritAttrs: false,
12658
- props: props$18,
12665
+ props: props$19,
12659
12666
  emits: ["update:modelValue", "visible-change", "ready", "change", "close"],
12660
12667
  setup(props2, {
12661
12668
  emit,
@@ -12930,7 +12937,7 @@ var Vc = (function (exports, vue) {
12930
12937
  "globalout",
12931
12938
  "contextmenu"
12932
12939
  ];
12933
- const props$17 = {
12940
+ const props$18 = {
12934
12941
  options: Object,
12935
12942
  pluginOptions: Object,
12936
12943
  theme: [String, Object],
@@ -12942,10 +12949,10 @@ var Vc = (function (exports, vue) {
12942
12949
  watchShallow: Boolean,
12943
12950
  manualUpdate: Boolean
12944
12951
  };
12945
- const COMPONENT_NAME$1J = "vc-chart";
12952
+ const COMPONENT_NAME$1K = "vc-chart";
12946
12953
  const Chart = /* @__PURE__ */ vue.defineComponent({
12947
- name: COMPONENT_NAME$1J,
12948
- props: props$17,
12954
+ name: COMPONENT_NAME$1K,
12955
+ props: props$18,
12949
12956
  emits: [...EVENTS$1, "ready"],
12950
12957
  setup(props2, {
12951
12958
  emit,
@@ -13059,7 +13066,7 @@ var Vc = (function (exports, vue) {
13059
13066
  }
13060
13067
  });
13061
13068
  const MChart = Chart;
13062
- const props$16 = {
13069
+ const props$17 = {
13063
13070
  disabled: {
13064
13071
  type: Boolean,
13065
13072
  default: false
@@ -13171,10 +13178,10 @@ var Vc = (function (exports, vue) {
13171
13178
  computedLabel
13172
13179
  };
13173
13180
  };
13174
- const COMPONENT_NAME$1I = "vc-checkbox";
13181
+ const COMPONENT_NAME$1J = "vc-checkbox";
13175
13182
  const Checkbox = /* @__PURE__ */ vue.defineComponent({
13176
- name: COMPONENT_NAME$1I,
13177
- props: props$16,
13183
+ name: COMPONENT_NAME$1J,
13184
+ props: props$17,
13178
13185
  emits: ["update:modelValue", "change"],
13179
13186
  setup(props2, {
13180
13187
  slots
@@ -13210,7 +13217,7 @@ var Vc = (function (exports, vue) {
13210
13217
  };
13211
13218
  }
13212
13219
  });
13213
- const props$15 = {
13220
+ const props$16 = {
13214
13221
  modelValue: {
13215
13222
  type: Array,
13216
13223
  default: () => []
@@ -13255,10 +13262,10 @@ var Vc = (function (exports, vue) {
13255
13262
  reset
13256
13263
  };
13257
13264
  };
13258
- const COMPONENT_NAME$1H = "vc-checkbox-group";
13265
+ const COMPONENT_NAME$1I = "vc-checkbox-group";
13259
13266
  const CheckboxGroup = /* @__PURE__ */ vue.defineComponent({
13260
- name: COMPONENT_NAME$1H,
13261
- props: props$15,
13267
+ name: COMPONENT_NAME$1I,
13268
+ props: props$16,
13262
13269
  emits: ["update:modelValue", "change"],
13263
13270
  setup(props2, {
13264
13271
  slots
@@ -13272,10 +13279,10 @@ var Vc = (function (exports, vue) {
13272
13279
  };
13273
13280
  }
13274
13281
  });
13275
- const COMPONENT_NAME$1G = "vcm-checkbox";
13282
+ const COMPONENT_NAME$1H = "vcm-checkbox";
13276
13283
  const MCheckbox = /* @__PURE__ */ vue.defineComponent({
13277
- name: COMPONENT_NAME$1G,
13278
- props: props$16,
13284
+ name: COMPONENT_NAME$1H,
13285
+ props: props$17,
13279
13286
  emits: ["update:modelValue", "change"],
13280
13287
  setup(props2, {
13281
13288
  slots
@@ -13311,10 +13318,10 @@ var Vc = (function (exports, vue) {
13311
13318
  };
13312
13319
  }
13313
13320
  });
13314
- const COMPONENT_NAME$1F = "vcm-checkbox-group";
13321
+ const COMPONENT_NAME$1G = "vcm-checkbox-group";
13315
13322
  const MCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
13316
- name: COMPONENT_NAME$1F,
13317
- props: props$15,
13323
+ name: COMPONENT_NAME$1G,
13324
+ props: props$16,
13318
13325
  emits: ["update:modelValue", "change"],
13319
13326
  setup(props2, {
13320
13327
  slots
@@ -13328,7 +13335,7 @@ var Vc = (function (exports, vue) {
13328
13335
  };
13329
13336
  }
13330
13337
  });
13331
- const props$14 = {
13338
+ const props$15 = {
13332
13339
  content: [String, Function],
13333
13340
  mask: {
13334
13341
  type: Boolean,
@@ -13363,11 +13370,11 @@ var Vc = (function (exports, vue) {
13363
13370
  // 这个相当于Modal中的onCancel,支持Promise
13364
13371
  onBeforeClose: Function
13365
13372
  };
13366
- const COMPONENT_NAME$1E = "vc-message";
13373
+ const COMPONENT_NAME$1F = "vc-message";
13367
13374
  const MessageView = /* @__PURE__ */ vue.defineComponent({
13368
- name: COMPONENT_NAME$1E,
13375
+ name: COMPONENT_NAME$1F,
13369
13376
  emits: ["before-close", "close", "portal-fulfilled"],
13370
- props: props$14,
13377
+ props: props$15,
13371
13378
  setup(props2, {
13372
13379
  emit,
13373
13380
  expose
@@ -13494,7 +13501,7 @@ var Vc = (function (exports, vue) {
13494
13501
  const warning$3 = create$4({ mode: "warning" });
13495
13502
  const error$3 = create$4({ mode: "error" });
13496
13503
  const Message = Object.assign(MessageView, { destroy: destroy$5, info: info$3, success: success$3, loading: loading$1, warning: warning$3, error: error$3 });
13497
- const props$13 = {
13504
+ const props$14 = {
13498
13505
  value: String,
13499
13506
  tag: {
13500
13507
  type: [String, Object, Function],
@@ -13608,16 +13615,16 @@ var Vc = (function (exports, vue) {
13608
13615
  };
13609
13616
  return () => vue.h(props2.tag, { onClick: handleClick, class: "vc-clipboard" }, slots?.default?.());
13610
13617
  };
13611
- const COMPONENT_NAME$1D = "vc-clipboard";
13618
+ const COMPONENT_NAME$1E = "vc-clipboard";
13612
13619
  const Clipboard$1 = vue.defineComponent({
13613
- name: COMPONENT_NAME$1D,
13614
- props: props$13,
13620
+ name: COMPONENT_NAME$1E,
13621
+ props: props$14,
13615
13622
  setup() {
13616
13623
  return useClipboard((content) => Message.success({ content }));
13617
13624
  }
13618
13625
  });
13619
13626
  const Clipboard$2 = Object.assign(Clipboard$1, group);
13620
- const props$12 = {
13627
+ const props$13 = {
13621
13628
  content: [String, Function],
13622
13629
  maskClosable: {
13623
13630
  type: Boolean,
@@ -13642,11 +13649,11 @@ var Vc = (function (exports, vue) {
13642
13649
  const MTransitionScale = TransitionScale;
13643
13650
  const MTransitionSlide = TransitionSlide;
13644
13651
  const MTransitionZoom = TransitionZoom;
13645
- const COMPONENT_NAME$1C = "vcm-toast";
13652
+ const COMPONENT_NAME$1D = "vcm-toast";
13646
13653
  const MToastView = /* @__PURE__ */ vue.defineComponent({
13647
- name: COMPONENT_NAME$1C,
13654
+ name: COMPONENT_NAME$1D,
13648
13655
  emits: ["close", "portal-fulfilled"],
13649
- props: props$12,
13656
+ props: props$13,
13650
13657
  setup(props2, {
13651
13658
  emit,
13652
13659
  expose
@@ -13743,16 +13750,16 @@ var Vc = (function (exports, vue) {
13743
13750
  const warning$2 = create$3({ mode: "warning" });
13744
13751
  const error$2 = create$3({ mode: "error" });
13745
13752
  const MToast = Object.assign(MToastView, { destroy: destroy$4, info: info$2, success: success$2, loading, warning: warning$2, error: error$2 });
13746
- const COMPONENT_NAME$1B = "vcm-clipboard";
13753
+ const COMPONENT_NAME$1C = "vcm-clipboard";
13747
13754
  const MClipboard$1 = vue.defineComponent({
13748
- name: COMPONENT_NAME$1B,
13749
- props: props$13,
13755
+ name: COMPONENT_NAME$1C,
13756
+ props: props$14,
13750
13757
  setup() {
13751
13758
  return useClipboard((content) => MToast.info({ content }));
13752
13759
  }
13753
13760
  });
13754
13761
  const MClipboard = Object.assign(MClipboard$1, group);
13755
- const props$11 = {
13762
+ const props$12 = {
13756
13763
  tag: {
13757
13764
  type: String,
13758
13765
  default: "div"
@@ -13774,10 +13781,10 @@ var Vc = (function (exports, vue) {
13774
13781
  default: false
13775
13782
  }
13776
13783
  };
13777
- const COMPONENT_NAME$1A = "vc-collapse";
13784
+ const COMPONENT_NAME$1B = "vc-collapse";
13778
13785
  const Collapse = vue.defineComponent({
13779
- name: COMPONENT_NAME$1A,
13780
- props: props$11,
13786
+ name: COMPONENT_NAME$1B,
13787
+ props: props$12,
13781
13788
  emits: ["update:moodelValue", "change"],
13782
13789
  setup(props2, { slots, emit }) {
13783
13790
  const instance = vue.getCurrentInstance();
@@ -13861,7 +13868,7 @@ var Vc = (function (exports, vue) {
13861
13868
  };
13862
13869
  }
13863
13870
  });
13864
- const props$10 = {
13871
+ const props$11 = {
13865
13872
  tag: {
13866
13873
  type: String,
13867
13874
  default: "div"
@@ -13870,7 +13877,7 @@ var Vc = (function (exports, vue) {
13870
13877
  type: [String, Number]
13871
13878
  }
13872
13879
  };
13873
- const props$$ = {
13880
+ const props$10 = {
13874
13881
  tag: {
13875
13882
  type: String,
13876
13883
  default: "div"
@@ -13885,13 +13892,13 @@ var Vc = (function (exports, vue) {
13885
13892
  default: true
13886
13893
  }
13887
13894
  };
13888
- function _isSlot$2(s) {
13895
+ function _isSlot$3(s) {
13889
13896
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
13890
13897
  }
13891
- const COMPONENT_NAME$1z = "vc-expand";
13898
+ const COMPONENT_NAME$1A = "vc-expand";
13892
13899
  const Expand$1 = /* @__PURE__ */ vue.defineComponent({
13893
- name: COMPONENT_NAME$1z,
13894
- props: props$$,
13900
+ name: COMPONENT_NAME$1A,
13901
+ props: props$10,
13895
13902
  setup(props2, {
13896
13903
  slots
13897
13904
  }) {
@@ -13909,7 +13916,7 @@ var Vc = (function (exports, vue) {
13909
13916
  enter: 200,
13910
13917
  leave: 200
13911
13918
  }
13912
- }, _isSlot$2(_slot = vue.withDirectives(vue.createVNode(Content, null, {
13919
+ }, _isSlot$3(_slot = vue.withDirectives(vue.createVNode(Content, null, {
13913
13920
  default: () => [(props2.alive || !props2.alive && isActive.value) && slots.default?.()]
13914
13921
  }), [[vue.vShow, isActive.value]])) ? _slot : {
13915
13922
  default: () => [_slot]
@@ -13917,10 +13924,10 @@ var Vc = (function (exports, vue) {
13917
13924
  };
13918
13925
  }
13919
13926
  });
13920
- const COMPONENT_NAME$1y = "vc-collapse-item";
13927
+ const COMPONENT_NAME$1z = "vc-collapse-item";
13921
13928
  const CollapseItem = /* @__PURE__ */ vue.defineComponent({
13922
- name: COMPONENT_NAME$1y,
13923
- props: props$10,
13929
+ name: COMPONENT_NAME$1z,
13930
+ props: props$11,
13924
13931
  setup(props2, {
13925
13932
  slots,
13926
13933
  expose
@@ -13983,16 +13990,16 @@ var Vc = (function (exports, vue) {
13983
13990
  });
13984
13991
  const MCollapse = Collapse;
13985
13992
  const MCollapseItem = CollapseItem;
13986
- const props$_ = {
13993
+ const props$$ = {
13987
13994
  tag: {
13988
13995
  type: String,
13989
13996
  default: "div"
13990
13997
  }
13991
13998
  };
13992
- const COMPONENT_NAME$1x = "vc-color-picker";
13999
+ const COMPONENT_NAME$1y = "vc-color-picker";
13993
14000
  const ColorPicker$1 = /* @__PURE__ */ vue.defineComponent({
13994
- name: COMPONENT_NAME$1x,
13995
- props: props$_,
14001
+ name: COMPONENT_NAME$1y,
14002
+ props: props$$,
13996
14003
  setup(props2, {
13997
14004
  slots
13998
14005
  }) {
@@ -14004,7 +14011,7 @@ var Vc = (function (exports, vue) {
14004
14011
  }
14005
14012
  });
14006
14013
  const MColorPicker = ColorPicker$1;
14007
- const props$Z = {
14014
+ const props$_ = {
14008
14015
  tag: {
14009
14016
  type: String,
14010
14017
  default: "span"
@@ -14045,14 +14052,14 @@ var Vc = (function (exports, vue) {
14045
14052
  const formatter = (format, arr) => {
14046
14053
  return format.replace("DD", arr[0]).replace("HH", arr[1]).replace("mm", arr[2]).replace("ss", arr[3]).replace("SSS", arr[4]);
14047
14054
  };
14048
- function _isSlot$1(s) {
14055
+ function _isSlot$2(s) {
14049
14056
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14050
14057
  }
14051
- const COMPONENT_NAME$1w = "vc-countdown";
14058
+ const COMPONENT_NAME$1x = "vc-countdown";
14052
14059
  const Countdown = /* @__PURE__ */ vue.defineComponent({
14053
- name: COMPONENT_NAME$1w,
14054
- props: props$Z,
14055
- emits: ["change", "finish", "error"],
14060
+ name: COMPONENT_NAME$1x,
14061
+ props: props$_,
14062
+ emits: ["change", "complete", "error"],
14056
14063
  setup(props2, {
14057
14064
  emit,
14058
14065
  slots
@@ -14135,7 +14142,7 @@ var Vc = (function (exports, vue) {
14135
14142
  second: "00",
14136
14143
  millisecond: "00"
14137
14144
  });
14138
- emit("finish");
14145
+ emit("complete");
14139
14146
  } else {
14140
14147
  emit("change", {
14141
14148
  timestamp,
@@ -14174,7 +14181,7 @@ var Vc = (function (exports, vue) {
14174
14181
  // @ts-ignore
14175
14182
  vue.createVNode(Content, {
14176
14183
  "class": "vc-countdown"
14177
- }, _isSlot$1(_slot = slots.default(binds.value)) ? _slot : {
14184
+ }, _isSlot$2(_slot = slots.default(binds.value)) ? _slot : {
14178
14185
  default: () => [_slot]
14179
14186
  })
14180
14187
  );
@@ -14196,6 +14203,339 @@ var Vc = (function (exports, vue) {
14196
14203
  }
14197
14204
  });
14198
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;
14199
14539
  const props$Y = {
14200
14540
  type: {
14201
14541
  type: String,
@@ -14218,8 +14558,8 @@ var Vc = (function (exports, vue) {
14218
14558
  "portalClass"
14219
14559
  ];
14220
14560
  const props$X = {
14221
- ...pick(props$1c, popoverKeys),
14222
- ...pick(props$1g, inputKeys$1),
14561
+ ...pick(props$1d, popoverKeys),
14562
+ ...pick(props$1h, inputKeys$1),
14223
14563
  type: String,
14224
14564
  placeholder: String,
14225
14565
  clearable: {
@@ -20959,7 +21299,7 @@ var Vc = (function (exports, vue) {
20959
21299
  name: COMPONENT_NAME$V,
20960
21300
  inheritAttrs: false,
20961
21301
  props: {
20962
- ...props$1g,
21302
+ ...props$1h,
20963
21303
  right: {
20964
21304
  type: Boolean,
20965
21305
  default: false
@@ -21046,7 +21386,7 @@ var Vc = (function (exports, vue) {
21046
21386
  const COMPONENT_NAME$U = "vcm-input-number";
21047
21387
  const MInputNumber = /* @__PURE__ */ vue.defineComponent({
21048
21388
  name: COMPONENT_NAME$U,
21049
- props: props$1f,
21389
+ props: props$1g,
21050
21390
  inheritAttrs: false,
21051
21391
  setup(props2, {
21052
21392
  slots,
@@ -21095,7 +21435,7 @@ var Vc = (function (exports, vue) {
21095
21435
  const MInputSearch = /* @__PURE__ */ vue.defineComponent({
21096
21436
  name: COMPONENT_NAME$T,
21097
21437
  props: {
21098
- ...props$1e,
21438
+ ...props$1f,
21099
21439
  cancelText: {
21100
21440
  type: String,
21101
21441
  default: "取消"
@@ -22561,7 +22901,7 @@ var Vc = (function (exports, vue) {
22561
22901
  const COMPONENT_NAME$H = "vc-select";
22562
22902
  const Select = /* @__PURE__ */ vue.defineComponent({
22563
22903
  name: COMPONENT_NAME$H,
22564
- props: props$19,
22904
+ props: props$1a,
22565
22905
  emits: ["ready", "close", "visible-change", "clear", "change", "update:modelValue"],
22566
22906
  setup(props2, {
22567
22907
  emit,
@@ -24174,7 +24514,7 @@ var Vc = (function (exports, vue) {
24174
24514
  },
24175
24515
  scrollerOptions: Object,
24176
24516
  renderEmpty: Function,
24177
- renderFinish: Function,
24517
+ renderComplete: Function,
24178
24518
  renderLoading: Function,
24179
24519
  renderPlaceholder: Function,
24180
24520
  renderRefresh: Function
@@ -24205,9 +24545,9 @@ var Vc = (function (exports, vue) {
24205
24545
  }, [vue.createVNode(Spin, {
24206
24546
  "size": 20
24207
24547
  }, null)]))]), owner.isEnd.value && (owner.data.length ? vue.createVNode("div", {
24208
- "class": "vc-recycle-list__finish"
24209
- }, [slots.finish?.() || owner.renderer.value.finish ? vue.createVNode(Customer, {
24210
- "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
24211
24551
  }, null) : vue.createVNode("div", {
24212
24552
  "class": "vc-recycle-list__center"
24213
24553
  }, [vue.createTextVNode("已全部加载~")])]) : vue.createVNode("div", {
@@ -24476,7 +24816,7 @@ var Vc = (function (exports, vue) {
24476
24816
  refresh: props2.renderRefresh || globalProps.renderRefresh,
24477
24817
  placeholder: props2.renderPlaceholder || globalProps.renderPlaceholder,
24478
24818
  loading: props2.renderLoading || globalProps.renderLoading,
24479
- finish: props2.renderFinish || globalProps.renderFinish,
24819
+ complete: props2.renderComplete || globalProps.renderComplete,
24480
24820
  empty: props2.renderEmpty || globalProps.renderEmpty
24481
24821
  };
24482
24822
  });
@@ -29276,7 +29616,7 @@ var Vc = (function (exports, vue) {
29276
29616
  "controllable"
29277
29617
  ];
29278
29618
  const props$8 = {
29279
- ...pick(props$1g, inputKeys),
29619
+ ...pick(props$1h, inputKeys),
29280
29620
  wrap: {
29281
29621
  type: String,
29282
29622
  validator: (v) => /(soft|hard)/.test(v),
@@ -30831,7 +31171,7 @@ var Vc = (function (exports, vue) {
30831
31171
  "allowDispatch"
30832
31172
  ];
30833
31173
  const props$2 = {
30834
- ...pick(props$19, selectKeys),
31174
+ ...pick(props$1a, selectKeys),
30835
31175
  ...pick(props$3, treeNodeContentKeys),
30836
31176
  // 暂不支持,仅作为默认值
30837
31177
  max: {
@@ -31100,7 +31440,7 @@ var Vc = (function (exports, vue) {
31100
31440
  "renderNodeLabel"
31101
31441
  ];
31102
31442
  const props$1 = {
31103
- ...props$19,
31443
+ ...props$1a,
31104
31444
  ...pick(props$2, treeKeys)
31105
31445
  };
31106
31446
  const COMPONENT_NAME$2 = "vc-tree-select";
@@ -31903,6 +32243,8 @@ var Vc = (function (exports, vue) {
31903
32243
  // MColorPickerView,
31904
32244
  Countdown,
31905
32245
  MCountdown,
32246
+ Counter,
32247
+ MCounter,
31906
32248
  Customer,
31907
32249
  MCustomer,
31908
32250
  DatePicker,
@@ -136452,6 +136794,7 @@ ${imported}
136452
136794
  exports.ColorPicker = ColorPicker$1;
136453
136795
  exports.Components = Components;
136454
136796
  exports.Countdown = Countdown;
136797
+ exports.Counter = Counter;
136455
136798
  exports.Customer = Customer;
136456
136799
  exports.DatePicker = DatePicker;
136457
136800
  exports.Debounce = Debounce;
@@ -136496,6 +136839,7 @@ ${imported}
136496
136839
  exports.MCollapseItem = MCollapseItem;
136497
136840
  exports.MColorPicker = MColorPicker;
136498
136841
  exports.MCountdown = MCountdown;
136842
+ exports.MCounter = MCounter;
136499
136843
  exports.MCustomer = MCustomer;
136500
136844
  exports.MDatePicker = MDatePicker;
136501
136845
  exports.MDebounce = Debounce;