@dao-style/core 0.0.1-beta.4 → 0.0.1-beta.7

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.
Files changed (133) hide show
  1. package/dist/components/action-icon/action-icon.vue.d.ts +35 -0
  2. package/dist/components/action-icon/index.d.ts +1 -0
  3. package/dist/components/action-icon/test/action-icon.spec.d.ts +1 -0
  4. package/dist/components/breadcrumb/breadcrumb-item-props.d.ts +16 -0
  5. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +24 -0
  6. package/dist/components/breadcrumb/breadcrumb-props.d.ts +40 -0
  7. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +64 -0
  8. package/dist/components/breadcrumb/index.d.ts +2 -0
  9. package/dist/components/breadcrumb/test/breadcrumb-item.spec.d.ts +1 -0
  10. package/dist/components/breadcrumb/test/breadcrumb.spec.d.ts +1 -0
  11. package/dist/components/button/button-group.vue.d.ts +2 -0
  12. package/dist/components/button/button-icon.vue.d.ts +20 -0
  13. package/dist/components/button/button.vue.d.ts +75 -0
  14. package/dist/components/button/index.d.ts +2 -0
  15. package/dist/components/button/props.d.ts +40 -0
  16. package/dist/components/button/test/button.spec.d.ts +1 -0
  17. package/dist/components/card/card-item.vue.d.ts +2 -0
  18. package/dist/components/card/card.vue.d.ts +44 -0
  19. package/dist/components/card/index.d.ts +2 -0
  20. package/dist/components/card/test/card.spec.d.ts +1 -0
  21. package/dist/components/card/types.d.ts +1 -0
  22. package/dist/components/checkbox/checkbox-group.vue.d.ts +26 -0
  23. package/dist/components/checkbox/checkbox.vue.d.ts +73 -0
  24. package/dist/components/checkbox/index.d.ts +2 -0
  25. package/dist/components/checkbox/test/checkbox-group.spec.d.ts +1 -0
  26. package/dist/components/checkbox/test/checkbox.spec.d.ts +1 -0
  27. package/dist/components/checkbox/test/utils.d.ts +6 -0
  28. package/dist/components/dialog/dialog-footer.vue.d.ts +33 -0
  29. package/dist/components/dialog/dialog-header.vue.d.ts +24 -0
  30. package/dist/components/dialog/dialog.vue.d.ts +133 -0
  31. package/dist/components/dialog/index.d.ts +3 -0
  32. package/dist/components/dialog/test/dialog-footer.spec.d.ts +1 -0
  33. package/dist/components/dialog/test/dialog-header.spec.d.ts +1 -0
  34. package/dist/components/dialog/test/dialog.spec.d.ts +1 -0
  35. package/dist/components/dropdown/dropdown-item.vue.d.ts +36 -0
  36. package/dist/components/dropdown/dropdown-menu.vue.d.ts +2 -0
  37. package/dist/components/dropdown/dropdown.vue.d.ts +51 -0
  38. package/dist/components/dropdown/index.d.ts +3 -0
  39. package/dist/components/dropdown/test/dropdown-item.spec.d.ts +1 -0
  40. package/dist/components/dropdown/test/dropdown-menu.spec.d.ts +1 -0
  41. package/dist/components/dropdown/test/dropdown.spec.d.ts +1 -0
  42. package/dist/components/form/form-group.vue.d.ts +13 -0
  43. package/dist/components/form/form-item.vue.d.ts +51 -0
  44. package/dist/components/form/form.vue.d.ts +22 -0
  45. package/dist/components/form/index.d.ts +3 -0
  46. package/dist/components/form/test/form-group.spec.d.ts +1 -0
  47. package/dist/components/form/test/form-item.spec.d.ts +1 -0
  48. package/dist/components/form/test/form.spec.d.ts +1 -0
  49. package/dist/components/header/header.vue.d.ts +26 -0
  50. package/dist/components/header/index.d.ts +1 -0
  51. package/dist/components/header/props.d.ts +15 -0
  52. package/dist/components/header/test/header.spec.d.ts +1 -0
  53. package/dist/components/icon/icon.vue.d.ts +19 -0
  54. package/dist/components/icon/index.d.ts +2 -0
  55. package/dist/components/icon/svg.d.ts +1 -0
  56. package/dist/components/icon/test/icon.spec.d.ts +1 -0
  57. package/dist/components/index.d.ts +23 -0
  58. package/dist/components/input/index.d.ts +1 -0
  59. package/dist/components/input/input.vue.d.ts +103 -0
  60. package/dist/components/input/props.d.ts +47 -0
  61. package/dist/components/input/test/input.spec.d.ts +1 -0
  62. package/dist/components/message/index.d.ts +1 -0
  63. package/dist/components/message/message.vue.d.ts +53 -0
  64. package/dist/components/message/props.d.ts +25 -0
  65. package/dist/components/message/test/message.spec.d.ts +1 -0
  66. package/dist/components/message/types.d.ts +1 -0
  67. package/dist/components/nav/index.d.ts +4 -0
  68. package/dist/components/nav/nav-head.vue.d.ts +34 -0
  69. package/dist/components/nav/nav-item.vue.d.ts +68 -0
  70. package/dist/components/nav/nav-sub.vue.d.ts +80 -0
  71. package/dist/components/nav/nav.vue.d.ts +33 -0
  72. package/dist/components/nav/props.d.ts +98 -0
  73. package/dist/components/nav/test/nav-head.spec.d.ts +1 -0
  74. package/dist/components/nav/test/nav-item.spec.d.ts +1 -0
  75. package/dist/components/nav/test/nav-sub.spec.d.ts +1 -0
  76. package/dist/components/nav/test/nav.spec.d.ts +1 -0
  77. package/dist/components/nav/types.d.ts +13 -0
  78. package/dist/components/pagination/index.d.ts +1 -0
  79. package/dist/components/pagination/pagination-props.d.ts +39 -0
  80. package/dist/components/pagination/pagination.vue.d.ts +82 -0
  81. package/dist/components/pagination/test/pagination.spec.d.ts +1 -0
  82. package/dist/components/plugin.d.ts +4 -0
  83. package/dist/components/popover/index.d.ts +1 -0
  84. package/dist/components/popover/popover.vue.d.ts +120 -0
  85. package/dist/components/popover/test/popover.spec.d.ts +1 -0
  86. package/dist/components/popper/index.d.ts +1 -0
  87. package/dist/components/popper/popper-content.vue.d.ts +57 -0
  88. package/dist/components/popper/popper-props.d.ts +74 -0
  89. package/dist/components/popper/popper.vue.d.ts +123 -0
  90. package/dist/components/popper/test/popper.spec.d.ts +1 -0
  91. package/dist/components/progress/index.d.ts +1 -0
  92. package/dist/components/progress/progress.vue.d.ts +38 -0
  93. package/dist/components/progress/test/progress.spec.d.ts +1 -0
  94. package/dist/components/radio/index.d.ts +2 -0
  95. package/dist/components/radio/radio-group.vue.d.ts +33 -0
  96. package/dist/components/radio/radio.vue.d.ts +55 -0
  97. package/dist/components/radio/test/radio-group.spec.d.ts +1 -0
  98. package/dist/components/radio/test/radio.spec.d.ts +1 -0
  99. package/dist/components/select/index.d.ts +2 -0
  100. package/dist/components/select/option.vue.d.ts +32 -0
  101. package/dist/components/select/select.vue.d.ts +229 -0
  102. package/dist/components/select/test/option.spec.d.ts +1 -0
  103. package/dist/components/select/test/select.spec.d.ts +1 -0
  104. package/dist/components/select/types.d.ts +22 -0
  105. package/dist/components/switch/index.d.ts +1 -0
  106. package/dist/components/switch/switch.vue.d.ts +62 -0
  107. package/dist/components/switch/test/switch.spec.d.ts +1 -0
  108. package/dist/components/table/index.d.ts +1 -0
  109. package/dist/components/table/resizer.vue.d.ts +33 -0
  110. package/dist/components/table/table-props.d.ts +66 -0
  111. package/dist/components/table/table.vue.d.ts +186 -0
  112. package/dist/components/table/test/table.spec.d.ts +1 -0
  113. package/dist/components/table/type.d.ts +20 -0
  114. package/dist/components/tabs/index.d.ts +3 -0
  115. package/dist/components/tabs/tab-item.vue.d.ts +30 -0
  116. package/dist/components/tabs/tab-nav.vue.d.ts +33 -0
  117. package/dist/components/tabs/tabs.vue.d.ts +43 -0
  118. package/dist/components/tabs/test/tabs.spec.d.ts +1 -0
  119. package/dist/components/tabs/types.d.ts +9 -0
  120. package/dist/components/tooltip/index.d.ts +1 -0
  121. package/dist/components/tooltip/test/tooltip.spec.d.ts +1 -0
  122. package/dist/components/tooltip/tooltip-props.d.ts +60 -0
  123. package/dist/components/tooltip/tooltip.vue.d.ts +120 -0
  124. package/dist/dao-style.es.js +582 -276
  125. package/dist/dao-style.umd.js +1 -1
  126. package/dist/index.d.ts +8 -0
  127. package/dist/style.css +1 -1
  128. package/dist/utils/assist.d.ts +7 -0
  129. package/dist/utils/constant.d.ts +17 -0
  130. package/dist/utils/copy-content.d.ts +2 -0
  131. package/dist/utils/is-nullish.d.ts +1 -0
  132. package/package.json +10 -14
  133. package/volar.d.ts +47 -0
@@ -17,7 +17,60 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, computed, unref, resolveComponent, renderSlot, Fragment, createCommentVNode, createTextVNode, toDisplayString, ref, inject, watchEffect, mergeProps, provide, createVNode, toRefs, withCtx, watch, Transition, withModifiers, normalizeStyle, withKeys, withDirectives, vShow, getCurrentInstance, onMounted, onBeforeUnmount, Teleport, nextTick, reactive, vModelText, renderList, onUnmounted, h } from "vue";
20
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createElementVNode, createBlock, unref, resolveComponent, Fragment, createTextVNode, toDisplayString, ref, inject, watchEffect, mergeProps, provide, toRefs, createVNode, withCtx, watch, Transition, withModifiers, normalizeStyle, withKeys, withDirectives, vShow, getCurrentInstance, onMounted, onBeforeUnmount, Teleport, nextTick, renderList, reactive, vModelText, onUnmounted, h } from "vue";
21
+ import { isArray, isSet, looseIndexOf, looseEqual, isFunction, NOOP } from "@vue/shared";
22
+ var actionIcon_vue_vue_type_style_index_0_lang = "";
23
+ var _export_sfc = (sfc, props) => {
24
+ for (const [key, val] of props) {
25
+ sfc[key] = val;
26
+ }
27
+ return sfc;
28
+ };
29
+ const _sfc_main$G = defineComponent({
30
+ name: "DaoActionIcon",
31
+ props: {
32
+ name: {
33
+ type: String,
34
+ default: ""
35
+ },
36
+ type: {
37
+ type: String,
38
+ default: "button",
39
+ validator: (value) => ["button", "divider"].includes(value)
40
+ },
41
+ disabled: {
42
+ type: Boolean,
43
+ default: false
44
+ }
45
+ },
46
+ emits: ["click"],
47
+ setup(props, { emit }) {
48
+ const isDivider = props.type === "divider";
49
+ const handleClick = (event) => emit("click", event);
50
+ const realDisabled = computed(() => isDivider || props.disabled);
51
+ return {
52
+ handleClick,
53
+ isDivider,
54
+ realDisabled
55
+ };
56
+ }
57
+ });
58
+ const _hoisted_1$u = ["disabled"];
59
+ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
60
+ return openBlock(), createElementBlock("button", {
61
+ class: normalizeClass(["dao-action-icon", `dao-action-icon--type-${_ctx.type}`]),
62
+ disabled: _ctx.realDisabled,
63
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
64
+ }, [
65
+ renderSlot(_ctx.$slots, "default", {}, () => [
66
+ !_ctx.isDivider ? (openBlock(), createElementBlock("i", {
67
+ key: 0,
68
+ class: normalizeClass(["dao-action-icon__iconfont", _ctx.name])
69
+ }, null, 2)) : createCommentVNode("", true)
70
+ ])
71
+ ], 10, _hoisted_1$u);
72
+ }
73
+ var actionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$C]]);
21
74
  const BUTTON_TYPES = ["primary", "secondary", "tertiary", "ghost", "danger"];
