snail.vue 2.0.16 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/snail.vue.js CHANGED
@@ -1,10 +1,10 @@
1
1
  //@ sourceURL=/snail.vue.js
2
2
  import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createTextVNode, shallowRef, computed, mergeProps, unref, createElementVNode, toDisplayString, Fragment, renderList, mergeModels, useModel, normalizeStyle, createCommentVNode, createBlock, nextTick, useTemplateRef, createVNode, watch, withDirectives, isRef, vModelText, withCtx, createApp, resolveDynamicComponent, TransitionGroup, Transition, normalizeProps, guardReactiveProps, ref, onErrorCaptured, createSlots, onMounted, withModifiers, getCurrentInstance, resolveComponent, onBeforeUnmount, onActivated, vShow, getCurrentScope, onScopeDispose } from 'vue';
3
- import { throwError, isObject, correctNumber, correctString, useKey, isArray, mountScope, useScopes, throwIfFalse, isPromise, wait, isNumberNotNaN, isStringNotEmpty, hasAny, mustFunction, useScope, removeFromArray, mustObject, isArrayNotEmpty, hasOwnProperty, isString, script, delay, useTimer, defer, useAsyncScope, useHook, newId, throwIfTrue, isFunction, getTimeNumber, getDateValue, parseDate, formatDateValue, getDateByValue, parseTimeValue, getTimeValue, padStart, formatTimeValue, parseDateValue, correctDateFormat, isValidTime, getFromArray, onMountScope } from 'snail.core';
4
- import { css, link, useObserver, useAnimation } from 'snail.view';
3
+ import { throwError, isObject, correctNumber, correctString, useKey, isArray, mountScope, useScopes, throwIfFalse, isPromise, wait, isNumberNotNaN, isStringNotEmpty, hasAny, mustFunction, useScope, removeFromArray, mustObject, isArrayNotEmpty, hasOwnProperty, isString, script, delay, useTimer, defer, useAsyncScope, useHook, newId, throwIfTrue, isFunction, isNullish, getTimeNumber, getDateValue, parseDate, formatDateValue, getDateByValue, parseTimeValue, getTimeValue, padStart, formatTimeValue, parseDateValue, correctDateFormat, isValidTime, getFromArray, onMountScope } from 'snail.core';
4
+ import { link, css, useObserver, useAnimation } from 'snail.view';
5
5
 
6
- const _hoisted_1$l = ["title"];
7
- var _sfc_main$A = defineComponent({
6
+ const _hoisted_1$n = ["title"];
7
+ var _sfc_main$D = defineComponent({
8
8
  ...{
9
9
  name: "Button",
10
10
  inheritAttrs: true
@@ -20,11 +20,15 @@ var _sfc_main$A = defineComponent({
20
20
  return openBlock(), createElementBlock("div", {
21
21
  class: normalizeClass(["snail-button", [__props.size, __props.type]]),
22
22
  title: __props.title
23
- }, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createTextVNode("按钮", -1))])], 10, _hoisted_1$l);
23
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createTextVNode("按钮", -1))])], 10, _hoisted_1$n);
24
24
  };
25
25
  }
26
26
  });
27
27
 
28
+ var addLink = href => setTimeout(link.register, 0, href);
29
+
30
+ addLink("/styles/snail.vue.vue.css");
31
+
28
32
  function getBuiltinIcon(iconType) {
29
33
  switch (iconType) {
30
34
  case "success":
@@ -63,10 +67,10 @@ function getBuiltinIcon(iconType) {
63
67
  }
64
68
  }
65
69
 
66
- const _hoisted_1$k = ["viewBox"];
67
- const _hoisted_2$c = ["textContent"];
68
- const _hoisted_3$a = ["d"];
69
- var _sfc_main$z = defineComponent({
70
+ const _hoisted_1$m = ["viewBox"];
71
+ const _hoisted_2$e = ["textContent"];
72
+ const _hoisted_3$b = ["d"];
73
+ var _sfc_main$C = defineComponent({
70
74
  __name: "icon",
71
75
  props: {
72
76
  title: {},
@@ -121,24 +125,24 @@ var _sfc_main$z = defineComponent({
121
125
  onMouseleave: _cache[1] || (_cache[1] = $event => isMouseEnterRef.value = false)
122
126
  }), [createElementVNode("title", {
123
127
  textContent: toDisplayString(__props.title || "")
124
- }, null, 8, _hoisted_2$c), __props.custom == true ? renderSlot(_ctx.$slots, "default", {
128
+ }, null, 8, _hoisted_2$e), __props.custom == true ? renderSlot(_ctx.$slots, "default", {
125
129
  key: 0
126
130
  }) : (openBlock(true), createElementBlock(Fragment, {
127
131
  key: 1
128
132
  }, renderList(unref(getBuiltinIcon)(__props.type), d => {
129
133
  return openBlock(), createElementBlock("path", {
130
134
  d
131
- }, null, 8, _hoisted_3$a);
132
- }), 256))], 16, _hoisted_1$k);
135
+ }, null, 8, _hoisted_3$b);
136
+ }), 256))], 16, _hoisted_1$m);
133
137
  };
134
138
  }
135
139
  });
136
140
 
137
- const _hoisted_1$j = ["title", "onClick"];
138
- const _hoisted_2$b = ["type", "checked"];
139
- const _hoisted_3$9 = ["textContent"];
141
+ const _hoisted_1$l = ["title", "onClick"];
142
+ const _hoisted_2$d = ["type", "checked"];
143
+ const _hoisted_3$a = ["textContent"];
140
144
  const _hoisted_4$7 = ["textContent"];
141
- var _sfc_main$y = defineComponent({
145
+ var _sfc_main$B = defineComponent({
142
146
  ...{
143
147
  name: "Choose",
144
148
  inheritAttrs: true
@@ -214,10 +218,10 @@ var _sfc_main$y = defineComponent({
214
218
  key: 0,
215
219
  type: unref(type),
216
220
  checked: node.selected
217
- }, null, 8, _hoisted_2$b)) : unref(mode) == "beautiful" ? (openBlock(), createElementBlock("div", {
221
+ }, null, 8, _hoisted_2$d)) : unref(mode) == "beautiful" ? (openBlock(), createElementBlock("div", {
218
222
  key: 1,
219
223
  class: normalizeClass(["status", [node.selected ? "selected" : ""]])
220
- }, [node.selected ? (openBlock(), createBlock(_sfc_main$z, {
224
+ }, [node.selected ? (openBlock(), createBlock(_sfc_main$C, {
221
225
  key: 0,
222
226
  type: "success",
223
227
  size: 12,
@@ -226,21 +230,17 @@ var _sfc_main$y = defineComponent({
226
230
  key: 2,
227
231
  class: "item-text",
228
232
  textContent: toDisplayString(node.item.text)
229
- }, null, 8, _hoisted_3$9)) : createCommentVNode("", true), node.item.description ? (openBlock(), createElementBlock("span", {
233
+ }, null, 8, _hoisted_3$a)) : createCommentVNode("", true), node.item.description ? (openBlock(), createElementBlock("span", {
230
234
  key: 3,
231
235
  class: "item-des",
232
236
  textContent: toDisplayString(node.item.description)
233
- }, null, 8, _hoisted_4$7)) : createCommentVNode("", true)], 14, _hoisted_1$j);
237
+ }, null, 8, _hoisted_4$7)) : createCommentVNode("", true)], 14, _hoisted_1$l);
234
238
  }), 128))], 2);
235
239
  };
236
240
  }
237
241
  });
238
242
 
239
- var addLink = href => setTimeout(link.register, 0, href);
240
-
241
- addLink("/styles/snail.vue.vue.css");
242
-
243
- var _sfc_main$x = defineComponent({
243
+ var _sfc_main$A = defineComponent({
244
244
  ...{
245
245
  name: "Footer",
246
246
  inheritAttrs: true
@@ -271,13 +271,13 @@ var _sfc_main$x = defineComponent({
271
271
  class: normalizeClass(["snail-footer", {
272
272
  "start-divider": __props.divider
273
273
  }, __props.align || "right"])
274
- }, [renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
274
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
275
275
  key: 0,
276
276
  size: "max",
277
277
  type: "default",
278
278
  onClick: _cache[0] || (_cache[0] = $event => emits("cancel")),
279
279
  textContent: toDisplayString(__props.cancelName || "取消")
280
- }, null, 8, ["textContent"])) : createCommentVNode("", true), __props.confirmDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
280
+ }, null, 8, ["textContent"])) : createCommentVNode("", true), __props.confirmDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
281
281
  key: 1,
282
282
  size: "max",
283
283
  type: "primary",
@@ -288,8 +288,8 @@ var _sfc_main$x = defineComponent({
288
288
  }
289
289
  });
290
290
 
