snail.vue 2.0.30 → 2.0.31

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.
@@ -5,8 +5,8 @@
5
5
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.SnailVue = global.SnailVue || {}, global.Vue, global.Snail, global.SnailView));
6
6
  })(this, (function (exports, vue, snail_core, snail_view) { 'use strict';
7
7
 
8
- const _hoisted_1$o = ["title"];
9
- var _sfc_main$F = vue.defineComponent({
8
+ const _hoisted_1$p = ["title"];
9
+ var _sfc_main$G = vue.defineComponent({
10
10
  ...{
11
11
  name: "Button",
12
12
  inheritAttrs: true
@@ -28,7 +28,7 @@
28
28
  class: vue.normalizeClass(["snail-button", [__props.size, __props.type]]),
29
29
  title: __props.title,
30
30
  onClick: _cache[0] || (_cache[0] = evt => emits("click", evt))
31
- }, [vue.renderSlot(_ctx.$slots, "default", {}, () => [_cache[1] || (_cache[1] = vue.createTextVNode("按钮", -1))])], 10, _hoisted_1$o);
31
+ }, [vue.renderSlot(_ctx.$slots, "default", {}, () => [_cache[1] || (_cache[1] = vue.createTextVNode("按钮", -1))])], 10, _hoisted_1$p);
32
32
  };
33
33
  }
34
34
  });
@@ -79,10 +79,10 @@
79
79
  }
80
80
  }
81
81
 
82
- const _hoisted_1$n = ["viewBox"];
83
- const _hoisted_2$h = ["textContent"];
84
- const _hoisted_3$a = ["d"];
85
- var _sfc_main$E = vue.defineComponent({
82
+ const _hoisted_1$o = ["viewBox"];
83
+ const _hoisted_2$i = ["textContent"];
84
+ const _hoisted_3$b = ["d"];
85
+ var _sfc_main$F = vue.defineComponent({
86
86
  __name: "icon",
87
87
  props: {
88
88
  title: {},
@@ -150,24 +150,24 @@
150
150
  onClick: _cache[0] || (_cache[0] = evt => emits("click", evt))
151
151
  }), [vue.createElementVNode("title", {
152
152
  textContent: vue.toDisplayString(__props.title || "")
153
- }, null, 8, _hoisted_2$h), __props.custom == true ? vue.renderSlot(_ctx.$slots, "default", {
153
+ }, null, 8, _hoisted_2$i), __props.custom == true ? vue.renderSlot(_ctx.$slots, "default", {
154
154
  key: 0
155
155
  }) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
156
156
  key: 1
157
157
  }, vue.renderList(vue.unref(getBuiltinIcon)(__props.type), d => {
158
158
  return vue.openBlock(), vue.createElementBlock("path", {
159
159
  d
160
- }, null, 8, _hoisted_3$a);
161
- }), 256))], 16, _hoisted_1$n);
160
+ }, null, 8, _hoisted_3$b);
161
+ }), 256))], 16, _hoisted_1$o);
162
162
  };
163
163
  }
164
164
  });
165
165
 
166
- const _hoisted_1$m = ["title", "onClick"];
167
- const _hoisted_2$g = ["type", "checked"];
168
- const _hoisted_3$9 = ["textContent"];
169
- const _hoisted_4$6 = ["textContent"];
170
- var _sfc_main$D = vue.defineComponent({
166
+ const _hoisted_1$n = ["title", "onClick"];
167
+ const _hoisted_2$h = ["type", "checked"];
168
+ const _hoisted_3$a = ["textContent"];
169
+ const _hoisted_4$7 = ["textContent"];
170
+ var _sfc_main$E = vue.defineComponent({
171
171
  ...{
172
172
  name: "Choose",
173
173
  inheritAttrs: true
@@ -243,10 +243,10 @@
243
243
  key: 0,
244
244
  type: vue.unref(type),
245
245
  checked: node.selected
246
- }, null, 8, _hoisted_2$g)) : vue.unref(mode) == "beautiful" ? (vue.openBlock(), vue.createElementBlock("div", {
246
+ }, null, 8, _hoisted_2$h)) : vue.unref(mode) == "beautiful" ? (vue.openBlock(), vue.createElementBlock("div", {
247
247
  key: 1,
248
248
  class: vue.normalizeClass(["status", [node.selected ? "selected" : ""]])
249
- }, [node.selected ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
249
+ }, [node.selected ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
250
250
  key: 0,
251
251
  type: "success",
252
252
  size: 12,
@@ -255,17 +255,17 @@
255
255
  key: 2,
256
256
  class: "item-text",
257
257
  textContent: vue.toDisplayString(node.item.text)
258
- }, null, 8, _hoisted_3$9)) : vue.createCommentVNode("", true), node.item.description ? (vue.openBlock(), vue.createElementBlock("span", {
258
+ }, null, 8, _hoisted_3$a)) : vue.createCommentVNode("", true), node.item.description ? (vue.openBlock(), vue.createElementBlock("span", {
259
259
  key: 3,
260
260
  class: "item-des",
261
261
  textContent: vue.toDisplayString(node.item.description)
262
- }, null, 8, _hoisted_4$6)) : vue.createCommentVNode("", true)], 14, _hoisted_1$m);
262
+ }, null, 8, _hoisted_4$7)) : vue.createCommentVNode("", true)], 14, _hoisted_1$n);
263
263
  }), 128))], 2);
264
264
  };
265
265
  }
266
266
  });
267
267
 
268
- var _sfc_main$C = vue.defineComponent({
268
+ var _sfc_main$D = vue.defineComponent({
269
269
  ...{
270
270
  name: "Footer",
271
271
  inheritAttrs: true
@@ -296,13 +296,13 @@
296
296
  class: vue.normalizeClass(["snail-footer", {
297
297
  "start-divider": __props.divider
298
298
  }, __props.align || "right"])
299
- }, [vue.renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
299
+ }, [vue.renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
300
300
  key: 0,
301
301
  size: "max",
302
302
  type: "default",
303
303
  onClick: _cache[0] || (_cache[0] = $event => emits("cancel")),
304
304
  textContent: vue.toDisplayString(__props.cancelName || "取消")
305
- }, null, 8, ["textContent"])) : vue.createCommentVNode("", true), __props.confirmDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
305
+ }, null, 8, ["textContent"])) : vue.createCommentVNode("", true), __props.confirmDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
306
306
  key: 1,
307
307
  size: "max",
308
308
  type: "primary",
@@ -313,8 +313,8 @@
313
313
  }
314
314
  });
315
315
 
316
- const _hoisted_1$l = ["textContent"];
317
- var _sfc_main$B = vue.defineComponent({
316
+ const _hoisted_1$m = ["textContent"];
317
+ var _sfc_main$C = vue.defineComponent({
318
318
  ...{
319
319
  name: "Header",
320
320
  inheritAttrs: true
@@ -353,7 +353,7 @@
353
353
  key: 0,
354
354
  textContent: vue.toDisplayString(__props.title),
355
355
  class: vue.normalizeClass(["header-title", __props.titleAlign])
356
- }, null, 10, _hoisted_1$l)) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
356
+ }, null, 10, _hoisted_1$m)) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
357
357
  key: 1,
358
358
  class: "close-icon",
359
359
  type: "close",
@@ -366,18 +366,18 @@
366
366
  }
367
367
  });
368
368
 