22
75
  var buttonProps = {
23
76
  type: {
@@ -56,13 +109,7 @@ var buttonProps = {
56
109
  }
57
110
  };
58
111
  var icon_scss_vue_type_style_index_0_src_lang = "";
59
- var _export_sfc = (sfc, props) => {
60
- for (const [key, val] of props) {
61
- sfc[key] = val;
62
- }
63
- return sfc;
64
- };
65
- const _sfc_main$C = defineComponent({
112
+ const _sfc_main$F = defineComponent({
66
113
  name: "DaoIcon",
67
114
  props: {
68
115
  name: {
@@ -80,7 +127,7 @@ const _hoisted_1$t = {
80
127
  class: "dao-icon"
81
128
  };
82
129
  const _hoisted_2$j = ["xlink:href"];
83
- function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
130
+ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
84
131
  return _ctx.useFont ? (openBlock(), createElementBlock("i", {
85
132
  key: 0,
86
133
  class: normalizeClass(["dao-icon dao-iconfont", _ctx.name])
@@ -90,8 +137,8 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
90
137
  }, null, 8, _hoisted_2$j)
91
138
  ]));
92
139
  }
93
- var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$y]]);
94
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
140
+ var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$B]]);
141
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
95
142
  props: {
96
143
  useFont: {
97
144
  type: Boolean,
@@ -120,10 +167,10 @@ const NO_ICON = Symbol(0);
120
167
  const RIGHT_ICON = Symbol(1);
121
168
  const LEFT_ICON = Symbol(2);
122
169
  const BOTH_ICON = Symbol(3);
123
- const _sfc_main$A = defineComponent({
170
+ const _sfc_main$D = defineComponent({
124
171
  name: "DaoButton",
125
172
  components: {
126
- DaoButtonIcon: _sfc_main$B
173
+ DaoButtonIcon: _sfc_main$E
127
174
  },
128
175
  props: buttonProps,
129
176
  emits: ["click"],
@@ -212,7 +259,7 @@ const _hoisted_2$i = {
212
259
  key: 1,
213
260
  class: "dao-btn__text"
214
261
  };
215
- function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
262
+ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
216
263
  const _component_dao_button_icon = resolveComponent("dao-button-icon");
217
264
  return openBlock(), createElementBlock("button", {
218
265
  class: normalizeClass(_ctx.classList),
@@ -236,20 +283,20 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
236
283
  ], 64))
237
284
  ], 10, _hoisted_1$s);
238
285
  }
239
- var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
286
+ var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$A]]);
240
287
  var buttonGroup_vue_vue_type_style_index_0_lang = "";
241
- const _sfc_main$z = defineComponent({
288
+ const _sfc_main$C = defineComponent({
242
289
  name: "DaoButtonGroup"
243
290
  });
244
291
  const _hoisted_1$r = { class: "dao-btn-group" };
245
- function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
292
+ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
246
293
  return openBlock(), createElementBlock("div", _hoisted_1$r, [
247
294
  renderSlot(_ctx.$slots, "default")
248
295
  ]);
249
296
  }
250
- var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
297
+ var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$z]]);
251
298
  var card_scss_vue_type_style_index_0_src_lang = "";
252
- const _sfc_main$y = defineComponent({
299
+ const _sfc_main$B = defineComponent({
253
300
  name: "DaoCard",
254
301
  components: {
255
302
  DaoIcon
@@ -287,7 +334,7 @@ const _hoisted_2$h = {
287
334
  };
288
335
  const _hoisted_3$b = { class: "dao-card-header-item dao-card-header-title" };
289
336
  const _hoisted_4$a = { class: "dao-card-header-item dao-card-header-action" };
290
- function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
337
+ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
291
338
  const _component_dao_icon = resolveComponent("dao-icon");
292
339
  return openBlock(), createElementBlock("div", {
293
340
  class: normalizeClass(["dao-card", `dao-card--${_ctx.type}`])
@@ -332,73 +379,18 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
332
379
  ], 2)
333
380
  ], 2);
334
381
  }
335
- var card = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
382
+ var card = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$y]]);
336
383
  var cardItem_scss_vue_type_style_index_0_src_lang = "";
