snail.vue 2.0.16 → 2.0.18

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,10 +2461,11 @@ 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
- name: "Textarea"
2467
+ name: "Textarea",
2468
+ inheritAttrs: true
2468
2469
  },
2469
2470
  __name: "textarea",
2470
2471
  props: mergeModels({
@@ -2510,10 +2511,9 @@ var _sfc_main$f = defineComponent({
2510
2511
  }
2511
2512
  props.autoHeight == true && onMounted(calcRows);
2512
2513
  return (_ctx, _cache) => {
2513
- return withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
2514
+ return withDirectives((openBlock(), createElementBlock("textarea", {
2514
2515
  class: "snail-textarea",
2515
- ref: "textarea"
2516
- }, _ctx.$attrs, {
2516
+ ref: "textarea",
2517
2517
  readonly: __props.readonly,
2518
2518
  placeholder: __props.placeholder,
2519
2519
  rows: rowsRef.value,
@@ -2522,15 +2522,287 @@ 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, 40, _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
+ ...{
2696
+ name: "Flex",
2697
+ inheritAttrs: false
2698
+ },
2699
+ __name: "flex",
2700
+ props: {
2701
+ direction: {},
2702
+ wrap: {},
2703
+ gap: {},
2704
+ justifyContent: {},
2705
+ alignItems: {},
2706
+ alignContent: {},
2707
+ repairItem: {
2708
+ type: Boolean
2709
+ },
2710
+ itemCount: {},
2711
+ itemTag: {},
2712
+ itemClass: {}
2713
+ },
2714
+ setup(__props) {
2715
+ const props = __props;
2716
+ const rootDom = useTemplateRef("root-flex");
2717
+ const {
2718
+ onSize
2719
+ } = useObserver();
2720
+ const {
2721
+ watcher
2722
+ } = useReactive();
2723
+ const classRef = computed(buildClass);
2724
+ const styleRef = computed(buildStyle);
2725
+ const repairItemsRef = shallowRef(0);
2726
+ function buildClass() {
2727
+ const items = [];
2728
+ items.push(props.direction || "row");
2729
+ props.wrap && items.push(props.wrap);
2730
+ props.justifyContent && items.push(props.justifyContent);
2731
+ return items;
2732
+ }
2733
+ function buildStyle() {
2734
+ const styleVar = Object.create(null);
2735
+ isStringNotEmpty(props.gap) && (styleVar["--gap"] = props.gap);
2736
+ const tmpFunc = value => {
2737
+ switch (value) {
2738
+ case "start":
2739
+ return "flex-start";
2740
+ case "end":
2741
+ return "flex-end";
2742
+ default:
2743
+ return value;
2744
+ }
2745
+ };
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", mergeProps(_ctx.$attrs, {
2790
+ class: ["snail-flex", classRef.value],
2791
+ style: styleRef.value,
2792
+ ref: "root-flex"
2793
+ }), [renderSlot(_ctx.$slots, "default"), (openBlock(true), createElementBlock(Fragment, null, renderList(repairItemsRef.value, _ => {
2794
+ return openBlock(), createBlock(resolveDynamicComponent(unref(correctString)(props.itemTag, "div", true)), {
2795
+ class: normalizeClass([props.itemClass || "", "repair-item"])
2796
+ }, null, 8, ["class"]);
2797
+ }), 256))], 16);
2798
+ };
2799
+ }
2800
+ });
2801
+
2802
+ const _hoisted_1$9 = {
2531
2803
  class: "fold-header"
2532
2804
  };
2533
- const _hoisted_2$3 = ["textContent"];
2805
+ const _hoisted_2$4 = ["textContent"];
2534
2806
  const _hoisted_3$3 = ["textContent"];
2535
2807
  const _hoisted_4$3 = {
2536
2808
  key: 1,
@@ -2540,7 +2812,7 @@ const _hoisted_5$2 = {
2540
2812
  class: "fold-body",
2541
2813
  ref: "foldBody"
2542
2814
  };
2543
- var _sfc_main$e = defineComponent({
2815
+ var _sfc_main$f = defineComponent({
2544
2816
  ...{
2545
2817
  name: "Fold",
2546
2818
  inheritAttrs: true
@@ -2610,14 +2882,14 @@ var _sfc_main$e = defineComponent({
2610
2882
  return (_ctx, _cache) => {
2611
2883
  return openBlock(), createElementBlock("div", {
2612
2884
  class: normalizeClass(["snail-fold", statusModel.value])
2613
- }, [createElementVNode("div", _hoisted_1$8, [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", {
2885
+ }, [createElementVNode("div", _hoisted_1$9, [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", {
2614
2886
  class: "title ellipsis",
2615
2887
  textContent: toDisplayString(__props.title)
2616
- }, null, 8, _hoisted_2$3), !!__props.subtitle ? (openBlock(), createElementBlock("div", {
2888
+ }, null, 8, _hoisted_2$4), !!__props.subtitle ? (openBlock(), createElementBlock("div", {
2617
2889
  key: 0,
2618
2890
  class: "subtitle ellipsis",
2619
2891
  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, {
2892
+ }, null, 8, _hoisted_3$3)) : createCommentVNode("", true), __props.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_4$3, [createVNode(_sfc_main$C, {
2621
2893
  custom: false,
2622
2894
  type: "arrow",
2623
2895
  button: "",
@@ -2629,7 +2901,7 @@ var _sfc_main$e = defineComponent({
2629
2901
  }
2630
2902
  });
2631
2903
 
2632
- var _sfc_main$d = defineComponent({
2904
+ var _sfc_main$e = defineComponent({
2633
2905
  ...{
2634
2906
  name: "Scroll",
2635
2907
  inheritAttrs: true
@@ -2759,7 +3031,7 @@ var _sfc_main$d = defineComponent({
2759
3031
  }
2760
3032
  });
2761
3033
 
2762
- var _sfc_main$c = defineComponent({
3034
+ var _sfc_main$d = defineComponent({
2763
3035
  __name: "layout",
2764
3036
  props: {
2765
3037
  mode: {},
@@ -2825,7 +3097,7 @@ var _sfc_main$c = defineComponent({
2825
3097
  key: item
2826
3098
  }, [areaMap.value[item] && _ctx.$slots[item] ? (openBlock(), createElementBlock(Fragment, {
2827
3099
  key: 0
2828
- }, [areaMap.value[item].scrollable ? (openBlock(), createBlock(_sfc_main$d, mergeProps({
3100
+ }, [areaMap.value[item].scrollable ? (openBlock(), createBlock(_sfc_main$e, mergeProps({
2829
3101
  key: 0,
2830
3102
  class: areaMap.value[item].class,
2831
3103
  style: areaMap.value[item].style
@@ -2844,7 +3116,7 @@ var _sfc_main$c = defineComponent({
2844
3116
  }
2845
3117
  });
2846
3118
 
2847
- var _sfc_main$b = defineComponent({
3119
+ var _sfc_main$c = defineComponent({
2848
3120
  ...{
2849
3121
  name: "Sort",
2850
3122
  inheritAttrs: true
@@ -2945,10 +3217,10 @@ var _sfc_main$b = defineComponent({
2945
3217
  }
2946
3218
  });
2947
3219
 
2948
- const _hoisted_1$7 = {
3220
+ const _hoisted_1$8 = {
2949
3221
  class: "table-body"
2950
3222
  };
2951
- var _sfc_main$a = defineComponent({
3223
+ var _sfc_main$b = defineComponent({
2952
3224
  ...{
2953
3225
  name: "Table",
2954
3226
  inheritAttrs: true
@@ -2973,7 +3245,7 @@ var _sfc_main$a = defineComponent({
2973
3245
  const hStyleRef = computed(() => css.buildStyle(props.headerStyle));
2974
3246
  const fStyleRef = computed(() => css.buildStyle(props.footerStyle));
2975
3247
  return (_ctx, _cache) => {
2976
- return openBlock(), createBlock(_sfc_main$d, {
3248
+ return openBlock(), createBlock(_sfc_main$e, {
2977
3249
  class: normalizeClass(["snail-table", {
2978
3250
  "start-border": __props.border == true
2979
3251
  }]),
@@ -2983,7 +3255,7 @@ var _sfc_main$a = defineComponent({
2983
3255
  default: withCtx(() => [createElementVNode("div", {
2984
3256
  class: "table-header",
2985
3257
  style: normalizeStyle(hStyleRef.value)
2986
- }, [renderSlot(_ctx.$slots, "header")], 4), createElementVNode("div", _hoisted_1$7, [renderSlot(_ctx.$slots, "default")]), createElementVNode("div", {
3258
+ }, [renderSlot(_ctx.$slots, "header")], 4), createElementVNode("div", _hoisted_1$8, [renderSlot(_ctx.$slots, "default")]), createElementVNode("div", {
2987
3259
  class: "table-footer",
2988
3260
  style: normalizeStyle(fStyleRef.value)
2989
3261
  }, [renderSlot(_ctx.$slots, "footer")], 4)]),
@@ -2993,7 +3265,7 @@ var _sfc_main$a = defineComponent({
2993
3265
  }
2994
3266
  });
2995
3267
 
2996
- var _sfc_main$9 = defineComponent({
3268
+ var _sfc_main$a = defineComponent({
2997
3269
  ...{
2998
3270
  name: "TableRow",
2999
3271
  inheritAttrs: true
@@ -3016,7 +3288,7 @@ var _sfc_main$9 = defineComponent({
3016
3288
  }
3017
3289
  });
3018
3290
 
3019
- var _sfc_main$8 = defineComponent({
3291
+ var _sfc_main$9 = defineComponent({
3020
3292
  ...{
3021
3293
  name: "TableCol",
3022
3294
  inheritAttrs: true
@@ -3062,11 +3334,11 @@ var _sfc_main$8 = defineComponent({
3062
3334
  }
3063
3335
  });
3064
3336
 
3065
- const _hoisted_1$6 = {
3337
+ const _hoisted_1$7 = {
3066
3338
  key: 0,
3067
3339
  class: "node-fold"
3068
3340
  };
3069
- const _hoisted_2$2 = ["title", "textContent"];
3341
+ const _hoisted_2$3 = ["title", "textContent"];
3070
3342
  const _hoisted_3$2 = {
3071
3343
  class: "node-slot ellipsis"
3072
3344
  };
@@ -3074,7 +3346,7 @@ const _hoisted_4$2 = {
3074
3346
  class: "snail-tree-children",
3075
3347
  ref: "children"
3076
3348
  };
3077
- var _sfc_main$7 = defineComponent({
3349
+ var _sfc_main$8 = defineComponent({
3078
3350
  ...{
3079
3351
  name: "TreeNode",
3080
3352
  inheritAttrs: true
@@ -3182,7 +3454,7 @@ var _sfc_main$7 = defineComponent({
3182
3454
  key: 1
3183
3455
  }, [_cache[5] || (_cache[5] = createElementVNode("div", {
3184
3456
  class: "indent"
3185
- }, null, -1)), __props.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$6, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$z, {
3457
+ }, null, -1)), __props.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$7, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$C, {
3186
3458
  key: 0,
3187
3459
  class: normalizeClass(statusRef.value),
3188
3460
  custom: "",
@@ -3197,7 +3469,7 @@ var _sfc_main$7 = defineComponent({
3197
3469
  class: "node-text ellipsis",
3198
3470
  title: __props.node.text,
3199
3471
  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 => {
3472
+ }, 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
3473
  return openBlock(), createBlock(_component_TreeNode, {
3202
3474
  key: __props.context.getKey(child),
3203
3475
  node: child,
@@ -3217,10 +3489,10 @@ var _sfc_main$7 = defineComponent({
3217
3489
  }
3218
3490
  });
3219
3491
 
3220
- const _hoisted_1$5 = {
3492
+ const _hoisted_1$6 = {
3221
3493
  class: "snail-tree"
3222
3494
  };
3223
- var _sfc_main$6 = defineComponent({
3495
+ var _sfc_main$7 = defineComponent({
3224
3496
  ...{
3225
3497
  name: "Tree",
3226
3498
  inheritAttrs: true
@@ -3254,15 +3526,15 @@ var _sfc_main$6 = defineComponent({
3254
3526
  emits("click", node, parents);
3255
3527
  }
3256
3528
  return (_ctx, _cache) => {
3257
- return openBlock(), createElementBlock("div", _hoisted_1$5, [__props.search ? (openBlock(), createBlock(_sfc_main$t, mergeProps({
3529
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [__props.search ? (openBlock(), createBlock(_sfc_main$w, mergeProps({
3258
3530
  key: 0
3259
3531
  }, __props.search, {
3260
3532
  onSearch
3261
- }), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$d, {
3533
+ }), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$e, {
3262
3534
  "scroll-y": true
3263
3535
  }, {
3264
3536
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.nodes || [], node => {
3265
- return openBlock(), createBlock(_sfc_main$7, {
3537
+ return openBlock(), createBlock(_sfc_main$8, {
3266
3538
  key: unref(context).getKey(node),
3267
3539
  node,
3268
3540
  parent: void 0,
@@ -3283,7 +3555,7 @@ var _sfc_main$6 = defineComponent({
3283
3555
  }
3284
3556
  });
3285
3557
 
3286
- var _sfc_main$5 = defineComponent({
3558
+ var _sfc_main$6 = defineComponent({
3287
3559
  __name: "wrapper",
3288
3560
  props: {
3289
3561
  readonly: {
@@ -3305,14 +3577,14 @@ var _sfc_main$5 = defineComponent({
3305
3577
  return (_ctx, _cache) => {
3306
3578
  return openBlock(), createElementBlock("div", {
3307
3579
  class: normalizeClass(["snail-wrapper", __props.inPopup ? "in-popup" : "in-normal"])
3308
- }, [__props.header && __props.header.disabled != true ? (openBlock(), createBlock(_sfc_main$w, mergeProps({
3580
+ }, [__props.header && __props.header.disabled != true ? (openBlock(), createBlock(_sfc_main$z, mergeProps({
3309
3581
  key: 0
3310
3582
  }, __props.header || {
3311
3583
  useTo: "dialog",
3312
3584
  title: "对话框"
3313
3585
  }, {
3314
3586
  onClose: _cache[0] || (_cache[0] = $event => emits("cancel"))
3315
- }), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$d, mergeProps({
3587
+ }), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$e, mergeProps({
3316
3588
  class: "wrapper-body"
3317
3589
  }, __props.content || {
3318
3590
  scrollX: false,
@@ -3320,7 +3592,7 @@ var _sfc_main$5 = defineComponent({
3320
3592
  }), {
3321
3593
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3322
3594
  _: 3
3323
- }, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (openBlock(), createBlock(_sfc_main$x, mergeProps({
3595
+ }, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (openBlock(), createBlock(_sfc_main$A, mergeProps({
3324
3596
  key: 1
3325
3597
  }, __props.footer || {}, {
3326
3598
  onCancel: _cache[1] || (_cache[1] = $event => emits("cancel")),
@@ -3334,7 +3606,7 @@ function mount(target, options, onDestroyed) {
3334
3606
  mustObject(options, "options");
3335
3607
  target instanceof HTMLElement || throwError("target must be a HTMLElement");
3336
3608
  target.classList.add("snail-app");
3337
- const app = createApp(_sfc_main$p, options);
3609
+ const app = createApp(_sfc_main$s, options);
3338
3610
  triggerAppCreated(app);
3339
3611
  app.mount(target);
3340
3612
  const scope = useScope().onDestroy(() => app.unmount());
@@ -3342,6 +3614,53 @@ function mount(target, options, onDestroyed) {
3342
3614
  return scope;
3343
3615
  }
3344
3616
 
3617
+ const _hoisted_1$5 = {
3618
+ class: "snail-flash-number"
3619
+ };
3620
+ const _hoisted_2$2 = ["textContent"];
3621
+ var _sfc_main$5 = defineComponent({
3622
+ __name: "flash-number",
3623
+ props: {
3624
+ value: {}
3625
+ },
3626
+ setup(__props) {
3627
+ const props = __props;
3628
+ const itemsRef = ref();
3629
+ function buildNumberItems() {
3630
+ itemsRef.value = [];
3631
+ const value = isNullish(props.value) ? null : String(props.value);
3632
+ if (isStringNotEmpty(value) == true) {
3633
+ for (const item of value) {
3634
+ const number = parseInt(item);
3635
+ const isNumber = 0 <= number && number <= 9;
3636
+ itemsRef.value.push({
3637
+ id: newId(),
3638
+ text: item,
3639
+ number: isNumber ? number : void 0
3640
+ });
3641
+ }
3642
+ }
3643
+ if (isArrayNotEmpty(itemsRef.value) == true) ;
3644
+ }
3645
+ onMounted(() => {
3646
+ buildNumberItems();
3647
+ });
3648
+ return (_ctx, _cache) => {
3649
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [(openBlock(true), createElementBlock(Fragment, null, renderList(itemsRef.value, item => {
3650
+ return openBlock(), createElementBlock("span", {
3651
+ key: item.id,
3652
+ textContent: toDisplayString(item.text),
3653
+ class: normalizeClass(unref(isNullish)(item.number) ? "" : "number-item")
3654
+ }, null, 10, _hoisted_2$2);
3655
+ }), 128)), _cache[0] || (_cache[0] = createElementVNode("span", {
3656
+ style: {
3657
+ "color": "red"
3658
+ }
3659
+ }, "-----还没实现,别用", -1))]);
3660
+ };
3661
+ }
3662
+ });
3663
+
3345
3664
  function initStepByFormat(format) {
3346
3665
  switch (format) {
3347
3666
  case "yyyy":
@@ -3577,13 +3896,13 @@ var _sfc_main$4 = defineComponent({
3577
3896
  }
3578
3897
  onMounted(rebuildItems);
3579
3898
  return (_ctx, _cache) => {
3580
- return openBlock(), createBlock(_sfc_main$c, {
3899
+ return openBlock(), createBlock(_sfc_main$d, {
3581
3900
  class: normalizeClass(["time-picker pc", {
3582
3901
  "second-disabled": unref(format) != "HH:mm:ss"
3583
3902
  }]),
3584
3903
  mode: "vertical"
3585
3904
  }, createSlots({
3586
- main: withCtx(() => [createVNode(_sfc_main$r, {
3905
+ main: withCtx(() => [createVNode(_sfc_main$u, {
3587
3906
  multiple: "",
3588
3907
  effect: unref(MOTION).top
3589
3908
  }, {
@@ -3623,19 +3942,19 @@ var _sfc_main$4 = defineComponent({
3623
3942
  _: 2
3624
3943
  }, [__props.toolbarDisabled != true ? {
3625
3944
  name: "bottom",
3626
- fn: withCtx(() => [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
3945
+ fn: withCtx(() => [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
3627
3946
  key: 0,
3628
3947
  type: "link",
3629
3948
  size: "small",
3630
3949
  textContent: "清空",
3631
3950
  onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), __props.inPopup && __props.closePopup("")))
3632
- })) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
3951
+ })) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
3633
3952
  key: 1,
3634
3953
  type: "link",
3635
3954
  size: "small",
3636
3955
  textContent: "现在",
3637
3956
  onClick: _cache[1] || (_cache[1] = $event => rebuildItems(unref(getTimeValue)(new Date())))
3638
- })) : createCommentVNode("", true), createVNode(_sfc_main$A, {
3957
+ })) : createCommentVNode("", true), createVNode(_sfc_main$D, {
3639
3958
  type: "link",
3640
3959
  size: "small",
3641
3960
  textContent: "确定",
@@ -3877,7 +4196,7 @@ var _sfc_main$3 = defineComponent({
3877
4196
  dateRef.value == void 0 && (dateRef.value = electDateValue());
3878
4197
  buildPickerItems(stepRef.value, 0);
3879
4198
  return (_ctx, _cache) => {
3880
- return openBlock(), createBlock(_sfc_main$c, {
4199
+ return openBlock(), createBlock(_sfc_main$d, {
3881
4200
  class: normalizeClass(["date-picker pc", {
3882
4201
  "time-now": __props.pinned && __props.pinned.value == true
3883
4202
  }]),
@@ -3889,7 +4208,7 @@ var _sfc_main$3 = defineComponent({
3889
4208
  height: "30px"
3890
4209
  }
3891
4210
  }, createSlots({
3892
- top: withCtx(() => [createVNode(_sfc_main$z, {
4211
+ top: withCtx(() => [createVNode(_sfc_main$C, {
3893
4212
  type: "arrow",
3894
4213
  button: "",
3895
4214
  rotate: 180,
@@ -3909,7 +4228,7 @@ var _sfc_main$3 = defineComponent({
3909
4228
  key: 0,
3910
4229
  textContent: toDisplayString(`${dateRef.value.month}月`),
3911
4230
  onClick: _cache[2] || (_cache[2] = $event => onSwitchStepClick("month"))
3912
- }, null, 8, _hoisted_3)) : createCommentVNode("", true)], 64))], 2), createVNode(_sfc_main$z, {
4231
+ }, null, 8, _hoisted_3)) : createCommentVNode("", true)], 64))], 2), createVNode(_sfc_main$C, {
3913
4232
  type: "arrow",
3914
4233
  button: "",
3915
4234
  size: 26,
@@ -3975,19 +4294,19 @@ var _sfc_main$3 = defineComponent({
3975
4294
  onClick: onSelectTime
3976
4295
  }, null, 10, _hoisted_8)) : createCommentVNode("", true), __props.toolbarDisabled != true ? (openBlock(), createElementBlock(Fragment, {
3977
4296
  key: 1
3978
- }, [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
4297
+ }, [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
3979
4298
  key: 0,
3980
4299
  type: "link",
3981
4300
  size: "small",
3982
4301
  textContent: "清空",
3983
4302
  onClick: _cache[4] || (_cache[4] = $event => (emits("clear"), unref(inPopup) && __props.closePopup("")))
3984
- })) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
4303
+ })) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$D, {
3985
4304
  key: 1,
3986
4305
  type: "link",
3987
4306
  size: "small",
3988
4307
  textContent: "现在",
3989
4308
  onClick: onNow
3990
- })) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_sfc_main$A, {
4309
+ })) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_sfc_main$D, {
3991
4310
  type: "link",
3992
4311
  size: "small",
3993
4312
  textContent: "确定",
@@ -4121,7 +4440,7 @@ var _sfc_main$2 = defineComponent({
4121
4440
  type: "text",
4122
4441
  readonly: "",
4123
4442
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => valueRef.value = $event)
4124
- }, null, 512), [[vModelText, valueRef.value]]), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$z, {
4443
+ }, null, 512), [[vModelText, valueRef.value]]), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$C, {
4125
4444
  key: 0,
4126
4445
  type: "datepicker",
4127
4446
  button: "",
@@ -4207,7 +4526,7 @@ var _sfc_main$1 = defineComponent({
4207
4526
  type: "text",
4208
4527
  readonly: "",
4209
4528
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => valueRef.value = $event)
4210
- }, null, 512), [[vModelText, valueRef.value]]), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$z, {
4529
+ }, null, 512), [[vModelText, valueRef.value]]), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$C, {
4211
4530
  key: 0,
4212
4531
  type: "timepicker",
4213
4532
  button: "",
@@ -4303,12 +4622,12 @@ var _sfc_main = defineComponent({
4303
4622
  onTouchstart: onStartDrag,
4304
4623
  onTouchmove: onDragMove,
4305
4624
  onTouchend: onDragEnd
4306
- }, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$z, {
4625
+ }, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$C, {
4307
4626
  key: 0,
4308
4627
  type: "success",
4309
4628
  size: 20,
4310
4629
  color: "white"
4311
- })) : (openBlock(), createBlock(_sfc_main$z, {
4630
+ })) : (openBlock(), createBlock(_sfc_main$C, {
4312
4631
  key: 1,
4313
4632
  custom: "",
4314
4633
  size: 20,
@@ -4327,33 +4646,36 @@ var _sfc_main = defineComponent({
4327
4646
  });
4328
4647
 
4329
4648
  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,
4649
+ Button: _sfc_main$D,
4650
+ Choose: _sfc_main$B,
4651
+ Footer: _sfc_main$A,
4652
+ Header: _sfc_main$z,
4653
+ Icon: _sfc_main$C,
4654
+ Input: _sfc_main$y,
4655
+ Number: _sfc_main$x,
4656
+ Search: _sfc_main$w,
4657
+ Select: _sfc_main$k,
4658
+ Switch: _sfc_main$j,
4659
+ Textarea: _sfc_main$i,
4660
+ Dynamic: _sfc_main$s,
4661
+ Elastic: _sfc_main$h,
4662
+ Flex: _sfc_main$g,
4663
+ Fold: _sfc_main$f,
4664
+ Motion: _sfc_main$u,
4665
+ Layout: _sfc_main$d,
4666
+ Scroll: _sfc_main$e,
4667
+ Sort: _sfc_main$c,
4668
+ Table: _sfc_main$b,
4669
+ TableRow: _sfc_main$a,
4670
+ TableCol: _sfc_main$9,
4671
+ Tree: _sfc_main$7,
4672
+ Wrapper: _sfc_main$6,
4673
+ FlashNumber: _sfc_main$5,
4352
4674
  DatePicker: _sfc_main$2,
4353
4675
  TimePicker: _sfc_main$1,
4354
4676
  DragVerify: _sfc_main,
4355
- Empty: _sfc_main$k,
4356
- Loading: _sfc_main$q
4677
+ Empty: _sfc_main$n,
4678
+ Loading: _sfc_main$t
4357
4679
  };
4358
4680
 
4359
4681
  onMountScope(scope => {