snail.vue 2.0.10 → 2.0.11

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,7 +5,7 @@
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$k = ["title"];
8
+ const _hoisted_1$j = ["title"];
9
9
  var _sfc_main$y = vue.defineComponent({
10
10
  ...{
11
11
  name: "Button",
@@ -22,11 +22,15 @@
22
22
  return vue.openBlock(), vue.createElementBlock("div", {
23
23
  class: vue.normalizeClass(["snail-button", [__props.size, __props.type]]),
24
24
  title: __props.title
25
- }, [vue.renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = vue.createTextVNode("按钮", -1))])], 10, _hoisted_1$k);
25
+ }, [vue.renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = vue.createTextVNode("按钮", -1))])], 10, _hoisted_1$j);
26
26
  };
27
27
  }
28
28
  });
29
29
 
30
+ var addLink = href => setTimeout(snail_view.link.register, 0, href);
31
+
32
+ addLink("/styles/snail.vue.vue.css");
33
+
30
34
  function getSvgDraw(iconType, draw) {
31
35
  switch (iconType) {
32
36
  case "success":
@@ -65,8 +69,8 @@
65
69
  }
66
70
  }
67
71
 
68
- const _hoisted_1$j = ["width", "height"];
69
- const _hoisted_2$c = ["textContent"];
72
+ const _hoisted_1$i = ["width", "height"];
73
+ const _hoisted_2$b = ["textContent"];
70
74
  const _hoisted_3$9 = ["fill", "stroke", "stroke-width", "d"];
71
75
  var _sfc_main$x = vue.defineComponent({
72
76
  ...{
@@ -98,20 +102,20 @@
98
102
  onMouseleave: _cache[1] || (_cache[1] = $event => isMouseEnterRef.value = false)
99
103
  }, [vue.createElementVNode("title", {
100
104
  textContent: vue.toDisplayString(__props.title || "")
101
- }, null, 8, _hoisted_2$c), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getSvgDraw)(__props.type, __props.draw), d => {
105
+ }, null, 8, _hoisted_2$b), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getSvgDraw)(__props.type, __props.draw), d => {
102
106
  return vue.openBlock(), vue.createElementBlock("path", {
103
107
  fill: isMouseEnterRef.value ? __props.hoverColor || __props.color : __props.color,
104
108
  stroke: __props.stroke,
105
109
  "stroke-width": __props.strokeWidth,
106
110
  d
107
111
  }, null, 8, _hoisted_3$9);
108
- }), 256))], 46, _hoisted_1$j);
112
+ }), 256))], 46, _hoisted_1$i);
109
113
  };
110
114
  }
111
115
  });
112
116
 
113
- const _hoisted_1$i = ["title", "onClick"];
114
- const _hoisted_2$b = ["type", "checked"];
117
+ const _hoisted_1$h = ["title", "onClick"];
118
+ const _hoisted_2$a = ["type", "checked"];
115
119
  const _hoisted_3$8 = ["textContent"];
116
120
  const _hoisted_4$6 = ["textContent"];
117
121
  var _sfc_main$w = vue.defineComponent({
@@ -190,7 +194,7 @@
190
194
  key: 0,
191
195
  type: vue.unref(type),
192
196
  checked: node.selected
193
- }, null, 8, _hoisted_2$b)) : vue.unref(mode) == "beautiful" ? (vue.openBlock(), vue.createElementBlock("div", {
197
+ }, null, 8, _hoisted_2$a)) : vue.unref(mode) == "beautiful" ? (vue.openBlock(), vue.createElementBlock("div", {
194
198
  key: 1,
195
199
  class: vue.normalizeClass(["status", [node.selected ? "selected" : ""]])
196
200
  }, [node.selected ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
@@ -206,13 +210,13 @@
206
210
  key: 3,
207
211
  class: "item-des",
208
212
  textContent: vue.toDisplayString(node.item.description)
209
- }, null, 8, _hoisted_4$6)) : vue.createCommentVNode("", true)], 14, _hoisted_1$i);
213
+ }, null, 8, _hoisted_4$6)) : vue.createCommentVNode("", true)], 14, _hoisted_1$h);
210
214
  }), 128))], 2);
211
215
  };
212
216
  }
213
217
  });
214
218
 
215
- const _hoisted_1$h = ["id"];
219
+ const _hoisted_1$g = ["id"];
216
220
  var _sfc_main$v = vue.defineComponent({
217
221
  __name: "datepicker",
218
222
  props: {
@@ -364,15 +368,11 @@
364
368
  class: "snail-datepicker",
365
369
  id: vue.unref(id),
366
370
  onClick
367
- }, null, 8, _hoisted_1$h);
371
+ }, null, 8, _hoisted_1$g);
368
372
  };
