snail.vue 1.0.53 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/snail.vue.js CHANGED
@@ -1,10 +1,10 @@
1
1
  //@ sourceURL=/snail.vue.js
2
- import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createTextVNode, shallowRef, normalizeStyle, createElementVNode, toDisplayString, Fragment, renderList, unref, mergeModels, useModel, computed, createCommentVNode, createBlock, nextTick, withDirectives, vModelText, createVNode, createApp, Transition, withCtx, normalizeProps, guardReactiveProps, watch, ref, onErrorCaptured, resolveDynamicComponent, mergeProps, createSlots, onMounted, withModifiers, isRef, getCurrentInstance, useTemplateRef, resolveComponent, onBeforeUnmount, getCurrentScope, onScopeDispose } from 'vue';
3
- import { throwError, isArrayNotEmpty, isStringNotEmpty, useKey, isArray, mustFunction, useScope, removeFromArray, mustObject, throwIfFalse, isObject, isNumberNotNaN, mountScope, useScopes, isPromise, wait, script, delay, useTimer, defer, useAsyncScope, useHook, newId, hasAny, throwIfTrue, isFunction, onMountScope } from 'snail.core';
4
- import { css, link, useObserver, useAnimation } from 'snail.view';
2
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createTextVNode, shallowRef, normalizeStyle, createElementVNode, toDisplayString, Fragment, renderList, unref, mergeModels, useModel, computed, createCommentVNode, createBlock, nextTick, onMounted, onUnmounted, withDirectives, vModelText, createVNode, createApp, Transition, withCtx, normalizeProps, guardReactiveProps, watch, ref, onErrorCaptured, resolveDynamicComponent, mergeProps, createSlots, withModifiers, isRef, getCurrentInstance, useTemplateRef, resolveComponent, onBeforeUnmount, getCurrentScope, onScopeDispose } from 'vue';
3
+ import { throwError, isArrayNotEmpty, isStringNotEmpty, useKey, isArray, useTimer, newId, script, isFunction, getFromArray, mustFunction, useScope, removeFromArray, mustObject, throwIfFalse, isObject, isNumberNotNaN, mountScope, useScopes, isPromise, wait, delay, defer, useAsyncScope, useHook, hasAny, throwIfTrue, onMountScope } from 'snail.core';
4
+ import { link, css, useObserver, useAnimation } from 'snail.view';
5
5
 
6
- const _hoisted_1$g = ["title"];
7
- var _sfc_main$t = defineComponent({
6
+ const _hoisted_1$h = ["title"];
7
+ var _sfc_main$u = defineComponent({
8
8
  ...{
9
9
  name: "Button",
10
10
  inheritAttrs: true
@@ -20,11 +20,15 @@ var _sfc_main$t = defineComponent({
20
20
  return openBlock(), createElementBlock("div", {
21
21
  class: normalizeClass(["snail-button", [_ctx.size, _ctx.type]]),
22
22
  title: _ctx.title
23
- }, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createTextVNode("按钮"))])], 10, _hoisted_1$g);
23
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createTextVNode("按钮"))])], 10, _hoisted_1$h);
24
24
  };
25
25
  }
26
26
  });
27
27
 
28
+ var addLink = href => setTimeout(link.register, 0, href);
29
+
30
+ addLink("/styles/snail.vue.vue.css");
31
+
28
32
  function getSvgDraw(iconType, draw) {
29
33
  switch (iconType) {
30
34
  case "success":
@@ -59,10 +63,10 @@ function getSvgDraw(iconType, draw) {
59
63
  }
60
64
  }
61
65
 
62
- const _hoisted_1$f = ["width", "height"];
66
+ const _hoisted_1$g = ["width", "height"];
63
67
  const _hoisted_2$a = ["textContent"];
64
68
  const _hoisted_3$7 = ["fill", "stroke", "stroke-width", "d"];
65
- var _sfc_main$s = defineComponent({
69
+ var _sfc_main$t = defineComponent({
66
70
  ...{
67
71
  name: "Icon",
68
72
  inheritAttrs: true
@@ -99,16 +103,16 @@ var _sfc_main$s = defineComponent({
99
103
  "stroke-width": _ctx.strokeWidth,
100
104
  d: draw
101
105
  }, null, 8, _hoisted_3$7);
102
- }), 256))], 46, _hoisted_1$f);
106
+ }), 256))], 46, _hoisted_1$g);
103
107
  };