369
- const _hoisted_1$k = ["textContent"];
370
- const _hoisted_2$f = {
369
+ const _hoisted_1$l = ["textContent"];
370
+ const _hoisted_2$g = {
371
371
  key: 0,
372
372
  class: "required",
373
373
  textContent: "*"
374
374
  };
375
- const _hoisted_3$8 = {
375
+ const _hoisted_3$9 = {
376
376
  class: "input-body"
377
377
  };
378
- const _hoisted_4$5 = ["type", "value", "readonly", "placeholder", "title"];
378
+ const _hoisted_4$6 = ["type", "value", "readonly", "placeholder", "title"];
379
379
  const _hoisted_5$3 = ["title"];
380
- var _sfc_main$A = vue.defineComponent({
380
+ var _sfc_main$B = vue.defineComponent({
381
381
  ...{
382
382
  name: "Input",
383
383
  inheritAttrs: true
@@ -429,7 +429,7 @@
429
429
  }, [vue.createElementVNode("span", {
430
430
  class: "text",
431
431
  textContent: vue.toDisplayString(__props.title)
432
- }, null, 8, _hoisted_1$k), __props.readonly != true && __props.required == true ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$f)) : vue.createCommentVNode("", true)], 4)) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_3$8, [vue.createElementVNode("input", {
432
+ }, null, 8, _hoisted_1$l), __props.readonly != true && __props.required == true ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$g)) : vue.createCommentVNode("", true)], 4)) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_3$9, [vue.createElementVNode("input", {
433
433
  ref: "input-el",
434
434
  type: __props.type || "text",
435
435
  value: inputModel.value,
@@ -438,11 +438,11 @@
438
438
  title: inputModel.value,
439
439
  onChange: onValueChange,
440
440
  onClick: _cache[0] || (_cache[0] = $event => emits("click"))
441
- }, null, 40, _hoisted_4$5), !!validateRef.value ? (vue.openBlock(), vue.createElementBlock("span", {
441
+ }, null, 40, _hoisted_4$6), !!validateRef.value ? (vue.openBlock(), vue.createElementBlock("span", {
442
442
  key: 0,
443
443
  class: "validate",
444
444
  title: validateRef.value
445
- }, [vue.createVNode(_sfc_main$E, {
445
+ }, [vue.createVNode(_sfc_main$F, {
446
446
  type: "error",
447
447
  button: "",
448
448
  size: 16,
@@ -652,20 +652,20 @@
652
652
  return formatter;
653
653
  }
654
654
 
655
- const _hoisted_1$j = {
655
+ const _hoisted_1$k = {
656
656
  key: 0,
657
657
  class: "number-prefix"
658
658
  };
659
- const _hoisted_2$e = ["textContent"];
660
- const _hoisted_3$7 = ["inputmode", "placeholder", "title"];
661
- const _hoisted_4$4 = {
659
+ const _hoisted_2$f = ["textContent"];
660
+ const _hoisted_3$8 = ["inputmode", "placeholder", "title"];
661
+ const _hoisted_4$5 = {
662
662
  key: 1,
663
663
  class: "number-suffix"
664
664
  };
665
665
  const _hoisted_5$2 = ["textContent"];
666
666
  const _hoisted_6$2 = ["title", "textContent"];
667
667
  const _hoisted_7$1 = ["title", "textContent"];
668
- var _sfc_main$z = vue.defineComponent({
668
+ var _sfc_main$A = vue.defineComponent({
669
669
  __name: "number",
670
670
  props: vue.mergeModels({
671
671
  placeholder: {},
@@ -812,10 +812,10 @@
812
812
  "has-prefix": vue.unref(hasPrefix),
813
813
  "has-suffix": vue.unref(hasSuffix)
814
814
  }])
815
- }, [vue.unref(hasPrefix) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [vue.createElementVNode("span", {
815
+ }, [vue.unref(hasPrefix) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [vue.createElementVNode("span", {
816
816
  class: "ellipsis",
817
817
  textContent: vue.toDisplayString(vue.unref(prefix))
818
- }, null, 8, _hoisted_2$e)])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
818
+ }, null, 8, _hoisted_2$f)])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
819
819
  class: vue.normalizeClass(["input-panel", vue.unref(controls)])
820
820
  }, [vue.withDirectives(vue.createElementVNode("input", {
821
821
  type: "text",
@@ -827,19 +827,19 @@
827
827
  onFocus: _cache[1] || (_cache[1] = $event => vue.isRef(needBackSection) ? needBackSection.value = true : needBackSection = true),
828
828
  onPaste: _cache[2] || (_cache[2] = $event => vue.isRef(needBackSection) ? needBackSection.value = false : needBackSection = false),
829
829
  onBlur: _cache[3] || (_cache[3] = $event => formatOnEnd(true))
830
- }, null, 40, _hoisted_3$7), [[vue.vModelText, displayValueRef.value]]), vue.unref(controls) == "default" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
830
+ }, null, 40, _hoisted_3$8), [[vue.vModelText, displayValueRef.value]]), vue.unref(controls) == "default" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
831
831
  key: 0
832
832
  }, [vue.createElementVNode("div", {
833
833
  class: "controls default subtract",
834
834
  onClick: _cache[4] || (_cache[4] = $event => onStepClick(false))
835
- }, [vue.createVNode(_sfc_main$E, {
835
+ }, [vue.createVNode(_sfc_main$F, {
836
836
  type: "subtract",
837
837
  button: "",
838
838
  size: 20
839
839
  })]), vue.createElementVNode("div", {
840
840
  class: "controls default plus",
841
841
  onClick: _cache[5] || (_cache[5] = $event => onStepClick(true))
842
- }, [vue.createVNode(_sfc_main$E, {
842
+ }, [vue.createVNode(_sfc_main$F, {
843
843
  type: "plus",
844
844
  button: "",
845
845
  size: 20
@@ -848,7 +848,7 @@
848
848
  }, [vue.createElementVNode("div", {
849
849
  class: "controls right plus",
850
850
  onClick: _cache[6] || (_cache[6] = $event => onStepClick(true))
851
- }, [vue.createVNode(_sfc_main$E, {
851
+ }, [vue.createVNode(_sfc_main$F, {
852
852
  type: "arrow",
853
853
  button: "",
854
854
  size: 20,
@@ -856,12 +856,12 @@
856
856
  })]), vue.createElementVNode("div", {
857
857
  class: "controls right subtract",
858
858
  onClick: _cache[7] || (_cache[7] = $event => onStepClick(false))
859
- }, [vue.createVNode(_sfc_main$E, {
859
+ }, [vue.createVNode(_sfc_main$F, {
860
860
  type: "arrow",
861
861
  button: "",
862
862
  size: 20,
863
863
  rotate: 90
864
- })])], 64)) : vue.createCommentVNode("", true)], 2), vue.unref(hasSuffix) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [vue.createElementVNode("span", {
864
+ })])], 64)) : vue.createCommentVNode("", true)], 2), vue.unref(hasSuffix) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$5, [vue.createElementVNode("span", {
865
865
  class: "ellipsis",
866
866
  textContent: vue.toDisplayString(vue.unref(suffix))
867
867
  }, null, 8, _hoisted_5$2)])) : vue.createCommentVNode("", true), vue.unref(upper) ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -879,8 +879,8 @@
879
879
  }
880
880
  });
881
881
 
882
- const _hoisted_1$i = ["placeholder", "readonly"];
883
- var _sfc_main$y = vue.defineComponent({
882
+ const _hoisted_1$j = ["placeholder", "readonly"];
883
+ var _sfc_main$z = vue.defineComponent({
884
884
  ...{
885
885
  name: "Search",
886
886
  inheritAttrs: true
@@ -925,9 +925,9 @@
925
925
  readonly: __props.readonly,
926
926
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => textModel.value = $event),
927
927
  onKeyup: _cache[1] || (_cache[1] = $event => onSearch($event))
928
- }, null, 40, _hoisted_1$i), [[vue.vModelText, textModel.value, void 0, {
928
+ }, null, 40, _hoisted_1$j), [[vue.vModelText, textModel.value, void 0, {
929
929
  trim: true
930
- }]]), vue.createElementVNode("div", null, [vue.createVNode(_sfc_main$E, {
930
+ }]]), vue.createElementVNode("div", null, [vue.createVNode(_sfc_main$F, {
931
931
  class: "search-button",
932
932
  custom: "",
933
933
  button: "",
@@ -1152,11 +1152,11 @@
1152
1152
  }
1153
1153
  }
1154
1154
 
1155
- const _hoisted_1$h = {
1155
+ const _hoisted_1$i = {
1156
1156
  class: "snail-confirm flex-column"
1157
1157
  };
1158
- const _hoisted_2$d = ["innerHTML"];
1159
- var _sfc_main$x = vue.defineComponent({
1158
+ const _hoisted_2$e = ["innerHTML"];
1159
+ var _sfc_main$y = vue.defineComponent({
1160
1160
  ...{
1161
1161
  name: "ConfirmContainer",
1162
1162
  inheritAttrs: true
@@ -1184,14 +1184,14 @@
1184
1184
  },
1185
1185
  setup(__props) {
1186
1186
  return (_ctx, _cache) => {
1187
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [vue.createVNode(_sfc_main$B, {
1187
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [vue.createVNode(_sfc_main$C, {
1188
1188
  "use-to": "dialog",
1189
1189
  title: __props.title || "提示",
1190
1190
  onClose: _cache[0] || (_cache[0] = $event => __props.closePopup(false))
1191
1191
  }, null, 8, ["title"]), vue.createElementVNode("div", {
1192
1192
  class: "confirm-body",
1193
1193
  innerHTML: __props.message || "请确认?"
1194
- }, null, 8, _hoisted_2$d), vue.createVNode(_sfc_main$C, {
1194
+ }, null, 8, _hoisted_2$e), vue.createVNode(_sfc_main$D, {
1195
1195
  align: "right",
1196
1196
  "cancel-name": __props.cancelName,
1197
1197
  "cancel-disabled": __props.cancelDisabled,
@@ -1252,7 +1252,7 @@
1252
1252
  });
1253
1253
  for (var key in MOTION) snail_core.hasOwnProperty(MOTION, key) && Object.freeze(MOTION[key]);
1254
1254
 
1255
- var _sfc_main$w = vue.defineComponent({
1255
+ var _sfc_main$x = vue.defineComponent({
1256
1256
  __name: "motion",
1257
1257
  props: {
1258
1258
  multiple: {
@@ -1301,7 +1301,7 @@
1301
1301
  }
1302
1302
  });
1303
1303
 
1304
- var _sfc_main$v = vue.defineComponent({
1304
+ var _sfc_main$w = vue.defineComponent({
1305
1305
  ...{
1306
1306
  name: "Loading",
1307
1307
  inheritAttrs: true
@@ -1325,7 +1325,7 @@
1325
1325
  },
1326
1326
  setup(__props) {
1327
1327
  return (_ctx, _cache) => {
1328
- return vue.openBlock(), vue.createBlock(_sfc_main$w, {
1328
+ return vue.openBlock(), vue.createBlock(_sfc_main$x, {
1329
1329
  effect: vue.unref(MOTION).fade
1330
1330
  }, {
1331
1331
  default: vue.withCtx(() => [__props.show ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -1340,7 +1340,7 @@
1340
1340
  }
1341
1341
  });
1342
1342
 
1343
- var _sfc_main$u = vue.defineComponent({
1343
+ var _sfc_main$v = vue.defineComponent({
1344
1344
  ...{
1345
1345
  name: "Dynamic",
1346
1346
  inheritAttrs: false
@@ -1364,7 +1364,7 @@
1364
1364
  const loadingComponent = vue.defineComponent({
1365
1365
  inheritAttrs: false,
1366
1366
  components: {
1367
- Loading: _sfc_main$v
1367
+ Loading: _sfc_main$w
1368
1368
  },
1369
1369
  template: "<Loading :mask-disabled='true' />"
1370
1370
  });
@@ -1489,7 +1489,7 @@
1489
1489
  return scope;
1490
1490
  }
1491
1491
 
1492
- var _sfc_main$t = vue.defineComponent({
1492
+ var _sfc_main$u = vue.defineComponent({
1493
1493
  ...{
1494
1494
  name: "Scroll",
1495
1495
  inheritAttrs: false
@@ -1533,7 +1533,7 @@
1533
1533
  }
1534
1534
  });
1535
1535
 
1536
- var _sfc_main$s = vue.defineComponent({
1536
+ var _sfc_main$t = vue.defineComponent({
1537
1537
  __name: "wrapper",
1538
1538
  props: {
1539
1539
  inPopup: {
@@ -1552,7 +1552,7 @@
1552
1552
  return (_ctx, _cache) => {
1553
1553
  return vue.openBlock(), vue.createElementBlock("div", {
1554
1554
  class: vue.normalizeClass(["snail-wrapper", __props.inPopup ? "in-popup" : "in-normal"])
1555
- }, [__props.header && __props.header.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$B, vue.mergeProps({
1555
+ }, [__props.header && __props.header.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$C, vue.mergeProps({
1556
1556
  key: 0
1557
1557
  }, __props.header || {
1558
1558
  useTo: "dialog",
@@ -1560,14 +1560,14 @@
1560
1560
  }, {
1561
1561
  "use-to": (__props.header ? __props.header.useTo : void 0) || (__props.inPopup ? "dialog" : "page"),
1562
1562
  onClose: _cache[0] || (_cache[0] = $event => emits("cancel"))
1563
- }), null, 16, ["use-to"])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$t, vue.mergeProps({
1563
+ }), null, 16, ["use-to"])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$u, vue.mergeProps({
1564
1564
  class: "wrapper-body flex-1"
1565
1565
  }, __props.content || {
1566
1566
  scroll: "none"
1567
1567
  }), {
1568
1568
  default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
1569
1569
  _: 3
1570
- }, 16), __props.footer && __props.footer.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$C, vue.mergeProps({
1570
+ }, 16), __props.footer && __props.footer.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$D, vue.mergeProps({
1571
1571
  key: 1
1572
1572
  }, __props.footer || {}, {
1573
1573
  onCancel: _cache[1] || (_cache[1] = $event => emits("cancel")),
@@ -1577,7 +1577,7 @@
1577
1577
  }
1578
1578
  });
1579
1579
 
1580
- var _sfc_main$r = vue.defineComponent({
1580
+ var _sfc_main$s = vue.defineComponent({
1581
1581
  ...{
1582
1582
  name: "DialogContainer",
1583
1583
  inheritAttrs: true
@@ -1636,7 +1636,7 @@
1636
1636
  onClick: _cache[3] || (_cache[3] = vue.withModifiers($event => {
1637
1637
  __props.options.closeOnMask && vue.unref(closePopup)();
1638
1638
  }, ["self"]))
1639
- }, [__props.options.wrapper == void 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$u, vue.mergeProps({
1639
+ }, [__props.options.wrapper == void 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$v, vue.mergeProps({
1640
1640
  key: 0,
1641
1641
  class: "dialog-body",
1642
1642
  name: __props.options.name,
@@ -1647,7 +1647,7 @@
1647
1647
  "popup-status": __props.popupStatus.value,
1648
1648
  modelValue: vue.unref(model),
1649
1649
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => vue.isRef(model) ? model.value = $event : null)
1650
- }), null, 16, ["name", "component", "url", "props", "popup-status", "modelValue"])) : (vue.openBlock(), vue.createBlock(_sfc_main$s, vue.mergeProps({
1650
+ }), null, 16, ["name", "component", "url", "props", "popup-status", "modelValue"])) : (vue.openBlock(), vue.createBlock(_sfc_main$t, vue.mergeProps({
1651
1651
  key: 1,
1652
1652
  class: "dialog-body dialog-builtin",
1653
1653
  "in-popup": true
@@ -1655,7 +1655,7 @@
1655
1655
  onCancel: _cache[2] || (_cache[2] = $event => vue.unref(closePopup)()),
1656
1656
  onConfirm: onWrapperConfirm
1657
1657
  }), {
1658
- default: vue.withCtx(() => [vue.createVNode(_sfc_main$u, vue.mergeProps({
1658
+ default: vue.withCtx(() => [vue.createVNode(_sfc_main$v, vue.mergeProps({
1659
1659
  name: __props.options.name,
1660
1660
  component: __props.options.component,
1661
1661
  url: __props.options.url,
@@ -1672,7 +1672,7 @@
1672
1672
  }
1673
1673
  });
1674
1674
 
1675
- var _sfc_main$q = vue.defineComponent({
1675
+ var _sfc_main$r = vue.defineComponent({
1676
1676
  ...{
1677
1677
  name: "FollowContainer",
1678
1678
  inheritAttrs: true
@@ -1793,7 +1793,7 @@
1793
1793
  });
1794
1794
  });
1795
1795
  return (_ctx, _cache) => {
1796
- return vue.openBlock(), vue.createBlock(_sfc_main$u, vue.mergeProps({
1796
+ return vue.openBlock(), vue.createBlock(_sfc_main$v, vue.mergeProps({
1797
1797
  class: ["snail-follow initial", [__props.popupStatus.value, __props.popupTransition.value]],
1798
1798
  style: {
1799
1799
  "z-index": __props.zIndex
@@ -1810,7 +1810,7 @@
1810
1810
  }
1811
1811
  });
1812
1812
 
1813
- var _sfc_main$p = vue.defineComponent({
1813
+ var _sfc_main$q = vue.defineComponent({
1814
1814
  ...{
1815
1815
  name: "PopupContainer",
1816
1816
  inheritAttrs: true
@@ -1830,7 +1830,7 @@
1830
1830
  model = vue.shallowRef(void 0)
1831
1831
  } = __props.options;
1832
1832
  return (_ctx, _cache) => {
1833
- return vue.openBlock(), vue.createBlock(_sfc_main$u, vue.mergeProps({
1833
+ return vue.openBlock(), vue.createBlock(_sfc_main$v, vue.mergeProps({
1834
1834
  class: ["snail-popup", [__props.popupStatus.value, __props.popupTransition.value]],
1835
1835
  style: {
1836
1836
  "z-index": __props.zIndex
@@ -1848,12 +1848,12 @@
1848
1848
  }
1849
1849
  });
1850
1850
 
1851
- const _hoisted_1$g = {
1851
+ const _hoisted_1$h = {
1852
1852
  key: 1,
1853
1853
  class: "icon"
1854
1854
  };
1855
- const _hoisted_2$c = ["innerHTML"];
1856
- var _sfc_main$o = vue.defineComponent({
1855
+ const _hoisted_2$d = ["innerHTML"];
1856
+ var _sfc_main$p = vue.defineComponent({
1857
1857
  ...{
1858
1858
  name: "ToastContainer",
1859
1859
  inheritAttrs: true
@@ -1890,7 +1890,7 @@
1890
1890
  }),
1891
1891
  onMouseenter: _cache[1] || (_cache[1] = $event => onMouseEvent(false)),
1892
1892
  onMouseleave: _cache[2] || (_cache[2] = $event => onMouseEvent(true))
1893
- }, [vue.unref(props).closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
1893
+ }, [vue.unref(props).closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
1894
1894
  key: 0,
1895
1895
  class: "close-icon",
1896
1896
  type: "close",
@@ -1901,21 +1901,21 @@
1901
1901
  onClick: _cache[0] || (_cache[0] = $event => {
1902
1902
  vue.unref(closePopup)();
1903
1903
  })
1904
- })) : vue.createCommentVNode("", true), vue.unref(props).type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [vue.createVNode(_sfc_main$E, {
1904
+ })) : vue.createCommentVNode("", true), vue.unref(props).type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [vue.createVNode(_sfc_main$F, {
1905
1905
  type: vue.unref(props).type,
1906
1906
  color: "#707070",
1907
1907
  size: 20
1908
1908
  }, null, 8, ["type"])])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
1909
1909
  class: "message",
1910
1910
  innerHTML: vue.unref(props).message
1911
- }, null, 8, _hoisted_2$c)], 38);
1911
+ }, null, 8, _hoisted_2$d)], 38);
1912
1912
  };
1913
1913
  }
1914
1914
  });
1915
1915
 
1916
1916
  function usePopup() {
1917
1917
  function popup(options) {
1918
- const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$p, options);
1918
+ const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$q, options);
1919
1919
  return addScope2Scopes(scope);
1920
1920
  }
1921
1921
  function dialog(options) {
@@ -1948,7 +1948,7 @@
1948
1948
  },
1949
1949
  onBeforeClose: fn => hook.register("onBeforeClose", fn)
1950
1950
  });
1951
- const descriptor = openPopup(_sfc_main$r, options, extOptions);
1951
+ const descriptor = openPopup(_sfc_main$s, options, extOptions);
1952
1952
  scope = snail_core.useAsyncScope(deferred.promise);
1953
1953
  monitorDialog(descriptor, scope, deferred);
1954
1954
  }
@@ -1966,14 +1966,14 @@
1966
1966
  inPopup: "follow",
1967
1967
  target
1968
1968
  };
1969
- scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$q, options, extOptions);
1969
+ scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$r, options, extOptions);
1970
1970
  }
1971
1971
  return addScope2Scopes(scope);
1972
1972
  }
1973
1973
  function confirm(title, message, options) {
1974
1974
  options = options || Object.create(null);
1975
1975
  return dialog({
1976
- component: _sfc_main$x,
1976
+ component: _sfc_main$y,
1977
1977
  closeOnEscape: true,
1978
1978
  props: {
1979
1979
  ...options,
@@ -1983,7 +1983,7 @@
1983
1983
  });
1984
1984
  }
1985
1985
  function toast(type, message, options) {
1986
- return popupInCustomContainer(_sfc_main$o, {
1986
+ return popupInCustomContainer(_sfc_main$p, {
1987
1987
  url: "#ToastContainer",
1988
1988
  props: {
1989
1989
  ...(options || Object.create(null)),
@@ -2016,7 +2016,7 @@
2016
2016
  },
2017
2017
  ...extOptions
2018
2018
  });
2019
- const descriptor = openPopup(container || _sfc_main$p, options, extOptions);
2019
+ const descriptor = openPopup(container || _sfc_main$q, options, extOptions);
2020
2020
  const scope = snail_core.useAsyncScope(deferred.promise);
2021
2021
  scope.onDestroy(() => destroyPopup(descriptor, deferred));
2022
2022
  return scope;
@@ -2151,12 +2151,12 @@
2151
2151
  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==";
2152
2152
  }
2153
2153
 
2154
- const _hoisted_1$f = {
2154
+ const _hoisted_1$g = {
2155
2155
  class: "snail-empty"
2156
2156
  };
2157
- const _hoisted_2$b = ["src"];
2158
- const _hoisted_3$6 = ["textContent"];
2159
- var _sfc_main$n = vue.defineComponent({
2157
+ const _hoisted_2$c = ["src"];
2158
+ const _hoisted_3$7 = ["textContent"];
2159
+ var _sfc_main$o = vue.defineComponent({
2160
2160
  ...{
2161
2161
  name: "Empty",
2162
2162
  inheritAttrs: true
@@ -2169,23 +2169,23 @@
2169
2169
  setup(__props) {
2170
2170
  const defaultImageBase64 = getNoDataBase64Image();
2171
2171
  return (_ctx, _cache) => {
2172
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [vue.createElementVNode("img", {
2172
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [vue.createElementVNode("img", {
2173
2173
  src: __props.imageUrl || vue.unref(defaultImageBase64)
2174
- }, null, 8, _hoisted_2$b), vue.renderSlot(_ctx.$slots, "default", {}, () => [vue.createElementVNode("div", {
2174
+ }, null, 8, _hoisted_2$c), vue.renderSlot(_ctx.$slots, "default", {}, () => [vue.createElementVNode("div", {
2175
2175
  class: "message",
2176
2176
  textContent: vue.toDisplayString(__props.message || "无数据")
2177
- }, null, 8, _hoisted_3$6)])]);
2177
+ }, null, 8, _hoisted_3$7)])]);
2178
2178
  };
2179
2179
  }
2180
2180
  });
2181
2181
 
2182
- const _hoisted_1$e = ["title"];
2183
- const _hoisted_2$a = ["textContent"];
2184
- const _hoisted_3$5 = {
2182
+ const _hoisted_1$f = ["title"];
2183
+ const _hoisted_2$b = ["textContent"];
2184
+ const _hoisted_3$6 = {
2185
2185
  key: 1,
2186
2186
  class: "select-status"
2187
2187
  };
2188
- var _sfc_main$m = vue.defineComponent({
2188
+ var _sfc_main$n = vue.defineComponent({
2189
2189
  ...{
2190
2190
  name: "SelectNode",
2191
2191
  inheritAttrs: true
@@ -2230,15 +2230,15 @@
2230
2230
  }, [vue.createElementVNode("div", {
2231
2231
  class: "item-text ellipsis",
2232
2232
  textContent: vue.toDisplayString(__props.item.text)
2233
- }, null, 8, _hoisted_2$a), __props.item.type == "group" ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
2233
+ }, null, 8, _hoisted_2$b), __props.item.type == "group" ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
2234
2234
  key: 0,
2235
2235
  type: "arrow"
2236
- })) : __props.multiple == true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, [vue.createVNode(_sfc_main$E, {
2236
+ })) : __props.multiple == true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$6, [vue.createVNode(_sfc_main$F, {
2237
2237
  type: "success",
2238
2238
  button: "",
2239
2239
  size: 12,
2240
2240
  color: "white"
2241
- })])) : vue.createCommentVNode("", true)], 42, _hoisted_1$e)) : vue.createCommentVNode("", true), showRef.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
2241
+ })])) : vue.createCommentVNode("", true)], 42, _hoisted_1$f)) : vue.createCommentVNode("", true), showRef.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
2242
2242
  key: 1
2243
2243
  }, vue.renderList(vue.unref(showChildrenRef), child => {
2244
2244
  return vue.openBlock(), vue.createBlock(_component_SelectNode, {
@@ -2255,7 +2255,7 @@
2255
2255
  }
2256
2256
  });
2257
2257
 
2258
- var _sfc_main$l = vue.defineComponent({
2258
+ var _sfc_main$m = vue.defineComponent({
2259
2259
  ...{
2260
2260
  name: "Select2Popup",
2261
2261
  inheritAttrs: true
@@ -2427,13 +2427,13 @@
2427
2427
  key: 0
2428
2428
  }, [vue.createTextVNode(" 暂无选项 ")], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
2429
2429
  key: 1
2430
- }, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$y, vue.mergeProps({
2430
+ }, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$z, vue.mergeProps({
2431
2431
  key: 0
2432
2432
  }, __props.search, {
2433
2433
  onSearch,
2434
2434
  key: "select-search"
2435
2435
  }), null, 16)) : vue.createCommentVNode("", true), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(itemsRef.value, item => {
2436
- return vue.openBlock(), vue.createBlock(_sfc_main$m, {
2436
+ return vue.openBlock(), vue.createBlock(_sfc_main$n, {
2437
2437
  key: vue.unref(context).getKey(item),
2438
2438
  multiple: __props.multiple,
2439
2439
  item,
@@ -2442,7 +2442,7 @@
2442
2442
  onEnter: onEnterSelectNode,
2443
2443
  onClick: onClickSelectNode
2444
2444
  }, null, 8, ["multiple", "item", "context"]);
2445
- }), 128)), itemsRef.value.length == 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$n, {
2445
+ }), 128)), itemsRef.value.length == 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
2446
2446
  key: 1,
2447
2447
  message: "无结果"
2448
2448
  })) : vue.createCommentVNode("", true), showClearButtonRef.value ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -2454,20 +2454,20 @@
2454
2454
  }
2455
2455
  });
2456
2456
 
2457
- const _hoisted_1$d = {
2457
+ const _hoisted_1$e = {
2458
2458
  key: 0,
2459
2459
  class: "select-result"
2460
2460
  };
2461
- const _hoisted_2$9 = ["title", "textContent"];
2462
- const _hoisted_3$4 = ["textContent"];
2463
- const _hoisted_4$3 = {
2461
+ const _hoisted_2$a = ["title", "textContent"];
2462
+ const _hoisted_3$5 = ["textContent"];
2463
+ const _hoisted_4$4 = {
2464
2464
  key: 1,
2465
2465
  class: "placeholder"
2466
2466
  };
2467
2467
  onAppCreated((app, type) => {
2468
- type == "popup" && app.component("SelectPopup", _sfc_main$l);
2468
+ type == "popup" && app.component("SelectPopup", _sfc_main$m);
2469
2469
  });
2470
- var _sfc_main$k = vue.defineComponent({
2470
+ var _sfc_main$l = vue.defineComponent({
2471
2471
  ...{
2472
2472
  name: "Select",
2473
2473
  inheritAttrs: true
@@ -2599,26 +2599,26 @@
2599
2599
  ref: "select"
2600
2600
  }, [__props.items && __props.items.length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
2601
2601
  key: 0
2602
- }, [selectedItemsRef.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))), () => [vue.createElementVNode("div", {
2602
+ }, [selectedItemsRef.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))), () => [vue.createElementVNode("div", {
2603
2603
  class: "select-text ellipsis",
2604
2604
  title: selectedTextRef.value,
2605
2605
  textContent: vue.toDisplayString(selectedTextRef.value)
2606
- }, null, 8, _hoisted_2$9)])])) : (vue.openBlock(), vue.createElementBlock("div", {
2606
+ }, null, 8, _hoisted_2$a)])])) : (vue.openBlock(), vue.createElementBlock("div", {
2607
2607
  key: 1,
2608
2608
  class: "placeholder",
2609
2609
  textContent: vue.toDisplayString(__props.readonly ? "" : __props.placeholder || "请选择")
2610
- }, null, 8, _hoisted_3$4)), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
2610
+ }, null, 8, _hoisted_3$5)), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
2611
2611
  key: 2,
2612
2612
  type: "arrow",
2613
2613
  button: "",
2614
2614
  size: 24,
2615
2615
  rotate: 90
2616
- })) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, "暂无可选项"))], 2);
2616
+ })) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, "暂无可选项"))], 2);
2617
2617
  };
2618
2618
  }
2619
2619
  });
2620
2620
 
2621
- var _sfc_main$j = vue.defineComponent({
2621
+ var _sfc_main$k = vue.defineComponent({
2622
2622
  ...{
2623
2623
  name: "Switch",
2624
2624
  inheritAttrs: true
@@ -2657,7 +2657,7 @@
2657
2657
  return vue.openBlock(), vue.createElementBlock("div", {
2658
2658
  class: vue.normalizeClass(["snail-switch", [switchModel.value ? "on" : "off", __props.readonly ? "readonly" : ""], __props.type || "switch"]),
2659
2659
  onClick: onSwitchChange
2660
- }, [__props.type == "checkbox" || __props.type == "radio" ? vue.withDirectives((vue.openBlock(), vue.createBlock(_sfc_main$E, {
2660
+ }, [__props.type == "checkbox" || __props.type == "radio" ? vue.withDirectives((vue.openBlock(), vue.createBlock(_sfc_main$F, {
2661
2661
  key: 0,
2662
2662
  type: "success",
2663
2663
  color: "white",
@@ -2675,8 +2675,8 @@
2675
2675
  }
2676
2676
  });
2677
2677
 
2678
- const _hoisted_1$c = ["readonly", "placeholder", "rows"];
2679
- var _sfc_main$i = vue.defineComponent({
2678
+ const _hoisted_1$d = ["readonly", "placeholder", "rows"];
2679
+ var _sfc_main$j = vue.defineComponent({
2680
2680
  ...{
2681
2681
  name: "Textarea",
2682
2682
  inheritAttrs: true
@@ -2736,14 +2736,14 @@
2736
2736
  onInput: _cache[2] || (_cache[2] = $event => emits("input", textareaDom.value.value)),
2737
2737
  onBlur: _cache[3] || (_cache[3] = $event => emits("blur", textareaDom.value.value)),
2738
2738
  onChange: _cache[4] || (_cache[4] = $event => emits("change", textareaDom.value.value))
2739
- }, null, 40, _hoisted_1$c)), [[vue.vModelText, valueModel.value]]);
2739
+ }, null, 40, _hoisted_1$d)), [[vue.vModelText, valueModel.value]]);
2740
2740
  };
2741
2741
  }
2742
2742
  });
2743
2743
 
2744
- const _hoisted_1$b = ["onClick"];
2745
- const _hoisted_2$8 = ["textContent"];
2746
- var _sfc_main$h = vue.defineComponent({
2744
+ const _hoisted_1$c = ["onClick"];
2745
+ const _hoisted_2$9 = ["textContent"];
2746
+ var _sfc_main$i = vue.defineComponent({
2747
2747
  __name: "action-items",
2748
2748
  props: {
2749
2749
  mode: {},
@@ -2781,7 +2781,7 @@
2781
2781
  "--hcolor": vue.unref(snail_core.correctString)(action.hoverColor, null, true)
2782
2782
  }),
2783
2783
  onClick: $event => onActionItemClick(action.code)
2784
- }, [action.icon != void 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$E, vue.mergeProps({
2784
+ }, [action.icon != void 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$F, vue.mergeProps({
2785
2785
  key: 0,
2786
2786
  ref_for: true
2787
2787
  }, action.icon, {
@@ -2790,20 +2790,20 @@
2790
2790
  }), null, 16)) : vue.createCommentVNode("", true), vue.createElementVNode("span", {
2791
2791
  class: "ellipsis",
2792
2792
  textContent: vue.toDisplayString(action.name)
2793
- }, null, 8, _hoisted_2$8)], 12, _hoisted_1$b);
2793
+ }, null, 8, _hoisted_2$9)], 12, _hoisted_1$c);
2794
2794
  }), 128))], 2);
2795
2795
  };
2796
2796
  }
2797
2797
  });
2798
2798
 
2799
- const _hoisted_1$a = {
2799
+ const _hoisted_1$b = {
2800
2800
  class: "snail-action flex-cross-center",
2801
2801
  ref: "snail-action"
2802
2802
  };
2803
- const _hoisted_2$7 = {
2803
+ const _hoisted_2$8 = {
2804
2804
  class: "action-slot flex-cross-center"
2805
2805
  };
2806
- var _sfc_main$g = vue.defineComponent({
2806
+ var _sfc_main$h = vue.defineComponent({
2807
2807
  __name: "action",
2808
2808
  props: {
2809
2809
  disabled: {
@@ -2841,7 +2841,7 @@
2841
2841
  popupScopeRef.value.destroy();
2842
2842
  } else if (props.disabled != true) {
2843
2843
  popupScopeRef.value = follow(rootDom.value, {
2844
- component: _sfc_main$h,
2844
+ component: _sfc_main$i,
2845
2845
  closeOnEscape: true,
2846
2846
  closeOnMask: true,
2847
2847
  closeOnResize: true,
@@ -2892,12 +2892,12 @@
2892
2892
  }
2893
2893
  });
2894
2894
  return (_ctx, _cache) => {
2895
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [vue.createElementVNode("div", _hoisted_2$7, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotHandle))))]), __props.disabled != true && (__props.trigger == "hover" || __props.trigger == "always") ? (vue.openBlock(), vue.createElementBlock("div", {
2895
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [vue.createElementVNode("div", _hoisted_2$8, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotHandle))))]), __props.disabled != true && (__props.trigger == "hover" || __props.trigger == "always") ? (vue.openBlock(), vue.createElementBlock("div", {
2896
2896
  key: 0,
2897
2897
  class: vue.normalizeClass(["trigger-area", {
2898
2898
  hidden: __props.trigger == "hover"
2899
2899
  }])
2900
- }, [vue.renderSlot(_ctx.$slots, "trigger", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotHandle))), () => [vue.createVNode(_sfc_main$E, {
2900
+ }, [vue.renderSlot(_ctx.$slots, "trigger", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotHandle))), () => [vue.createVNode(_sfc_main$F, {
2901
2901
  button: "",
2902
2902
  type: "more",
2903
2903
  size: 16,
@@ -2907,7 +2907,7 @@
2907
2907
  }
2908
2908
  });
2909
2909
 
2910
- var _sfc_main$f = vue.defineComponent({
2910
+ var _sfc_main$g = vue.defineComponent({
2911
2911
  ...{
2912
2912
  name: "Elastic",
2913
2913
  inheritAttrs: false
@@ -3113,7 +3113,7 @@
3113
3113
  }
3114
3114
  });
3115
3115
 
3116
- var _sfc_main$e = vue.defineComponent({
3116
+ var _sfc_main$f = vue.defineComponent({
3117
3117
  ...{
3118
3118
  name: "Flex",
3119
3119
  inheritAttrs: false
@@ -3208,13 +3208,13 @@
3208
3208
  }
3209
3209
  });
3210
3210
 
3211
- const _hoisted_1$9 = ["textContent"];
3212
- const _hoisted_2$6 = ["textContent"];
3213
- const _hoisted_3$3 = {
3211
+ const _hoisted_1$a = ["textContent"];
3212
+ const _hoisted_2$7 = ["textContent"];
3213
+ const _hoisted_3$4 = {
3214
3214
  key: 1,
3215
3215
  class: "status"
3216
3216
  };
3217
- var _sfc_main$d = vue.defineComponent({
3217
+ var _sfc_main$e = vue.defineComponent({
3218
3218
  ...{
3219
3219
  name: "Fold",
3220
3220
  inheritAttrs: true
@@ -3306,11 +3306,11 @@
3306
3306
  }, [vue.renderSlot(_ctx.$slots, "header", vue.normalizeProps(vue.guardReactiveProps(slotHandle)), () => [vue.createElementVNode("div", {
3307
3307
  class: "title ellipsis",
3308
3308
  textContent: vue.toDisplayString(__props.title)
3309
- }, null, 8, _hoisted_1$9), !!__props.subtitle ? (vue.openBlock(), vue.createElementBlock("div", {
3309
+ }, null, 8, _hoisted_1$a), !!__props.subtitle ? (vue.openBlock(), vue.createElementBlock("div", {
3310
3310
  key: 0,
3311
3311
  class: "subtitle ellipsis",
3312
3312
  textContent: vue.toDisplayString(__props.subtitle)
3313
- }, null, 8, _hoisted_2$6)) : vue.createCommentVNode("", true), __props.disabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, [vue.createVNode(_sfc_main$E, {
3313
+ }, null, 8, _hoisted_2$7)) : vue.createCommentVNode("", true), __props.disabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, [vue.createVNode(_sfc_main$F, {
3314
3314
  type: "arrow",
3315
3315
  button: "",
3316
3316
  title: statusModel.value == "expand" ? "收起" : "展开",
@@ -3324,7 +3324,7 @@
3324
3324
  }
3325
3325
  });
3326
3326
 
3327
- var _sfc_main$c = vue.defineComponent({
3327
+ var _sfc_main$d = vue.defineComponent({
3328
3328
  __name: "layout",
3329
3329
  props: {
3330
3330
  direction: {},
@@ -3401,7 +3401,7 @@
3401
3401
  key: item
3402
3402
  }, [areaMap.value[item] && _ctx.$slots[item] ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
3403
3403
  key: 0
3404
- }, [areaMap.value[item].scrollable ? (vue.openBlock(), vue.createBlock(_sfc_main$t, vue.mergeProps({
3404
+ }, [areaMap.value[item].scrollable ? (vue.openBlock(), vue.createBlock(_sfc_main$u, vue.mergeProps({
3405
3405
  key: 0,
3406
3406
  class: areaMap.value[item].class,
3407
3407
  style: areaMap.value[item].style
@@ -3420,7 +3420,7 @@
3420
3420
  }
3421
3421
  });
3422
3422
 
3423
- var _sfc_main$b = vue.defineComponent({
3423
+ var _sfc_main$c = vue.defineComponent({
3424
3424
  ...{
3425
3425
  name: "Sort",
3426
3426
  inheritAttrs: true
@@ -3521,10 +3521,10 @@
3521
3521
  }
3522
3522
  });
3523
3523
 
3524
- const _hoisted_1$8 = {
3524
+ const _hoisted_1$9 = {
3525
3525
  class: "table-body"
3526
3526
  };
3527
- var _sfc_main$a = vue.defineComponent({
3527
+ var _sfc_main$b = vue.defineComponent({
3528
3528
  ...{
3529
3529
  name: "Table",
3530
3530
  inheritAttrs: true
@@ -3544,7 +3544,7 @@
3544
3544
  const hStyleRef = vue.computed(() => snail_view.css.buildStyle(props.headerStyle));
3545
3545
  const fStyleRef = vue.computed(() => snail_view.css.buildStyle(props.footerStyle));
3546
3546
  return (_ctx, _cache) => {
3547
- return vue.openBlock(), vue.createBlock(_sfc_main$t, {
3547
+ return vue.openBlock(), vue.createBlock(_sfc_main$u, {
3548
3548
  class: vue.normalizeClass(["snail-table", {
3549
3549
  "start-border": __props.border == true
3550
3550
  }]),
@@ -3554,7 +3554,7 @@
3554
3554
  default: vue.withCtx(() => [vue.createElementVNode("div", {
3555
3555
  class: "table-header",
3556
3556
  style: vue.normalizeStyle(hStyleRef.value)
3557
- }, [vue.renderSlot(_ctx.$slots, "header")], 4), vue.createElementVNode("div", _hoisted_1$8, [vue.renderSlot(_ctx.$slots, "default")]), vue.createElementVNode("div", {
3557
+ }, [vue.renderSlot(_ctx.$slots, "header")], 4), vue.createElementVNode("div", _hoisted_1$9, [vue.renderSlot(_ctx.$slots, "default")]), vue.createElementVNode("div", {
3558
3558
  class: "table-footer",
3559
3559
  style: vue.normalizeStyle(fStyleRef.value)
3560
3560
  }, [vue.renderSlot(_ctx.$slots, "footer")], 4)]),
@@ -3564,7 +3564,7 @@
3564
3564
  }
3565
3565
  });
3566
3566
 
3567
- var _sfc_main$9 = vue.defineComponent({
3567
+ var _sfc_main$a = vue.defineComponent({
3568
3568
  ...{
3569
3569
  name: "TableRow",
3570
3570
  inheritAttrs: true
@@ -3587,7 +3587,7 @@
3587
3587
  }
3588
3588
  });
3589
3589
 
3590
- var _sfc_main$8 = vue.defineComponent({
3590
+ var _sfc_main$9 = vue.defineComponent({
3591
3591
  ...{
3592
3592
  name: "TableCol",
3593
3593
  inheritAttrs: true
@@ -3633,19 +3633,19 @@
3633
3633
  }
3634
3634
  });
3635
3635
 
3636
- const _hoisted_1$7 = {
3636
+ const _hoisted_1$8 = {
3637
3637
  key: 0,
3638
3638
  class: "node-fold"
3639
3639
  };
3640
- const _hoisted_2$5 = ["title", "textContent"];
3641
- const _hoisted_3$2 = {
3640
+ const _hoisted_2$6 = ["title", "textContent"];
3641
+ const _hoisted_3$3 = {
3642
3642
  class: "node-slot ellipsis"
3643
3643
  };
3644
- const _hoisted_4$2 = {
3644
+ const _hoisted_4$3 = {
3645
3645
  class: "snail-tree-children",
3646
3646
  ref: "children"
3647
3647
  };
3648
- var _sfc_main$7 = vue.defineComponent({
3648
+ var _sfc_main$8 = vue.defineComponent({
3649
3649
  ...{
3650
3650
  name: "TreeNode",
3651
3651
  inheritAttrs: true
@@ -3753,7 +3753,7 @@
3753
3753
  key: 1
3754
3754
  }, [_cache[5] || (_cache[5] = vue.createElementVNode("div", {
3755
3755
  class: "indent"
3756
- }, null, -1)), __props.options.foldDisabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [showChildrenRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
3756
+ }, null, -1)), __props.options.foldDisabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [showChildrenRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
3757
3757
  key: 0,
3758
3758
  class: vue.normalizeClass(statusRef.value),
3759
3759
  custom: "",
@@ -3768,7 +3768,7 @@
3768
3768
  class: "node-text ellipsis",
3769
3769
  title: __props.node.text,
3770
3770
  textContent: vue.toDisplayString(__props.node.text)
3771
- }, null, 8, _hoisted_2$5), vue.createElementVNode("div", _hoisted_3$2, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))))])], 64))], 34), [[vue.vShow, showRef.value]]), vue.withDirectives(vue.createElementVNode("div", _hoisted_4$2, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.node.children, child => {
3771
+ }, null, 8, _hoisted_2$6), vue.createElementVNode("div", _hoisted_3$3, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))))])], 64))], 34), [[vue.vShow, showRef.value]]), vue.withDirectives(vue.createElementVNode("div", _hoisted_4$3, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.node.children, child => {
3772
3772
  return vue.openBlock(), vue.createBlock(_component_TreeNode, {
3773
3773
  key: __props.context.getKey(child),
3774
3774
  node: child,
@@ -3788,10 +3788,10 @@
3788
3788
  }
3789
3789
  });
3790
3790
 
3791
- const _hoisted_1$6 = {
3791
+ const _hoisted_1$7 = {
3792
3792
  class: "snail-tree"
3793
3793
  };
3794
- var _sfc_main$6 = vue.defineComponent({
3794
+ var _sfc_main$7 = vue.defineComponent({
3795
3795
  ...{
3796
3796
  name: "Tree",
3797
3797
  inheritAttrs: true
@@ -3825,15 +3825,15 @@
3825
3825
  emits("click", node, parents);
3826
3826
  }
3827
3827
  return (_ctx, _cache) => {
3828
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$y, vue.mergeProps({
3828
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$z, vue.mergeProps({
3829
3829
  key: 0
3830
3830
  }, __props.search, {
3831
3831
  onSearch
3832
- }), null, 16)) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$t, {
3832
+ }), null, 16)) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$u, {
3833
3833
  scroll: "y"
3834
3834
  }, {
3835
3835
  default: vue.withCtx(() => [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.nodes || [], node => {
3836
- return vue.openBlock(), vue.createBlock(_sfc_main$7, {
3836
+ return vue.openBlock(), vue.createBlock(_sfc_main$8, {
3837
3837
  key: vue.unref(context).getKey(node),
3838
3838
  node,
3839
3839
  parent: void 0,
@@ -3858,7 +3858,7 @@
3858
3858
  snail_core.mustObject(options, "options");
3859
3859
  target instanceof HTMLElement || snail_core.throwError("target must be a HTMLElement");
3860
3860
  target.classList.add("snail-app");
3861
- const app = vue.createApp(_sfc_main$u, options);
3861
+ const app = vue.createApp(_sfc_main$v, options);
3862
3862
  triggerAppCreated(app);
3863
3863
  app.mount(target);
3864
3864
  const scope = snail_core.useScope().onDestroy(() => app.unmount());
@@ -3866,11 +3866,11 @@
3866
3866
  return scope;
3867
3867
  }
3868
3868
 
3869
- const _hoisted_1$5 = {
3869
+ const _hoisted_1$6 = {
3870
3870
  class: "snail-flash-number"
3871
3871
  };
3872
- const _hoisted_2$4 = ["textContent"];
3873
- var _sfc_main$5 = vue.defineComponent({
3872
+ const _hoisted_2$5 = ["textContent"];
3873
+ var _sfc_main$6 = vue.defineComponent({
3874
3874
  __name: "flash-number",
3875
3875
  props: {
3876
3876
  value: {}
@@ -3898,12 +3898,12 @@
3898
3898
  buildNumberItems();
3899
3899
  });
3900
3900
  return (_ctx, _cache) => {
3901
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(itemsRef.value, item => {
3901
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(itemsRef.value, item => {
3902
3902
  return vue.openBlock(), vue.createElementBlock("span", {
3903
3903
  key: item.id,
3904
3904
  textContent: vue.toDisplayString(item.text),
3905
3905
  class: vue.normalizeClass(vue.unref(snail_core.isNullish)(item.number) ? "" : "number-item")
3906
- }, null, 10, _hoisted_2$4);
3906
+ }, null, 10, _hoisted_2$5);
3907
3907
  }), 128)), _cache[0] || (_cache[0] = vue.createElementVNode("span", {
3908
3908
  style: {
3909
3909
  "color": "red"
@@ -4029,23 +4029,23 @@
4029
4029
  return items;
4030
4030
  }
4031
4031
 
4032
- const _hoisted_1$4 = {
4032
+ const _hoisted_1$5 = {
4033
4033
  class: "tz-item",
4034
4034
  ref: "hour-items"
4035
4035
  };
4036
- const _hoisted_2$3 = ["textContent", "onClick", "onDblclick"];
4037
- const _hoisted_3$1 = {
4036
+ const _hoisted_2$4 = ["textContent", "onClick", "onDblclick"];
4037
+ const _hoisted_3$2 = {
4038
4038
  class: "tz-item",
4039
4039
  ref: "minute-items"
4040
4040
  };
4041
- const _hoisted_4$1 = ["textContent", "onClick", "onDblclick"];
4041
+ const _hoisted_4$2 = ["textContent", "onClick", "onDblclick"];
4042
4042
  const _hoisted_5$1 = {
4043
4043
  key: 0,
4044
4044
  class: "tz-item",
4045
4045
  ref: "second-items"
4046
4046
  };
4047
4047
  const _hoisted_6$1 = ["textContent", "onClick", "onDblclick"];
4048
- var _sfc_main$4 = vue.defineComponent({
4048
+ var _sfc_main$5 = vue.defineComponent({
4049
4049
  __name: "time-pc",
4050
4050
  props: {
4051
4051
  value: {},
@@ -4147,17 +4147,17 @@
4147
4147
  }
4148
4148
  vue.onMounted(rebuildItems);
4149
4149
  return (_ctx, _cache) => {
4150
- return vue.openBlock(), vue.createBlock(_sfc_main$c, {
4150
+ return vue.openBlock(), vue.createBlock(_sfc_main$d, {
4151
4151
  class: vue.normalizeClass(["time-picker pc", {
4152
4152
  "second-disabled": vue.unref(format) != "HH:mm:ss"
4153
4153
  }]),
4154
4154
  direction: "vertical"
4155
4155
  }, vue.createSlots({
4156
- main: vue.withCtx(() => [vue.createVNode(_sfc_main$w, {
4156
+ main: vue.withCtx(() => [vue.createVNode(_sfc_main$x, {
4157
4157
  multiple: "",
4158
4158
  effect: vue.unref(MOTION).top
4159
4159
  }, {
4160
- default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$4, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(hourItems.value, item => {
4160
+ default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$5, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(hourItems.value, item => {
4161
4161
  return vue.openBlock(), vue.createElementBlock("div", {
4162
4162
  class: vue.normalizeClass(["tzi-number", {
4163
4163
  active: item.hour == timeRef.value.hour,
@@ -4167,8 +4167,8 @@
4167
4167
  textContent: vue.toDisplayString(vue.unref(snail_core.padStart)(item.hour, 2, "0")),
4168
4168
  onClick: $event => onHourClick(item),
4169
4169
  onDblclick: $event => onHourClick(item)
4170
- }, null, 42, _hoisted_2$3);
4171
- }), 128))], 512), vue.createElementVNode("div", _hoisted_3$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(minuteItems.value, item => {
4170
+ }, null, 42, _hoisted_2$4);
4171
+ }), 128))], 512), vue.createElementVNode("div", _hoisted_3$2, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(minuteItems.value, item => {
4172
4172
  return vue.openBlock(), vue.createElementBlock("div", {
4173
4173
  class: vue.normalizeClass(["tzi-number", {
4174
4174
  active: item.minute == timeRef.value.minute,
@@ -4178,7 +4178,7 @@
4178
4178
  textContent: vue.toDisplayString(vue.unref(snail_core.padStart)(item.minute, 2, "0")),
4179
4179
  onClick: $event => onMinuteClick(item),
4180
4180
  onDblclick: $event => onMinuteClick(item, true)
4181
- }, null, 42, _hoisted_4$1);
4181
+ }, null, 42, _hoisted_4$2);
4182
4182
  }), 128))], 512), vue.unref(format) == "HH:mm:ss" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(secondItems.value, item => {
4183
4183
  return vue.openBlock(), vue.createElementBlock("div", {
4184
4184
  class: vue.normalizeClass(["tzi-number", {
@@ -4196,19 +4196,19 @@
4196
4196
  _: 2
4197
4197
  }, [__props.toolbarDisabled != true ? {
4198
4198
  name: "bottom",
4199
- fn: vue.withCtx(() => [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
4199
+ fn: vue.withCtx(() => [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
4200
4200
  key: 0,
4201
4201
  type: "link",
4202
4202
  size: "small",
4203
4203
  textContent: "清空",
4204
4204
  onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), __props.inPopup && __props.closePopup("")))
4205
- })) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
4205
+ })) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
4206
4206
  key: 1,
4207
4207
  type: "link",
4208
4208
  size: "small",
4209
4209
  textContent: "现在",
4210
4210
  onClick: _cache[1] || (_cache[1] = $event => rebuildItems(vue.unref(snail_core.getTimeValue)(new Date())))
4211
- })) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$F, {
4211
+ })) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$G, {
4212
4212
  type: "link",
4213
4213
  size: "small",
4214
4214
  textContent: "确定",
@@ -4223,15 +4223,15 @@
4223
4223
  }
4224
4224
  });
4225
4225
 
4226
- const _hoisted_1$3 = ["textContent"];
4227
- const _hoisted_2$2 = ["textContent"];
4228
- const _hoisted_3 = ["textContent"];
4229
- const _hoisted_4 = ["textContent", "onClick", "onDblclick"];
4226
+ const _hoisted_1$4 = ["textContent"];
4227
+ const _hoisted_2$3 = ["textContent"];
4228
+ const _hoisted_3$1 = ["textContent"];
4229
+ const _hoisted_4$1 = ["textContent", "onClick", "onDblclick"];
4230
4230
  const _hoisted_5 = ["textContent", "onClick", "onDblclick"];
4231
4231
  const _hoisted_6 = ["textContent"];
4232
4232
  const _hoisted_7 = ["textContent", "onClick", "onDblclick"];
4233
4233
  const _hoisted_8 = ["textContent"];
4234
- var _sfc_main$3 = vue.defineComponent({
4234
+ var _sfc_main$4 = vue.defineComponent({
4235
4235
  __name: "date-pc",
4236
4236
  props: {
4237
4237
  value: {},
@@ -4448,7 +4448,7 @@
4448
4448
  dateRef.value == void 0 && (dateRef.value = electDateValue());
4449
4449
  buildPickerItems(stepRef.value, 0);
4450
4450
  return (_ctx, _cache) => {
4451
- return vue.openBlock(), vue.createBlock(_sfc_main$c, {
4451
+ return vue.openBlock(), vue.createBlock(_sfc_main$d, {
4452
4452
  class: vue.normalizeClass(["date-picker pc", {
4453
4453
  "time-now": __props.pinned && __props.pinned.value == true
4454
4454
  }]),
@@ -4460,7 +4460,7 @@
4460
4460
  height: "30px"
4461
4461
  }
4462
4462
  }, vue.createSlots({
4463
- top: vue.withCtx(() => [vue.createVNode(_sfc_main$E, {
4463
+ top: vue.withCtx(() => [vue.createVNode(_sfc_main$F, {
4464
4464
  type: "arrow",
4465
4465
  button: "",
4466
4466
  rotate: 180,
@@ -4473,16 +4473,16 @@
4473
4473
  }, [stepRef.value == "year" ? (vue.openBlock(), vue.createElementBlock("div", {
4474
4474
  key: 0,
4475
4475
  textContent: vue.toDisplayString(`${yearItems.value[0].year}年 - ${vue.unref(snail_core.getFromArray)(yearItems.value, -1).year}年`)
4476
- }, null, 8, _hoisted_1$3)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
4476
+ }, null, 8, _hoisted_1$4)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
4477
4477
  key: 1
4478
4478
  }, [vue.createElementVNode("div", {
4479
4479
  textContent: vue.toDisplayString(`${dateRef.value.year}年`),
4480
4480
  onClick: _cache[1] || (_cache[1] = $event => onSwitchStepClick("year"))
4481
- }, null, 8, _hoisted_2$2), stepRef.value == "day" ? (vue.openBlock(), vue.createElementBlock("div", {
4481
+ }, null, 8, _hoisted_2$3), stepRef.value == "day" ? (vue.openBlock(), vue.createElementBlock("div", {
4482
4482
  key: 0,
4483
4483
  textContent: vue.toDisplayString(`${dateRef.value.month}月`),
4484
4484
  onClick: _cache[2] || (_cache[2] = $event => onSwitchStepClick("month"))
4485
- }, null, 8, _hoisted_3)) : vue.createCommentVNode("", true)], 64))], 2), vue.createVNode(_sfc_main$E, {
4485
+ }, null, 8, _hoisted_3$1)) : vue.createCommentVNode("", true)], 64))], 2), vue.createVNode(_sfc_main$F, {
4486
4486
  class: "flex-0",
4487
4487
  type: "arrow",
4488
4488
  button: "",
@@ -4504,7 +4504,7 @@
4504
4504
  textContent: vue.toDisplayString(item.year),
4505
4505
  onClick: $event => onYearItemClick(item),
4506
4506
  onDblclick: $event => onYearItemClick(item, true)
4507
- }, null, 40, _hoisted_4)], 2);
4507
+ }, null, 40, _hoisted_4$1)], 2);
4508
4508
  }), 128)) : stepRef.value == "month" ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
4509
4509
  key: 1
4510
4510
  }, vue.renderList(monthItems.value, item => {
@@ -4554,19 +4554,19 @@
4554
4554
  onClick: onSelectTime
4555
4555
  }, null, 10, _hoisted_8)) : vue.createCommentVNode("", true), __props.toolbarDisabled != true ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
4556
4556
  key: 1
4557
- }, [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
4557
+ }, [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
4558
4558
  key: 0,
4559
4559
  type: "link",
4560
4560
  size: "small",
4561
4561
  textContent: "清空",
4562
4562
  onClick: _cache[4] || (_cache[4] = $event => (emits("clear"), vue.unref(inPopup) && __props.closePopup("")))
4563
- })) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
4563
+ })) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
4564
4564
  key: 1,
4565
4565
  type: "link",
4566
4566
  size: "small",
4567
4567
  textContent: "现在",
4568
4568
  onClick: onNow
4569
- })) : vue.createCommentVNode("", true)], 64)) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$F, {
4569
+ })) : vue.createCommentVNode("", true)], 64)) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$G, {
4570
4570
  type: "link",
4571
4571
  size: "small",
4572
4572
  textContent: "确定",
@@ -4581,19 +4581,129 @@
4581
4581
  }
4582
4582
  });
4583
4583
 
4584
+ const _hoisted_1$3 = {
4585
+ key: 0,
4586
+ class: "pick-header"
4587
+ };
4588
+ const _hoisted_2$2 = {
4589
+ class: "pick-body"
4590
+ };
4591
+ const _hoisted_3 = {
4592
+ class: "pick-items",
4593
+ ref: "pick-items"
4594
+ };
4595
+ const _hoisted_4 = ["textContent"];
4596
+ const itemHeight = 32;
4597
+ var _sfc_main$3 = vue.defineComponent({
4598
+ __name: "scroll-picker",
4599
+ props: {
4600
+ items: {},
4601
+ value: {},
4602
+ title: {},
4603
+ inPopup: {},
4604
+ closePopup: {
4605
+ type: Function
4606
+ },
4607
+ onBeforeClose: {
4608
+ type: Function
4609
+ },
4610
+ popupStatus: {},
4611
+ popup: {},
4612
+ picker: {}
4613
+ },
4614
+ emits: ["select"],
4615
+ setup(__props, _ref) {
4616
+ var _ref2, _props$value, _props$items$;
4617
+ let {
4618
+ emit: __emit
4619
+ } = _ref;
4620
+ const props = __props;
4621
+ const emits = __emit;
4622
+ const {
4623
+ onSize
4624
+ } = snail_view.useObserver();
4625
+ const {
4626
+ onTimeout
4627
+ } = snail_core.useTimer();
4628
+ const pickItemsDom = vue.useTemplateRef("pick-items");
4629
+ const elasticRef = vue.shallowRef();
4630
+ const valueRef = vue.ref((_ref2 = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : (_props$items$ = props.items[0]) === null || _props$items$ === void 0 ? void 0 : _props$items$.code) !== null && _ref2 !== void 0 ? _ref2 : "");
4631
+ let backValue = void 0;
4632
+ function onElastic(detail) {
4633
+ if (detail.status == "start") {
4634
+ backValue = valueRef.value;
4635
+ } else {
4636
+ const index = parseInt((detail.position.y / itemHeight).toFixed(0));
4637
+ const item = props.items[-index];
4638
+ valueRef.value = item ? item.code : void 0;
4639
+ if (detail.status == "end") {
4640
+ elasticRef.value.scrollTo(void 0, index * itemHeight);
4641
+ backValue != valueRef.value && emits("select", valueRef.value);
4642
+ }
4643
+ }
4644
+ }
4645
+ vue.onMounted(async () => {
4646
+ onSize(pickItemsDom.value.parentElement, size => {
4647
+ const offset = (size.height - itemHeight) / 2;
4648
+ pickItemsDom.value.style.padding = `${offset}px 0`;
4649
+ });
4650
+ elasticRef.value = snail_view.useElastic(pickItemsDom.value, {
4651
+ elastic: "y",
4652
+ distance: 100
4653
+ }, onElastic);
4654
+ const index = props.items.findIndex(item => item.code == valueRef.value);
4655
+ index != -1 && onTimeout(() => elasticRef.value.scrollTo(void 0, -itemHeight * index), 50);
4656
+ });
4657
+ return (_ctx, _cache) => {
4658
+ return vue.openBlock(), vue.createElementBlock("div", {
4659
+ class: vue.normalizeClass(["snail-scroll-picker wh-fill", {
4660
+ "in-pupup": __props.inPopup
4661
+ }])
4662
+ }, [__props.inPopup ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, "ddd")) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_2$2, [vue.createElementVNode("div", _hoisted_3, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.items, item => {
4663
+ return vue.openBlock(), vue.createElementBlock("span", {
4664
+ class: vue.normalizeClass(["pick-item", {
4665
+ selected: item.code === valueRef.value,
4666
+ disabled: item.disabled
4667
+ }]),
4668
+ key: item.code,
4669
+ textContent: vue.toDisplayString(item.text)
4670
+ }, null, 10, _hoisted_4);
4671
+ }), 128))], 512), _cache[0] || (_cache[0] = vue.createElementVNode("div", {
4672
+ class: "pick-layer"
4673
+ }, [vue.createElementVNode("span", {
4674
+ class: "layer-top"
4675
+ }), vue.createElementVNode("span", {
4676
+ class: "layer-selection"
4677
+ }), vue.createElementVNode("span", {
4678
+ class: "layer-bottom"
4679
+ })], -1))])], 2);
4680
+ };
4681
+ }
4682
+ });
4683
+
4584
4684
  function usePicker() {
4585
4685
  const popup = usePopup();
4586
4686
  function showDate(target, options, popupOptions) {
4587
4687
  options = {
4588
4688
  ...options
4589
4689
  };
4590
- return showPicker(target, _sfc_main$3, options, popupOptions);
4690
+ return showPicker(target, _sfc_main$4, options, popupOptions);
4591
4691
  }
4592
4692
  function showTime(target, options, popupOptions) {
4593
4693
  options = {
4594
4694
  ...options
4595
4695
  };
4596
- return showPicker(target, _sfc_main$4, options, popupOptions);
4696
+ return showPicker(target, _sfc_main$5, options, popupOptions);
4697
+ }
4698
+ function showScroll(options) {
4699
+ const popupOptions = {
4700
+ mode: "dialog",
4701
+ dialog: {
4702
+ closeOnEscape: true,
4703
+ closeOnMask: true
4704
+ }
4705
+ };
4706
+ return showPicker(void 0, _sfc_main$3, options, popupOptions);
4597
4707
  }
4598
4708
  function showPicker(target, component, options, popupOptions) {
4599
4709
  if (popupOptions && popupOptions.mode == "dialog") {
@@ -4631,7 +4741,8 @@
4631
4741
  }
4632
4742
  const manager = Object.freeze(snail_core.mountScope({
4633
4743
  showDate,
4634
- showTime
4744
+ showTime,
4745
+ showScroll
4635
4746
  }, "IPickerManager"));
4636
4747
  manager.onDestroy(popup.destroy);
4637
4748
  return manager;
@@ -4715,7 +4826,7 @@
4715
4826
  "flex-1": __props.mode != "simple"
4716
4827
  }]),
4717
4828
  textContent: vue.toDisplayString(valueRef.value)
4718
- }, null, 10, _hoisted_2$1)) : vue.createCommentVNode("", true), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
4829
+ }, null, 10, _hoisted_2$1)) : vue.createCommentVNode("", true), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
4719
4830
  key: 1,
4720
4831
  type: "datepicker",
4721
4832
  button: "",
@@ -4803,7 +4914,7 @@
4803
4914
  "flex-1": __props.mode != "simple"
4804
4915
  }]),
4805
4916
  textContent: vue.toDisplayString(valueRef.value)
4806
- }, null, 10, _hoisted_2)) : vue.createCommentVNode("", true), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
4917
+ }, null, 10, _hoisted_2)) : vue.createCommentVNode("", true), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
4807
4918
  key: 1,
4808
4919
  type: "timepicker",
4809
4920
  button: "",
@@ -4899,12 +5010,12 @@
4899
5010
  onTouchstart: onStartDrag,
4900
5011
  onTouchmove: onDragMove,
4901
5012
  onTouchend: onDragEnd
4902
- }, [dragInfoRef.value.status == "success" ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
5013
+ }, [dragInfoRef.value.status == "success" ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
4903
5014
  key: 0,
4904
5015
  type: "success",
4905
5016
  size: 20,
4906
5017
  color: "white"
4907
- })) : (vue.openBlock(), vue.createBlock(_sfc_main$E, {
5018
+ })) : (vue.openBlock(), vue.createBlock(_sfc_main$F, {
4908
5019
  key: 1,
4909
5020
  custom: "",
4910
5021
  size: 20,
@@ -4923,37 +5034,38 @@
4923
5034
  });
4924
5035
 
4925
5036
  const components = {
4926
- Action: _sfc_main$g,
4927
- Button: _sfc_main$F,
4928
- Choose: _sfc_main$D,
4929
- Footer: _sfc_main$C,
4930
- Header: _sfc_main$B,
4931
- Icon: _sfc_main$E,
4932
- Input: _sfc_main$A,
4933
- Number: _sfc_main$z,
4934
- Search: _sfc_main$y,
4935
- Select: _sfc_main$k,
4936
- Switch: _sfc_main$j,
4937
- Textarea: _sfc_main$i,
4938
- Dynamic: _sfc_main$u,
4939
- Elastic: _sfc_main$f,
4940
- Flex: _sfc_main$e,
4941
- Fold: _sfc_main$d,
4942
- Motion: _sfc_main$w,
4943
- Layout: _sfc_main$c,
4944
- Scroll: _sfc_main$t,
4945
- Sort: _sfc_main$b,
4946
- Table: _sfc_main$a,
4947
- TableRow: _sfc_main$9,
4948
- TableCol: _sfc_main$8,
4949
- Tree: _sfc_main$6,
4950
- Wrapper: _sfc_main$s,
4951
- FlashNumber: _sfc_main$5,
5037
+ Action: _sfc_main$h,
5038
+ Button: _sfc_main$G,
5039
+ Choose: _sfc_main$E,
5040
+ Footer: _sfc_main$D,
5041
+ Header: _sfc_main$C,
5042
+ Icon: _sfc_main$F,
5043
+ Input: _sfc_main$B,
5044
+ Number: _sfc_main$A,
5045
+ Search: _sfc_main$z,
5046
+ Select: _sfc_main$l,
5047
+ Switch: _sfc_main$k,
5048
+ Textarea: _sfc_main$j,
5049
+ Dynamic: _sfc_main$v,
5050
+ Elastic: _sfc_main$g,
5051
+ Flex: _sfc_main$f,
5052
+ Fold: _sfc_main$e,
5053
+ Motion: _sfc_main$x,
5054
+ Layout: _sfc_main$d,
5055
+ Scroll: _sfc_main$u,
5056
+ Sort: _sfc_main$c,
5057
+ Table: _sfc_main$b,
5058
+ TableRow: _sfc_main$a,
5059
+ TableCol: _sfc_main$9,
5060
+ Tree: _sfc_main$7,
5061
+ Wrapper: _sfc_main$t,
5062
+ FlashNumber: _sfc_main$6,
4952
5063
  DatePicker: _sfc_main$2,
5064
+ ScrollPicker: _sfc_main$3,
4953
5065
  TimePicker: _sfc_main$1,
4954
5066
  DragVerify: _sfc_main,
4955
- Empty: _sfc_main$n,
4956
- Loading: _sfc_main$v
5067
+ Empty: _sfc_main$o,
5068
+ Loading: _sfc_main$w
4957
5069
  };
4958
5070
 
4959
5071
  snail_core.onMountScope(scope => {