369
373
  }
370
374
  });
371
375
 
372
- var addLink = href => setTimeout(snail_view.link.register, 0, href);
373
-
374
- addLink("/styles/snail.vue.vue.css");
375
-
376
376
  var _sfc_main$u = vue.defineComponent({
377
377
  ...{
378
378
  name: "Footer",
@@ -421,7 +421,7 @@
421
421
  }
422
422
  });
423
423
 
424
- const _hoisted_1$g = ["textContent"];
424
+ const _hoisted_1$f = ["textContent"];
425
425
  var _sfc_main$t = vue.defineComponent({
426
426
  ...{
427
427
  name: "Header",
@@ -461,7 +461,7 @@
461
461
  key: 0,
462
462
  textContent: vue.toDisplayString(__props.title),
463
463
  class: vue.normalizeClass(["header-title", __props.titleAlign])
464
- }, null, 10, _hoisted_1$g)) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
464
+ }, null, 10, _hoisted_1$f)) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
465
465
  key: 1,
466
466
  type: "close",
467
467
  size: 22,
@@ -473,8 +473,8 @@
473
473
  }
474
474
  });
475
475
 
476
- const _hoisted_1$f = ["textContent"];
477
- const _hoisted_2$a = {
476
+ const _hoisted_1$e = ["textContent"];
477
+ const _hoisted_2$9 = {
478
478
  key: 0,
479
479
  class: "required",
480
480
  textContent: "*"
@@ -536,7 +536,7 @@
536
536
  }, [vue.createElementVNode("span", {
537
537
  class: "text",
538
538
  textContent: vue.toDisplayString(__props.title)
539
- }, null, 8, _hoisted_1$f), __props.readonly != true && __props.required == true ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$a)) : vue.createCommentVNode("", true)], 4)) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_3$7, [vue.createElementVNode("input", {
539
+ }, null, 8, _hoisted_1$e), __props.readonly != true && __props.required == true ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$9)) : vue.createCommentVNode("", true)], 4)) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_3$7, [vue.createElementVNode("input", {
540
540
  ref: "input-el",
541
541
  type: __props.type || "text",
542
542
  value: inputModel.value,
@@ -758,11 +758,11 @@
758
758
  return formatter;
759
759
  }
760
760
 
761
- const _hoisted_1$e = {
761
+ const _hoisted_1$d = {
762
762
  key: 0,
763
763
  class: "number-prefix"
764
764
  };
765
- const _hoisted_2$9 = ["textContent"];
765
+ const _hoisted_2$8 = ["textContent"];
766
766
  const _hoisted_3$6 = ["inputmode", "placeholder", "title"];
767
767
  const _hoisted_4$4 = {
768
768
  key: 1,
@@ -770,7 +770,7 @@
770
770
  };
771
771
  const _hoisted_5$2 = ["textContent"];
772
772
  const _hoisted_6$1 = ["title", "textContent"];
773
- const _hoisted_7$1 = ["title", "textContent"];
773
+ const _hoisted_7 = ["title", "textContent"];
774
774
  var _sfc_main$r = vue.defineComponent({
775
775
  __name: "number",
776
776
  props: vue.mergeModels({
@@ -918,10 +918,10 @@
918
918
  "has-prefix": vue.unref(hasPrefix),
919
919
  "has-suffix": vue.unref(hasSuffix)
920
920
  }])
921
- }, [vue.unref(hasPrefix) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [vue.createElementVNode("span", {
921
+ }, [vue.unref(hasPrefix) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [vue.createElementVNode("span", {
922
922
  class: "ellipsis",
923
923
  textContent: vue.toDisplayString(vue.unref(prefix))
924
- }, null, 8, _hoisted_2$9)])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
924
+ }, null, 8, _hoisted_2$8)])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
925
925
  class: vue.normalizeClass(["input-panel", vue.unref(controls)])
926
926
  }, [vue.withDirectives(vue.createElementVNode("input", {
927
927
  type: "text",
@@ -976,12 +976,12 @@
976
976
  class: "number-util ellipsis",
977
977
  title: thousandsTextRef.value,
978
978
  textContent: vue.toDisplayString(`千分位:${thousandsTextRef.value || ""}`)
979
- }, null, 8, _hoisted_7$1)) : vue.createCommentVNode("", true)], 2);
979
+ }, null, 8, _hoisted_7)) : vue.createCommentVNode("", true)], 2);
980
980
  };