291
- const _hoisted_1$i = ["textContent"];
292
- var _sfc_main$w = defineComponent({
291
+ const _hoisted_1$k = ["textContent"];
292
+ var _sfc_main$z = defineComponent({
293
293
  ...{
294
294
  name: "Header",
295
295
  inheritAttrs: true
@@ -328,7 +328,7 @@ var _sfc_main$w = defineComponent({
328
328
  key: 0,
329
329
  textContent: toDisplayString(__props.title),
330
330
  class: normalizeClass(["header-title", __props.titleAlign])
331
- }, null, 10, _hoisted_1$i)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (openBlock(), createBlock(_sfc_main$z, {
331
+ }, null, 10, _hoisted_1$k)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (openBlock(), createBlock(_sfc_main$C, {
332
332
  key: 1,
333
333
  class: "close-icon",
334
334
  type: "close",
@@ -341,18 +341,18 @@ var _sfc_main$w = defineComponent({
341
341
  }
342
342
  });
343
343
 
344
- const _hoisted_1$h = ["textContent"];
345
- const _hoisted_2$a = {
344
+ const _hoisted_1$j = ["textContent"];
345
+ const _hoisted_2$c = {
346
346
  key: 0,
347
347
  class: "required",
348
348
  textContent: "*"
349
349
  };
350
- const _hoisted_3$8 = {
350
+ const _hoisted_3$9 = {
351
351
  class: "input-body"
352
352
  };
353
353
  const _hoisted_4$6 = ["type", "value", "readonly", "placeholder", "title"];
354
354
  const _hoisted_5$4 = ["title"];
355
- var _sfc_main$v = defineComponent({
355
+ var _sfc_main$y = defineComponent({
356
356
  ...{
357
357
  name: "Input",
358
358
  inheritAttrs: true
@@ -404,7 +404,7 @@ var _sfc_main$v = defineComponent({
404
404
  }, [createElementVNode("span", {
405
405
  class: "text",
406
406
  textContent: toDisplayString(__props.title)
407
- }, null, 8, _hoisted_1$h), __props.readonly != true && __props.required == true ? (openBlock(), createElementBlock("span", _hoisted_2$a)) : createCommentVNode("", true)], 4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_3$8, [createElementVNode("input", {
407
+ }, null, 8, _hoisted_1$j), __props.readonly != true && __props.required == true ? (openBlock(), createElementBlock("span", _hoisted_2$c)) : createCommentVNode("", true)], 4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_3$9, [createElementVNode("input", {
408
408
  ref: "input-el",
409
409
  type: __props.type || "text",
410
410
  value: inputModel.value,
@@ -417,7 +417,7 @@ var _sfc_main$v = defineComponent({
417
417
  key: 0,
418
418
  class: "validate",
419
419
  title: validateRef.value
420
- }, [createVNode(_sfc_main$z, {
420
+ }, [createVNode(_sfc_main$C, {
421
421
  type: "error",
422
422
  button: "",
423
423
  size: 16,
@@ -627,12 +627,12 @@ function useFormatter(options) {
627
627
  return formatter;
628
628
  }
629
629
 
630
- const _hoisted_1$g = {
630
+ const _hoisted_1$i = {
631
631
  key: 0,
632
632
  class: "number-prefix"
633
633
  };
634
- const _hoisted_2$9 = ["textContent"];
635
- const _hoisted_3$7 = ["inputmode", "placeholder", "title"];
634
+ const _hoisted_2$b = ["textContent"];
635
+ const _hoisted_3$8 = ["inputmode", "placeholder", "title"];
636
636
  const _hoisted_4$5 = {
637
637
  key: 1,
638
638
  class: "number-suffix"
@@ -640,7 +640,7 @@ const _hoisted_4$5 = {
640
640
  const _hoisted_5$3 = ["textContent"];
641
641
  const _hoisted_6$2 = ["title", "textContent"];
642
642
  const _hoisted_7$1 = ["title", "textContent"];
643
- var _sfc_main$u = defineComponent({
643
+ var _sfc_main$x = defineComponent({
644
644
  __name: "number",
645
645
  props: mergeModels({
646
646
  placeholder: {},
@@ -787,10 +787,10 @@ var _sfc_main$u = defineComponent({
787
787
  "has-prefix": unref(hasPrefix),
788
788
  "has-suffix": unref(hasSuffix)
789
789
  }])
790
- }, [unref(hasPrefix) ? (openBlock(), createElementBlock("div", _hoisted_1$g, [createElementVNode("span", {
790
+ }, [unref(hasPrefix) ? (openBlock(), createElementBlock("div", _hoisted_1$i, [createElementVNode("span", {
791
791
  class: "ellipsis",
792
792
  textContent: toDisplayString(unref(prefix))
793
- }, null, 8, _hoisted_2$9)])) : createCommentVNode("", true), createElementVNode("div", {
793
+ }, null, 8, _hoisted_2$b)])) : createCommentVNode("", true), createElementVNode("div", {
794
794
  class: normalizeClass(["input-panel", unref(controls)])
795
795
  }, [withDirectives(createElementVNode("input", {
796
796
  type: "text",
@@ -802,19 +802,19 @@ var _sfc_main$u = defineComponent({
802
802
  onFocus: _cache[1] || (_cache[1] = $event => isRef(needBackSection) ? needBackSection.value = true : needBackSection = true),
803
803
  onPaste: _cache[2] || (_cache[2] = $event => isRef(needBackSection) ? needBackSection.value = false : needBackSection = false),
804
804
  onBlur: _cache[3] || (_cache[3] = $event => formatOnEnd(true))
805
- }, null, 40, _hoisted_3$7), [[vModelText, displayValueRef.value]]), unref(controls) == "default" ? (openBlock(), createElementBlock(Fragment, {
805
+ }, null, 40, _hoisted_3$8), [[vModelText, displayValueRef.value]]), unref(controls) == "default" ? (openBlock(), createElementBlock(Fragment, {
806
806
  key: 0
807
807
  }, [createElementVNode("div", {
808
808
  class: "controls default subtract",
809
809
  onClick: _cache[4] || (_cache[4] = $event => onStepClick(false))
810
- }, [createVNode(_sfc_main$z, {
810
+ }, [createVNode(_sfc_main$C, {
811
811
  type: "subtract",
812
812
  button: "",
813
813
  size: 20
814
814
  })]), createElementVNode("div", {
815
815
  class: "controls default plus",
816
816
  onClick: _cache[5] || (_cache[5] = $event => onStepClick(true))
817
- }, [createVNode(_sfc_main$z, {
817
+ }, [createVNode(_sfc_main$C, {
818
818
  type: "plus",
819
819
  button: "",
820
820
  size: 20
@@ -823,7 +823,7 @@ var _sfc_main$u = defineComponent({
823
823
  }, [createElementVNode("div", {
824
824
  class: "controls right plus",
825
825
  onClick: _cache[6] || (_cache[6] = $event => onStepClick(true))
826
- }, [createVNode(_sfc_main$z, {
826
+ }, [createVNode(_sfc_main$C, {
827
827
  type: "arrow",
828
828
  button: "",
829
829
  size: 20,
@@ -831,7 +831,7 @@ var _sfc_main$u = defineComponent({
831
831
  })]), createElementVNode("div", {
832
832
  class: "controls right subtract",
833
833
  onClick: _cache[7] || (_cache[7] = $event => onStepClick(false))
834
- }, [createVNode(_sfc_main$z, {
834
+ }, [createVNode(_sfc_main$C, {
835
835
  type: "arrow",
836
836
  button: "",
837
837
  size: 20,
@@ -854,8 +854,8 @@ var _sfc_main$u = defineComponent({
854
854
  }
855
855
  });
856
856
 
857
- const _hoisted_1$f = ["placeholder", "readonly"];
858
- var _sfc_main$t = defineComponent({
857
+ const _hoisted_1$h = ["placeholder", "readonly"];
858
+ var _sfc_main$w = defineComponent({
859
859
  ...{
860
860
  name: "Search",
861
861
  inheritAttrs: true
@@ -900,9 +900,9 @@ var _sfc_main$t = defineComponent({
900
900
  readonly: __props.readonly,
901
901
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => textModel.value = $event),
902
902
  onKeyup: _cache[1] || (_cache[1] = $event => onSearch($event))
903
- }, null, 40, _hoisted_1$f), [[vModelText, textModel.value, void 0, {
903
+ }, null, 40, _hoisted_1$h), [[vModelText, textModel.value, void 0, {
904
904
  trim: true
905
- }]]), createElementVNode("div", null, [createVNode(_sfc_main$z, {
905
+ }]]), createElementVNode("div", null, [createVNode(_sfc_main$C, {
906
906
  class: "search-button",
907
907
  custom: "",
908
908
  button: "",
@@ -1127,11 +1127,11 @@ function deducePosition(strategy, targetStart, targetEnd, contentSize, clientSiz
1127
1127
  }
1128
1128
  }
1129
1129
 
1130
- const _hoisted_1$e = {
1130
+ const _hoisted_1$g = {
1131
1131
  class: "snail-confirm flex-column"
1132
1132
  };
1133
- const _hoisted_2$8 = ["innerHTML"];
1134
- var _sfc_main$s = defineComponent({
1133
+ const _hoisted_2$a = ["innerHTML"];
1134
+ var _sfc_main$v = defineComponent({
1135
1135
  ...{
1136
1136
  name: "ConfirmContainer",
1137
1137
  inheritAttrs: true
@@ -1159,14 +1159,14 @@ var _sfc_main$s = defineComponent({
1159
1159
  },
1160
1160
  setup(__props) {
1161
1161
  return (_ctx, _cache) => {
1162
- return openBlock(), createElementBlock("div", _hoisted_1$e, [createVNode(_sfc_main$w, {
1162
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [createVNode(_sfc_main$z, {
1163
1163
  "use-to": "dialog",
1164
1164
  title: __props.title || "提示",
1165
1165
  onClose: _cache[0] || (_cache[0] = $event => __props.closePopup(false))
1166
1166
  }, null, 8, ["title"]), createElementVNode("div", {
1167
1167
  class: "confirm-body",
1168
1168
  innerHTML: __props.message || "请确认?"
1169
- }, null, 8, _hoisted_2$8), createVNode(_sfc_main$x, {
1169
+ }, null, 8, _hoisted_2$a), createVNode(_sfc_main$A, {
1170
1170
  align: "right",
1171
1171
  "cancel-name": __props.cancelName,
1172
1172
  "cancel-disabled": __props.cancelDisabled,
@@ -1227,7 +1227,7 @@ const MOTION = Object.freeze({
1227
1227
  });
1228
1228
  for (var key in MOTION) hasOwnProperty(MOTION, key) && Object.freeze(MOTION[key]);
1229
1229
 
1230
- var _sfc_main$r = defineComponent({
1230
+ var _sfc_main$u = defineComponent({
1231
1231
  __name: "motion",
1232
1232
  props: {
1233
1233
  multiple: {
@@ -1276,7 +1276,7 @@ var _sfc_main$r = defineComponent({
1276
1276
  }
1277
1277
  });
1278
1278
 
1279
- var _sfc_main$q = defineComponent({
1279
+ var _sfc_main$t = defineComponent({
1280
1280
  ...{
1281
1281
  name: "Loading",
1282
1282
  inheritAttrs: true
@@ -1300,7 +1300,7 @@ var _sfc_main$q = defineComponent({
1300
1300
  },
1301
1301
  setup(__props) {
1302
1302
  return (_ctx, _cache) => {
1303
- return openBlock(), createBlock(_sfc_main$r, {
1303
+ return openBlock(), createBlock(_sfc_main$u, {
1304
1304
  effect: unref(MOTION).fade
1305
1305
  }, {
1306
1306
  default: withCtx(() => [__props.show ? (openBlock(), createElementBlock("div", {
@@ -1315,7 +1315,7 @@ var _sfc_main$q = defineComponent({
1315
1315
  }
1316
1316
  });
1317
1317
 
1318
- var _sfc_main$p = defineComponent({
1318
+ var _sfc_main$s = defineComponent({
1319
1319
  ...{
1320
1320
  name: "Dynamic",
1321
1321
  inheritAttrs: false
@@ -1339,7 +1339,7 @@ var _sfc_main$p = defineComponent({
1339
1339
  const loadingComponent = defineComponent({
1340
1340
  inheritAttrs: false,
1341
1341
  components: {
1342
- Loading: _sfc_main$q
1342
+ Loading: _sfc_main$t
1343
1343
  },
1344
1344
  template: "<Loading :mask-disabled='true' />"
1345
1345
  });
@@ -1406,7 +1406,7 @@ var _sfc_main$p = defineComponent({
1406
1406
  }
1407
1407
  });
1408
1408
 
1409
- var _sfc_main$o = defineComponent({
1409
+ var _sfc_main$r = defineComponent({
1410
1410
  ...{
1411
1411
  name: "DialogContainer",
1412
1412
  inheritAttrs: true
@@ -1451,7 +1451,7 @@ var _sfc_main$o = defineComponent({
1451
1451
  onClick: _cache[1] || (_cache[1] = withModifiers($event => {
1452
1452
  __props.options.closeOnMask && unref(closePopup)();
1453
1453
  }, ["self"]))
1454
- }, [createVNode(_sfc_main$p, mergeProps({
1454
+ }, [createVNode(_sfc_main$s, mergeProps({
1455
1455
  class: "dialog-body",
1456
1456
  name: __props.options.name,
1457
1457
  component: __props.options.component,
@@ -1466,7 +1466,7 @@ var _sfc_main$o = defineComponent({
1466
1466
  }
1467
1467
  });
1468
1468
 
1469
- var _sfc_main$n = defineComponent({
1469
+ var _sfc_main$q = defineComponent({
1470
1470
  ...{
1471
1471
  name: "FollowContainer",
1472
1472
  inheritAttrs: true
@@ -1587,7 +1587,7 @@ var _sfc_main$n = defineComponent({
1587
1587
  });
1588
1588
  });
1589
1589
  return (_ctx, _cache) => {
1590
- return openBlock(), createBlock(_sfc_main$p, mergeProps({
1590
+ return openBlock(), createBlock(_sfc_main$s, mergeProps({
1591
1591
  class: ["snail-follow initial", [__props.popupStatus.value, __props.popupTransition.value]],
1592
1592
  style: {
1593
1593
  "z-index": __props.zIndex
@@ -1604,7 +1604,7 @@ var _sfc_main$n = defineComponent({
1604
1604
  }
1605
1605
  });
1606
1606
 
1607
- var _sfc_main$m = defineComponent({
1607
+ var _sfc_main$p = defineComponent({
1608
1608
  ...{
1609
1609
  name: "PopupContainer",
1610
1610
  inheritAttrs: true
@@ -1624,7 +1624,7 @@ var _sfc_main$m = defineComponent({
1624
1624
  model = shallowRef(void 0)
1625
1625
  } = __props.options;
1626
1626
  return (_ctx, _cache) => {
1627
- return openBlock(), createBlock(_sfc_main$p, mergeProps({
1627
+ return openBlock(), createBlock(_sfc_main$s, mergeProps({
1628
1628
  class: ["snail-popup", [__props.popupStatus.value, __props.popupTransition.value]],
1629
1629
  style: {
1630
1630
  "z-index": __props.zIndex
@@ -1642,12 +1642,12 @@ var _sfc_main$m = defineComponent({
1642
1642
  }
1643
1643
  });
1644
1644
 
1645
- const _hoisted_1$d = {
1645
+ const _hoisted_1$f = {
1646
1646
  key: 1,
1647
1647
  class: "icon"
1648
1648
  };
1649
- const _hoisted_2$7 = ["innerHTML"];
1650
- var _sfc_main$l = defineComponent({
1649
+ const _hoisted_2$9 = ["innerHTML"];
1650
+ var _sfc_main$o = defineComponent({
1651
1651
  ...{
1652
1652
  name: "ToastContainer",
1653
1653
  inheritAttrs: true
@@ -1684,7 +1684,7 @@ var _sfc_main$l = defineComponent({
1684
1684
  }),
1685
1685
  onMouseenter: _cache[1] || (_cache[1] = $event => onMouseEvent(false)),
1686
1686
  onMouseleave: _cache[2] || (_cache[2] = $event => onMouseEvent(true))
1687
- }, [unref(props).closeDisabled != true ? (openBlock(), createBlock(_sfc_main$z, {
1687
+ }, [unref(props).closeDisabled != true ? (openBlock(), createBlock(_sfc_main$C, {
1688
1688
  key: 0,
1689
1689
  class: "close-icon",
1690
1690
  type: "close",
@@ -1695,21 +1695,21 @@ var _sfc_main$l = defineComponent({
1695
1695
  onClick: _cache[0] || (_cache[0] = $event => {
1696
1696
  unref(closePopup)();
1697
1697
  })
1698
- })) : createCommentVNode("", true), unref(props).type ? (openBlock(), createElementBlock("div", _hoisted_1$d, [createVNode(_sfc_main$z, {
1698
+ })) : createCommentVNode("", true), unref(props).type ? (openBlock(), createElementBlock("div", _hoisted_1$f, [createVNode(_sfc_main$C, {
1699
1699
  type: unref(props).type,
1700
1700
  color: "#707070",
1701
1701
  size: 20
1702
1702
  }, null, 8, ["type"])])) : createCommentVNode("", true), createElementVNode("div", {
1703
1703
  class: "message",
1704
1704
  innerHTML: unref(props).message
1705
- }, null, 8, _hoisted_2$7)], 38);
1705
+ }, null, 8, _hoisted_2$9)], 38);
1706
1706
  };
1707
1707
  }
1708
1708
  });
1709
1709
 
1710
1710
  function usePopup() {
1711
1711
  function popup(options) {
1712
- const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$m, options);
1712
+ const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$p, options);
1713
1713
  return addScope2Scopes(scope);
1714
1714
  }
1715
1715
  function dialog(options) {
@@ -1742,7 +1742,7 @@ function usePopup() {
1742
1742
  },
1743
1743
  onBeforeClose: fn => hook.register("onBeforeClose", fn)
1744
1744
  });
1745
- const descriptor = openPopup(_sfc_main$o, options, extOptions);
1745
+ const descriptor = openPopup(_sfc_main$r, options, extOptions);
1746
1746
  scope = useAsyncScope(deferred.promise);
1747
1747
  monitorDialog(descriptor, scope, deferred);
1748
1748
  }
@@ -1760,14 +1760,14 @@ function usePopup() {
1760
1760
  inPopup: "follow",
1761
1761
  target
1762
1762
  };
1763
- scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$n, options, extOptions);
1763
+ scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$q, options, extOptions);
1764
1764
  }
1765
1765
  return addScope2Scopes(scope);
1766
1766
  }
1767
1767
  function confirm(title, message, options) {
1768
1768
  options = options || Object.create(null);
1769
1769
  return dialog({
1770
- component: _sfc_main$s,
1770
+ component: _sfc_main$v,
1771
1771
  closeOnEscape: true,
1772
1772
  props: {
1773
1773
  ...options,
@@ -1777,7 +1777,7 @@ function usePopup() {
1777
1777
  });
1778
1778
  }
1779
1779
  function toast(type, message, options) {
1780
- return popupInCustomContainer(_sfc_main$l, {
1780
+ return popupInCustomContainer(_sfc_main$o, {
1781
1781
  url: "#ToastContainer",
1782
1782
  props: {
1783
1783
  ...(options || Object.create(null)),
@@ -1810,7 +1810,7 @@ function usePopup() {
1810
1810
  },
1811
1811
  ...extOptions
1812
1812
  });
1813
- const descriptor = openPopup(container || _sfc_main$m, options, extOptions);
1813
+ const descriptor = openPopup(container || _sfc_main$p, options, extOptions);
1814
1814
  const scope = useAsyncScope(deferred.promise);
1815
1815
  scope.onDestroy(() => destroyPopup(descriptor, deferred));
1816
1816
  return scope;
@@ -1945,12 +1945,12 @@ function getNoDataBase64Image() {
1945
1945
  return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoyREREODhFQ0M5M0UxMUU5ODlFREVENzc4Njk0RjQ2MiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyREREODhFREM5M0UxMUU5ODlFREVENzc4Njk0RjQ2MiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjJEREQ4OEVBQzkzRTExRTk4OUVERUQ3Nzg2OTRGNDYyIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjJEREQ4OEVCQzkzRTExRTk4OUVERUQ3Nzg2OTRGNDYyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8++keGxAAAA5lJREFUeNrsmktoE0EYx3eSTdpsk2abvnwcFBVp8QFqVPDgQaGgIogIoictelKKVhARBA8q+KAVrFqooh4qXgRfiHpTEHqw9iCKXqQHSVstpqlt0yabrP9p52K1yW72GTMf/JhZMrM7/3l+37REVVWhlMwjlJhxwVwwF8wFc8FcMBfsnIlGKg98TxRa9RbYAFYXUnl+XbjoRpiKXVXMU9qns3xK76CC/YC4QfA1MAg26aiTZGlQQ9la8AZ0g3VuENwLqsArsFVnXW+e30PgKVgGnoA+Nwi+Cw6DAHgGdmqoMwJoXJrJUcYPHoGN4C3Yl6e8rWv4Nmhma/kh2J6n/HW2JsdylLkKtoAPYAeYcPxYmmX32AjcAVHwPEfZFxreR2fAJ9Z5CbMaSYzceMxxDtN198vKo8Vt57ClYh0d4f/OtTTgOjpquaa8WEhldISM5DRYWYCXZdTS4DVoR9tSegdI9y6Nl1KBL5k/7JRto99HW/ZAtGralJ7DTtCPEUKUmqqKPlH0rtXgMZk2utms2jk0PEqPqt3gEOiybJdGjy5BcobmI7LUC7HrbRQ7HaR4PORoOBRoY+f0RbSp3spjqQNIPtEb8/vEqFMnixTwH0T6gPnwbZYIRk/uZWtHqApLQzaP7GyL1kSCPUinqIuKtjWZKhgvpFt1O82X+cXPXq9njdNHD2ZZC/aRTvZ4A20sN3OEz7IgXJDDkls8laV11aEBpHGaB62mCEbPNSA5QvNYO+88hDS6xcHABtbq9XiusMdTYJ4ZI3yBORdKZTBQ6zKnqq62OiQh7WdByzmjgqlzsWs6BAqW9xAiLHJdMECEY36f9zJ7pLt3oxHH4/j0O4kwWREoW8BuKvSYxG4utFoWjOoVHZErlg/+GP2I7ApwkgnXHy1h/VLntNJA76sROfgFI9CgoXh8OD72OJ3OHDA46Am4m3KhU7rSyJfRl2QiOaXVE3oPsU0mzPKw3RcAf5iiZEPaOkf9KsxcyVq7s1vu7SsZEQ5/LO81ydhk3I5Q05Y/tcQTExKLY/+9U2XV++PJVLMtZ7cdH0mlFfnnyPgIpm3s758y3Qj3NiNfY8sxlmeXNt2NhC/ej0grllXVdHIyVY/RbTD7G9iliZkXAIZsKqUspjjmjgolZlwwF1xigr8VoaYBI4I7ilBwl5Hw8JIwcx3aAha6XCj9t4ub4HzBjgfftLhgLpgL5oK5YC6YC+aCuWDt9luAAQC2EPxjL8cUkwAAAABJRU5ErkJggg==";
1946
1946
  }
1947
1947
 
1948
- const _hoisted_1$c = {
1948
+ const _hoisted_1$e = {
1949
1949
  class: "snail-empty"
1950
1950
  };
1951
- const _hoisted_2$6 = ["src"];
1952
- const _hoisted_3$6 = ["textContent"];
1953
- var _sfc_main$k = defineComponent({
1951
+ const _hoisted_2$8 = ["src"];
1952
+ const _hoisted_3$7 = ["textContent"];
1953
+ var _sfc_main$n = defineComponent({
1954
1954
  ...{
1955
1955
  name: "Empty",
1956
1956
  inheritAttrs: true
@@ -1963,23 +1963,23 @@ var _sfc_main$k = defineComponent({
1963
1963
  setup(__props) {
1964
1964
  const defaultImageBase64 = getNoDataBase64Image();
1965
1965
  return (_ctx, _cache) => {
1966
- return openBlock(), createElementBlock("div", _hoisted_1$c, [createElementVNode("img", {
1966
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [createElementVNode("img", {
1967
1967
  src: __props.imageUrl || unref(defaultImageBase64)
1968
- }, null, 8, _hoisted_2$6), renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", {
1968
+ }, null, 8, _hoisted_2$8), renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", {
1969
1969
  class: "message",
1970
1970
  textContent: toDisplayString(__props.message || "无数据")
1971
- }, null, 8, _hoisted_3$6)])]);
1971
+ }, null, 8, _hoisted_3$7)])]);
1972
1972
  };
1973
1973
  }
1974
1974
  });
1975
1975
 
1976
- const _hoisted_1$b = ["title"];
1977
- const _hoisted_2$5 = ["textContent"];
1978
- const _hoisted_3$5 = {
1976
+ const _hoisted_1$d = ["title"];
1977
+ const _hoisted_2$7 = ["textContent"];
1978
+ const _hoisted_3$6 = {
1979
1979
  key: 1,
1980
1980
  class: "select-status"
1981
1981
  };
1982
- var _sfc_main$j = defineComponent({
1982
+ var _sfc_main$m = defineComponent({
1983
1983
  ...{
1984
1984
  name: "SelectNode",
1985
1985
  inheritAttrs: true
@@ -2024,15 +2024,15 @@ var _sfc_main$j = defineComponent({
2024
2024
  }, [createElementVNode("div", {
2025
2025
  class: "item-text ellipsis",
2026
2026
  textContent: toDisplayString(__props.item.text)
2027
- }, null, 8, _hoisted_2$5), __props.item.type == "group" ? (openBlock(), createBlock(_sfc_main$z, {
2027
+ }, null, 8, _hoisted_2$7), __props.item.type == "group" ? (openBlock(), createBlock(_sfc_main$C, {
2028
2028
  key: 0,
2029
2029
  type: "arrow"
2030
- })) : __props.multiple == true ? (openBlock(), createElementBlock("div", _hoisted_3$5, [createVNode(_sfc_main$z, {
2030
+ })) : __props.multiple == true ? (openBlock(), createElementBlock("div", _hoisted_3$6, [createVNode(_sfc_main$C, {
2031
2031
  type: "success",
2032
2032
  button: "",
2033
2033
  size: 12,
2034
2034
  color: "white"
2035
- })])) : createCommentVNode("", true)], 42, _hoisted_1$b)) : createCommentVNode("", true), showRef.value ? (openBlock(true), createElementBlock(Fragment, {
2035
+ })])) : createCommentVNode("", true)], 42, _hoisted_1$d)) : createCommentVNode("", true), showRef.value ? (openBlock(true), createElementBlock(Fragment, {
2036
2036
  key: 1
2037
2037
  }, renderList(unref(showChildrenRef), child => {
2038
2038
  return openBlock(), createBlock(_component_SelectNode, {
@@ -2049,7 +2049,7 @@ var _sfc_main$j = defineComponent({
2049
2049
  }
2050
2050
  });
2051
2051
 
2052
- var _sfc_main$i = defineComponent({
2052
+ var _sfc_main$l = defineComponent({
2053
2053
  ...{
2054
2054
  name: "Select2Popup",
2055
2055
  inheritAttrs: true
@@ -2221,13 +2221,13 @@ var _sfc_main$i = defineComponent({
2221
2221
  key: 0
2222
2222
  }, [createTextVNode(" 暂无选项 ")], 64)) : (openBlock(), createElementBlock(Fragment, {
2223
2223
  key: 1
2224
- }, [__props.search ? (openBlock(), createBlock(_sfc_main$t, mergeProps({
2224
+ }, [__props.search ? (openBlock(), createBlock(_sfc_main$w, mergeProps({
2225
2225
  key: 0
2226
2226
  }, __props.search, {
2227
2227
  onSearch,
2228
2228
  key: "select-search"
2229
2229
  }), null, 16)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(itemsRef.value, item => {
2230
- return openBlock(), createBlock(_sfc_main$j, {
2230
+ return openBlock(), createBlock(_sfc_main$m, {
2231
2231
  key: unref(context).getKey(item),
2232
2232
  multiple: __props.multiple,
2233
2233
  item,
@@ -2236,7 +2236,7 @@ var _sfc_main$i = defineComponent({
2236
2236
  onEnter: onEnterSelectNode,
2237
2237
  onClick: onClickSelectNode
2238
2238
  }, null, 8, ["multiple", "item", "context"]);
2239
- }), 128)), itemsRef.value.length == 0 ? (openBlock(), createBlock(_sfc_main$k, {
2239
+ }), 128)), itemsRef.value.length == 0 ? (openBlock(), createBlock(_sfc_main$n, {
2240
2240
  key: 1,
2241
2241
  message: "无结果"
2242
2242
  })) : createCommentVNode("", true), showClearButtonRef.value ? (openBlock(), createElementBlock("div", {
@@ -2248,20 +2248,20 @@ var _sfc_main$i = defineComponent({
2248
2248
  }
2249
2249
  });
2250
2250
 
2251
- const _hoisted_1$a = {
2251
+ const _hoisted_1$c = {
2252
2252
  key: 0,
2253
2253
  class: "select-result"
2254
2254
  };
2255
- const _hoisted_2$4 = ["title", "textContent"];
2256
- const _hoisted_3$4 = ["textContent"];
2255
+ const _hoisted_2$6 = ["title", "textContent"];
2256
+ const _hoisted_3$5 = ["textContent"];
2257
2257
  const _hoisted_4$4 = {
2258
2258
  key: 1,
2259
2259
  class: "placeholder"
2260
2260
  };
2261
2261
  onAppCreated((app, type) => {
2262
- type == "popup" && app.component("SelectPopup", _sfc_main$i);
2262
+ type == "popup" && app.component("SelectPopup", _sfc_main$l);
2263
2263
  });
2264
- var _sfc_main$h = defineComponent({
2264
+ var _sfc_main$k = defineComponent({
2265
2265
  ...{
2266
2266
  name: "Select",
2267
2267
  inheritAttrs: true
@@ -2393,15 +2393,15 @@ var _sfc_main$h = defineComponent({
2393
2393
  ref: "select"
2394
2394
  }, [__props.items && __props.items.length ? (openBlock(), createElementBlock(Fragment, {
2395
2395
  key: 0
2396
- }, [selectedItemsRef.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$a, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))), () => [createElementVNode("div", {
2396
+ }, [selectedItemsRef.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$c, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))), () => [createElementVNode("div", {
2397
2397
  class: "select-text ellipsis",
2398
2398
  title: selectedTextRef.value,
2399
2399
  textContent: toDisplayString(selectedTextRef.value)
2400
- }, null, 8, _hoisted_2$4)])])) : (openBlock(), createElementBlock("div", {
2400
+ }, null, 8, _hoisted_2$6)])])) : (openBlock(), createElementBlock("div", {
2401
2401
  key: 1,
2402
2402
  class: "placeholder",
2403
2403
  textContent: toDisplayString(__props.readonly ? "" : __props.placeholder || "请选择")
2404
- }, null, 8, _hoisted_3$4)), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$z, {
2404
+ }, null, 8, _hoisted_3$5)), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$C, {
2405
2405
  key: 2,
2406
2406
  type: "arrow",
2407
2407
  button: "",
@@ -2412,7 +2412,7 @@ var _sfc_main$h = defineComponent({
2412
2412
  }
2413
2413
  });
2414
2414
 
2415
- var _sfc_main$g = defineComponent({
2415
+ var _sfc_main$j = defineComponent({
2416
2416
  ...{
2417
2417
  name: "Switch",
2418
2418
  inheritAttrs: true
@@ -2461,8 +2461,8 @@ var _sfc_main$g = defineComponent({
2461
2461
  }
2462
2462
  });
2463
2463
 
2464
- const _hoisted_1$9 = ["readonly", "placeholder", "rows"];
2465
- var _sfc_main$f = defineComponent({
2464
+ const _hoisted_1$b = ["readonly", "placeholder", "rows"];
2465
+ var _sfc_main$i = defineComponent({
2466
2466
  ...{
2467
2467
  name: "Textarea"
2468
2468
  },
@@ -2522,15 +2522,289 @@ var _sfc_main$f = defineComponent({
2522
2522
  onInput: _cache[2] || (_cache[2] = $event => emits("input", textareaDom.value.value)),
2523
2523
  onBlur: _cache[3] || (_cache[3] = $event => emits("blur", textareaDom.value.value)),
2524
2524
  onChange: _cache[4] || (_cache[4] = $event => emits("change", textareaDom.value.value))
2525
- }), null, 16, _hoisted_1$9)), [[vModelText, valueModel.value]]);
2525
+ }), null, 16, _hoisted_1$b)), [[vModelText, valueModel.value]]);
2526
2526
  };
2527
2527
  }
2528
2528
  });
2529
2529
 
2530
- const _hoisted_1$8 = {
2530
+ function isRight(root) {
2531
+ return root.scrollLeft + root.clientWidth >= root.scrollWidth;
2532
+ }
2533
+ function isBottom(root) {
2534
+ return root.scrollTop + root.clientHeight >= root.scrollHeight;
2535
+ }
2536
+
2537
+ const _hoisted_1$a = {
2538
+ key: 0,
2539
+ class: "down-refresh"
2540
+ };
2541
+ const _hoisted_2$5 = {
2542
+ class: "main-body"
2543
+ };
2544
+ const _hoisted_3$4 = {
2545
+ key: 1,
2546
+ class: "up-more"
2547
+ };
2548
+ var _sfc_main$h = defineComponent({
2549
+ __name: "elastic",
2550
+ props: {
2551
+ scroll: {},
2552
+ spring: {},
2553
+ downRefresh: {
2554
+ type: Boolean
2555
+ },
2556
+ upMore: {
2557
+ type: Boolean
2558
+ },
2559
+ barSize: {}
2560
+ },
2561
+ setup(__props) {
2562
+ const props = __props;
2563
+ const {
2564
+ onEvent
2565
+ } = useObserver();
2566
+ const rootDom = useTemplateRef("root-dom");
2567
+ const scrollStyleRef = computed(buildScrollStyle);
2568
+ ref(void 0);
2569
+ const springStyleRef = computed(buildSpringStyle);
2570
+ const springXRef = computed(() => props.spring == "x" || props.spring == "both");
2571
+ const springYRef = computed(() => props.spring == "y" || props.spring == "both");
2572
+ const downRefreshRef = computed(() => springYRef.value == true && props.downRefresh == true);
2573
+ const upMoreRef = computed(() => springYRef.value == true && props.upMore == true);
2574
+ const isMovingRef = ref(false);
2575
+ const springStatusRef = ref(void 0);
2576
+ const startPointerRef = ref(void 0);
2577
+ let isStartByTouch = false;
2578
+ function buildScrollStyle() {
2579
+ const vars = Object.create(null);
2580
+ switch (props.scroll) {
2581
+ case "x":
2582
+ vars["--overflow"] = "auto hidden";
2583
+ break;
2584
+ case "y":
2585
+ vars["--overflow"] = "hidden auto";
2586
+ break;
2587
+ case "both":
2588
+ vars["--overflow"] = "auto";
2589
+ break;
2590
+ }
2591
+ switch (props.barSize) {
2592
+ case "normal":
2593
+ vars["--bar-size"] = "10px";
2594
+ break;
2595
+ case "small":
2596
+ vars["--bar-size"] = "6px";
2597
+ break;
2598
+ case "mini":
2599
+ vars["--bar-size"] = "4px";
2600
+ break;
2601
+ case "none":
2602
+ vars["--bar-size"] = "0";
2603
+ break;
2604
+ }
2605
+ return vars;
2606
+ }
2607
+ function buildSpringStyle() {
2608
+ const style = Object.create(null);
2609
+ if (springStatusRef.value != void 0) {
2610
+ const {
2611
+ x,
2612
+ y
2613
+ } = springStatusRef.value;
2614
+ const transforms = [];
2615
+ x != void 0 && transforms.push(`translateX(${x}px)`);
2616
+ y != void 0 && transforms.push(`translateY(${y}px)`);
2617
+ transforms.length && (style["--spring-transform"] = transforms.join(" "));
2618
+ }
2619
+ return style;
2620
+ }
2621
+ function onSpringStart(isTouch, position) {
2622
+ if (isTouch != true && isStartByTouch == true) {
2623
+ return;
2624
+ }
2625
+ isTouch && (isStartByTouch = true);
2626
+ if (springXRef.value == true || springYRef.value == true) {
2627
+ isMovingRef.value = true;
2628
+ springStatusRef.value = Object.create(null);
2629
+ startPointerRef.value = {
2630
+ clientX: position.clientX,
2631
+ clientY: position.clientY
2632
+ };
2633
+ }
2634
+ }
2635
+ function onSpringMove(isTouch, position) {
2636
+ if (startPointerRef.value == void 0 || isTouch != true && isStartByTouch == true) {
2637
+ return;
2638
+ }
2639
+ if (springXRef.value == true) {
2640
+ const distance = position.clientX - startPointerRef.value.clientX;
2641
+ if (distance >= 0 && rootDom.value.scrollLeft == 0) {
2642
+ springStatusRef.value.x = Math.pow(distance, 0.8);
2643
+ } else if (distance <= 0 && isRight(rootDom.value)) {
2644
+ springStatusRef.value.x = -Math.pow(-distance, 0.8);
2645
+ }
2646
+ }
2647
+ if (springYRef.value == true) {
2648
+ const distance = position.clientY - startPointerRef.value.clientY;
2649
+ if (distance >= 0) {
2650
+ if (rootDom.value.scrollTop == 0) {
2651
+ springStatusRef.value.y = Math.pow(distance, 0.8);
2652
+ } else {
2653
+ startPointerRef.value.clientY = position.clientY;
2654
+ }
2655
+ } else if (distance <= 0 && isBottom(rootDom.value) == true) {
2656
+ springStatusRef.value.y = -Math.pow(-distance, 0.8);
2657
+ }
2658
+ }
2659
+ }
2660
+ function onSpringEnd(isTouch, isCancel) {
2661
+ if (startPointerRef.value != void 0) {
2662
+ springStatusRef.value = Object.create(null);
2663
+ isMovingRef.value = false;
2664
+ startPointerRef.value = void 0;
2665
+ isStartByTouch = false;
2666
+ }
2667
+ }
2668
+ onMounted(() => {
2669
+ if ("ontouchstart" in window) {
2670
+ onEvent(rootDom.value, "touchstart", evt => onSpringStart(true, evt.touches[0]));
2671
+ onEvent(window, "touchmove", evt => onSpringMove(true, evt.touches[0]));
2672
+ onEvent(window, "touchend", () => onSpringEnd());
2673
+ onEvent(window, "touchcancel", () => onSpringEnd());
2674
+ }
2675
+ if ("onmousedown" in window) {
2676
+ onEvent(rootDom.value, "mousedown", evt => onSpringStart(false, evt));
2677
+ onEvent(window, "mousemove", evt => onSpringMove(false, evt));
2678
+ onEvent(window, "mouseup", () => onSpringEnd());
2679
+ }
2680
+ });
2681
+ return (_ctx, _cache) => {
2682
+ return openBlock(), createElementBlock("div", {
2683
+ class: normalizeClass(["snail-elastic", {
2684
+ "spring": springXRef.value || springYRef.value,
2685
+ "moving": isMovingRef.value
2686
+ }]),
2687
+ style: normalizeStyle([scrollStyleRef.value, springStyleRef.value]),
2688
+ ref: "root-dom"
2689
+ }, [downRefreshRef.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [renderSlot(_ctx.$slots, "down-refresh", {}, () => [_cache[0] || (_cache[0] = createTextVNode(" 默认实现[下拉刷新] ", -1))])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$5, [renderSlot(_ctx.$slots, "default")]), upMoreRef.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [renderSlot(_ctx.$slots, "up-more", {}, () => [_cache[1] || (_cache[1] = createTextVNode(" 默认实现[上拉加载更多] ", -1))])])) : createCommentVNode("", true)], 6);
2690
+ };
2691
+ }
2692
+ });
2693
+
2694
+ var _sfc_main$g = defineComponent({
2695
+ __name: "flex",
2696
+ props: {
2697
+ direction: {},
2698
+ wrap: {},
2699
+ gap: {},
2700
+ justifyContent: {},
2701
+ alignItems: {},
2702
+ alignContent: {},
2703
+ repairItem: {
2704
+ type: Boolean
2705
+ },
2706
+ itemCount: {},
2707
+ itemTag: {},
2708
+ itemClass: {}
2709
+ },
2710
+ setup(__props) {
2711
+ const props = __props;
2712
+ const rootDom = useTemplateRef("root-flex");
2713
+ const {
2714
+ onSize
2715
+ } = useObserver();
2716
+ const {
2717
+ watcher
2718
+ } = useReactive();
2719
+ const styleRef = computed(buildStyleVar);
2720
+ const repairItemsRef = shallowRef(0);
2721
+ function isColumnDirection(direction) {
2722
+ switch (direction) {
2723
+ case "column":
2724
+ case "column-reverse":
2725
+ return true;
2726
+ default:
2727
+ return false;
2728
+ }
2729
+ }
2730
+ function buildStyleVar() {
2731
+ const styleVar = Object.create(null);
2732
+ isStringNotEmpty(props.direction) && (styleVar["flex-direction"] = props.direction);
2733
+ isStringNotEmpty(props.wrap) && (styleVar["flex-wrap"] = props.wrap);
2734
+ isStringNotEmpty(props.gap) && (styleVar["gap"] = props.gap);
2735
+ const tmpFunc = value => {
2736
+ switch (value) {
2737
+ case "start":
2738
+ return "flex-start";
2739
+ case "end":
2740
+ return "flex-end";
2741
+ default:
2742
+ return value;
2743
+ }
2744
+ };
2745
+ isStringNotEmpty(props.justifyContent) && (styleVar["justify-content"] = tmpFunc(props.justifyContent));
2746
+ isStringNotEmpty(props.alignItems) && (styleVar["align-items"] = tmpFunc(props.alignItems));
2747
+ isStringNotEmpty(props.alignContent) && (styleVar["align-content"] = tmpFunc(props.alignContent));
2748
+ return styleVar;
2749
+ }
2750
+ function repairSpace() {
2751
+ repairItemsRef.value = 0;
2752
+ const needRepair = props.repairItem == true && props.justifyContent && props.justifyContent.startsWith("space-") && props.itemCount > 0 && rootDom.value.children.length > 0;
2753
+ if (needRepair == true) {
2754
+ let containerSize, itemSize, itemGap;
2755
+ const containerStyle = getComputedStyle(rootDom.value);
2756
+ const itemStyle = getComputedStyle(rootDom.value.children[0]);
2757
+ switch (props.direction) {
2758
+ case "column":
2759
+ case "column-reverse":
2760
+ {
2761
+ containerSize = parseFloat(containerStyle.height);
2762
+ itemGap = parseFloat(containerStyle.rowGap);
2763
+ itemSize = parseFloat(itemStyle.height);
2764
+ break;
2765
+ }
2766
+ default:
2767
+ {
2768
+ containerSize = parseFloat(containerStyle.width);
2769
+ itemGap = parseFloat(containerStyle.columnGap);
2770
+ itemSize = parseFloat(itemStyle.width);
2771
+ break;
2772
+ }
2773
+ }
2774
+ let itemCountPer;
2775
+ itemCountPer = Math.floor((containerSize + itemGap) / (itemSize + itemGap));
2776
+ if (itemCountPer > 1) {
2777
+ const mode = props.itemCount % itemCountPer;
2778
+ mode > 0 && (repairItemsRef.value = itemCountPer - mode);
2779
+ }
2780
+ }
2781
+ }
2782
+ onMounted(() => {
2783
+ repairSpace();
2784
+ watcher(() => props.repairItem, repairSpace);
2785
+ watcher(() => props.itemCount, repairSpace);
2786
+ onSize(rootDom.value, repairSpace);
2787
+ });
2788
+ return (_ctx, _cache) => {
2789
+ return openBlock(), createElementBlock("div", {
2790
+ class: normalizeClass(["snail-flex", {
2791
+ "column": isColumnDirection(props.direction)
2792
+ }]),
2793
+ style: normalizeStyle(styleRef.value),
2794
+ ref: "root-flex"
2795
+ }, [renderSlot(_ctx.$slots, "default"), (openBlock(true), createElementBlock(Fragment, null, renderList(repairItemsRef.value, _ => {
2796
+ return openBlock(), createBlock(resolveDynamicComponent(unref(correctString)(props.itemTag, "div", true)), {
2797
+ class: normalizeClass([props.itemClass || "", "repair-item"])
2798
+ }, null, 8, ["class"]);
2799
+ }), 256))], 6);
2800
+ };
2801
+ }
2802
+ });
2803
+
2804
+ const _hoisted_1$9 = {
2531
2805
  class: "fold-header"
2532
2806
  };
2533
- const _hoisted_2$3 = ["textContent"];
2807
+ const _hoisted_2$4 = ["textContent"];
2534
2808
  const _hoisted_3$3 = ["textContent"];
2535
2809
  const _hoisted_4$3 = {
2536
2810
  key: 1,
@@ -2540,7 +2814,7 @@ const _hoisted_5$2 = {
2540
2814
  class: "fold-body",
2541
2815
  ref: "foldBody"
2542
2816
  };
2543
- var _sfc_main$e = defineComponent({
2817
+ var _sfc_main$f = defineComponent({
2544
2818
  ...{
2545
2819
  name: "Fold",
2546
2820
  inheritAttrs: true
@@ -2610,14 +2884,14 @@ var _sfc_main$e = defineComponent({
2610
2884
  return (_ctx, _cache) => {
2611
2885
  return openBlock(), createElementBlock("div", {
2612
2886
  class: normalizeClass(["snail-fold", statusModel.value])
2613
- }, [createElementVNode("div", _hoisted_1$8, [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", {
2887
+ }, [createElementVNode("div", _hoisted_1$9, [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", {
2614
2888
  class: "title ellipsis",
2615
2889
  textContent: toDisplayString(__props.title)
2616
- }, null, 8, _hoisted_2$3), !!__props.subtitle ? (openBlock(), createElementBlock("div", {
2890
+ }, null, 8, _hoisted_2$4), !!__props.subtitle ? (openBlock(), createElementBlock("div", {
2617
2891
  key: 0,
2618
2892
  class: "subtitle ellipsis",
2619
2893
  textContent: toDisplayString(__props.subtitle)
2620
- }, null, 8, _hoisted_3$3)) : createCommentVNode("", true), __props.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_4$3, [createVNode(_sfc_main$z, {
2894
+ }, null, 8, _hoisted_3$3)) : createCommentVNode("", true), __props.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_4$3, [createVNode(_sfc_main$C, {
2621
2895
  custom: false,
2622
2896
  type: "arrow",
2623
2897
  button: "",
@@ -2629,7 +2903,7 @@ var _sfc_main$e = defineComponent({
2629
2903
  }
2630
2904
  });
2631
2905
 
2632
- var _sfc_main$d = defineComponent({
2906
+ var _sfc_main$e = defineComponent({
2633
2907
  ...{
2634
2908
  name: "Scroll",
2635
2909
  inheritAttrs: true
@@ -2759,7 +3033,7 @@ var _sfc_main$d = defineComponent({
2759
3033
  }
2760
3034
  });
2761
3035
 
2762
- var _sfc_main$c = defineComponent({
3036
+ var _sfc_main$d = defineComponent({
2763
3037
  __name: "layout",
2764
3038
  props: {
2765
3039
  mode: {},
@@ -2825,7 +3099,7 @@ var _sfc_main$c = defineComponent({
2825
3099
  key: item
2826
3100
  }, [areaMap.value[item] && _ctx.$slots[item] ? (openBlock(), createElementBlock(Fragment, {
2827
3101
  key: 0
2828
- }, [areaMap.value[item].scrollable ? (openBlock(), createBlock(_sfc_main$d, mergeProps({
3102
+ }, [areaMap.value[item].scrollable ? (openBlock(), createBlock(_sfc_main$e, mergeProps({
2829
3103
  key: 0,
2830
3104
  class: areaMap.value[item].class,
2831
3105
  style: areaMap.value[item].style
@@ -2844,7 +3118,7 @@ var _sfc_main$c = defineComponent({
2844
3118
  }
2845
3119
  });
2846
3120
 
2847
- var _sfc_main$b = defineComponent({
3121
+ var _sfc_main$c = defineComponent({
2848
3122
  ...{
2849
3123
  name: "Sort",
2850
3124
  inheritAttrs: true
@@ -2945,10 +3219,10 @@ var _sfc_main$b = defineComponent({
2945
3219
  }
2946
3220
  });
2947
3221
 
2948
- const _hoisted_1$7 = {
3222
+ const _hoisted_1$8 = {
2949
3223
  class: "table-body"
2950
3224
  };
2951
- var _sfc_main$a = defineComponent({
3225
+ var _sfc_main$b = defineComponent({
2952
3226
  ...{
2953
3227
  name: "Table",
2954
3228
  inheritAttrs: true
@@ -2973,7 +3247,7 @@ var _sfc_main$a = defineComponent({
2973
3247
  const hStyleRef = computed(() => css.buildStyle(props.headerStyle));
2974
3248
  const fStyleRef = computed(() => css.buildStyle(props.footerStyle));
2975
3249
  return (_ctx, _cache) => {
2976
- return openBlock(), createBlock(_sfc_main$d, {
3250
+ return openBlock(), createBlock(_sfc_main$e, {
2977
3251
  class: normalizeClass(["snail-table", {
2978
3252
  "start-border": __props.border == true
2979
3253
  }]),
@@ -2983,7 +3257,7 @@ var _sfc_main$a = defineComponent({
2983
3257
  default: withCtx(() => [createElementVNode("div", {
2984
3258
  class: "table-header",
2985
3259
  style: normalizeStyle(hStyleRef.value)
2986
- }, [renderSlot(_ctx.$slots, "header")], 4), createElementVNode("div", _hoisted_1$7, [renderSlot(_ctx.$slots, "default")]), createElementVNode("div", {
3260
+ }, [renderSlot(_ctx.$slots, "header")], 4), createElementVNode("div", _hoisted_1$8, [renderSlot(_ctx.$slots, "default")]), createElementVNode("div", {
2987
3261
  class: "table-footer",
2988
3262
  style: normalizeStyle(fStyleRef.value)
2989
3263
  }, [renderSlot(_ctx.$slots, "footer")], 4)]),
@@ -2993,7 +3267,7 @@ var _sfc_main$a = defineComponent({
2993
3267
  }
2994
3268
  });
2995
3269
 
2996
- var _sfc_main$9 = defineComponent({
3270
+ var _sfc_main$a = defineComponent({
2997
3271
  ...{
2998
3272
  name: "TableRow",
2999
3273
  inheritAttrs: true
@@ -3016,7 +3290,7 @@ var _sfc_main$9 = defineComponent({
3016
3290
  }
3017
3291
  });
3018
3292
 
3019
- var _sfc_main$8 = defineComponent({
3293
+ var _sfc_main$9 = defineComponent({
3020
3294
  ...{
3021
3295
  name: "TableCol",
3022
3296
  inheritAttrs: true
@@ -3062,11 +3336,11 @@ var _sfc_main$8 = defineComponent({
3062
3336
  }
3063
3337
  });
3064
3338
 
3065
- const _hoisted_1$6 = {
3339
+ const _hoisted_1$7 = {
3066
3340
  key: 0,
3067
3341
  class: "node-fold"
3068
3342
  };
3069
- const _hoisted_2$2 = ["title", "textContent"];
3343
+ const _hoisted_2$3 = ["title", "textContent"];
3070
3344
  const _hoisted_3$2 = {
3071
3345
  class: "node-slot ellipsis"
3072
3346
  };
@@ -3074,7 +3348,7 @@ const _hoisted_4$2 = {
3074
3348
  class: "snail-tree-children",
3075
3349
  ref: "children"
3076
3350
  };
3077
- var _sfc_main$7 = defineComponent({
3351
+ var _sfc_main$8 = defineComponent({
3078
3352
  ...{
3079
3353
  name: "TreeNode",
3080
3354
  inheritAttrs: true
@@ -3182,7 +3456,7 @@ var _sfc_main$7 = defineComponent({
3182
3456
  key: 1
3183
3457
  }, [_cache[5] || (_cache[5] = createElementVNode("div", {
3184
3458
  class: "indent"
3185
- }, null, -1)), __props.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$6, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$z, {
3459
+ }, null, -1)), __props.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$7, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$C, {
3186
3460
  key: 0,
3187
3461
  class: normalizeClass(statusRef.value),
3188
3462
  custom: "",
@@ -3197,7 +3471,7 @@ var _sfc_main$7 = defineComponent({
3197
3471
  class: "node-text ellipsis",
3198
3472
  title: __props.node.text,
3199
3473
  textContent: toDisplayString(__props.node.text)
3200
- }, null, 8, _hoisted_2$2), createElementVNode("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))))])], 64))], 34), [[vShow, showRef.value]]), withDirectives(createElementVNode("div", _hoisted_4$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.node.children, child => {
3474
+ }, null, 8, _hoisted_2$3), createElementVNode("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))))])], 64))], 34), [[vShow, showRef.value]]), withDirectives(createElementVNode("div", _hoisted_4$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.node.children, child => {
3201
3475
  return openBlock(), createBlock(_component_TreeNode, {
3202
3476
  key: __props.context.getKey(child),
3203
3477
  node: child,
@@ -3217,10 +3491,10 @@ var _sfc_main$7 = defineComponent({
3217
3491
  }
3218
3492
  });
3219
3493
 
3220
- const _hoisted_1$5 = {
3494
+ const _hoisted_1$6 = {
3221
3495
  class: "snail-tree"
3222
3496
  };
3223
- var _sfc_main$6 = defineComponent({
3497
+ var _sfc_main$7 = defineComponent({
3224
3498
  ...{
3225
3499
  name: "Tree",
3226
3500
  inheritAttrs: true
@@ -3254,15 +3528,15 @@ var _sfc_main$6 = defineComponent({
3254
3528
  emits("click", node, parents);
3255
3529
  }
3256
3530
  return (_ctx, _cache) => {
3257
- return openBlock(), createElementBlock("div", _hoisted_1$5, [__props.search ? (openBlock(), createBlock(_sfc_main$t, mergeProps({
3531
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [__props.search ? (openBlock(), createBlock(_sfc_main$w, mergeProps({
3258
3532
  key: 0
3259
3533
  }, __props.search, {
3260
3534
  onSearch
3261
- }), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$d, {
3535
+ }), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$e, {
3262
3536
  "scroll-y": true
3263
3537
  }, {
3264
3538
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.nodes || [], node => {
3265
- return openBlock(), createBlock(_sfc_main$7, {
3539
+ return openBlock(), createBlock(_sfc_main$8, {
3266
3540
  key: unref(context).getKey(node),
3267
3541
  node,
3268
3542
  parent: void 0,
@@ -3283,7 +3557,7 @@ var _sfc_main$6 = defineComponent({
3283
3557
  }
3284
3558
  });
3285
3559
 
3286
- var _sfc_main$5 = defineComponent({
3560
+ var _sfc_main$6 = defineComponent({
3287
3561
  __name: "wrapper",
3288
3562
  props: {
3289
3563
  readonly: {
@@ -3305,14 +3579,14 @@ var _sfc_main$5 = defineComponent({
3305
3579
  return (_ctx, _cache) => {
3306
3580
  return openBlock(), createElementBlock("div", {
3307
3581
  class: normalizeClass(["snail-wrapper", __props.inPopup ? "in-popup" : "in-normal"])
3308
- }, [__props.header && __props.header.disabled != true ? (openBlock(), createBlock(_sfc_main$w, mergeProps({
3582
+ }, [__props.header && __props.header.disabled != true ? (openBlock(), createBlock(_sfc_main$z, mergeProps({
3309
3583
  key: 0
3310
3584
  }, __props.header || {
3311
3585
  useTo: "dialog",
3312
3586
  title: "对话框"
3313
3587
  }, {
3314
3588
  onClose: _cache[0] || (_cache[0] = $event => emits("cancel"))
3315
- }), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$d, mergeProps({
3589
+ }), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$e, mergeProps({
3316
3590
  class: "wrapper-body"
3317
3591
  }, __props.content || {
3318
3592
  scrollX: false,
@@ -3320,7 +3594,7 @@ var _sfc_main$5 = defineComponent({
3320
3594
  }), {
3321
3595
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3322
3596
  _: 3
3323
- }, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (openBlock(), createBlock(_sfc_main$x, mergeProps({
3597
+ }, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (openBlock(), createBlock(_sfc_main$A, mergeProps({
3324
3598
  key: 1
3325
3599
  }, __props.footer || {}, {
3326
3600
  onCancel: _cache[1] || (_cache[1] = $event => emits("cancel")),
@@ -3334,7 +3608,7 @@ function mount(target, options, onDestroyed) {
3334
3608
  mustObject(options, "options");
3335
3609
  target instanceof HTMLElement || throwError("target must be a HTMLElement");
3336
3610
  target.classList.add("snail-app");
3337
- const app = createApp(_sfc_main$p, options);
3611
+ const app = createApp(_sfc_main$s, options);
3338
3612
  triggerAppCreated(app);
3339
3613
  app.mount(target);
3340
3614
  const scope = useScope().onDestroy(() => app.unmount());
@@ -3342,6 +3616,53 @@ function mount(target, options, onDestroyed) {
3342
3616
  return scope;
3343
3617
  }
3344
3618
 
3619
+ const _hoisted_1$5 = {
3620
+ class: "snail-flash-number"
3621
+ };
3622
+ const _hoisted_2$2 = ["textContent"];
3623
+ var _sfc_main$5 = defineComponent({
3624
+ __name: "flash-number",
3625
+ props: {
3626
+ value: {}
3627
+ },
3628
+ setup(__props) {
3629
+ const props = __props;
3630
+ const itemsRef = ref();
3631
+ function buildNumberItems() {
3632
+ itemsRef.value = [];
3633
+ const value = isNullish(props.value) ? null : String(props.value);
3634
+ if (isStringNotEmpty(value) == true) {
3635
+ for (const item of value) {
3636
+ const number = parseInt(item);
3637
+ const isNumber = 0 <= number && number <= 9;
3638
+ itemsRef.value.push({
3639
+ id: newId(),
3640
+ text: item,
3641
+ number: isNumber ? number : void 0
3642
+ });
3643
+ }
3644
+ }
3645
+ if (isArrayNotEmpty(itemsRef.value) == true) ;
3646
+ }
3647
+ onMounted(() => {
3648
+ buildNumberItems();
3649
+ });
3650
+ return (_ctx, _cache) => {
3651
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [(openBlock(true), createElementBlock(Fragment, null, renderList(itemsRef.value, item => {
3652
+ return openBlock(), createElementBlock("span", {
3653
+ key: item.id,
3654
+ textContent: toDisplayString(item.text),
3655
+ class: normalizeClass(unref(isNullish)(item.number) ? "" : "number-item")
3656
+ }, null, 10, _hoisted_2$2);
3657
+ }), 128)), _cache[0] || (_cache[0] = createElementVNode("span", {
3658
+ style: {
3659
+ "color": "red"
3660
+ }
3661
+ }, "-----还没实现,别用", -1))]);
3662
+ };
3663
+ }
3664
+ });
3665
+
3345
3666
  function initStepByFormat(format) {
3346
3667
  switch (format) {
3347
3668
  case "yyyy":
@@ -3577,13 +3898,13 @@ var _sfc_main$4 = defineComponent({
3577
3898
  }
3578
3899
  onMounted(rebuildItems);
3579
3900
  return (_ctx, _cache) => {
3580
- return openBlock(), createBlock(_sfc_main$c, {
3901
+ return openBlock(), createBlock(_sfc_main$d, {
3581
3902
  class: normalizeClass(["time-picker pc", {
3582
3903
  "second-disabled": unref(format) != "HH:mm:ss"
3583
3904
  }]),
3584
3905
  mode: "vertical"
3585
3906
  }, createSlots({
3586
- main: withCtx(() => [createVNode(_sfc_main$r, {
3907
+ main: withCtx(() => [createVNode(_sfc_main$u, {
3587
3908
  multiple: "",
3588
3909
  effect: unref(MOTION).top
3589
3910
  }, {
@@ -3623,19 +3944,19 @@ var _sfc_main$4 = defineComponent({
3623
3944
  _: 2
3624
3945
  }, [__props.toolbarDisabled != true ? {
3625
3946
  name: "bottom",
3626
- fn: withCtx(() => [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
3947
+ fn: withCtx(() => [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
3627
3948
  key: 0,
3628
3949
  type: "link",
3629
3950
  size: "small",
3630
3951
  textContent: "清空",
3631
3952
  onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), __props.inPopup && __props.closePopup("")))
3632
- })) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
3953
+ })) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
3633
3954
  key: 1,
3634
3955
  type: "link",
3635
3956
  size: "small",
3636
3957
  textContent: "现在",
3637
3958
  onClick: _cache[1] || (_cache[1] = $event => rebuildItems(unref(getTimeValue)(new Date())))
3638
- })) : createCommentVNode("", true), createVNode(_sfc_main$A, {
3959
+ })) : createCommentVNode("", true), createVNode(_sfc_main$D, {
3639
3960
  type: "link",
3640
3961
  size: "small",
3641
3962
  textContent: "确定",
@@ -3877,7 +4198,7 @@ var _sfc_main$3 = defineComponent({
3877
4198
  dateRef.value == void 0 && (dateRef.value = electDateValue());
3878
4199
  buildPickerItems(stepRef.value, 0);
3879
4200
  return (_ctx, _cache) => {
3880
- return openBlock(), createBlock(_sfc_main$c, {
4201
+ return openBlock(), createBlock(_sfc_main$d, {
3881
4202
  class: normalizeClass(["date-picker pc", {
3882
4203
  "time-now": __props.pinned && __props.pinned.value == true
3883
4204
  }]),
@@ -3889,7 +4210,7 @@ var _sfc_main$3 = defineComponent({
3889
4210
  height: "30px"
3890
4211
  }
3891
4212
  }, createSlots({
3892
- top: withCtx(() => [createVNode(_sfc_main$z, {
4213
+ top: withCtx(() => [createVNode(_sfc_main$C, {
3893
4214
  type: "arrow",
3894
4215
  button: "",
3895
4216
  rotate: 180,
@@ -3909,7 +4230,7 @@ var _sfc_main$3 = defineComponent({
3909
4230
  key: 0,
3910
4231
  textContent: toDisplayString(`${dateRef.value.month}月`),
3911
4232
  onClick: _cache[2] || (_cache[2] = $event => onSwitchStepClick("month"))
3912
- }, null, 8, _hoisted_3)) : createCommentVNode("", true)], 64))], 2), createVNode(_sfc_main$z, {
4233
+ }, null, 8, _hoisted_3)) : createCommentVNode("", true)], 64))], 2), createVNode(_sfc_main$C, {
3913
4234
  type: "arrow",
3914
4235
  button: "",
3915
4236
  size: 26,
@@ -3975,19 +4296,19 @@ var _sfc_main$3 = defineComponent({
3975
4296
  onClick: onSelectTime
3976
4297
  }, null, 10, _hoisted_8)) : createCommentVNode("", true), __props.toolbarDisabled != true ? (openBlock(), createElementBlock(Fragment, {
3977
4298
  key: 1
3978
- }, [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
4299
+ }, [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
3979
4300
  key: 0,
3980
4301
  type: "link",
3981
4302
  size: "small",
3982
4303
  textContent: "清空",
3983
4304
  onClick: _cache[4] || (_cache[4] = $event => (emits("clear"), unref(inPopup) && __props.closePopup("")))
3984
- })) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
4305
+ })) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
3985
4306
  key: 1,
3986
4307
  type: "link",
3987
4308
  size: "small",
3988
4309
  textContent: "现在",
3989
4310
  onClick: onNow
3990
- })) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_sfc_main$A, {
4311
+ })) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_sfc_main$D, {
3991
4312
  type: "link",
3992
4313
  size: "small",
3993
4314
  textContent: "确定",
@@ -4121,7 +4442,7 @@ var _sfc_main$2 = defineComponent({
4121
4442
  type: "text",
4122
4443
  readonly: "",
4123
4444
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => valueRef.value = $event)
4124
- }, null, 512), [[vModelText, valueRef.value]]), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$z, {
4445
+ }, null, 512), [[vModelText, valueRef.value]]), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$C, {
4125
4446
  key: 0,
4126
4447
  type: "datepicker",
4127
4448
  button: "",
@@ -4207,7 +4528,7 @@ var _sfc_main$1 = defineComponent({
4207
4528
  type: "text",
4208
4529
  readonly: "",
4209
4530
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => valueRef.value = $event)
4210
- }, null, 512), [[vModelText, valueRef.value]]), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$z, {
4531
+ }, null, 512), [[vModelText, valueRef.value]]), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$C, {
4211
4532
  key: 0,
4212
4533
  type: "timepicker",
4213
4534
  button: "",
@@ -4303,12 +4624,12 @@ var _sfc_main = defineComponent({
4303
4624
  onTouchstart: onStartDrag,
4304
4625
  onTouchmove: onDragMove,
4305
4626
  onTouchend: onDragEnd
4306
- }, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$z, {
4627
+ }, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$C, {
4307
4628
  key: 0,
4308
4629
  type: "success",
4309
4630
  size: 20,
4310
4631
  color: "white"
4311
- })) : (openBlock(), createBlock(_sfc_main$z, {
4632
+ })) : (openBlock(), createBlock(_sfc_main$C, {
4312
4633
  key: 1,
4313
4634
  custom: "",
4314
4635
  size: 20,
@@ -4327,33 +4648,36 @@ var _sfc_main = defineComponent({
4327
4648
  });
4328
4649
 
4329
4650
  const components = {
4330
- Button: _sfc_main$A,
4331
- Choose: _sfc_main$y,
4332
- Footer: _sfc_main$x,
4333
- Header: _sfc_main$w,
4334
- Icon: _sfc_main$z,
4335
- Input: _sfc_main$v,
4336
- Number: _sfc_main$u,
4337
- Search: _sfc_main$t,
4338
- Select: _sfc_main$h,
4339
- Switch: _sfc_main$g,
4340
- Textarea: _sfc_main$f,
4341
- Dynamic: _sfc_main$p,
4342
- Fold: _sfc_main$e,
4343
- Motion: _sfc_main$r,
4344
- Layout: _sfc_main$c,
4345
- Scroll: _sfc_main$d,
4346
- Sort: _sfc_main$b,
4347
- Table: _sfc_main$a,
4348
- TableRow: _sfc_main$9,
4349
- TableCol: _sfc_main$8,
4350
- Tree: _sfc_main$6,
4351
- Wrapper: _sfc_main$5,
4651
+ Button: _sfc_main$D,
4652
+ Choose: _sfc_main$B,
4653
+ Footer: _sfc_main$A,
4654
+ Header: _sfc_main$z,
4655
+ Icon: _sfc_main$C,
4656
+ Input: _sfc_main$y,
4657
+ Number: _sfc_main$x,
4658
+ Search: _sfc_main$w,
4659
+ Select: _sfc_main$k,
4660
+ Switch: _sfc_main$j,
4661
+ Textarea: _sfc_main$i,
4662
+ Dynamic: _sfc_main$s,
4663
+ Elastic: _sfc_main$h,
4664
+ Flex: _sfc_main$g,
4665
+ Fold: _sfc_main$f,
4666
+ Motion: _sfc_main$u,
4667
+ Layout: _sfc_main$d,
4668
+ Scroll: _sfc_main$e,
4669
+ Sort: _sfc_main$c,
4670
+ Table: _sfc_main$b,
4671
+ TableRow: _sfc_main$a,
4672
+ TableCol: _sfc_main$9,
4673
+ Tree: _sfc_main$7,
4674
+ Wrapper: _sfc_main$6,
4675
+ FlashNumber: _sfc_main$5,
4352
4676
  DatePicker: _sfc_main$2,
4353
4677
  TimePicker: _sfc_main$1,
4354
4678
  DragVerify: _sfc_main,
4355
- Empty: _sfc_main$k,
4356
- Loading: _sfc_main$q
4679
+ Empty: _sfc_main$n,
4680
+ Loading: _sfc_main$t
4357
4681
  };
4358
4682
 
4359
4683
  onMountScope(scope => {