104
108
  }
105
109
  });
106
110
 
107
- const _hoisted_1$e = ["onClick"];
111
+ const _hoisted_1$f = ["onClick"];
108
112
  const _hoisted_2$9 = ["type", "checked"];
109
113
  const _hoisted_3$6 = ["textContent"];
110
114
  const _hoisted_4$4 = ["textContent"];
111
- var _sfc_main$r = defineComponent({
115
+ var _sfc_main$s = defineComponent({
112
116
  ...{
113
117
  name: "Choose",
114
118
  inheritAttrs: true
@@ -181,7 +185,7 @@ var _sfc_main$r = defineComponent({
181
185
  }, null, 8, _hoisted_2$9)) : unref(mode) == "beautiful" ? (openBlock(), createElementBlock("div", {
182
186
  key: 1,
183
187
  class: normalizeClass(["item-beautiful", [_ctx.type, node.checked ? "item-checked" : "item-unchecked"]])
184
- }, [node.checked ? (openBlock(), createBlock(_sfc_main$s, {
188
+ }, [node.checked ? (openBlock(), createBlock(_sfc_main$t, {
185
189
  key: 0,
186
190
  type: "success",
187
191
  size: 12,
@@ -194,15 +198,168 @@ var _sfc_main$r = defineComponent({
194
198
  key: 3,
195
199
  class: "item-des",
196
200
  textContent: toDisplayString(node.item.description)
197
- }, null, 8, _hoisted_4$4)) : createCommentVNode("", true)], 14, _hoisted_1$e);
201
+ }, null, 8, _hoisted_4$4)) : createCommentVNode("", true)], 14, _hoisted_1$f);
198
202
  }), 128))], 2);
199
203
  };
200
204
  }
201
205
  });
202
206
 