981
981
  }
982
982
  });
983
983
 
984
- const _hoisted_1$d = ["placeholder", "readonly"];
984
+ const _hoisted_1$c = ["placeholder", "readonly"];
985
985
  const searchIon = "M 860.16 824.32 l -163.84 -163.84 c 102.4 -120.32 97.28 -302.08 -17.92 -414.72 c -120.32 -120.32 -314.88 -120.32 -435.2 0 c -120.32 120.32 -120.32 314.88 0 435.2 c 112.64 112.64 294.4 120.32 414.72 17.92 l 163.84 163.84 c 10.24 10.24 25.6 10.24 35.84 0 c 12.8 -12.8 12.8 -28.16 2.56 -38.4 Z M 281.6 642.56 C 181.76 542.72 181.76 381.44 281.6 281.6 c 99.84 -99.84 261.12 -99.84 360.96 0 c 99.84 99.84 99.84 261.12 0 360.96 c -99.84 102.4 -261.12 102.4 -360.96 0 Z";
986
986
  var _sfc_main$q = vue.defineComponent({
987
987
  ...{
@@ -1028,7 +1028,7 @@
1028
1028
  readonly: __props.readonly,
1029
1029
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => textModel.value = $event),
1030
1030
  onKeyup: _cache[1] || (_cache[1] = $event => onSearch($event))
1031
- }, null, 40, _hoisted_1$d), [[vue.vModelText, textModel.value, void 0, {
1031
+ }, null, 40, _hoisted_1$c), [[vue.vModelText, textModel.value, void 0, {
1032
1032
  trim: true
1033
1033
  }]]), vue.createElementVNode("div", null, [vue.createVNode(_sfc_main$x, {
1034
1034
  class: "search-button",
@@ -1251,10 +1251,10 @@
1251
1251
  }
1252
1252
  }
1253
1253
 
1254
- const _hoisted_1$c = {
1254
+ const _hoisted_1$b = {
1255
1255
  class: "snail-confirm flex-column"
1256
1256
  };
1257
- const _hoisted_2$8 = ["innerHTML"];
1257
+ const _hoisted_2$7 = ["innerHTML"];
1258
1258
  var _sfc_main$p = vue.defineComponent({
1259
1259
  ...{
1260
1260
  name: "ConfirmContainer",
@@ -1283,14 +1283,14 @@
1283
1283
  },
1284
1284
  setup(__props) {
1285
1285
  return (_ctx, _cache) => {
1286
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [vue.createVNode(_sfc_main$t, {
1286
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [vue.createVNode(_sfc_main$t, {
1287
1287
  "use-to": "dialog",
1288
1288
  title: __props.title || "提示",
1289
1289
  onClose: _cache[0] || (_cache[0] = $event => __props.closePopup(false))
1290
1290
  }, null, 8, ["title"]), vue.createElementVNode("div", {
1291
1291
  class: "confirm-body",
1292
1292
  innerHTML: __props.message || "请确认?"
1293
- }, null, 8, _hoisted_2$8), vue.createVNode(_sfc_main$u, {
1293
+ }, null, 8, _hoisted_2$7), vue.createVNode(_sfc_main$u, {
1294
1294
  align: "right",
1295
1295
  "cancel-name": __props.cancelName,
1296
1296
  "cancel-disabled": __props.cancelDisabled,
@@ -1669,11 +1669,11 @@
1669
1669
  }
1670
1670
  });
1671
1671
 
1672
- const _hoisted_1$b = {
1672
+ const _hoisted_1$a = {
1673
1673
  key: 1,
1674
1674
  class: "icon"
1675
1675
  };
1676
- const _hoisted_2$7 = ["innerHTML"];
1676
+ const _hoisted_2$6 = ["innerHTML"];
1677
1677
  var _sfc_main$j = vue.defineComponent({
1678
1678
  ...{
1679
1679
  name: "ToastContainer",
@@ -1723,14 +1723,14 @@
1723
1723
  onClick: _cache[2] || (_cache[2] = $event => {
1724
1724
  vue.unref(closePopup)();
1725
1725
  })
1726
- }, null, 8, ["fill"])) : vue.createCommentVNode("", true), vue.unref(props).type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [vue.createVNode(_sfc_main$x, {
1726
+ }, null, 8, ["fill"])) : vue.createCommentVNode("", true), vue.unref(props).type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [vue.createVNode(_sfc_main$x, {
1727
1727
  type: vue.unref(props).type,
1728
1728
  fill: "#707070",
1729
1729
  size: 20
1730
1730
  }, null, 8, ["type"])])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
1731
1731
  class: "message",
1732
1732
  innerHTML: vue.unref(props).message
1733
- }, null, 8, _hoisted_2$7)], 38);
1733
+ }, null, 8, _hoisted_2$6)], 38);
1734
1734
  };
1735
1735
  }