337
- const _sfc_main$x = defineComponent({
384
+ const _sfc_main$A = defineComponent({
338
385
  name: "DaoCardItem"
339
386
  });
340
387
  const _hoisted_1$p = { class: "dao-card-item" };
341
- function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
388
+ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
342
389
  return openBlock(), createElementBlock("div", _hoisted_1$p, [
343
390
  renderSlot(_ctx.$slots, "default")
344
391
  ]);
345
392
  }
346
- var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
347
- function looseCompareArrays(a, b) {
348
- if (a.length !== b.length)
349
- return false;
350
- let equal = true;
351
- for (let i = 0; equal && i < a.length; i++) {
352
- equal = looseEqual(a[i], b[i]);
353
- }
354
- return equal;
355
- }
356
- function looseEqual(a, b) {
357
- if (a === b)
358
- return true;
359
- let aValidType = isDate(a);
360
- let bValidType = isDate(b);
361
- if (aValidType || bValidType) {
362
- return aValidType && bValidType ? a.getTime() === b.getTime() : false;
363
- }
364
- aValidType = isArray(a);
365
- bValidType = isArray(b);
366
- if (aValidType || bValidType) {
367
- return aValidType && bValidType ? looseCompareArrays(a, b) : false;
368
- }
369
- aValidType = isObject(a);
370
- bValidType = isObject(b);
371
- if (aValidType || bValidType) {
372
- if (!aValidType || !bValidType) {
373
- return false;
374
- }
375
- const aKeysCount = Object.keys(a).length;
376
- const bKeysCount = Object.keys(b).length;
377
- if (aKeysCount !== bKeysCount) {
378
- return false;
379
- }
380
- for (const key in a) {
381
- const aHasKey = a.hasOwnProperty(key);
382
- const bHasKey = b.hasOwnProperty(key);
383
- if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {
384
- return false;
385
- }
386
- }
387
- }
388
- return String(a) === String(b);
389
- }
390
- function looseIndexOf(arr, val) {
391
- return arr.findIndex((item) => looseEqual(item, val));
392
- }
393
- const NOOP = () => {
394
- };
395
- const isArray = Array.isArray;
396
- const isSet = (val) => toTypeString(val) === "[object Set]";
397
- const isDate = (val) => val instanceof Date;
398
- const isFunction = (val) => typeof val === "function";
399
- const isObject = (val) => val !== null && typeof val === "object";
400
- const objectToString = Object.prototype.toString;
401
- const toTypeString = (value) => objectToString.call(value);
393
+ var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
402
394
  function isNullish(val) {
403
395
  return val === null || val === void 0;
404
396
  }
@@ -429,9 +421,10 @@ const checkboxGroupChangeFnKey = Symbol("checkboxGroupChangeFnKey");
429
421
  const formLabelWidthKey = Symbol("formLabelWidthKey");
430
422
  const navRootKey = Symbol("rootNav");
431
423
  const navSubKey = Symbol("subNav");
424
+ const breadcrumbKey = Symbol("breadcrumbKey");
432
425
  var checkbox_vue_vue_type_style_index_0_lang = "";
433
426
  const modelValueAny = [String, Number, Boolean, Symbol, Object, Set, Array];
434
- const _sfc_main$w = defineComponent({
427
+ const _sfc_main$z = defineComponent({
435
428
  name: "DaoCheckbox",
436
429
  props: {
437
430
  modelValue: {
@@ -526,13 +519,13 @@ const _sfc_main$w = defineComponent({
526
519
  const modelValue = currentModelValue.value;
527
520
  const { value } = props;
528
521
  if (isArray(modelValue)) {
529
- const index = looseIndexOf(modelValue, value);
530
- const found = index !== -1;
522
+ const index2 = looseIndexOf(modelValue, value);
523
+ const found = index2 !== -1;
531
524
  if (checked && !found) {
532
525
  emitModelValue(modelValue.concat(value), event);
533
526
  } else if (!checked && found) {
534
527
  const filtered = [...modelValue];
535
- filtered.splice(index, 1);
528
+ filtered.splice(index2, 1);
536
529
  emitModelValue(filtered, event);
537
530
  }
538
531
  } else if (isSet(modelValue)) {
@@ -578,7 +571,7 @@ const _hoisted_5$5 = {
578
571
  key: 1,
579
572
  class: "dao-checkbox__label-helper"
580
573
  };
581
- function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
574
+ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
582
575
  return openBlock(), createElementBlock("label", {
583
576
  class: normalizeClass(_ctx.wrapClasses)
584
577
  }, [
@@ -608,9 +601,9 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
608
601
  ])) : createCommentVNode("", true)
609
602
  ], 2);
610
603
  }
611
- var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$t]]);
604
+ var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
612
605
  var checkboxGroup_vue_vue_type_style_index_0_lang = "";
613
- const _sfc_main$v = defineComponent({
606
+ const _sfc_main$y = defineComponent({
614
607
  name: "DaoCheckboxGroup",
615
608
  props: {
616
609
  modelValue: {
@@ -644,18 +637,18 @@ const _sfc_main$v = defineComponent({
644
637
  };
645
638
  }
646
639
  });
647
- function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
640
+ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
648
641
  return openBlock(), createElementBlock("div", {
649
642
  class: normalizeClass(_ctx.checkboxGroupClasses)
650
643
  }, [
651
644
  renderSlot(_ctx.$slots, "default")
652
645
  ], 2);
653
646
  }
654
- var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
655
- const _sfc_main$u = defineComponent({
647
+ var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
648
+ const _sfc_main$x = defineComponent({
656
649
  name: "DaoDialogHeader",
657
650
  components: {
658
- DaoIcon
651
+ DaoButton
659
652
  },
660
653
  props: {
661
654
  showClose: {
@@ -676,33 +669,27 @@ const _sfc_main$u = defineComponent({
676
669
  }
677
670
  });
678
671
  const _hoisted_1$n = { class: "dao-dialog-header" };
679
- function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
680
- const _component_dao_icon = resolveComponent("dao-icon");
672
+ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
673
+ const _component_dao_button = resolveComponent("dao-button");
681
674
  return openBlock(), createElementBlock("div", _hoisted_1$n, [
682
675
  renderSlot(_ctx.$slots, "default", {}, () => [
683
- createElementVNode("span", {
684
- class: normalizeClass({ "center": !_ctx.showClose })
685
- }, [
676
+ createElementVNode("span", null, [
686
677
  renderSlot(_ctx.$slots, "title", {}, () => [
687
678
  createTextVNode(toDisplayString(_ctx.title), 1)
688
679
  ])
689
- ], 2),
690
- _ctx.showClose ? (openBlock(), createElementBlock("a", {
680
+ ]),
681
+ _ctx.showClose ? (openBlock(), createBlock(_component_dao_button, {
691
682
  key: 0,
692
- href: "javascript:void(0)",
693
- class: "dao-dialog-header-close-btn",
694
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClose && _ctx.onClose(...args))
695
- }, [
696
- createVNode(_component_dao_icon, {
697
- name: "icon_close-circled",
698
- class: "dao-dialog-header-close-btn__close"
699
- })
700
- ])) : createCommentVNode("", true)
683
+ "use-font": "",
684
+ type: "ghost",
685
+ "icon-left": "icon-close",
686
+ onClick: _ctx.onClose
687
+ }, null, 8, ["onClick"])) : createCommentVNode("", true)
701
688
  ])
702
689
  ]);
703
690
  }
704
- var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$r]]);
705
- const _sfc_main$t = defineComponent({
691
+ var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
692
+ const _sfc_main$w = defineComponent({
706
693
  name: "DaoDialogFooter",
707
694
  components: {
708
695
  DaoButton
@@ -739,12 +726,12 @@ const _sfc_main$t = defineComponent({
739
726
  }
740
727
  });
741
728
  const _hoisted_1$m = { class: "dao-dialog-footer" };
742
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
729
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
743
730
  const _component_dao_button = resolveComponent("dao-button");
744
731
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
745
732
  renderSlot(_ctx.$slots, "default", {}, () => [
746
733
  createVNode(_component_dao_button, {
747
- type: "secondary",
734
+ type: "ghost",
748
735
  class: "dao-dialog-footer-cancel-btn",
749
736
  onClick: _ctx.onCancel
750
737
  }, {
@@ -766,13 +753,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
766
753
  ])
767
754
  ]);
768
755
  }
769
- var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
756
+ var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$t]]);
770
757
  var dialog_scss_vue_type_style_index_0_src_lang = "";
771
758
  const DIALOG_NUM_ATTR = "dao-dialog-num";
772
759
  const DIALOG_MINIMUM_PADDING = "20px";
773
760
  const DIALOG_DEFAULT_PADDING_TOP = "100px";
774
761
  const DIALOG_DEFAULT_PADDING_BOTTOM = "20px";
775
- const _sfc_main$s = defineComponent({
762
+ const _sfc_main$v = defineComponent({
776
763
  name: "DaoDialog",
777
764
  components: {
778
765
  DialogHeader,
@@ -850,7 +837,7 @@ const _sfc_main$s = defineComponent({
850
837
  "before-close",
851
838
  "closed"
852
839
  ],
853
- setup(props, { emit, slots }) {
840
+ setup(props, { emit }) {
854
841
  const {
855
842
  modelValue,
856
843
  middle,
@@ -858,7 +845,7 @@ const _sfc_main$s = defineComponent({
858
845
  bottom: bottom2,
859
846
  containerClass,
860
847
  size,
861
- header,
848
+ header: header2,
862
849
  lockScroll,
863
850
  closeOnPressEscape,
864
851
  closeOnClickOutside
@@ -869,8 +856,8 @@ const _sfc_main$s = defineComponent({
869
856
  containerClass.value,
870
857
  `dao-dialog__size-${size.value}`
871
858
  ]);
872
- const showHeader = computed(() => typeof header.value === "boolean" ? header.value : true);
873
- const headerTitle = computed(() => typeof header.value === "string" ? header.value : "");
859
+ const showHeader = computed(() => typeof header2.value === "boolean" ? header2.value : true);
860
+ const headerTitle = computed(() => typeof header2.value === "string" ? header2.value : "");
874
861
  watch(modelValue, (newV) => {
875
862
  emit("change", newV);
876
863
  });
@@ -937,7 +924,6 @@ const _sfc_main$s = defineComponent({
937
924
  computedContainerClass,
938
925
  headerTitle,
939
926
  showHeader,
940
- slots,
941
927
  onBeforeEnter,
942
928
  onAfterEnter,
943
929
  onConfirm,
@@ -949,7 +935,7 @@ const _sfc_main$s = defineComponent({
949
935
  }
950
936
  });
951
937
  const _hoisted_1$l = { class: "dao-dialog-body" };
952
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
938
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
953
939
  const _component_dialog_header = resolveComponent("dialog-header");
954
940
  const _component_dialog_footer = resolveComponent("dialog-footer");
955
941
  return openBlock(), createBlock(Transition, {
@@ -1006,7 +992,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
1006
992
  _: 3
1007
993
  }, 8, ["onBeforeEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"]);
1008
994
  }
1009
- var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
995
+ var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
1010
996
  var top = "top";
1011
997
  var bottom = "bottom";
1012
998
  var right = "right";
@@ -2140,13 +2126,13 @@ function popperGenerator(generatorOptions) {
2140
2126
  state.orderedModifiers.forEach(function(modifier) {
2141
2127
  return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
2142
2128
  });
2143
- for (var index = 0; index < state.orderedModifiers.length; index++) {
2129
+ for (var index2 = 0; index2 < state.orderedModifiers.length; index2++) {
2144
2130
  if (state.reset === true) {
2145
2131
  state.reset = false;
2146
- index = -1;
2132
+ index2 = -1;
2147
2133
  continue;
2148
2134
  }
2149
- var _state$orderedModifie = state.orderedModifiers[index], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
2135
+ var _state$orderedModifie = state.orderedModifiers[index2], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
2150
2136
  if (typeof fn2 === "function") {
2151
2137
  state = fn2({
2152
2138
  state,
@@ -2205,7 +2191,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
2205
2191
  var createPopper = /* @__PURE__ */ popperGenerator({
2206
2192
  defaultModifiers
2207
2193
  });
2208
- const _sfc_main$r = defineComponent({
2194
+ const _sfc_main$u = defineComponent({
2209
2195
  name: "PopperContent",
2210
2196
  props: {
2211
2197
  popperId: {
@@ -2260,22 +2246,22 @@ const _hoisted_2$f = {
2260
2246
  };
2261
2247
  const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("svg", {
2262
2248
  class: "dao-popper-arrow-viewbox",
2263
- viewBox: "0 0 30 30"
2249
+ viewBox: "0 0 15 15"
2264
2250
  }, [
2265
2251
  /* @__PURE__ */ createElementVNode("path", {
2266
2252
  class: "pt-popper-arrow-border",
2267
- d: "M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z",
2268
- "fill-opacity": "0.1"
2253
+ d: "M4 7.5L14 -1L14 16Z",
2254
+ opacity: "0.1"
2269
2255
  }),
2270
2256
  /* @__PURE__ */ createElementVNode("path", {
2271
2257
  class: "pt-popper-arrow-fill",
2272
- d: "M9.387 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"
2258
+ d: "M6 7.5L15 -1L15 16Z"
2273
2259
  })
2274
2260
  ], -1);
2275
2261
  const _hoisted_4$8 = [
2276
2262
  _hoisted_3$9
2277
2263
  ];
2278
- function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2264
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
2279
2265
  return openBlock(), createElementBlock("div", {
2280
2266
  id: _ctx.popperId,
2281
2267
  ref: "popover",
@@ -2299,7 +2285,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2299
2285
  ])
2300
2286
  ], 42, _hoisted_1$k);
2301
2287
  }
2302
- var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
2288
+ var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$r]]);
2303
2289
  var PopperProps = {
2304
2290
  modelValue: {
2305
2291
  type: Boolean,
@@ -2389,7 +2375,7 @@ function updatePopperOptions(popperInstance, modifiers, popperOptions = {}) {
2389
2375
  });
2390
2376
  });
2391
2377
  }
2392
- const _sfc_main$q = defineComponent({
2378
+ const _sfc_main$t = defineComponent({
2393
2379
  name: "DaoPopper",
2394
2380
  components: {
2395
2381
  PopperContent
@@ -2579,10 +2565,17 @@ const _sfc_main$q = defineComponent({
2579
2565
  }
2580
2566
  };
2581
2567
  const handleDocumentClick = (e) => {
2568
+ let { target } = e;
2569
+ if (e.composed) {
2570
+ const composedPath = e.composedPath();
2571
+ if (composedPath.length) {
2572
+ [target] = composedPath;
2573
+ }
2574
+ }
2582
2575
  if (!unref(isOpen)) {
2583
2576
  return;
2584
2577
  }
2585
- if (!(_popperNode == null ? void 0 : _popperNode.contains(e.target)) && !(_targetNode == null ? void 0 : _targetNode.contains(e.target))) {
2578
+ if (!(_popperNode == null ? void 0 : _popperNode.contains(target)) && !(_targetNode == null ? void 0 : _targetNode.contains(target))) {
2586
2579
  hide();
2587
2580
  }
2588
2581
  };
@@ -2739,7 +2732,7 @@ const _sfc_main$q = defineComponent({
2739
2732
  };
2740
2733
  }
2741
2734
  });
2742
- function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2735
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
2743
2736
  const _component_popper_content = resolveComponent("popper-content");
2744
2737
  return openBlock(), createElementBlock("div", {
2745
2738
  ref: "reference",
@@ -2781,8 +2774,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2781
2774
  ], 8, ["to", "disabled"]))
2782
2775
  ], 2);
2783
2776
  }
2784
- var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
2785
- const _sfc_main$p = defineComponent({
2777
+ var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
2778
+ const _sfc_main$s = defineComponent({
2786
2779
  name: "DaoDropdown",
2787
2780
  components: {
2788
2781
  DaoPopper: Popper
@@ -2839,7 +2832,7 @@ const _sfc_main$p = defineComponent({
2839
2832
  }
2840
2833
  });
2841
2834
  const _hoisted_1$j = { tabindex: "0" };
2842
- function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2835
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
2843
2836
  const _component_dao_popper = resolveComponent("dao-popper");
2844
2837
  return openBlock(), createBlock(_component_dao_popper, {
2845
2838
  ref: "popper",
@@ -2862,20 +2855,20 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2862
2855
  _: 3
2863
2856
  }, 8, ["placement", "append-to", "trigger", "offset", "model-value"]);
2864
2857
  }
2865
- var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
2858
+ var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
2866
2859
  var dropdownMenu_vue_vue_type_style_index_0_lang = "";
2867
- const _sfc_main$o = defineComponent({
2860
+ const _sfc_main$r = defineComponent({
2868
2861
  name: "DaoDropdownMenu"
2869
2862
  });
2870
2863
  const _hoisted_1$i = { class: "dao-dropdown-menu" };
2871
- function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2864
+ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2872
2865
  return openBlock(), createElementBlock("ul", _hoisted_1$i, [
2873
2866
  renderSlot(_ctx.$slots, "default")
2874
2867
  ]);
2875
2868
  }
2876
- var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$l]]);
2869
+ var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
2877
2870
  var dropdownItem_vue_vue_type_style_index_0_lang = "";
2878
- const _sfc_main$n = defineComponent({
2871
+ const _sfc_main$q = defineComponent({
2879
2872
  name: "DaoDropdownItem",
2880
2873
  props: {
2881
2874
  type: {
@@ -2924,14 +2917,14 @@ const _sfc_main$n = defineComponent({
2924
2917
  };
2925
2918
  }
2926
2919
  });
2927
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2920
+ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2928
2921
  return openBlock(), createElementBlock("li", mergeProps({ class: _ctx.classList }, _ctx.itemAttrs), [
2929
2922
  _ctx.type !== "divider" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
2930
2923
  ], 16);
2931
2924
  }
2932
- var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$k]]);
2925
+ var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
2933
2926
  var form_vue_vue_type_style_index_0_lang = "";
2934
- const _sfc_main$m = defineComponent({
2927
+ const _sfc_main$p = defineComponent({
2935
2928
  name: "DaoForm",
2936
2929
  props: {
2937
2930
  type: {
@@ -2949,7 +2942,7 @@ const _sfc_main$m = defineComponent({
2949
2942
  provide(formLabelWidthKey, labelWidth.value);
2950
2943
  }
2951
2944
  });
2952
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2945
+ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2953
2946
  return openBlock(), createElementBlock("div", {
2954
2947
  class: normalizeClass([
2955
2948
  "dao-form",
@@ -2969,18 +2962,24 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2969
2962
  } })
2970
2963
  ], 2);
2971
2964
  }
2972
- var form = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$j]]);
2965
+ var form = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
2966
+ var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
2967
+ offset: {
2968
+ type: [Number, String],
2969
+ default: 10
2970
+ }
2971
+ });
2973
2972
  var tooltip_scss_vue_type_style_index_0_src_lang = "";
2974
- const _sfc_main$l = defineComponent(__spreadProps(__spreadValues({}, Popper), {
2973
+ const _sfc_main$o = defineComponent(__spreadProps(__spreadValues({}, Popper), {
2975
2974
  name: "DaoTooltip",
2976
- props: PopperProps,
2975
+ props: tooltipProps,
2977
2976
  daoPopperTheme: "dao-tooltip"
2978
2977
  }));
2979
2978
  var formItem_vue_vue_type_style_index_0_lang = "";
2980
- const _sfc_main$k = defineComponent({
2979
+ const _sfc_main$n = defineComponent({
2981
2980
  name: "DaoFormItem",
2982
2981
  components: {
2983
- DaoTooltip: _sfc_main$l
2982
+ DaoTooltip: _sfc_main$o
2984
2983
  },
2985
2984
  props: {
2986
2985
  label: {
@@ -3032,7 +3031,7 @@ const _hoisted_2$e = {
3032
3031
  };
3033
3032
  const _hoisted_3$8 = { class: "dao-form-item__label-icon-label" };
3034
3033
  const _hoisted_4$7 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
3035
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3034
+ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
3036
3035
  const _component_dao_tooltip = resolveComponent("dao-tooltip");
3037
3036
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
3038
3037
  createElementVNode("div", {
@@ -3063,9 +3062,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3063
3062
  ], 4)
3064
3063
  ]);
3065
3064
  }
3066
- var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
3065
+ var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]);
3067
3066
  var formGroup_vue_vue_type_style_index_0_lang = "";
3068
- const _sfc_main$j = defineComponent({
3067
+ const _sfc_main$m = defineComponent({
3069
3068
  name: "DaoFormGroup",
3070
3069
  props: {
3071
3070
  title: {
@@ -3076,7 +3075,7 @@ const _sfc_main$j = defineComponent({
3076
3075
  });
3077
3076
  const _hoisted_1$g = { class: "dao-form-group" };
3078
3077
  const _hoisted_2$d = { class: "dao-form-group__title" };
3079
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3078
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
3080
3079
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
3081
3080
  createElementVNode("div", _hoisted_2$d, [
3082
3081
  renderSlot(_ctx.$slots, "title", {}, () => [
@@ -3086,20 +3085,216 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3086
3085
  renderSlot(_ctx.$slots, "default")
3087
3086
  ]);
3088
3087
  }
3089
- var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
3088
+ var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k]]);
3089
+ const headerProps = {
3090
+ type: {
3091
+ type: String,
3092
+ default: "2rd"
3093
+ },
3094
+ title: {
3095
+ type: String,
3096
+ default: ""
3097
+ }
3098
+ };
3099
+ var header_vue_vue_type_style_index_0_lang = "";
3100
+ const _sfc_main$l = defineComponent({
3101
+ name: "DaoHeader",
3102
+ props: headerProps,
3103
+ setup(props, { slots }) {
3104
+ const showInfo = computed(() => ({
3105
+ title: props.type === "3rd" ? false : Boolean(props.title || slots.title),
3106
+ breadcrumb: props.type === "2rd" ? false : slots.breadcrumb
3107
+ }));
3108
+ return {
3109
+ ns: "dao-header",
3110
+ showInfo
3111
+ };
3112
+ }
3113
+ });
3114
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
3115
+ return openBlock(), createElementBlock("div", {
3116
+ ref: "header",
3117
+ "aria-label": "Header",
3118
+ class: normalizeClass(_ctx.ns)
3119
+ }, [
3120
+ createElementVNode("div", {
3121
+ class: normalizeClass(_ctx.ns + "__left-container")
3122
+ }, [
3123
+ _ctx.showInfo.title ? (openBlock(), createElementBlock("div", {
3124
+ key: 0,
3125
+ class: normalizeClass(_ctx.ns + "__title")
3126
+ }, [
3127
+ renderSlot(_ctx.$slots, "title", {}, () => [
3128
+ createTextVNode(toDisplayString(_ctx.title), 1)
3129
+ ])
3130
+ ], 2)) : createCommentVNode("", true),
3131
+ _ctx.showInfo.breadcrumb ? (openBlock(), createElementBlock("div", {
3132
+ key: 1,
3133
+ class: normalizeClass(_ctx.ns + "__breadcrumb")
3134
+ }, [
3135
+ renderSlot(_ctx.$slots, "breadcrumb")
3136
+ ], 2)) : createCommentVNode("", true)
3137
+ ], 2),
3138
+ _ctx.$slots.action ? (openBlock(), createElementBlock("div", {
3139
+ key: 0,
3140
+ class: normalizeClass(_ctx.ns + "__action")
3141
+ }, [
3142
+ renderSlot(_ctx.$slots, "action")
3143
+ ], 2)) : createCommentVNode("", true)
3144
+ ], 2);
3145
+ }
3146
+ var header = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]);
3147
+ const breadcrumbProps = {
3148
+ type: {
3149
+ type: String,
3150
+ default: "3rd"
3151
+ },
3152
+ list: {
3153
+ type: Array,
3154
+ default: () => []
3155
+ },
3156
+ separator: {
3157
+ type: String,
3158
+ default: "/"
3159
+ },
3160
+ icon: {
3161
+ type: String,
3162
+ default: ""
3163
+ }
3164
+ };
3165
+ const breadcrumbEmits = {
3166
+ navigate: (to) => to
3167
+ };
3168
+ const breadcrumbItemProps = {
3169
+ label: {
3170
+ type: String
3171
+ },
3172
+ value: {
3173
+ type: String
3174
+ },
3175
+ to: {
3176
+ type: [String, Object]
3177
+ }
3178
+ };
3179
+ const _sfc_main$k = defineComponent({
3180
+ name: "DaoBreadcrumbItem",
3181
+ props: breadcrumbItemProps,
3182
+ setup(props) {
3183
+ const parent = inject(breadcrumbKey, null);
3184
+ const separator = computed(() => {
3185
+ var _a;
3186
+ return (_a = parent == null ? void 0 : parent.props) == null ? void 0 : _a.separator;
3187
+ });
3188
+ const handleClick = () => {
3189
+ const to = props == null ? void 0 : props.to;
3190
+ if (to && (parent == null ? void 0 : parent.emit)) {
3191
+ parent.emit("navigate", to);
3192
+ }
3193
+ };
3194
+ return {
3195
+ ns: "dao-breadcrumb",
3196
+ handleClick,
3197
+ separator
3198
+ };
3199
+ }
3200
+ });
3201
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3202
+ return openBlock(), createElementBlock("span", {
3203
+ class: normalizeClass(_ctx.ns + "__item")
3204
+ }, [
3205
+ createElementVNode("span", {
3206
+ role: "link",
3207
+ class: normalizeClass({ [_ctx.ns + "__link"]: !!_ctx.to }),
3208
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
3209
+ }, [
3210
+ _ctx.label ? (openBlock(), createElementBlock("span", {
3211
+ key: 0,
3212
+ role: "label",
3213
+ class: normalizeClass(_ctx.ns + "__label")
3214
+ }, toDisplayString(_ctx.label), 3)) : createCommentVNode("", true),
3215
+ _ctx.value ? (openBlock(), createElementBlock("span", {
3216
+ key: 1,
3217
+ class: normalizeClass(_ctx.ns + "__value"),
3218
+ role: "value"
3219
+ }, toDisplayString(_ctx.value), 3)) : createCommentVNode("", true),
3220
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
3221
+ key: 2,
3222
+ role: "slot",
3223
+ class: normalizeClass(_ctx.ns + "__slot")
3224
+ }, [
3225
+ renderSlot(_ctx.$slots, "default")
3226
+ ], 2)) : createCommentVNode("", true)
3227
+ ], 2),
3228
+ createElementVNode("span", {
3229
+ class: normalizeClass(_ctx.ns + "__separator")
3230
+ }, toDisplayString(_ctx.separator), 3)
3231
+ ], 2);
3232
+ }
3233
+ var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
3234
+ var breadcrumb_vue_vue_type_style_index_0_lang = "";
3235
+ const _sfc_main$j = defineComponent({
3236
+ name: "DaoBreadcrumb",
3237
+ components: {
3238
+ DaoIcon,
3239
+ DaoBreadcrumbItem
3240
+ },
3241
+ props: breadcrumbProps,
3242
+ emits: breadcrumbEmits,
3243
+ setup(props, { emit }) {
3244
+ provide(breadcrumbKey, { props, emit });
3245
+ return {
3246
+ ns: "dao-breadcrumb"
3247
+ };
3248
+ }
3249
+ });
3250
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3251
+ var _a;
3252
+ const _component_dao_icon = resolveComponent("dao-icon");
3253
+ const _component_dao_breadcrumb_item = resolveComponent("dao-breadcrumb-item");
3254
+ return openBlock(), createElementBlock("div", {
3255
+ ref: "breadcrumb",
3256
+ "aria-label": "Breadcrumb",
3257
+ role: "navigation",
3258
+ class: normalizeClass(_ctx.ns)
3259
+ }, [
3260
+ _ctx.$slots.icon || _ctx.icon ? (openBlock(), createElementBlock("span", {
3261
+ key: 0,
3262
+ class: normalizeClass(_ctx.ns + "__icon")
3263
+ }, [
3264
+ renderSlot(_ctx.$slots, "icon", {}, () => [
3265
+ createVNode(_component_dao_icon, {
3266
+ "use-font": "",
3267
+ name: _ctx.icon
3268
+ }, null, 8, ["name"])
3269
+ ])
3270
+ ], 2)) : createCommentVNode("", true),
3271
+ ((_a = _ctx.list) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.list, (item, index2) => {
3272
+ return openBlock(), createBlock(_component_dao_breadcrumb_item, {
3273
+ key: index2,
3274
+ label: item.label,
3275
+ value: item.value,
3276
+ to: item.to
3277
+ }, null, 8, ["label", "value", "to"]);
3278
+ }), 128)) : createCommentVNode("", true),
3279
+ renderSlot(_ctx.$slots, "default")
3280
+ ], 2);
3281
+ }
3282
+ var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
3090
3283
  if (typeof window !== "undefined") {
3091
3284
  let loadSvg = function() {
3092
- let body = document.body;
3093
- let svgDom = document.getElementById("__svg__icons__dom__1643169609057__");
3285
+ var body = document.body;
3286
+ var svgDom = document.getElementById("__svg__icons__dom__");
3094
3287
  if (!svgDom) {
3095
3288
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
3096
3289
  svgDom.style.position = "absolute";
3097
3290
  svgDom.style.width = "0";
3098
3291
  svgDom.style.height = "0";
3099
- svgDom.id = "__svg__icons__dom__1643169609057__";
3292
+ svgDom.id = "__svg__icons__dom__";
3293
+ svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
3294
+ svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
3100
3295
  }
3101
- svgDom.innerHTML = '<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_arrow-down"><path d="m2.97 10.03 4.5 4.5a.749.749 0 0 0 1.06 0l4.5-4.5a.75.75 0 0 0-1.06-1.06L9 11.939V2a1 1 0 0 0-2 0v9.939L4.03 8.97a.75.75 0 1 0-1.06 1.06Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_arrow-left"><path d="m5.97 2.97-4.5 4.5a.749.749 0 0 0 0 1.06l4.5 4.5a.75.75 0 0 0 1.06-1.06L4.061 9H14a1 1 0 0 0 0-2H4.061L7.03 4.03a.75.75 0 1 0-1.06-1.06Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_arrow-right"><path d="m10.03 13.03 4.5-4.5a.749.749 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L11.939 7H2a1 1 0 0 0 0 2h9.939L8.97 11.97a.75.75 0 0 0 1.06 1.06Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_arrow-up"><path d="m13.03 5.97-4.5-4.5a.749.749 0 0 0-1.06 0l-4.5 4.5a.75.75 0 1 0 1.06 1.06L7 4.061V14a1 1 0 0 0 2 0V4.061l2.97 2.969a.75.75 0 0 0 1.06-1.06Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-down"><path d="M8 10.75a.747.747 0 0 1-.53-.22l-3.5-3.5a.75.75 0 0 1 1.06-1.06L8 8.939l2.97-2.97a.75.75 0 0 1 1.06 1.061l-3.5 3.5a.747.747 0 0 1-.53.22Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-left"><path d="M5.25 8a.747.747 0 0 1 .22-.53l3.5-3.5a.75.75 0 0 1 1.06 1.06L7.061 8l2.97 2.97a.75.75 0 1 1-1.061 1.06l-3.5-3.5A.747.747 0 0 1 5.25 8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-more"><path d="M13.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L11.939 8 8.97 5.03a.75.75 0 1 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53ZM7.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L5.939 8 2.97 5.03a.75.75 0 0 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-right"><path d="M10.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L8.939 8 5.97 5.03a.75.75 0 0 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-select"><path d="M8 14.75a.747.747 0 0 1-.53-.22l-3.5-3.5a.75.75 0 0 1 1.06-1.06L8 12.939l2.97-2.97a.75.75 0 0 1 1.06 1.061l-3.5 3.5a.747.747 0 0 1-.53.22ZM8 1.25a.747.747 0 0 1 .53.22l3.5 3.5a.75.75 0 0 1-1.06 1.06L8 3.061 5.03 6.03a.75.75 0 0 1-1.06-1.06l3.5-3.5A.747.747 0 0 1 8 1.25Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_caret-up"><path d="M8 5.25a.747.747 0 0 1 .53.22l3.5 3.5a.75.75 0 0 1-1.06 1.06L8 7.061 5.03 10.03a.75.75 0 0 1-1.06-1.06l3.5-3.5A.747.747 0 0 1 8 5.25Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_close"><path d="m9.414 8 4.453-4.453a1 1 0 1 0-1.414-1.414L8 6.586 3.547 2.133a1 1 0 0 0-1.414 1.414L6.586 8l-4.453 4.453a1 1 0 1 0 1.414 1.414L8 9.414l4.453 4.453a1 1 0 0 0 1.414-1.414Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_reload"><path d="M15 7V1l-2.055 2.055a7 7 0 1 0 1.649 7.279 1 1 0 0 0-1.885-.668 5 5 0 1 1-1.177-5.2L9 7Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_search"><path d="m15.03 13.97-3.975-3.975a5.772 5.772 0 1 0-1.06 1.06l3.975 3.975a.75.75 0 0 0 1.06-1.06ZM1.75 6.5a4.75 4.75 0 1 1 4.75 4.75A4.75 4.75 0 0 1 1.75 6.5Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_setting"><path d="M15.6 6.75h-2.335a.614.614 0 0 1-.572-.423 4.764 4.764 0 0 0-.192-.461.615.615 0 0 1 .105-.7l1.652-1.656a.4.4 0 0 0 0-.566l-1.2-1.2a.4.4 0 0 0-.566 0l-1.653 1.65a.616.616 0 0 1-.7.1 4.764 4.764 0 0 0-.461-.192.614.614 0 0 1-.423-.572V.4a.4.4 0 0 0-.4-.4H7.15a.4.4 0 0 0-.4.4v2.335a.614.614 0 0 1-.423.572 4.764 4.764 0 0 0-.461.192.616.616 0 0 1-.7-.1L3.51 1.742a.4.4 0 0 0-.566 0l-1.2 1.2a.4.4 0 0 0 0 .566l1.65 1.653a.615.615 0 0 1 .1.705 4.764 4.764 0 0 0-.192.461.614.614 0 0 1-.572.423H.4a.4.4 0 0 0-.4.4v1.7a.4.4 0 0 0 .4.4h2.335a.614.614 0 0 1 .572.423 4.764 4.764 0 0 0 .192.461.615.615 0 0 1-.1.705L1.742 12.49a.4.4 0 0 0 0 .566l1.2 1.2a.4.4 0 0 0 .566 0l1.651-1.652a.615.615 0 0 1 .705-.105 4.764 4.764 0 0 0 .461.192.614.614 0 0 1 .423.572V15.6a.4.4 0 0 0 .4.4h1.7a.4.4 0 0 0 .4-.4v-2.335a.614.614 0 0 1 .423-.572 4.764 4.764 0 0 0 .461-.192.615.615 0 0 1 .705.105l1.651 1.652a.4.4 0 0 0 .566 0l1.2-1.2a.4.4 0 0 0 0-.566l-1.652-1.651a.615.615 0 0 1-.105-.7 4.764 4.764 0 0 0 .192-.461.614.614 0 0 1 .572-.423H15.6a.4.4 0 0 0 .4-.4V7.15a.4.4 0 0 0-.4-.4ZM8 10a2 2 0 1 1 2-2 2 2 0 0 1-2 2Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_trash"><path d="M6 5h1v8H6zM9 5h1v8H9z" /><path d="M13 2h-2V1a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v1H3a1 1 0 0 0-1 1v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3a1 1 0 0 0-1-1ZM6 1h4v1H6Zm6 13H4V4h8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_triangle-down"><path d="M4 6h8l-4 5-4-5z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_triangle-left"><path d="M10 4v8L5 8l5-4z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_triangle-right"><path d="M6 12V4l5 4-5 4z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_triangle-up"><path d="M12 10H4l4-5 4 5z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_close-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Zm3.03 9.47a.75.75 0 1 1-1.06 1.06L8 9.061 6.03 11.03a.75.75 0 0 1-1.06-1.06L6.939 8 4.97 6.03a.75.75 0 0 1 1.06-1.06L8 6.939 9.97 4.97a.75.75 0 0 1 1.06 1.06L9.061 8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_goto"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Zm0 11V9H4V7h4V4.5L12.4 8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_info-line"><path d="M9 11V7H6v.7h1V11H6v1h4v-1H9z" /><circle cx="8" cy="5" r="1.1" /><path d="M8 1.5A6.5 6.5 0 1 1 1.5 8 6.508 6.508 0 0 1 8 1.5m0-1A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_minus-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5ZM12 9H4V7h8Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_more"><circle cx="14" cy="8" r="2" /><circle cx="8" cy="8" r="2" /><circle cx="2" cy="8" r="2" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_plus-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5ZM12 9H9v3H7V9H4V7h3V4h2v3h3Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_question-line"><path d="M8 1.5A6.5 6.5 0 1 1 1.5 8 6.508 6.508 0 0 1 8 1.5m0-1A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Z" /><path d="M7 11h2v2H7zM8.75 10v-.5c.005-1.335 2.005-1.47 2-3.615A2.719 2.719 0 0 0 8 3.25 2.752 2.752 0 0 0 5.25 6h1.5a1.251 1.251 0 0 1 2.5-.052 1.614 1.614 0 0 1-.727 1.206A2.881 2.881 0 0 0 7.25 9.5v.5Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-binary"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0ZM4 6v5h3V6Zm2 4H5V7h1ZM11 10V6H9v1h1v3H9v1h3v-1h-1z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-code"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0ZM6.5 11a.5.5 0 0 1-.354-.146l-2-2a.5.5 0 0 1 0-.708l2-2a.5.5 0 0 1 .708.708L5.207 8.5l1.647 1.646A.5.5 0 0 1 6.5 11ZM9.5 11a.5.5 0 0 1-.354-.854L10.793 8.5 9.146 6.854a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2A.5.5 0 0 1 9.5 11Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-picture"><circle cx="10" cy="7" r="1" /><path d="M13 14v-2.25l-2-2-1.5 1.5-3-3-3.5 3.5V14h10z" /><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-text"><path d="M5 6h6v1H5zM5 8h6v1H5zM5 10h6v1H5z" /><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file-zip"><path d="M7 2h1v1H7zM6 3h1v1H6zM7 4h1v1H7zM6 5h1v1H6zM7 6h1v1H7zM8.692 8.692 8 8H7V7H6v1l-.692.692A1.051 1.051 0 0 0 5 9.435V10.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V9.435a1.051 1.051 0 0 0-.308-.743ZM8 10H6V9h2Z" /><path d="M14 4v11H2V1h4v1h1V1h4V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon_file"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" id="icon_checkmark-symbol"><path d="m2.466 7.29 1.016-1.152 2.515 2.527 5.359-5.634.83.729-6.182 7.734L2.466 7.29z" /></symbol>';
3102
- body.insertBefore(svgDom, body.firstChild);
3296
+ svgDom.innerHTML = '<symbol viewBox="0 0 16 16" id="icon_arrow-down"><path d="m2.97 10.03 4.5 4.5a.749.749 0 0 0 1.06 0l4.5-4.5a.75.75 0 0 0-1.06-1.06L9 11.939V2a1 1 0 0 0-2 0v9.939L4.03 8.97a.75.75 0 1 0-1.06 1.06Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_arrow-left"><path d="m5.97 2.97-4.5 4.5a.749.749 0 0 0 0 1.06l4.5 4.5a.75.75 0 0 0 1.06-1.06L4.061 9H14a1 1 0 0 0 0-2H4.061L7.03 4.03a.75.75 0 1 0-1.06-1.06Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_arrow-right"><path d="m10.03 13.03 4.5-4.5a.749.749 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L11.939 7H2a1 1 0 0 0 0 2h9.939L8.97 11.97a.75.75 0 0 0 1.06 1.06Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_arrow-up"><path d="m13.03 5.97-4.5-4.5a.749.749 0 0 0-1.06 0l-4.5 4.5a.75.75 0 1 0 1.06 1.06L7 4.061V14a1 1 0 0 0 2 0V4.061l2.97 2.969a.75.75 0 0 0 1.06-1.06Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_caret-down"><path d="M8 10.75a.747.747 0 0 1-.53-.22l-3.5-3.5a.75.75 0 0 1 1.06-1.06L8 8.939l2.97-2.97a.75.75 0 0 1 1.06 1.061l-3.5 3.5a.747.747 0 0 1-.53.22Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_caret-left"><path d="M5.25 8a.747.747 0 0 1 .22-.53l3.5-3.5a.75.75 0 0 1 1.06 1.06L7.061 8l2.97 2.97a.75.75 0 1 1-1.061 1.06l-3.5-3.5A.747.747 0 0 1 5.25 8Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_caret-more"><path d="M13.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L11.939 8 8.97 5.03a.75.75 0 1 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53ZM7.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L5.939 8 2.97 5.03a.75.75 0 0 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_caret-right"><path d="M10.75 8a.747.747 0 0 1-.22.53l-3.5 3.5a.75.75 0 0 1-1.06-1.06L8.939 8 5.97 5.03a.75.75 0 0 1 1.06-1.06l3.5 3.5a.747.747 0 0 1 .22.53Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_caret-select"><path d="M8 14.75a.747.747 0 0 1-.53-.22l-3.5-3.5a.75.75 0 0 1 1.06-1.06L8 12.939l2.97-2.97a.75.75 0 0 1 1.06 1.061l-3.5 3.5a.747.747 0 0 1-.53.22ZM8 1.25a.747.747 0 0 1 .53.22l3.5 3.5a.75.75 0 0 1-1.06 1.06L8 3.061 5.03 6.03a.75.75 0 0 1-1.06-1.06l3.5-3.5A.747.747 0 0 1 8 1.25Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_caret-up"><path d="M8 5.25a.747.747 0 0 1 .53.22l3.5 3.5a.75.75 0 0 1-1.06 1.06L8 7.061 5.03 10.03a.75.75 0 0 1-1.06-1.06l3.5-3.5A.747.747 0 0 1 8 5.25Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_close"><path d="m9.414 8 4.453-4.453a1 1 0 1 0-1.414-1.414L8 6.586 3.547 2.133a1 1 0 0 0-1.414 1.414L6.586 8l-4.453 4.453a1 1 0 1 0 1.414 1.414L8 9.414l4.453 4.453a1 1 0 0 0 1.414-1.414Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_reload"><path d="M15 7V1l-2.055 2.055a7 7 0 1 0 1.649 7.279 1 1 0 0 0-1.885-.668 5 5 0 1 1-1.177-5.2L9 7Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_search"><path d="m15.03 13.97-3.975-3.975a5.772 5.772 0 1 0-1.06 1.06l3.975 3.975a.75.75 0 0 0 1.06-1.06ZM1.75 6.5a4.75 4.75 0 1 1 4.75 4.75A4.75 4.75 0 0 1 1.75 6.5Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_setting"><path d="M15.6 6.75h-2.335a.614.614 0 0 1-.572-.423 4.764 4.764 0 0 0-.192-.461.615.615 0 0 1 .105-.7l1.652-1.656a.4.4 0 0 0 0-.566l-1.2-1.2a.4.4 0 0 0-.566 0l-1.653 1.65a.616.616 0 0 1-.7.1 4.764 4.764 0 0 0-.461-.192.614.614 0 0 1-.423-.572V.4a.4.4 0 0 0-.4-.4H7.15a.4.4 0 0 0-.4.4v2.335a.614.614 0 0 1-.423.572 4.764 4.764 0 0 0-.461.192.616.616 0 0 1-.7-.1L3.51 1.742a.4.4 0 0 0-.566 0l-1.2 1.2a.4.4 0 0 0 0 .566l1.65 1.653a.615.615 0 0 1 .1.705 4.764 4.764 0 0 0-.192.461.614.614 0 0 1-.572.423H.4a.4.4 0 0 0-.4.4v1.7a.4.4 0 0 0 .4.4h2.335a.614.614 0 0 1 .572.423 4.764 4.764 0 0 0 .192.461.615.615 0 0 1-.1.705L1.742 12.49a.4.4 0 0 0 0 .566l1.2 1.2a.4.4 0 0 0 .566 0l1.651-1.652a.615.615 0 0 1 .705-.105 4.764 4.764 0 0 0 .461.192.614.614 0 0 1 .423.572V15.6a.4.4 0 0 0 .4.4h1.7a.4.4 0 0 0 .4-.4v-2.335a.614.614 0 0 1 .423-.572 4.764 4.764 0 0 0 .461-.192.615.615 0 0 1 .705.105l1.651 1.652a.4.4 0 0 0 .566 0l1.2-1.2a.4.4 0 0 0 0-.566l-1.652-1.651a.615.615 0 0 1-.105-.7 4.764 4.764 0 0 0 .192-.461.614.614 0 0 1 .572-.423H15.6a.4.4 0 0 0 .4-.4V7.15a.4.4 0 0 0-.4-.4ZM8 10a2 2 0 1 1 2-2 2 2 0 0 1-2 2Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_trash"><path d="M6 5h1v8H6zM9 5h1v8H9z" /><path d="M13 2h-2V1a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v1H3a1 1 0 0 0-1 1v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3a1 1 0 0 0-1-1ZM6 1h4v1H6Zm6 13H4V4h8Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_triangle-down"><path d="M4 6h8l-4 5-4-5z" /></symbol><symbol viewBox="0 0 16 16" id="icon_triangle-left"><path d="M10 4v8L5 8l5-4z" /></symbol><symbol viewBox="0 0 16 16" id="icon_triangle-right"><path d="M6 12V4l5 4-5 4z" /></symbol><symbol viewBox="0 0 16 16" id="icon_triangle-up"><path d="M12 10H4l4-5 4 5z" /></symbol><symbol viewBox="0 0 16 16" id="icon_close-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Zm3.03 9.47a.75.75 0 1 1-1.06 1.06L8 9.061 6.03 11.03a.75.75 0 0 1-1.06-1.06L6.939 8 4.97 6.03a.75.75 0 0 1 1.06-1.06L8 6.939 9.97 4.97a.75.75 0 0 1 1.06 1.06L9.061 8Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_goto"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Zm0 11V9H4V7h4V4.5L12.4 8Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_info-line"><path d="M9 11V7H6v.7h1V11H6v1h4v-1H9z" /><circle cx="8" cy="5" r="1.1" /><path d="M8 1.5A6.5 6.5 0 1 1 1.5 8 6.508 6.508 0 0 1 8 1.5m0-1A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_minus-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5ZM12 9H4V7h8Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_more"><circle cx="14" cy="8" r="2" /><circle cx="8" cy="8" r="2" /><circle cx="2" cy="8" r="2" /></symbol><symbol viewBox="0 0 16 16" id="icon_plus-circled"><path d="M8 .5A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5ZM12 9H9v3H7V9H4V7h3V4h2v3h3Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_question-line"><path d="M8 1.5A6.5 6.5 0 1 1 1.5 8 6.508 6.508 0 0 1 8 1.5m0-1A7.5 7.5 0 1 0 15.5 8 7.5 7.5 0 0 0 8 .5Z" /><path d="M7 11h2v2H7zM8.75 10v-.5c.005-1.335 2.005-1.47 2-3.615A2.719 2.719 0 0 0 8 3.25 2.752 2.752 0 0 0 5.25 6h1.5a1.251 1.251 0 0 1 2.5-.052 1.614 1.614 0 0 1-.727 1.206A2.881 2.881 0 0 0 7.25 9.5v.5Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_file-binary"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0ZM4 6v5h3V6Zm2 4H5V7h1ZM11 10V6H9v1h1v3H9v1h3v-1h-1z" /></symbol><symbol viewBox="0 0 16 16" id="icon_file-code"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0ZM6.5 11a.5.5 0 0 1-.354-.146l-2-2a.5.5 0 0 1 0-.708l2-2a.5.5 0 0 1 .708.708L5.207 8.5l1.647 1.646A.5.5 0 0 1 6.5 11ZM9.5 11a.5.5 0 0 1-.354-.854L10.793 8.5 9.146 6.854a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2A.5.5 0 0 1 9.5 11Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_file-picture"><circle cx="10" cy="7" r="1" /><path d="M13 14v-2.25l-2-2-1.5 1.5-3-3-3.5 3.5V14h10z" /><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_file-text"><path d="M5 6h6v1H5zM5 8h6v1H5zM5 10h6v1H5z" /><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_file-zip"><path d="M7 2h1v1H7zM6 3h1v1H6zM7 4h1v1H7zM6 5h1v1H6zM7 6h1v1H7zM8.692 8.692 8 8H7V7H6v1l-.692.692A1.051 1.051 0 0 0 5 9.435V10.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V9.435a1.051 1.051 0 0 0-.308-.743ZM8 10H6V9h2Z" /><path d="M14 4v11H2V1h4v1h1V1h4V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol viewBox="0 0 16 16" id="icon_file"><path d="M14 15H2V1h9V0H2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4h-1Z" /><path d="M15 3h-2a1 1 0 0 1-1-1V0Z" /></symbol><symbol viewBox="0 0 14 14" id="icon_checkmark-symbol"><path d="m2.466 7.29 1.016-1.152 2.515 2.527 5.359-5.634.83.729-6.182 7.734L2.466 7.29z" /></symbol>';
3297
+ body.insertBefore(svgDom, body.lastChild);
3103
3298
  };
3104
3299
  if (document.readyState === "loading") {
3105
3300
  document.addEventListener("DOMContentLoaded", loadSvg);
@@ -3107,55 +3302,59 @@ if (typeof window !== "undefined") {
3107
3302
  loadSvg();
3108
3303
  }
3109
3304
  }
3305
+ const INPUT_STATUS = ["default", "error", "success", "loading"];
3306
+ const INPUT_TYPES = ["text", "search", "number", "password"];
3307
+ var inputProps = {
3308
+ modelValue: {
3309
+ type: [String, Number],
3310
+ default: ""
3311
+ },
3312
+ type: {
3313
+ type: String,
3314
+ default: "text",
3315
+ validator: (value) => INPUT_TYPES.includes(value)
3316
+ },
3317
+ disabled: {
3318
+ type: Boolean,
3319
+ default: false
3320
+ },
3321
+ size: {
3322
+ type: String,
3323
+ default: "md",
3324
+ validator: (value) => ["md", "sm"].includes(value)
3325
+ },
3326
+ block: {
3327
+ type: Boolean,
3328
+ default: false
3329
+ },
3330
+ status: {
3331
+ type: String,
3332
+ default: "default",
3333
+ validator: (value) => INPUT_STATUS.includes(value)
3334
+ },
3335
+ borderless: {
3336
+ type: Boolean,
3337
+ default: false
3338
+ },
3339
+ append: {
3340
+ type: String,
3341
+ default: ""
3342
+ },
3343
+ prepend: {
3344
+ type: String,
3345
+ default: ""
3346
+ }
3347
+ };
3110
3348
  var input_vue_vue_type_style_index_0_lang = "";
3111
3349
  const _sfc_main$i = defineComponent({
3112
3350
  name: "DaoInput",
3113
3351
  inheritAttrs: false,
3114
- props: {
3115
- modelValue: {
3116
- type: [String, Number],
3117
- default: ""
3118
- },
3119
- type: {
3120
- type: String,
3121
- default: "text",
3122
- validator: (value) => ["text", "search", "number", "password"].includes(value)
3123
- },
3124
- disabled: {
3125
- type: Boolean,
3126
- default: false
3127
- },
3128
- size: {
3129
- type: String,
3130
- default: "md",
3131
- validator: (value) => ["md", "sm"].includes(value)
3132
- },
3133
- block: {
3134
- type: Boolean,
3135
- default: false
3136
- },
3137
- status: {
3138
- type: String,
3139
- default: "default",
3140
- validator: (value) => ["default", "error", "success", "loading"].includes(value)
3141
- },
3142
- borderless: {
3143
- type: Boolean,
3144
- default: false
3145
- },
3146
- append: {
3147
- type: String,
3148
- default: ""
3149
- },
3150
- prepend: {
3151
- type: String,
3152
- default: ""
3153
- }
3154
- },
3352
+ props: inputProps,
3155
3353
  emits: ["update:modelValue", "input", "change", "blur", "focus", "after-reset"],
3156
3354
  setup(props, { emit, attrs, slots }) {
3157
3355
  const prefixCls = "dao-input";
3158
3356
  const statusMap = {
3357
+ default: "",
3159
3358
  error: "dao-input-error-icon icon-sys-warning",
3160
3359
  success: "dao-input-success-icon icon-sys-success",
3161
3360
  loading: "dao-input-loading-icon icon-input-loading"
@@ -3173,6 +3372,11 @@ const _sfc_main$i = defineComponent({
3173
3372
  const currentValue = ref(modelValue.value);
3174
3373
  const isFocus = ref(false);
3175
3374
  const input2 = ref(null);
3375
+ const isIncreaseDisabled = ref(false);
3376
+ const isDecreaseDisabled = ref(false);
3377
+ const isChangingNumber = ref(false);
3378
+ let counterInterval = null;
3379
+ let counterTimeout = null;
3176
3380
  const clearable = computed(() => type.value === "search" && currentValue.value && !disabled.value);
3177
3381
  const wrapClasses = computed(() => [
3178
3382
  `${prefixCls}-wrapper`,
@@ -3194,10 +3398,18 @@ const _sfc_main$i = defineComponent({
3194
3398
  [`${prefixCls}--with-append`]: !!append.value
3195
3399
  }
3196
3400
  ]);
3401
+ const statusClasses = computed(() => statusMap[status.value]);
3197
3402
  const setCurrentValue = (val) => {
3198
3403
  if (val === currentValue.value) {
3199
3404
  return;
3200
3405
  }
3406
+ if (type.value === "number") {
3407
+ const inputVal = parseFloat(val);
3408
+ const maxVal = parseFloat(attrs.max);
3409
+ const minVal = parseFloat(attrs.min);
3410
+ isIncreaseDisabled.value = inputVal >= maxVal;
3411
+ isDecreaseDisabled.value = inputVal <= minVal;
3412
+ }
3201
3413
  currentValue.value = val;
3202
3414
  };
3203
3415
  const updateModel = (val) => {
@@ -3214,6 +3426,63 @@ const _sfc_main$i = defineComponent({
3214
3426
  emit("after-reset");
3215
3427
  (_a = input2.value) == null ? void 0 : _a.focus();
3216
3428
  };
3429
+ const getInputRealNumber = (val, fixedPointNum) => parseFloat(val.toFixed(fixedPointNum));
3430
+ const changeNumberValue = (changeType) => {
3431
+ var _a;
3432
+ if (type.value !== "number") {
3433
+ return;
3434
+ }
3435
+ const minimum = parseFloat(attrs.min);
3436
+ const maximum = parseFloat(attrs.max);
3437
+ const isMaximum = currentValue.value || currentValue.value === 0 ? maximum <= (currentValue == null ? void 0 : currentValue.value) : false;
3438
+ const isMinimum = currentValue.value || currentValue.value === 0 ? minimum >= (currentValue == null ? void 0 : currentValue.value) : false;
3439
+ if (changeType === "increase" && isMaximum || changeType === "decrease" && isMinimum) {
3440
+ return;
3441
+ }
3442
+ isChangingNumber.value = true;
3443
+ const stepValue = parseFloat(attrs.step) || 1;
3444
+ let stepPointNum = 0;
3445
+ if (stepValue.toString().split(".").length > 1) {
3446
+ stepPointNum = stepValue.toString().split(".")[1].length;
3447
+ }
3448
+ const inputVal = parseFloat(currentValue.value) || 0;
3449
+ const inputStepPointValue = getInputRealNumber(inputVal, stepPointNum);
3450
+ let setValue = inputVal;
3451
+ const changeStepValue = changeType === "increase" ? stepValue : -stepValue;
3452
+ setValue = (inputStepPointValue - inputVal) * changeStepValue > 0 ? inputStepPointValue : inputStepPointValue + changeStepValue;
3453
+ if (setValue >= maximum) {
3454
+ setValue = maximum;
3455
+ }
3456
+ if (setValue <= minimum) {
3457
+ setValue = minimum;
3458
+ }
3459
+ updateModel(getInputRealNumber(setValue, stepPointNum));
3460
+ (_a = input2.value) == null ? void 0 : _a.focus();
3461
+ if (!counterTimeout && !counterInterval) {
3462
+ counterTimeout = window.setTimeout(() => {
3463
+ counterInterval = window.setInterval(() => changeNumberValue(changeType), 100);
3464
+ }, 300);
3465
+ }
3466
+ };
3467
+ const onInputNumberMouseup = (event) => {
3468
+ var _a;
3469
+ if (isChangingNumber.value) {
3470
+ event.preventDefault();
3471
+ }
3472
+ const onEvents = !!counterTimeout || !!counterInterval;
3473
+ if (counterTimeout) {
3474
+ window.clearTimeout(counterTimeout);
3475
+ }
3476
+ if (counterInterval) {
3477
+ window.clearInterval(counterInterval);
3478
+ }
3479
+ counterTimeout = null;
3480
+ counterInterval = null;
3481
+ isChangingNumber.value = false;
3482
+ if (onEvents) {
3483
+ (_a = input2.value) == null ? void 0 : _a.focus();
3484
+ }
3485
+ };
3217
3486
  const inputAttrs = computed(() => {
3218
3487
  const events = {
3219
3488
  onInput(event) {
@@ -3239,6 +3508,12 @@ const _sfc_main$i = defineComponent({
3239
3508
  return __spreadValues(__spreadValues({}, attrs), events);
3240
3509
  });
3241
3510
  watch(modelValue, (newV) => setCurrentValue(newV));
3511
+ onMounted(() => {
3512
+ window.addEventListener("mouseup", onInputNumberMouseup);
3513
+ });
3514
+ onBeforeUnmount(() => {
3515
+ window.removeEventListener("mouseup", onInputNumberMouseup);
3516
+ });
3242
3517
  return {
3243
3518
  currentValue,
3244
3519
  isFocus,
@@ -3249,7 +3524,11 @@ const _sfc_main$i = defineComponent({
3249
3524
  inputAttrs,
3250
3525
  slots,
3251
3526
  resetCurrentVal,
3252
- statusMap
3527
+ statusClasses,
3528
+ changeNumberValue,
3529
+ isIncreaseDisabled,
3530
+ isDecreaseDisabled,
3531
+ isChangingNumber
3253
3532
  };
3254
3533
  }
3255
3534
  });
@@ -3257,17 +3536,16 @@ const _hoisted_1$f = {
3257
3536
  key: 0,
3258
3537
  class: "dao-input-prepend"
3259
3538
  };
3260
- const _hoisted_2$c = { class: "dao-input-inner" };
3261
- const _hoisted_3$7 = {
3539
+ const _hoisted_2$c = {
3262
3540
  key: 0,
3263
3541
  class: "dao-input-prefix"
3264
3542
  };
3265
- const _hoisted_4$6 = ["type", "disabled", "value"];
3266
- const _hoisted_5$4 = {
3267
- key: 2,
3543
+ const _hoisted_3$7 = ["type", "disabled", "value"];
3544
+ const _hoisted_4$6 = {
3545
+ key: 4,
3268
3546
  class: "dao-input-suffix"
3269
3547
  };
3270
- const _hoisted_6$3 = {
3548
+ const _hoisted_5$4 = {
3271
3549
  key: 1,
3272
3550
  class: "dao-input-append"
3273
3551
  };
@@ -3277,13 +3555,15 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3277
3555
  }, [
3278
3556
  renderSlot(_ctx.$slots, "prepend"),
3279
3557
  _ctx.prepend && !_ctx.slots.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$f, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true),
3280
- createElementVNode("div", _hoisted_2$c, [
3281
- _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
3558
+ createElementVNode("div", {
3559
+ class: normalizeClass(["dao-input-inner", { "dao-input__changing-number": _ctx.isChangingNumber }])
3560
+ }, [
3561
+ _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
3282
3562
  renderSlot(_ctx.$slots, "prefix")
3283
3563
  ])) : createCommentVNode("", true),
3284
3564
  _ctx.type === "search" ? (openBlock(), createElementBlock("i", {
3285
3565
  key: 1,
3286
- class: normalizeClass(["dao-input-search-icon", "icon-search", { active: _ctx.isFocus }])
3566
+ class: normalizeClass(["dao-input-search-icon", "icon-search", { "dao-input__active": _ctx.isFocus }])
3287
3567
  }, null, 2)) : createCommentVNode("", true),
3288
3568
  createElementVNode("input", mergeProps({
3289
3569
  ref: "input",
@@ -3293,24 +3573,44 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3293
3573
  disabled: _ctx.disabled,
3294
3574
  value: _ctx.currentValue,
3295
3575
  onKeyup: _cache[0] || (_cache[0] = withKeys((...args) => _ctx.resetCurrentVal && _ctx.resetCurrentVal(...args), ["esc"]))
3296
- }), null, 16, _hoisted_4$6),
3576
+ }), null, 16, _hoisted_3$7),
3577
+ _ctx.type === "number" ? (openBlock(), createElementBlock("i", {
3578
+ key: 2,
3579
+ class: normalizeClass([
3580
+ "dao-input-number-icon",
3581
+ "icon-arrow-sharp",
3582
+ "number-icon-up",
3583
+ { "dao-input-number-icon__disabled": _ctx.isIncreaseDisabled }
3584
+ ]),
3585
+ onMousedown: _cache[1] || (_cache[1] = ($event) => _ctx.changeNumberValue("increase"))
3586
+ }, null, 34)) : createCommentVNode("", true),
3587
+ _ctx.type === "number" ? (openBlock(), createElementBlock("i", {
3588
+ key: 3,
3589
+ class: normalizeClass([
3590
+ "dao-input-number-icon",
3591
+ "icon-arrow-sharp",
3592
+ "number-icon-down",
3593
+ { "dao-input-number-icon__disabled": _ctx.isDecreaseDisabled }
3594
+ ]),
3595
+ onMousedown: _cache[2] || (_cache[2] = ($event) => _ctx.changeNumberValue("decrease"))
3596
+ }, null, 34)) : createCommentVNode("", true),
3297
3597
  withDirectives(createElementVNode("i", {
3298
- class: normalizeClass(["dao-input-close-icon", "icon-close", { active: _ctx.isFocus }]),
3299
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.resetCurrentVal())
3598
+ class: normalizeClass(["dao-input-close-icon", "icon-close", { "dao-input__active": _ctx.isFocus }]),
3599
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.resetCurrentVal())
3300
3600
  }, null, 2), [
3301
3601
  [vShow, _ctx.clearable]
3302
3602
  ]),
3303
3603
  withDirectives(createElementVNode("i", {
3304
- class: normalizeClass(_ctx.statusMap[_ctx.status])
3604
+ class: normalizeClass(_ctx.statusClasses)
3305
3605
  }, null, 2), [
3306
3606
  [vShow, ["error", "success", "loading"].includes(_ctx.status)]
3307
3607
  ]),
3308
- _ctx.slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
3608
+ _ctx.slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
3309
3609
  renderSlot(_ctx.$slots, "suffix")
3310
3610
  ])) : createCommentVNode("", true)
3311
- ]),
3611
+ ], 2),
3312
3612
  renderSlot(_ctx.$slots, "append"),
3313
- _ctx.append && !_ctx.slots.append ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString(_ctx.append), 1)) : createCommentVNode("", true)
3613
+ _ctx.append && !_ctx.slots.append ? (openBlock(), createElementBlock("div", _hoisted_5$4, toDisplayString(_ctx.append), 1)) : createCommentVNode("", true)
3314
3614
  ], 2);
3315
3615
  }
3316
3616
  var input = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g]]);
@@ -3538,31 +3838,31 @@ const _sfc_main$g = defineComponent({
3538
3838
  const { type, accordion, activeOpened } = toRefs(props);
3539
3839
  const openedNav = ref([]);
3540
3840
  const activeItemIdx = ref();
3541
- const openNavSub = (index) => {
3542
- if (openedNav.value.includes(index)) {
3841
+ const openNavSub = (index2) => {
3842
+ if (openedNav.value.includes(index2)) {
3543
3843
  return;
3544
3844
  }
3545
3845
  if (accordion.value) {
3546
3846
  openedNav.value = [];
3547
3847
  }
3548
- openedNav.value.push(index);
3848
+ openedNav.value.push(index2);
3549
3849
  emit("toggle", {
3550
3850
  action: "open",
3551
- index
3851
+ index: index2
3552
3852
  });
3553
3853
  };
3554
- const closeNavSub = (index) => {
3555
- const idx = openedNav.value.indexOf(index);
3854
+ const closeNavSub = (index2) => {
3855
+ const idx = openedNav.value.indexOf(index2);
3556
3856
  if (idx !== -1) {
3557
3857
  openedNav.value.splice(idx, 1);
3558
3858
  }
3559
3859
  emit("toggle", {
3560
3860
  action: "close",
3561
- index
3861
+ index: index2
3562
3862
  });
3563
3863
  };
3564
- const close = (index) => closeNavSub(index);
3565
- const open = (index) => openNavSub(index);
3864
+ const close = (index2) => closeNavSub(index2);
3865
+ const open = (index2) => openNavSub(index2);
3566
3866
  const initNav = () => {
3567
3867
  activeOpened.value.forEach((v) => {
3568
3868
  openNavSub(v);
@@ -3571,16 +3871,16 @@ const _sfc_main$g = defineComponent({
3571
3871
  onMounted(() => {
3572
3872
  initNav();
3573
3873
  });
3574
- const handleNavItemClick = (index) => {
3575
- activeItemIdx.value = index;
3576
- emit("select", index);
3874
+ const handleNavItemClick = (index2) => {
3875
+ activeItemIdx.value = index2;
3876
+ emit("select", index2);
3577
3877
  };
3578
- const handleNavSubClick = (index) => {
3579
- const isOpened = openedNav.value.includes(index);
3878
+ const handleNavSubClick = (index2) => {
3879
+ const isOpened = openedNav.value.includes(index2);
3580
3880
  if (isOpened) {
3581
- closeNavSub(index);
3881
+ closeNavSub(index2);
3582
3882
  } else {
3583
- openNavSub(index);
3883
+ openNavSub(index2);
3584
3884
  }
3585
3885
  };
3586
3886
  const handleNavHeadClick = () => {
@@ -3687,10 +3987,10 @@ const _sfc_main$e = defineComponent({
3687
3987
  disabled,
3688
3988
  isActive,
3689
3989
  isExactActive,
3690
- index
3990
+ index: index2
3691
3991
  } = toRefs(props);
3692
3992
  const showIcon = computed(() => (rootNav == null ? void 0 : rootNav.type) === "2rd" && Boolean(icon.value));
3693
- const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index.value);
3993
+ const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index2.value);
3694
3994
  const isNavItemActive = computed(() => {
3695
3995
  const unrefIsActive = unref(isActive);
3696
3996
  const unrefIsExactActive = unref(isExactActive);
@@ -3726,17 +4026,17 @@ const _sfc_main$e = defineComponent({
3726
4026
  if (disabled.value) {
3727
4027
  return;
3728
4028
  }
3729
- rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
4029
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index2.value);
3730
4030
  };
3731
4031
  watchEffect(() => {
3732
4032
  if (isActive.value || isExactActive.value) {
3733
- subNav == null ? void 0 : subNav.handleNavItemActive(isActive.value || isExactActive.value, index.value);
3734
- rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
4033
+ subNav == null ? void 0 : subNav.handleNavItemActive(isActive.value || isExactActive.value, index2.value);
4034
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index2.value);
3735
4035
  }
3736
4036
  });
3737
4037
  watch(() => rootNav == null ? void 0 : rootNav.activeItemIdx, (val) => {
3738
- const active = val === index.value;
3739
- subNav == null ? void 0 : subNav.handleNavItemActive(active, index.value);
4038
+ const active = val === index2.value;
4039
+ subNav == null ? void 0 : subNav.handleNavItemActive(active, index2.value);
3740
4040
  }, { immediate: true });
3741
4041
  return {
3742
4042
  classItemList,
@@ -3791,7 +4091,7 @@ const _sfc_main$d = defineComponent({
3791
4091
  disabled,
3792
4092
  isActive,
3793
4093
  isExactActive,
3794
- index,
4094
+ index: index2,
3795
4095
  fold
3796
4096
  } = toRefs(props);
3797
4097
  const rootNav = inject(navRootKey);
@@ -3804,7 +4104,7 @@ const _sfc_main$d = defineComponent({
3804
4104
  const childrenActiveMap = reactive(new Map());
3805
4105
  const showIcon = computed(() => (rootNav == null ? void 0 : rootNav.type) === "2rd" && Boolean(icon.value));
3806
4106
  const foldIcon = computed(() => opened.value ? "icon_caret-up" : "icon_caret-down");
3807
- const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index.value);
4107
+ const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index2.value);
3808
4108
  const classSubList = computed(() => {
3809
4109
  const unrefDisabled = unref(disabled);
3810
4110
  return [
@@ -3866,24 +4166,24 @@ const _sfc_main$d = defineComponent({
3866
4166
  return;
3867
4167
  }
3868
4168
  if (fold.value) {
3869
- rootNav == null ? void 0 : rootNav.handleNavSubClick(index.value);
4169
+ rootNav == null ? void 0 : rootNav.handleNavSubClick(index2.value);
3870
4170
  } else {
3871
- rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
4171
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index2.value);
3872
4172
  }
3873
4173
  };
3874
4174
  watchEffect(() => {
3875
4175
  if (!fold.value && (isActive.value || isExactActive.value)) {
3876
- rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
4176
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index2.value);
3877
4177
  }
3878
4178
  });
3879
4179
  watch(() => rootNav == null ? void 0 : rootNav.activeItemIdx, (val) => {
3880
- currentActiveIndex.value = Boolean(val === index.value);
4180
+ currentActiveIndex.value = Boolean(val === index2.value);
3881
4181
  }, { immediate: true });
3882
4182
  watch(() => rootNav == null ? void 0 : rootNav.openedNav, (val) => {
3883
4183
  if (disabled.value && !fold.value) {
3884
4184
  opened.value = false;
3885
4185
  } else {
3886
- opened.value = (val == null ? void 0 : val.indexOf(index.value)) !== -1;
4186
+ opened.value = (val == null ? void 0 : val.indexOf(index2.value)) !== -1;
3887
4187
  }
3888
4188
  }, { immediate: true, deep: true });
3889
4189
  return {
@@ -4154,9 +4454,9 @@ const _sfc_main$c = defineComponent({
4154
4454
  });
4155
4455
  (_a = searchInput.value) == null ? void 0 : _a.focus();
4156
4456
  };
4157
- const remove = (index) => {
4158
- if (index > -1) {
4159
- const [removed] = state.options.splice(index, 1);
4457
+ const remove = (index2) => {
4458
+ if (index2 > -1) {
4459
+ const [removed] = state.options.splice(index2, 1);
4160
4460
  if (removed) {
4161
4461
  checkRemovedOption(removed);
4162
4462
  }
@@ -4339,8 +4639,8 @@ const _sfc_main$b = defineComponent({
4339
4639
  onBeforeUnmount(() => {
4340
4640
  var _a;
4341
4641
  if (typeof removeFn === "function") {
4342
- const index = (_a = selectState == null ? void 0 : selectState.options.indexOf(instance)) != null ? _a : -1;
4343
- removeFn(index);
4642
+ const index2 = (_a = selectState == null ? void 0 : selectState.options.indexOf(instance)) != null ? _a : -1;
4643
+ removeFn(index2);
4344
4644
  }
4345
4645
  });
4346
4646
  return {
@@ -5142,9 +5442,9 @@ const _sfc_main$3 = defineComponent({
5142
5442
  const isRowSelected = (row) => selectedRows.has(row);
5143
5443
  const toggleExpand = (row, rowIndex) => {
5144
5444
  expandedRows.add(row);
5145
- const index = expandRows.indexOf(row);
5146
- if (index > -1) {
5147
- expandRows.splice(index, 1);
5445
+ const index2 = expandRows.indexOf(row);
5446
+ if (index2 > -1) {
5447
+ expandRows.splice(index2, 1);
5148
5448
  emit("expandToggle", row, rowIndex, false);
5149
5449
  } else {
5150
5450
  expandRows.push(row);
@@ -5353,8 +5653,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5353
5653
  ])
5354
5654
  ])) : createCommentVNode("", true),
5355
5655
  createElementVNode("tbody", _hoisted_9, [
5356
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (row, index) => {
5357
- return openBlock(), createElementBlock(Fragment, { key: index }, [
5656
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (row, index2) => {
5657
+ return openBlock(), createElementBlock(Fragment, { key: index2 }, [
5358
5658
  createElementVNode("tr", {
5359
5659
  class: normalizeClass(["dao-table-tr", { "dao-table-tr--expandable-open": _ctx.expandable && _ctx.isRowExpanded(row) }])
5360
5660
  }, [
@@ -5367,7 +5667,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5367
5667
  _ctx.expandable ? (openBlock(), createElementBlock("td", _hoisted_11, [
5368
5668
  createElementVNode("i", {
5369
5669
  class: "dao-table-expand-toggle icon-arrow-sharp",
5370
- onClick: ($event) => _ctx.toggleExpand(row, index)
5670
+ onClick: ($event) => _ctx.toggleExpand(row, index2)
5371
5671
  }, null, 8, _hoisted_12)
5372
5672
  ])) : createCommentVNode("", true),
5373
5673
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filterColumns, (column) => {
@@ -5379,15 +5679,17 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5379
5679
  renderSlot(_ctx.$slots, `td-${column.id}`, {
5380
5680
  value: row[column.id],
5381
5681
  row,
5382
- rowIndex: index
5383
- })
5682
+ rowIndex: index2
5683
+ }, () => [
5684
+ createElementVNode("span", null, toDisplayString(row[column.id]), 1)
5685
+ ])
5384
5686
  ], 4);
5385
5687
  }), 128))
5386
5688
  ], 2),
5387
5689
  _ctx.expandable && _ctx.expandedRows.has(row) ? withDirectives((openBlock(), createElementBlock("tr", _hoisted_13, [
5388
5690
  renderSlot(_ctx.$slots, "expand", {
5389
5691
  row,
5390
- rowIndex: index
5692
+ rowIndex: index2
5391
5693
  })
5392
5694
  ], 512)), [
5393
5695
  [vShow, _ctx.isRowExpanded(row)]
@@ -5523,7 +5825,7 @@ const _sfc_main$2 = defineComponent({
5523
5825
  }
5524
5826
  emit("click", event, value);
5525
5827
  };
5526
- const tabsLi = computed(() => props.tabList.map((tab, index) => {
5828
+ const tabsLi = computed(() => props.tabList.map((tab, index2) => {
5527
5829
  const { label } = tab;
5528
5830
  const isNotString = typeof label !== "string";
5529
5831
  const isActive = tab.value === props.currentTab;
@@ -5537,7 +5839,7 @@ const _sfc_main$2 = defineComponent({
5537
5839
  "dao-tab-nav-item--disabled": tab.disabled
5538
5840
  },
5539
5841
  ref: hasActiveLine ? activeTab : void 0,
5540
- key: index,
5842
+ key: index2,
5541
5843
  onClick: (event) => handleClick(event, tab),
5542
5844
  onMouseenter: hasHoverLine ? onMouseenter : void 0,
5543
5845
  onMouseleave: hasHoverLine ? onMouseleave : void 0
@@ -5605,16 +5907,16 @@ const _sfc_main$1 = defineComponent({
5605
5907
  if (!child.value) {
5606
5908
  return;
5607
5909
  }
5608
- const index = Array.from(((_a = tabBody.value) == null ? void 0 : _a.children) || []).indexOf(child.value);
5609
- if (index > -1) {
5610
- tabList.splice(index, 0, tab);
5910
+ const index2 = Array.from(((_a = tabBody.value) == null ? void 0 : _a.children) || []).indexOf(child.value);
5911
+ if (index2 > -1) {
5912
+ tabList.splice(index2, 0, tab);
5611
5913
  }
5612
5914
  };
5613
5915
  provide(addTabFnKey, addTab);
5614
5916
  const removeTab = (tab) => {
5615
- const index = tabList.indexOf(tab);
5616
- if (index > -1) {
5617
- tabList.splice(index, 1);
5917
+ const index2 = tabList.indexOf(tab);
5918
+ if (index2 > -1) {
5919
+ tabList.splice(index2, 1);
5618
5920
  }
5619
5921
  };
5620
5922
  provide(removeTabFnKey, removeTab);
@@ -5693,6 +5995,7 @@ var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
5693
5995
  var components = /* @__PURE__ */ Object.freeze({
5694
5996
  __proto__: null,
5695
5997
  [Symbol.toStringTag]: "Module",
5998
+ ActionIcon: actionIcon,
5696
5999
  Button: DaoButton,
5697
6000
  ButtonGroup: buttonGroup,
5698
6001
  Card: card,
@@ -5708,6 +6011,9 @@ var components = /* @__PURE__ */ Object.freeze({
5708
6011
  Form: form,
5709
6012
  FormItem: formItem,
5710
6013
  FormGroup: formGroup,
6014
+ Header: header,
6015
+ Breadcrumb: breadcrumb,
6016
+ BreadcrumbItem: DaoBreadcrumbItem,
5711
6017
  Icon: DaoIcon,
5712
6018
  Input: input,
5713
6019
  Message: message,
@@ -5728,23 +6034,23 @@ var components = /* @__PURE__ */ Object.freeze({
5728
6034
  Tabs: tabs,
5729
6035
  TabNav: _sfc_main$2,
5730
6036
  TabItem: tabItem,
5731
- Tooltip: _sfc_main$l
6037
+ Tooltip: _sfc_main$o
5732
6038
  });
5733
6039
  var common = "";
5734
- const plugin$1 = (app) => {
6040
+ const plugin = (app) => {
5735
6041
  Object.values(components).forEach((c) => {
5736
6042
  app.component(c.name, c);
5737
6043
  });
5738
6044
  };
5739
6045
  let installed = false;
5740
- function install(Vue) {
6046
+ const install = (Vue) => {
5741
6047
  if (installed) {
5742
6048
  return;
5743
6049
  }
5744
- Vue.use(plugin$1);
6050
+ Vue.use(plugin);
5745
6051
  installed = true;
5746
- }
5747
- var plugin = {
6052
+ };
6053
+ var index = {
5748
6054
  install
5749
6055
  };
5750
- export { plugin as default };
6056
+ export { actionIcon as ActionIcon, breadcrumb as Breadcrumb, DaoBreadcrumbItem as BreadcrumbItem, DaoButton as Button, buttonGroup as ButtonGroup, card as Card, cardItem as CardItem, DaoCheckbox as Checkbox, checkboxGroup as CheckboxGroup, dialog as Dialog, DialogFooter, DialogHeader, dropdown as Dropdown, dropdownItem as DropdownItem, dropdownMenu as DropdownMenu, form as Form, formGroup as FormGroup, formItem as FormItem, header as Header, DaoIcon as Icon, input as Input, message as Message, nav as Nav, navHead as NavHead, navItem as NavItem, navSub as NavSub, DaoOption as Option, DaoPagination as Pagination, _sfc_main$9 as Popover, Popper, progress as Progress, radio as Radio, radioGroup as RadioGroup, DaoSelect as Select, _switch as Switch, tabItem as TabItem, _sfc_main$2 as TabNav, table as Table, tabs as Tabs, _sfc_main$o as Tooltip, index as default };