203
- var addLink = href => setTimeout(link.register, 0, href);
204
-
205
- addLink("/styles/snail.vue.vue.css");
207
+ const _hoisted_1$e = ["id"];
208
+ var _sfc_main$r = defineComponent({
209
+ __name: "datepicker",
210
+ props: {
211
+ type: {},
212
+ range: {
213
+ type: Boolean
214
+ },
215
+ format: {},
216
+ begin: {},
217
+ end: {},
218
+ min: {},
219
+ max: {},
220
+ zIndex: {},
221
+ timeDisabled: {
222
+ type: Boolean
223
+ },
224
+ secondDisabled: {
225
+ type: Boolean
226
+ },
227
+ cleanDisabled: {
228
+ type: Boolean
229
+ },
230
+ nowDisabled: {
231
+ type: Boolean
232
+ },
233
+ submitDisabled: {
234
+ type: Boolean
235
+ },
236
+ width: {},
237
+ height: {},
238
+ behindTop: {}
239
+ },
240
+ emits: ["change", "picker-focus", "picker-blur"],
241
+ setup(__props, _ref) {
242
+ let {
243
+ expose: __expose,
244
+ emit: __emit
245
+ } = _ref;
246
+ const props = __props;
247
+ const emits = __emit;
248
+ const {
249
+ onInterval,
250
+ onTimeout
251
+ } = useTimer();
252
+ const {
253
+ range
254
+ } = props;
255
+ const format = props.format || "yyyy-MM-dd";
256
+ const id = `DP${newId()}`.toUpperCase();
257
+ var pickerInitialTimer = void 0;
258
+ var pickerLastStatus = void 0;
259
+ var pickerStatusTimer = void 0;
260
+ const pickerStatusArray = [];
261
+ __expose({
262
+ showPicker
263
+ });
264
+ function initZanePopup(flag) {
265
+ const obj = window[flag] ? window[flag].$obj : void 0;
266
+ if (obj) {
267
+ obj.removeEventListener("mouseenter", onZanePopupFocus);
268
+ obj.removeEventListener("mouseleave", onZanePopupFocus);
269
+ obj.addEventListener("mouseenter", onZanePopupFocus);
270
+ obj.addEventListener("mouseleave", onZanePopupFocus);
271
+ return true;
272
+ }
273
+ }
274
+ function destroyZanePopup(flag) {
275
+ if (window[flag]) {
276
+ window[flag].removeCalendar && window[flag].removeCalendar();
277
+ delete window[flag];
278
+ }
279
+ }
280
+ function showPicker(delay) {
281
+ const div = document.getElementById(id);
282
+ div && (delay > 0 ? onTimeout(() => div.click(), delay) : div.click());
283
+ }
284
+ function onClick() {
285
+ if (pickerInitialTimer && pickerInitialTimer.destroyed != true) {
286
+ return;
287
+ }
288
+ pickerInitialTimer = onInterval(() => {
289
+ let counter = 0;
290
+ initZanePopup(id) && counter++;
291
+ range && initZanePopup(`${id}DOUBLE`) && counter++;
292
+ counter == (range ? 2 : 1) && pickerInitialTimer.destroy();
293
+ }, 10);
294
+ const timeoutScope = onTimeout(() => pickerInitialTimer.destroyed || pickerInitialTimer.destroy(), 5e3);
295
+ pickerInitialTimer.onDestroy(() => timeoutScope.destroyed || timeoutScope.destroy());
296
+ }
297
+ function onZaneMounted() {}
298
+ function onZanePopupFocus(e) {
299
+ const type = e.type == "mouseenter" ? "focus" : "blur";
300
+ pickerStatusArray.push(type);
301
+ pickerStatusTimer && pickerStatusTimer.destroy();
302
+ pickerStatusTimer = onTimeout(() => {
303
+ const lastStatus = getFromArray(pickerStatusArray, -1);
304
+ lastStatus && pickerLastStatus != lastStatus && emits(`picker-${lastStatus}`);
305
+ pickerLastStatus = lastStatus;
306
+ pickerStatusTimer = void 0;
307
+ pickerStatusArray.splice(0);
308
+ }, 0);
309
+ }
310
+ function onZaneDone(full, begin, end) {
311
+ if (format.includes("-") == true) {
312
+ begin && (begin = begin.replaceAll("/", "-"));
313
+ end && (end = end.replaceAll("/", "-"));
314
+ }
315
+ emits("change", begin, end);
316
+ }
317
+ link.register("/styles/zane-calendar.css");
318
+ onMounted(() => {
319
+ script.has("zane-calendar") || throwError(`zane-calendar module unregistered.`);
320
+ const zaneOptions = {
321
+ elem: `#${id}`,
322
+ type: `${range ? "double" : ""}${props.type || "day"}`,
323
+ format,
324
+ begintime: props.begin || "",
325
+ endtime: props.end || "",
326
+ min: props.min || "1900-10-01",
327
+ max: props.max || "",
328
+ zindex: props.zIndex || 1e4,
329
+ showtime: props.timeDisabled != true,
330
+ showsecond: props.secondDisabled != true,
331
+ showclean: props.cleanDisabled != true,
332
+ shownow: props.nowDisabled != true,
333
+ showsubmit: props.submitDisabled != true,
334
+ width: props.width || 280,
335
+ height: props.height || 300,
336
+ behindTop: props.behindTop || 4,
337
+ lang: "cn",
338
+ event: "click",
339
+ position: "fixed",
340
+ haveBotBtns: true,
341
+ mounted: onZaneMounted,
342
+ done: onZaneDone
343
+ };
344
+ script.load("zane-calendar").then(calendar => {
345
+ console.log(zaneOptions);
346
+ isFunction(calendar) || throwError("load zane-calendar failed: value is not a function.");
347
+ calendar(zaneOptions);
348
+ }, reason => throwError(reason));
349
+ });
350
+ onUnmounted(() => {
351
+ destroyZanePopup(id);
352
+ range && destroyZanePopup(`${id}DOUBLE`);
353
+ });
354
+ return (_ctx, _cache) => {
355
+ return openBlock(), createElementBlock("div", {
356
+ class: "snail-datepicker",
357
+ id: unref(id),
358
+ onClick
359
+ }, null, 8, _hoisted_1$e);
360
+ };
361
+ }
362
+ });
206
363
 