1736
1736
  });
@@ -1976,10 +1976,10 @@
1976
1976
  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==";
1977
1977
  }
1978
1978
 
1979
- const _hoisted_1$a = {
1979
+ const _hoisted_1$9 = {
1980
1980
  class: "snail-empty"
1981
1981
  };
1982
- const _hoisted_2$6 = ["src"];
1982
+ const _hoisted_2$5 = ["src"];
1983
1983
  const _hoisted_3$5 = ["textContent"];
1984
1984
  var _sfc_main$i = vue.defineComponent({
1985
1985
  ...{
@@ -1994,9 +1994,9 @@
1994
1994
  setup(__props) {
1995
1995
  const defaultImageBase64 = getNoDataBase64Image();
1996
1996
  return (_ctx, _cache) => {
1997
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [vue.createElementVNode("img", {
1997
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [vue.createElementVNode("img", {
1998
1998
  src: __props.imageUrl || vue.unref(defaultImageBase64)
1999
- }, null, 8, _hoisted_2$6), vue.renderSlot(_ctx.$slots, "default", {}, () => [vue.createElementVNode("div", {
1999
+ }, null, 8, _hoisted_2$5), vue.renderSlot(_ctx.$slots, "default", {}, () => [vue.createElementVNode("div", {
2000
2000
  class: "message",
2001
2001
  textContent: vue.toDisplayString(__props.message || "无数据")
2002
2002
  }, null, 8, _hoisted_3$5)])]);
@@ -2004,8 +2004,8 @@
2004
2004
  }
2005
2005
  });
2006
2006
 
2007
- const _hoisted_1$9 = ["title"];
2008
- const _hoisted_2$5 = ["textContent"];
2007
+ const _hoisted_1$8 = ["title"];
2008
+ const _hoisted_2$4 = ["textContent"];
2009
2009
  const _hoisted_3$4 = {
2010
2010
  key: 1,
2011
2011
  class: "select-status"
@@ -2055,7 +2055,7 @@
2055
2055
  }, [vue.createElementVNode("div", {
2056
2056
  class: "item-text ellipsis",
2057
2057
  textContent: vue.toDisplayString(__props.item.text)
2058
- }, null, 8, _hoisted_2$5), __props.item.type == "group" ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
2058
+ }, null, 8, _hoisted_2$4), __props.item.type == "group" ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
2059
2059
  key: 0,
2060
2060
  type: "arrow",
2061
2061
  color: "#8a9099"
@@ -2063,7 +2063,7 @@
2063
2063
  type: "success",
2064
2064
  color: "white",
2065
2065
  size: 12
2066
- })])) : vue.createCommentVNode("", true)], 42, _hoisted_1$9)) : vue.createCommentVNode("", true), showRef.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
2066
+ })])) : vue.createCommentVNode("", true)], 42, _hoisted_1$8)) : vue.createCommentVNode("", true), showRef.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
2067
2067
  key: 1
2068
2068
  }, vue.renderList(vue.unref(showChildrenRef), child => {
2069
2069
  return vue.openBlock(), vue.createBlock(_component_SelectNode, {
@@ -2279,11 +2279,11 @@
2279
2279
  }
2280
2280
  });
2281
2281
 
2282
- const _hoisted_1$8 = {
2282
+ const _hoisted_1$7 = {
2283
2283
  key: 0,
2284
2284
  class: "select-result"
2285
2285
  };
2286
- const _hoisted_2$4 = ["title", "textContent"];
2286
+ const _hoisted_2$3 = ["title", "textContent"];
2287
2287
  const _hoisted_3$3 = ["textContent"];
2288
2288
  const _hoisted_4$3 = {
2289
2289
  key: 1,
@@ -2424,11 +2424,11 @@
2424
2424
  ref: "select"
2425
2425
  }, [__props.items && __props.items.length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
2426
2426
  key: 0
2427
- }, [selectedItemsRef.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))), () => [vue.createElementVNode("div", {
2427
+ }, [selectedItemsRef.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))), () => [vue.createElementVNode("div", {
2428
2428
  class: "select-text ellipsis",
2429
2429
  title: selectedTextRef.value,
2430
2430
  textContent: vue.toDisplayString(selectedTextRef.value)
2431
- }, null, 8, _hoisted_2$4)])])) : (vue.openBlock(), vue.createElementBlock("div", {
2431
+ }, null, 8, _hoisted_2$3)])])) : (vue.openBlock(), vue.createElementBlock("div", {
2432
2432
  key: 1,
2433
2433
  class: "placeholder",
2434
2434
  textContent: vue.toDisplayString(__props.readonly ? "" : __props.placeholder || "请选择")
@@ -2494,7 +2494,7 @@
2494
2494
  }
2495
2495
  });
2496
2496
 
2497
- const _hoisted_1$7 = ["readonly", "placeholder", "rows"];
2497
+ const _hoisted_1$6 = ["readonly", "placeholder", "rows"];
2498
2498
  var _sfc_main$d = vue.defineComponent({
2499
2499
  ...{
2500
2500
  name: "Textarea"
@@ -2555,15 +2555,15 @@
2555
2555
  onInput: _cache[2] || (_cache[2] = $event => emits("input", textareaDom.value.value)),
2556
2556
  onBlur: _cache[3] || (_cache[3] = $event => emits("blur", textareaDom.value.value)),
2557
2557
  onChange: _cache[4] || (_cache[4] = $event => emits("change", textareaDom.value.value))
2558
- }), null, 16, _hoisted_1$7)), [[vue.vModelText, valueModel.value]]);
2558
+ }), null, 16, _hoisted_1$6)), [[vue.vModelText, valueModel.value]]);
2559
2559
  };
2560
2560
  }
2561
2561
  });
2562
2562
 
2563
- const _hoisted_1$6 = {
2563
+ const _hoisted_1$5 = {
2564
2564
  class: "fold-header"
2565
2565
  };
2566
- const _hoisted_2$3 = ["textContent"];
2566
+ const _hoisted_2$2 = ["textContent"];
2567
2567
  const _hoisted_3$2 = ["textContent"];
2568
2568
  const _hoisted_4$2 = {
2569
2569
  key: 1,
@@ -2643,10 +2643,10 @@
2643
2643
  return (_ctx, _cache) => {
2644
2644
  return vue.openBlock(), vue.createElementBlock("div", {
2645
2645
  class: vue.normalizeClass(["snail-fold", statusModel.value])
2646
- }, [vue.createElementVNode("div", _hoisted_1$6, [vue.renderSlot(_ctx.$slots, "header", {}, () => [vue.createElementVNode("div", {
2646
+ }, [vue.createElementVNode("div", _hoisted_1$5, [vue.renderSlot(_ctx.$slots, "header", {}, () => [vue.createElementVNode("div", {
2647
2647
  class: "title ellipsis",
2648
2648
  textContent: vue.toDisplayString(__props.title)
2649
- }, null, 8, _hoisted_2$3), !!__props.subtitle ? (vue.openBlock(), vue.createElementBlock("div", {
2649
+ }, null, 8, _hoisted_2$2), !!__props.subtitle ? (vue.openBlock(), vue.createElementBlock("div", {
2650
2650
  key: 0,
2651
2651
  class: "subtitle ellipsis",
2652
2652
  textContent: vue.toDisplayString(__props.subtitle)
@@ -2672,11 +2672,7 @@
2672
2672
  scrollY: {
2673
2673
  type: Boolean
2674
2674
  },
2675
- barSize: {},
2676
- barMode: {},
2677
- debounce: {
2678
- type: Boolean
2679
- }
2675
+ barSize: {}
2680
2676
  },
2681
2677
  emits: ["xbar", "left", "right", "ybar", "top", "bottom"],
2682
2678
  setup(__props, _ref) {
@@ -2693,13 +2689,9 @@
2693
2689
  const {
2694
2690
  onInterval
2695
2691
  } = snail_core.useTimer();
2696
- const classRef = vue.computed(() => ({
2697
- "debounce": props.scrollY == true && props.debounce == true,
2698
- "hover-show": props.barMode == "hover"
2699
- }));
2700
2692
  const styleRef = vue.computed(() => {
2701
2693
  const style = Object.create(null);
2702
- (props.scrollX || props.scrollY) && (style["--scroll-overflow"] = `${props.scrollX ? "auto" : "hidden"} ${props.scrollY ? "auto" : "hidden"}`);
2694
+ (props.scrollX || props.scrollY) && (style["--scroll-overflow"] = `${props.scrollX == true ? "auto" : "hidden"} ${props.scrollY == true ? "auto" : "hidden"}`);
2703
2695
  if (props.barSize) {
2704
2696
  switch (props.barSize) {
2705
2697
  case "normal":
@@ -2773,15 +2765,9 @@
2773
2765
  events.top && emits("top");
2774
2766
  events.bottom && emits("bottom");
2775
2767
  if (rootDom.value) {
2776
- rootDom.value.classList.remove("x-bar", "y-bar", "left", "right", "top", "bottom");
2777
- const classes = [];
2778
- status.xbar && classes.push("x-bar");
2779
- status.ybar && classes.push("y-bar");
2780
- status.left && classes.push("left");
2781
- status.right && classes.push("right");
2782
- status.top && classes.push("top");
2783
- status.bottom && classes.push("bottom");
2784
- classes.length && rootDom.value.classList.add(...classes);
2768
+ rootDom.value.classList.remove("x-bar", "y-bar");
2769
+ status.xbar && rootDom.value.classList.add("x-bar");
2770
+ status.ybar && rootDom.value.classList.add("y-bar");
2785
2771
  }
2786
2772
  }
2787
2773
  vue.onMounted(() => {
@@ -2794,39 +2780,96 @@
2794
2780
  });
2795
2781
  return (_ctx, _cache) => {
2796
2782
  return vue.openBlock(), vue.createElementBlock("div", {
2797
- class: vue.normalizeClass(["snail-scroll", classRef.value]),
2783
+ class: "snail-scroll",
2798
2784
  ref: "scroll-root",
2799
2785
  style: vue.normalizeStyle(styleRef.value),
2800
2786
  onScroll: refreshScrollInfo
2801
- }, [vue.renderSlot(_ctx.$slots, "default")], 38);
2787
+ }, [vue.renderSlot(_ctx.$slots, "default")], 36);
2802
2788
  };
2803
2789
  }
2804
2790
  });
2805
2791
 
2806
- const _hoisted_1$5 = {
2807
- key: 0,
2808
- class: "layout-start"
2809
- };
2810
- const _hoisted_2$2 = {
2811
- key: 1,
2812
- class: "layout-end"
2813
- };
2814
2792
  var _sfc_main$a = vue.defineComponent({
2815
2793
  __name: "layout",
2816
2794
  props: {
2817
2795
  mode: {},
2818
- scroll: {}
2796
+ default: {},
2797
+ left: {},
2798
+ right: {},
2799
+ top: {},
2800
+ bottom: {}
2819
2801
  },
2820
2802
  setup(__props) {
2803
+ const props = __props;
2804
+ const areaMap = vue.computed(() => {
2805
+ const map = Object.create(null);
2806
+ map.default = {
2807
+ scrollable: props.default && props.default.scroll != void 0,
2808
+ class: "main-area",
2809
+ style: void 0
2810
+ };
2811
+ if (props.mode == "vertical") {
2812
+ map.top = {
2813
+ scrollable: props.top && props.top.scroll != void 0,
2814
+ class: "top-area",
2815
+ style: buildHeightStyle(props.top)
2816
+ };
2817
+ map.bottom = {
2818
+ scrollable: props.bottom && props.bottom.scroll != void 0,
2819
+ class: "bottom-area",
2820
+ style: buildHeightStyle(props.bottom)
2821
+ };
2822
+ } else {
2823
+ map.left = {
2824
+ scrollable: props.left && props.left.scroll != void 0,
2825
+ class: "left-area",
2826
+ style: buildWidthStyle(props.left)
2827
+ };
2828
+ map.right = {
2829
+ scrollable: props.right && props.right.scroll != void 0,
2830
+ class: "right-area",
2831
+ style: buildWidthStyle(props.right)
2832
+ };
2833
+ }
2834
+ return map;
2835
+ });
2836
+ function buildWidthStyle(style) {
2837
+ return style ? snail_view.css.buildStyle({
2838
+ minWidth: style.minWidth,
2839
+ width: style.width,
2840
+ maxWidth: style.maxWidth
2841
+ }) : void 0;
2842
+ }
2843
+ function buildHeightStyle(style) {
2844
+ return style ? snail_view.css.buildStyle({
2845
+ minHeight: style.minHeight,
2846
+ height: style.height,
2847
+ maxHeight: style.maxHeight
2848
+ }) : void 0;
2849
+ }
2821
2850
  return (_ctx, _cache) => {
2822
2851
  return vue.openBlock(), vue.createElementBlock("div", {
2823
2852
  class: vue.normalizeClass(["snail-layout", __props.mode])
2824
- }, [_ctx.$slots.start ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [vue.renderSlot(_ctx.$slots, "start")])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$b, vue.mergeProps({
2825
- class: "layout-body"
2826
- }, __props.scroll), {
2827
- default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
2828
- _: 3
2829
- }, 16), _ctx.$slots.end ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2, [vue.renderSlot(_ctx.$slots, "end")])) : vue.createCommentVNode("", true)], 2);
2853
+ }, [(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(["top", "left", "default", "right", "bottom"], item => {
2854
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
2855
+ key: item
2856
+ }, [areaMap.value[item] && _ctx.$slots[item] ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
2857
+ key: 0
2858
+ }, [areaMap.value[item].scrollable ? (vue.openBlock(), vue.createBlock(_sfc_main$b, vue.mergeProps({
2859
+ key: 0,
2860
+ class: areaMap.value[item].class,
2861
+ style: areaMap.value[item].style
2862
+ }, {
2863
+ ref_for: true
2864
+ }, props[item].scroll), {
2865
+ default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, item)]),
2866
+ _: 2
2867
+ }, 1040, ["class", "style"])) : (vue.openBlock(), vue.createElementBlock("div", {
2868
+ key: 1,
2869
+ class: vue.normalizeClass(areaMap.value[item].class),
2870
+ style: vue.normalizeStyle(areaMap.value[item].style)
2871
+ }, [vue.renderSlot(_ctx.$slots, item)], 6))], 64)) : vue.createCommentVNode("", true)], 64);
2872
+ }), 64))], 2);
2830
2873
  };
2831
2874
  }
2832
2875
  });
@@ -2949,10 +2992,6 @@
2949
2992
  type: Boolean
2950
2993
  },
2951
2994
  barSize: {},
2952
- barMode: {},
2953
- debounce: {
2954
- type: Boolean
2955
- },
2956
2995
  border: {
2957
2996
  type: Boolean
2958
2997
  },
@@ -3382,27 +3421,21 @@
3382
3421
  }