207
364
  var _sfc_main$q = defineComponent({
208
365
  ...{
@@ -235,13 +392,13 @@ var _sfc_main$q = defineComponent({
235
392
  class: normalizeClass(["snail-footer", {
236
393
  "start-divider": _ctx.divider
237
394
  }, _ctx.align || "right"])
238
- }, [renderSlot(_ctx.$slots, "default", {}, () => [_ctx.cancelDisabled != true ? (openBlock(), createBlock(_sfc_main$t, {
395
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [_ctx.cancelDisabled != true ? (openBlock(), createBlock(_sfc_main$u, {
239
396
  key: 0,
240
397
  size: "max",
241
398
  type: "default",
242
399
  onClick: _cache[0] || (_cache[0] = $event => emits("cancel")),
243
400
  textContent: toDisplayString(_ctx.cancelName || "取消")
244
- }, null, 8, ["textContent"])) : createCommentVNode("", true), _ctx.confirmDisabled != true ? (openBlock(), createBlock(_sfc_main$t, {
401
+ }, null, 8, ["textContent"])) : createCommentVNode("", true), _ctx.confirmDisabled != true ? (openBlock(), createBlock(_sfc_main$u, {
245
402
  key: 1,
246
403
  size: "max",
247
404
  type: "primary",
@@ -292,7 +449,7 @@ var _sfc_main$p = defineComponent({
292
449
  key: 0,
293
450
  textContent: toDisplayString(_ctx.title),
294
451
  class: normalizeClass(["header-title", _ctx.titleAlign])
295
- }, null, 10, _hoisted_1$d)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), _ctx.closeDisabled != true ? (openBlock(), createBlock(_sfc_main$s, {
452
+ }, null, 10, _hoisted_1$d)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), _ctx.closeDisabled != true ? (openBlock(), createBlock(_sfc_main$t, {
296
453
  key: 1,
297
454
  type: "close",
298
455
  size: 22,
@@ -353,7 +510,7 @@ var _sfc_main$o = defineComponent({
353
510
  onKeyup: _cache[1] || (_cache[1] = $event => onSearch($event))
354
511
  }, null, 40, _hoisted_1$c), [[vModelText, textModel.value, void 0, {
355
512
  trim: true
356
- }]]), createElementVNode("div", null, [createVNode(_sfc_main$s, {
513
+ }]]), createElementVNode("div", null, [createVNode(_sfc_main$t, {
357
514
  class: "search-button",
358
515
  type: "custom",
359
516
  draw: searchIon,
@@ -394,7 +551,7 @@ function openPopup(container, options, extOptions) {
394
551
  options,
395
552
  extOptions,
396
553
  zIndex: options.zIndex || DEFAULT_ZINDEX,
397
- popupTransition: shallowRef(`${options.transition || "snail-fade"}-in`)
554
+ popupTransition: shallowRef(`${options.transition || "fade"}-in`)
398
555
  });
399
556
  {
400
557
  const app = createApp(container, descriptor);
@@ -417,7 +574,7 @@ function destroyPopup(descriptor, task) {
417
574
  popupStatus.value = "closed";
418
575
  task.resolve(void 0);
419
576
  }
420
- popupTransition.value = `${options.transition || "snail-fade"}-out`;
577
+ popupTransition.value = `${options.transition || "fade"}-out`;
421
578
  const app = POPUPMAPS.get(popupId);
422
579
  if (app != void 0) {
423
580
  POPUPMAPS.delete(popupId);
@@ -575,7 +732,7 @@ function deducePosition(strategy, targetStart, targetEnd, contentSize, clientSiz
575
732
  }
576
733
 
577
734
  const _hoisted_1$b = {
578
- class: "snail-confirm"
735
+ class: "snail-confirm flex-column"
579
736
  };
580
737
  const _hoisted_2$8 = ["innerHTML"];
581
738
  var _sfc_main$n = defineComponent({
@@ -1050,7 +1207,7 @@ var _sfc_main$h = defineComponent({
1050
1207
  }),
1051
1208
  onMouseenter: _cache[3] || (_cache[3] = $event => onMouseEvent(false)),
1052
1209
  onMouseleave: _cache[4] || (_cache[4] = $event => onMouseEvent(true))
1053
- }, [createVNode(_sfc_main$s, {
1210
+ }, [createVNode(_sfc_main$t, {
1054
1211
  type: "close",
1055
1212
  class: "close-icon",
1056
1213
  fill: closeFillRef.value,
@@ -1060,7 +1217,7 @@ var _sfc_main$h = defineComponent({
1060
1217
  onClick: _cache[2] || (_cache[2] = $event => {
1061
1218
  unref(closePopup)();
1062
1219
  })
1063
- }, null, 8, ["fill"]), unref(props).type ? (openBlock(), createElementBlock("div", _hoisted_1$a, [createVNode(_sfc_main$s, {
1220
+ }, null, 8, ["fill"]), unref(props).type ? (openBlock(), createElementBlock("div", _hoisted_1$a, [createVNode(_sfc_main$t, {
1064
1221
  type: unref(props).type,
1065
1222
  fill: "#707070",
1066
1223
  size: 20
@@ -1390,13 +1547,13 @@ var _sfc_main$f = defineComponent({
1390
1547
  onMouseenter: _cache[0] || (_cache[0] = $event => emits("enter", rootDom.value, _ctx.item)),
1391
1548
  onClick: _cache[1] || (_cache[1] = () => emits("click", _ctx.item))
1392
1549
  }, [createElementVNode("div", {
1393
- class: "item-text",
1550
+ class: "item-text ellipsis",
1394
1551
  textContent: toDisplayString(_ctx.item.text)
1395
- }, null, 8, _hoisted_2$5), _ctx.item.type == "group" ? (openBlock(), createBlock(_sfc_main$s, {
1552
+ }, null, 8, _hoisted_2$5), _ctx.item.type == "group" ? (openBlock(), createBlock(_sfc_main$t, {
1396
1553
  key: 0,
1397
1554
  type: "arrow",
1398
1555
  color: "#8a9099"
1399
- })) : _ctx.multiple == true ? (openBlock(), createElementBlock("div", _hoisted_3$4, [createVNode(_sfc_main$s, {
1556
+ })) : _ctx.multiple == true ? (openBlock(), createElementBlock("div", _hoisted_3$4, [createVNode(_sfc_main$t, {
1400
1557
  type: "success",
1401
1558
  color: "white",
1402
1559
  size: 12
@@ -1474,9 +1631,8 @@ var _sfc_main$e = defineComponent({
1474
1631
  } = props;
1475
1632
  const itemsRef = computed(() => (props.items || []).filter(item => context.isShow(item, true)));
1476
1633
  const classRef = computed(() => ({
1477
- "snail-select-popup": true,
1478
1634
  "child-popup": props.level > 1,
1479
- "text-tips": itemsRef.value.length == 0,
1635
+ "placeholder": itemsRef.value.length == 0,
1480
1636
  "has-group": itemsRef.value.find(node => node.type == "group") != void 0
1481
1637
  }));
1482
1638
  var mouseStatus = "Leave";
@@ -1582,11 +1738,11 @@ var _sfc_main$e = defineComponent({
1582
1738
  watcher(popupStatus, newValue => newValue == "closed" && childFollowScope && childFollowScope.destroy());
1583
1739
  return (_ctx, _cache) => {
1584
1740
  return openBlock(), createElementBlock("div", {
1585
- class: normalizeClass(classRef.value),
1741
+ class: normalizeClass(["snail-select-popup", classRef.value]),
1586
1742
  style: normalizeStyle(_ctx.popupStyle),
1587
1743
  onMouseenter: onEnterPopup,
1588
1744
  onMouseleave: onLeavePopup
1589
- }, [classRef.value["child-popup"] && classRef.value["text-tips"] ? (openBlock(), createElementBlock(Fragment, {
1745
+ }, [classRef.value["child-popup"] && classRef.value["placeholder"] ? (openBlock(), createElementBlock(Fragment, {
1590
1746
  key: 0
1591
1747
  }, [createTextVNode(" 暂无选项 ")], 64)) : (openBlock(), createElementBlock(Fragment, {
1592
1748
  key: 1
@@ -1625,7 +1781,7 @@ const _hoisted_2$4 = ["title", "textContent"];
1625
1781
  const _hoisted_3$3 = ["textContent"];
1626
1782
  const _hoisted_4$3 = {
1627
1783
  key: 1,
1628
- class: "no-items text-tips"
1784
+ class: "placeholder"
1629
1785
  };
1630
1786
  onAppCreated((app, type) => {
1631
1787
  type == "popup" && app.component("SelectPopup", _sfc_main$e);
@@ -1755,28 +1911,30 @@ var _sfc_main$d = defineComponent({
1755
1911
  return (_ctx, _cache) => {
1756
1912
  return openBlock(), createElementBlock("div", {
1757
1913
  class: normalizeClass(["snail-select", {
1758
- "readonly": _ctx.readonly
1914
+ "readonly": _ctx.readonly,
1915
+ "empty": !(_ctx.items && _ctx.items.length)
1759
1916
  }]),
1760
1917
  onClick: _cache[0] || (_cache[0] = $event => onClick()),
1761
1918
  ref: "select"
1762
- }, [_ctx.items && _ctx.items.length > 0 ? (openBlock(), createElementBlock(Fragment, {
1919
+ }, [_ctx.items && _ctx.items.length ? (openBlock(), createElementBlock(Fragment, {
1763
1920
  key: 0
1764
- }, [selectedItemsRef.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$7, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))), () => [createElementVNode("div", {
1765
- class: "select-text",
1921
+ }, [selectedItemsRef.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$7, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))), () => [createElementVNode("div", {
1922
+ class: "select-text ellipsis",
1766
1923
  title: selectedTextRef.value,
1767
1924
  textContent: toDisplayString(selectedTextRef.value)
1768
1925
  }, null, 8, _hoisted_2$4)])])) : (openBlock(), createElementBlock("div", {
1769
1926
  key: 1,
1770
- class: "select-result text-tips",
1927
+ class: "placeholder",
1771
1928
  textContent: toDisplayString(_ctx.readonly ? "" : _ctx.placeholder || "请选择")
1772
- }, null, 8, _hoisted_3$3)), createVNode(_sfc_main$s, {
1929
+ }, null, 8, _hoisted_3$3)), _ctx.readonly != true ? (openBlock(), createBlock(_sfc_main$t, {
1930
+ key: 2,
1773
1931
  type: "arrow",
1774
1932
  size: 24,
1775
1933
  color: "#8a9099",
1776
1934
  style: {
1777
1935
  "transform": "rotate(90deg)"
1778
1936
  }
1779
- })], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$3, "暂无可选项"))], 2);
1937
+ })) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$3, "暂无可选项"))], 2);
1780
1938
  };
1781
1939
  }
1782
1940
  });
@@ -1914,13 +2072,13 @@ var _sfc_main$b = defineComponent({
1914
2072
  return openBlock(), createElementBlock("div", {
1915
2073
  class: normalizeClass(["snail-fold", statusModel.value])
1916
2074
  }, [createElementVNode("div", _hoisted_1$6, [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", {
1917
- class: "title",
2075
+ class: "title ellipsis",
1918
2076
  textContent: toDisplayString(_ctx.title)
1919
2077
  }, null, 8, _hoisted_2$3), !!_ctx.subtitle ? (openBlock(), createElementBlock("div", {
1920
2078
  key: 0,
1921
- class: "subtitle",
2079
+ class: "subtitle ellipsis",
1922
2080
  textContent: toDisplayString(_ctx.subtitle)
1923
- }, null, 8, _hoisted_3$2)) : createCommentVNode("", true), _ctx.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createVNode(_sfc_main$s, {
2081
+ }, null, 8, _hoisted_3$2)) : createCommentVNode("", true), _ctx.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createVNode(_sfc_main$t, {
1924
2082
  type: "arrow",
1925
2083
  title: statusModel.value == "expand" ? "收起" : "展开",
1926
2084
  onClick: onStatusClick
@@ -2275,7 +2433,7 @@ const _hoisted_1$3 = {
2275
2433
  };
2276
2434
  const _hoisted_2$1 = ["title", "textContent"];
2277
2435
  const _hoisted_3$1 = {
2278
- class: "node-slot"
2436
+ class: "node-slot ellipsis"
2279
2437
  };
2280
2438
  const _hoisted_4$1 = {
2281
2439
  key: 1,
@@ -2398,7 +2556,7 @@ var _sfc_main$4 = defineComponent({
2398
2556
  key: 1
2399
2557
  }, [_cache[4] || (_cache[4] = createElementVNode("div", {
2400
2558
  class: "indent"
2401
- }, null, -1)), _ctx.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$3, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$s, {
2559
+ }, null, -1)), _ctx.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$3, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$t, {
2402
2560
  key: 0,
2403
2561
  class: normalizeClass(statusRef.value),
2404
2562
  type: "custom",
@@ -2407,7 +2565,7 @@ var _sfc_main$4 = defineComponent({
2407
2565
  draw: "M 298.667 426.667 l 213.333 256 l 213.333 -256 Z",
2408
2566
  onClick: toggleFold
2409
2567
  }, null, 8, ["class"])) : createCommentVNode("", true)])) : createCommentVNode("", true), createElementVNode("div", {
2410
- class: "node-text",
2568
+ class: "node-text ellipsis",
2411
2569
  title: _ctx.node.text,
2412
2570
  textContent: toDisplayString(_ctx.node.text)
2413
2571
  }, null, 8, _hoisted_2$1), createElementVNode("div", _hoisted_3$1, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))))])], 64))], 34)) : createCommentVNode("", true), showRef.value && showChildrenRef.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.node.children, child => {
@@ -2631,7 +2789,7 @@ var _sfc_main$1 = defineComponent({
2631
2789
  key: 0,
2632
2790
  class: "validate",
2633
2791
  title: validateRef.value
2634
- }, [createVNode(_sfc_main$s, {
2792
+ }, [createVNode(_sfc_main$t, {
2635
2793
  type: "error",
2636
2794
  size: 16,
2637
2795
  color: "red"
@@ -2725,12 +2883,12 @@ var _sfc_main = defineComponent({
2725
2883
  onTouchstart: onStartDrag,
2726
2884
  onTouchmove: onDragMove,
2727
2885
  onTouchend: onDragEnd
2728
- }, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$s, {
2886
+ }, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$t, {
2729
2887
  key: 0,
2730
2888
  type: "success",
2731
2889
  size: 20,
2732
2890
  color: "white"
2733
- })) : (openBlock(), createBlock(_sfc_main$s, {
2891
+ })) : (openBlock(), createBlock(_sfc_main$t, {
2734
2892
  key: 1,
2735
2893
  type: "custom",
2736
2894
  size: 20,
@@ -2742,11 +2900,12 @@ var _sfc_main = defineComponent({
2742
2900
  });
2743
2901
 
2744
2902
  const components = {
2745
- Button: _sfc_main$t,
2746
- Choose: _sfc_main$r,
2903
+ Button: _sfc_main$u,
2904
+ Choose: _sfc_main$s,
2905
+ DatePicker: _sfc_main$r,
2747
2906
  Footer: _sfc_main$q,
2748
2907
  Header: _sfc_main$p,
2749
- Icon: _sfc_main$s,
2908
+ Icon: _sfc_main$t,
2750
2909
  Search: _sfc_main$o,
2751
2910
  Select: _sfc_main$d,
2752
2911
  Switch: _sfc_main$c,