3383
3422
 
3384
3423
  const _hoisted_1$1 = {
3385
- class: "time-zone"
3386
- };
3387
- const _hoisted_2 = {
3388
3424
  class: "tz-item",
3389
3425
  ref: "hour-items"
3390
3426
  };
3391
- const _hoisted_3 = ["textContent", "onClick"];
3392
- const _hoisted_4 = {
3427
+ const _hoisted_2 = ["textContent", "onClick"];
3428
+ const _hoisted_3 = {
3393
3429
  class: "tz-item",
3394
3430
  ref: "minute-items"
3395
3431
  };
3396
- const _hoisted_5 = ["textContent", "onClick"];
3397
- const _hoisted_6 = {
3432
+ const _hoisted_4 = ["textContent", "onClick"];
3433
+ const _hoisted_5 = {
3398
3434
  key: 0,
3399
3435
  class: "tz-item",
3400
3436
  ref: "second-items"
3401
3437
  };
3402
- const _hoisted_7 = ["textContent", "onClick"];
3403
- const _hoisted_8 = {
3404
- class: "time-operation"
3405
- };
3438
+ const _hoisted_6 = ["textContent", "onClick"];
3406
3439
  var _sfc_main$1 = vue.defineComponent({
3407
3440
  __name: "time-pc",
3408
3441
  props: {
@@ -3553,51 +3586,56 @@
3553
3586
  scrollIntoView(sItemsDom.value);
3554
3587
  });
3555
3588
  return (_ctx, _cache) => {
3556
- return vue.openBlock(), vue.createElementBlock("div", {
3589
+ return vue.openBlock(), vue.createBlock(_sfc_main$a, {
3557
3590
  class: vue.normalizeClass(["snail-time-picker pc", {
3558
3591
  "second-disabled": secondDisabled
3559
- }])
3560
- }, [vue.createVNode(_sfc_main$5, {
3561
- group: true,
3562
- effect: ["down-up"]
3592
+ }]),
3593
+ mode: "vertical"
3563
3594
  }, {
3564
- default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$1, [vue.createElementVNode("div", _hoisted_2, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Array(24).fill(void 0), (_, index) => {
3565
- return vue.openBlock(), vue.createElementBlock("div", {
3566
- class: vue.normalizeClass(["tzi-number", getTimeClass("hour", index)]),
3567
- textContent: vue.toDisplayString(String(index).padStart(2, "0")),
3568
- onClick: $event => onTimeClick("hour", index)
3569
- }, null, 10, _hoisted_3);
3570
- }), 256))], 512), vue.createElementVNode("div", _hoisted_4, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Array(60).fill(void 0), (_, index) => {
3571
- return vue.openBlock(), vue.createElementBlock("div", {
3572
- class: vue.normalizeClass(["tzi-number", getTimeClass("minute", index)]),
3573
- textContent: vue.toDisplayString(String(index).padStart(2, "0")),
3574
- onClick: $event => onTimeClick("minute", index)
3575
- }, null, 10, _hoisted_5);
3576
- }), 256))], 512), secondDisabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Array(60).fill(void 0), (_, index) => {
3577
- return vue.openBlock(), vue.createElementBlock("div", {
3578
- class: vue.normalizeClass(["tzi-number", getTimeClass("second", index)]),
3579
- textContent: vue.toDisplayString(String(index).padStart(2, "0")),
3580
- onClick: $event => onTimeClick("second", index)
3581
- }, null, 10, _hoisted_7);
3582
- }), 256))], 512)) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_8, [vue.createVNode(_sfc_main$y, {
3583
- type: "link",
3584
- size: "small",
3585
- textContent: "清空",
3586
- onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), vue.unref(inPopup) && vue.unref(closePopup)("")))
3587
- }), vue.unref(tm).validate(vue.unref(snail_core.getTimeNow)()) ? (vue.openBlock(), vue.createBlock(_sfc_main$y, {
3588
- key: 0,
3589
- type: "link",
3590
- size: "small",
3591
- textContent: "现在",
3592
- onClick: onNow
3593
- })) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$y, {
3594
- type: "link",
3595
- size: "small",
3596
- textContent: "确定",
3597
- onClick: onConfirm
3598
- })])]),
3595
+ default: vue.withCtx(() => [vue.createVNode(_sfc_main$5, {
3596
+ group: true,
3597
+ effect: "down-up"
3598
+ }, {
3599
+ default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Array(24).fill(void 0), (_, index) => {
3600
+ return vue.openBlock(), vue.createElementBlock("div", {
3601
+ class: vue.normalizeClass(["tzi-number", getTimeClass("hour", index)]),
3602
+ textContent: vue.toDisplayString(String(index).padStart(2, "0")),
3603
+ onClick: $event => onTimeClick("hour", index)
3604
+ }, null, 10, _hoisted_2);
3605
+ }), 256))], 512), vue.createElementVNode("div", _hoisted_3, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Array(60).fill(void 0), (_, index) => {
3606
+ return vue.openBlock(), vue.createElementBlock("div", {
3607
+ class: vue.normalizeClass(["tzi-number", getTimeClass("minute", index)]),
3608
+ textContent: vue.toDisplayString(String(index).padStart(2, "0")),
3609
+ onClick: $event => onTimeClick("minute", index)
3610
+ }, null, 10, _hoisted_4);
3611
+ }), 256))], 512), secondDisabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Array(60).fill(void 0), (_, index) => {
3612
+ return vue.openBlock(), vue.createElementBlock("div", {
3613
+ class: vue.normalizeClass(["tzi-number", getTimeClass("second", index)]),
3614
+ textContent: vue.toDisplayString(String(index).padStart(2, "0")),
3615
+ onClick: $event => onTimeClick("second", index)
3616
+ }, null, 10, _hoisted_6);
3617
+ }), 256))], 512)) : vue.createCommentVNode("", true)]),
3618
+ bottom: vue.withCtx(() => [vue.createVNode(_sfc_main$y, {
3619
+ type: "link",
3620
+ size: "small",
3621
+ textContent: "清空",
3622
+ onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), vue.unref(inPopup) && vue.unref(closePopup)("")))
3623
+ }), vue.unref(tm).validate(vue.unref(snail_core.getTimeNow)()) ? (vue.openBlock(), vue.createBlock(_sfc_main$y, {
3624
+ key: 0,
3625
+ type: "link",
3626
+ size: "small",
3627
+ textContent: "现在",
3628
+ onClick: onNow
3629
+ })) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$y, {
3630
+ type: "link",
3631
+ size: "small",
3632
+ textContent: "确定",
3633
+ onClick: onConfirm
3634
+ })]),
3635
+ _: 1
3636
+ })]),
3599
3637
  _: 1
3600
- })], 2);
3638
+ }, 8, ["class"]);
3601
3639
  };
3602
3640
  }
3603
3641
  });