@dao-style/core 0.0.1-beta.2 → 0.0.1-beta.5

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 +591 -283
  125. package/dist/dao-style.umd.js +1 -1
  126. package/dist/index.d.ts +7 -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$B = defineComponent({
112
+ const _sfc_main$F = defineComponent({
66
113
  name: "DaoIcon",
67
114
  props: {
68
115
  name: {
@@ -75,23 +122,23 @@ const _sfc_main$B = defineComponent({
75
122
  }
76
123
  }
77
124
  });
78
- const _hoisted_1$s = {
125
+ const _hoisted_1$t = {
79
126
  key: 1,
80
127
  class: "dao-icon"
81
128
  };
82
129
  const _hoisted_2$j = ["xlink:href"];
83
- function _sfc_render$x(_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])
87
- }, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$s, [
134
+ }, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$t, [
88
135
  createElementVNode("use", {
89
136
  "xlink:href": `#${_ctx.name}`
90
137
  }, null, 8, _hoisted_2$j)
91
138
  ]));
92
139
  }
93
- var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$x]]);
94
- const _sfc_main$A = /* @__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$z = defineComponent({
170
+ const _sfc_main$D = defineComponent({
124
171
  name: "DaoButton",
125
172
  components: {
126
- DaoButtonIcon: _sfc_main$A
173
+ DaoButtonIcon: _sfc_main$E
127
174
  },
128
175
  props: buttonProps,
129
176
  emits: ["click"],
@@ -207,12 +254,12 @@ const _sfc_main$z = defineComponent({
207
254
  };
208
255
  }
209
256
  });
210
- const _hoisted_1$r = ["disabled"];
257
+ const _hoisted_1$s = ["disabled"];
211
258
  const _hoisted_2$i = {
212
259
  key: 1,
213
260
  class: "dao-btn__text"
214
261
  };
215
- function _sfc_render$w(_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),
@@ -234,22 +281,22 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
234
281
  "icon-name": _ctx.realIconRight
235
282
  }, null, 8, ["use-font", "icon-name"])) : createCommentVNode("", true)
236
283
  ], 64))
237
- ], 10, _hoisted_1$r);
284
+ ], 10, _hoisted_1$s);
238
285
  }
239
- var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
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$y = defineComponent({
288
+ const _sfc_main$C = defineComponent({
242
289
  name: "DaoButtonGroup"
243
290
  });
244
- const _hoisted_1$q = { class: "dao-btn-group" };
245
- function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
246
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
291
+ const _hoisted_1$r = { class: "dao-btn-group" };
292
+ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
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$y, [["render", _sfc_render$v]]);
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$x = defineComponent({
299
+ const _sfc_main$B = defineComponent({
253
300
  name: "DaoCard",
254
301
  components: {
255
302
  DaoIcon
@@ -277,7 +324,7 @@ const _sfc_main$x = defineComponent({
277
324
  }
278
325
  }
279
326
  });
280
- const _hoisted_1$p = {
327
+ const _hoisted_1$q = {
281
328
  key: 0,
282
329
  class: "dao-card-header"
283
330
  };
@@ -287,12 +334,12 @@ 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$u(_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}`])
294
341
  }, [
295
- _ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
342
+ _ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
296
343
  renderSlot(_ctx.$slots, "header", {}, () => [
297
344
  renderSlot(_ctx.$slots, "header-prefix"),
298
345
  _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
@@ -332,62 +379,18 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
332
379
  ], 2)
333
380
  ], 2);
334
381
  }
335
- var card = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
336
- function looseCompareArrays(a, b) {
337
- if (a.length !== b.length)
338
- return false;
339
- let equal = true;
340
- for (let i = 0; equal && i < a.length; i++) {
341
- equal = looseEqual(a[i], b[i]);
342
- }
343
- return equal;
344
- }
345
- function looseEqual(a, b) {
346
- if (a === b)
347
- return true;
348
- let aValidType = isDate(a);
349
- let bValidType = isDate(b);
350
- if (aValidType || bValidType) {
351
- return aValidType && bValidType ? a.getTime() === b.getTime() : false;
352
- }
353
- aValidType = isArray(a);
354
- bValidType = isArray(b);
355
- if (aValidType || bValidType) {
356
- return aValidType && bValidType ? looseCompareArrays(a, b) : false;
357
- }
358
- aValidType = isObject(a);
359
- bValidType = isObject(b);
360
- if (aValidType || bValidType) {
361
- if (!aValidType || !bValidType) {
362
- return false;
363
- }
364
- const aKeysCount = Object.keys(a).length;
365
- const bKeysCount = Object.keys(b).length;
366
- if (aKeysCount !== bKeysCount) {
367
- return false;
368
- }
369
- for (const key in a) {
370
- const aHasKey = a.hasOwnProperty(key);
371
- const bHasKey = b.hasOwnProperty(key);
372
- if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {
373
- return false;
374
- }
375
- }
376
- }
377
- return String(a) === String(b);
378
- }
379
- function looseIndexOf(arr, val) {
380
- return arr.findIndex((item) => looseEqual(item, val));
382
+ var card = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$y]]);
383
+ var cardItem_scss_vue_type_style_index_0_src_lang = "";
384
+ const _sfc_main$A = defineComponent({
385
+ name: "DaoCardItem"
386
+ });
387
+ const _hoisted_1$p = { class: "dao-card-item" };
388
+ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
389
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
390
+ renderSlot(_ctx.$slots, "default")
391
+ ]);
381
392
  }
382
- const NOOP = () => {
383
- };
384
- const isArray = Array.isArray;
385
- const isSet = (val) => toTypeString(val) === "[object Set]";
386
- const isDate = (val) => val instanceof Date;
387
- const isFunction = (val) => typeof val === "function";
388
- const isObject = (val) => val !== null && typeof val === "object";
389
- const objectToString = Object.prototype.toString;
390
- const toTypeString = (value) => objectToString.call(value);
393
+ var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
391
394
  function isNullish(val) {
392
395
  return val === null || val === void 0;
393
396
  }
@@ -418,9 +421,10 @@ const checkboxGroupChangeFnKey = Symbol("checkboxGroupChangeFnKey");
418
421
  const formLabelWidthKey = Symbol("formLabelWidthKey");
419
422
  const navRootKey = Symbol("rootNav");
420
423
  const navSubKey = Symbol("subNav");
424
+ const breadcrumbKey = Symbol("breadcrumbKey");
421
425
  var checkbox_vue_vue_type_style_index_0_lang = "";
422
426
  const modelValueAny = [String, Number, Boolean, Symbol, Object, Set, Array];
423
- const _sfc_main$w = defineComponent({
427
+ const _sfc_main$z = defineComponent({
424
428
  name: "DaoCheckbox",
425
429
  props: {
426
430
  modelValue: {
@@ -515,13 +519,13 @@ const _sfc_main$w = defineComponent({
515
519
  const modelValue = currentModelValue.value;
516
520
  const { value } = props;
517
521
  if (isArray(modelValue)) {
518
- const index = looseIndexOf(modelValue, value);
519
- const found = index !== -1;
522
+ const index2 = looseIndexOf(modelValue, value);
523
+ const found = index2 !== -1;
520
524
  if (checked && !found) {
521
525
  emitModelValue(modelValue.concat(value), event);
522
526
  } else if (!checked && found) {
523
527
  const filtered = [...modelValue];
524
- filtered.splice(index, 1);
528
+ filtered.splice(index2, 1);
525
529
  emitModelValue(filtered, event);
526
530
  }
527
531
  } else if (isSet(modelValue)) {
@@ -567,7 +571,7 @@ const _hoisted_5$5 = {
567
571
  key: 1,
568
572
  class: "dao-checkbox__label-helper"
569
573
  };
570
- function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
574
+ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
571
575
  return openBlock(), createElementBlock("label", {
572
576
  class: normalizeClass(_ctx.wrapClasses)
573
577
  }, [
@@ -597,9 +601,9 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
597
601
  ])) : createCommentVNode("", true)
598
602
  ], 2);
599
603
  }
600
- 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]]);
601
605
  var checkboxGroup_vue_vue_type_style_index_0_lang = "";
602
- const _sfc_main$v = defineComponent({
606
+ const _sfc_main$y = defineComponent({
603
607
  name: "DaoCheckboxGroup",
604
608
  props: {
605
609
  modelValue: {
@@ -633,18 +637,18 @@ const _sfc_main$v = defineComponent({
633
637
  };
634
638
  }
635
639
  });
636
- function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
640
+ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
637
641
  return openBlock(), createElementBlock("div", {
638
642
  class: normalizeClass(_ctx.checkboxGroupClasses)
639
643
  }, [
640
644
  renderSlot(_ctx.$slots, "default")
641
645
  ], 2);
642
646
  }
643
- var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
644
- const _sfc_main$u = defineComponent({
647
+ var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
648
+ const _sfc_main$x = defineComponent({
645
649
  name: "DaoDialogHeader",
646
650
  components: {
647
- DaoIcon
651
+ DaoButton
648
652
  },
649
653
  props: {
650
654
  showClose: {
@@ -665,33 +669,27 @@ const _sfc_main$u = defineComponent({
665
669
  }
666
670
  });
667
671
  const _hoisted_1$n = { class: "dao-dialog-header" };
668
- function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
669
- 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");
670
674
  return openBlock(), createElementBlock("div", _hoisted_1$n, [
671
675
  renderSlot(_ctx.$slots, "default", {}, () => [
672
- createElementVNode("span", {
673
- class: normalizeClass({ "center": !_ctx.showClose })
674
- }, [
676
+ createElementVNode("span", null, [
675
677
  renderSlot(_ctx.$slots, "title", {}, () => [
676
678
  createTextVNode(toDisplayString(_ctx.title), 1)
677
679
  ])
678
- ], 2),
679
- _ctx.showClose ? (openBlock(), createElementBlock("a", {
680
+ ]),
681
+ _ctx.showClose ? (openBlock(), createBlock(_component_dao_button, {
680
682
  key: 0,
681
- href: "javascript:void(0)",
682
- class: "dao-dialog-header-close-btn",
683
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClose && _ctx.onClose(...args))
684
- }, [
685
- createVNode(_component_dao_icon, {
686
- name: "icon_close-circled",
687
- class: "dao-dialog-header-close-btn__close"
688
- })
689
- ])) : createCommentVNode("", true)
683
+ "use-font": "",
684
+ type: "ghost",
685
+ "icon-left": "icon-close",
686
+ onClick: _ctx.onClose
687
+ }, null, 8, ["onClick"])) : createCommentVNode("", true)
690
688
  ])
691
689
  ]);
692
690
  }
693
- var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$r]]);
694
- const _sfc_main$t = defineComponent({
691
+ var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
692
+ const _sfc_main$w = defineComponent({
695
693
  name: "DaoDialogFooter",
696
694
  components: {
697
695
  DaoButton
@@ -728,12 +726,12 @@ const _sfc_main$t = defineComponent({
728
726
  }
729
727
  });
730
728
  const _hoisted_1$m = { class: "dao-dialog-footer" };
731
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
729
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
732
730
  const _component_dao_button = resolveComponent("dao-button");
733
731
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
734
732
  renderSlot(_ctx.$slots, "default", {}, () => [
735
733
  createVNode(_component_dao_button, {
736
- type: "secondary",
734
+ type: "ghost",
737
735
  class: "dao-dialog-footer-cancel-btn",
738
736
  onClick: _ctx.onCancel
739
737
  }, {
@@ -755,13 +753,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
755
753
  ])
756
754
  ]);
757
755
  }
758
- 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]]);
759
757
  var dialog_scss_vue_type_style_index_0_src_lang = "";
760
758
  const DIALOG_NUM_ATTR = "dao-dialog-num";
761
759
  const DIALOG_MINIMUM_PADDING = "20px";
762
760
  const DIALOG_DEFAULT_PADDING_TOP = "100px";
763
761
  const DIALOG_DEFAULT_PADDING_BOTTOM = "20px";
764
- const _sfc_main$s = defineComponent({
762
+ const _sfc_main$v = defineComponent({
765
763
  name: "DaoDialog",
766
764
  components: {
767
765
  DialogHeader,
@@ -839,7 +837,7 @@ const _sfc_main$s = defineComponent({
839
837
  "before-close",
840
838
  "closed"
841
839
  ],
842
- setup(props, { emit, slots }) {
840
+ setup(props, { emit }) {
843
841
  const {
844
842
  modelValue,
845
843
  middle,
@@ -847,7 +845,7 @@ const _sfc_main$s = defineComponent({
847
845
  bottom: bottom2,
848
846
  containerClass,
849
847
  size,
850
- header,
848
+ header: header2,
851
849
  lockScroll,
852
850
  closeOnPressEscape,
853
851
  closeOnClickOutside
@@ -858,8 +856,8 @@ const _sfc_main$s = defineComponent({
858
856
  containerClass.value,
859
857
  `dao-dialog__size-${size.value}`
860
858
  ]);
861
- const showHeader = computed(() => typeof header.value === "boolean" ? header.value : true);
862
- 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 : "");
863
861
  watch(modelValue, (newV) => {
864
862
  emit("change", newV);
865
863
  });
@@ -926,7 +924,6 @@ const _sfc_main$s = defineComponent({
926
924
  computedContainerClass,
927
925
  headerTitle,
928
926
  showHeader,
929
- slots,
930
927
  onBeforeEnter,
931
928
  onAfterEnter,
932
929
  onConfirm,
@@ -938,7 +935,7 @@ const _sfc_main$s = defineComponent({
938
935
  }
939
936
  });
940
937
  const _hoisted_1$l = { class: "dao-dialog-body" };
941
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
938
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
942
939
  const _component_dialog_header = resolveComponent("dialog-header");
943
940
  const _component_dialog_footer = resolveComponent("dialog-footer");
944
941
  return openBlock(), createBlock(Transition, {
@@ -995,7 +992,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
995
992
  _: 3
996
993
  }, 8, ["onBeforeEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"]);
997
994
  }
998
- 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]]);
999
996
  var top = "top";
1000
997
  var bottom = "bottom";
1001
998
  var right = "right";
@@ -2129,13 +2126,13 @@ function popperGenerator(generatorOptions) {
2129
2126
  state.orderedModifiers.forEach(function(modifier) {
2130
2127
  return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
2131
2128
  });
2132
- for (var index = 0; index < state.orderedModifiers.length; index++) {
2129
+ for (var index2 = 0; index2 < state.orderedModifiers.length; index2++) {
2133
2130
  if (state.reset === true) {
2134
2131
  state.reset = false;
2135
- index = -1;
2132
+ index2 = -1;
2136
2133
  continue;
2137
2134
  }
2138
- 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;
2139
2136
  if (typeof fn2 === "function") {
2140
2137
  state = fn2({
2141
2138
  state,
@@ -2194,7 +2191,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
2194
2191
  var createPopper = /* @__PURE__ */ popperGenerator({
2195
2192
  defaultModifiers
2196
2193
  });
2197
- const _sfc_main$r = defineComponent({
2194
+ const _sfc_main$u = defineComponent({
2198
2195
  name: "PopperContent",
2199
2196
  props: {
2200
2197
  popperId: {
@@ -2249,22 +2246,22 @@ const _hoisted_2$f = {
2249
2246
  };
2250
2247
  const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("svg", {
2251
2248
  class: "dao-popper-arrow-viewbox",
2252
- viewBox: "0 0 30 30"
2249
+ viewBox: "0 0 15 15"
2253
2250
  }, [
2254
2251
  /* @__PURE__ */ createElementVNode("path", {
2255
2252
  class: "pt-popper-arrow-border",
2256
- 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",
2257
- "fill-opacity": "0.1"
2253
+ d: "M4 7.5L14 -1L14 16Z",
2254
+ opacity: "0.1"
2258
2255
  }),
2259
2256
  /* @__PURE__ */ createElementVNode("path", {
2260
2257
  class: "pt-popper-arrow-fill",
2261
- 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"
2262
2259
  })
2263
2260
  ], -1);
2264
2261
  const _hoisted_4$8 = [
2265
2262
  _hoisted_3$9
2266
2263
  ];
2267
- function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2264
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
2268
2265
  return openBlock(), createElementBlock("div", {
2269
2266
  id: _ctx.popperId,
2270
2267
  ref: "popover",
@@ -2288,7 +2285,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2288
2285
  ])
2289
2286
  ], 42, _hoisted_1$k);
2290
2287
  }
2291
- 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]]);
2292
2289
  var PopperProps = {
2293
2290
  modelValue: {
2294
2291
  type: Boolean,
@@ -2378,7 +2375,7 @@ function updatePopperOptions(popperInstance, modifiers, popperOptions = {}) {
2378
2375
  });
2379
2376
  });
2380
2377
  }
2381
- const _sfc_main$q = defineComponent({
2378
+ const _sfc_main$t = defineComponent({
2382
2379
  name: "DaoPopper",
2383
2380
  components: {
2384
2381
  PopperContent
@@ -2728,7 +2725,7 @@ const _sfc_main$q = defineComponent({
2728
2725
  };
2729
2726
  }
2730
2727
  });
2731
- function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2728
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
2732
2729
  const _component_popper_content = resolveComponent("popper-content");
2733
2730
  return openBlock(), createElementBlock("div", {
2734
2731
  ref: "reference",
@@ -2770,8 +2767,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2770
2767
  ], 8, ["to", "disabled"]))
2771
2768
  ], 2);
2772
2769
  }
2773
- var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
2774
- const _sfc_main$p = defineComponent({
2770
+ var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
2771
+ const _sfc_main$s = defineComponent({
2775
2772
  name: "DaoDropdown",
2776
2773
  components: {
2777
2774
  DaoPopper: Popper
@@ -2828,7 +2825,7 @@ const _sfc_main$p = defineComponent({
2828
2825
  }
2829
2826
  });
2830
2827
  const _hoisted_1$j = { tabindex: "0" };
2831
- function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2828
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
2832
2829
  const _component_dao_popper = resolveComponent("dao-popper");
2833
2830
  return openBlock(), createBlock(_component_dao_popper, {
2834
2831
  ref: "popper",
@@ -2851,20 +2848,20 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2851
2848
  _: 3
2852
2849
  }, 8, ["placement", "append-to", "trigger", "offset", "model-value"]);
2853
2850
  }
2854
- var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
2851
+ var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
2855
2852
  var dropdownMenu_vue_vue_type_style_index_0_lang = "";
2856
- const _sfc_main$o = defineComponent({
2853
+ const _sfc_main$r = defineComponent({
2857
2854
  name: "DaoDropdownMenu"
2858
2855
  });
2859
2856
  const _hoisted_1$i = { class: "dao-dropdown-menu" };
2860
- function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2857
+ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2861
2858
  return openBlock(), createElementBlock("ul", _hoisted_1$i, [
2862
2859
  renderSlot(_ctx.$slots, "default")
2863
2860
  ]);
2864
2861
  }
2865
- var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$l]]);
2862
+ var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
2866
2863
  var dropdownItem_vue_vue_type_style_index_0_lang = "";
2867
- const _sfc_main$n = defineComponent({
2864
+ const _sfc_main$q = defineComponent({
2868
2865
  name: "DaoDropdownItem",
2869
2866
  props: {
2870
2867
  type: {
@@ -2913,14 +2910,14 @@ const _sfc_main$n = defineComponent({
2913
2910
  };
2914
2911
  }
2915
2912
  });
2916
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2913
+ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2917
2914
  return openBlock(), createElementBlock("li", mergeProps({ class: _ctx.classList }, _ctx.itemAttrs), [
2918
2915
  _ctx.type !== "divider" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
2919
2916
  ], 16);
2920
2917
  }
2921
- var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$k]]);
2918
+ var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
2922
2919
  var form_vue_vue_type_style_index_0_lang = "";
2923
- const _sfc_main$m = defineComponent({
2920
+ const _sfc_main$p = defineComponent({
2924
2921
  name: "DaoForm",
2925
2922
  props: {
2926
2923
  type: {
@@ -2938,7 +2935,7 @@ const _sfc_main$m = defineComponent({
2938
2935
  provide(formLabelWidthKey, labelWidth.value);
2939
2936
  }
2940
2937
  });
2941
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2938
+ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2942
2939
  return openBlock(), createElementBlock("div", {
2943
2940
  class: normalizeClass([
2944
2941
  "dao-form",
@@ -2958,18 +2955,24 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2958
2955
  } })
2959
2956
  ], 2);
2960
2957
  }
2961
- var form = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$j]]);
2958
+ var form = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
2959
+ var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
2960
+ offset: {
2961
+ type: [Number, String],
2962
+ default: 10
2963
+ }
2964
+ });
2962
2965
  var tooltip_scss_vue_type_style_index_0_src_lang = "";
2963
- const _sfc_main$l = defineComponent(__spreadProps(__spreadValues({}, Popper), {
2966
+ const _sfc_main$o = defineComponent(__spreadProps(__spreadValues({}, Popper), {
2964
2967
  name: "DaoTooltip",
2965
- props: PopperProps,
2968
+ props: tooltipProps,
2966
2969
  daoPopperTheme: "dao-tooltip"
2967
2970
  }));
2968
2971
  var formItem_vue_vue_type_style_index_0_lang = "";
2969
- const _sfc_main$k = defineComponent({
2972
+ const _sfc_main$n = defineComponent({
2970
2973
  name: "DaoFormItem",
2971
2974
  components: {
2972
- DaoTooltip: _sfc_main$l
2975
+ DaoTooltip: _sfc_main$o
2973
2976
  },
2974
2977
  props: {
2975
2978
  label: {
@@ -3021,7 +3024,7 @@ const _hoisted_2$e = {
3021
3024
  };
3022
3025
  const _hoisted_3$8 = { class: "dao-form-item__label-icon-label" };
3023
3026
  const _hoisted_4$7 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
3024
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3027
+ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
3025
3028
  const _component_dao_tooltip = resolveComponent("dao-tooltip");
3026
3029
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
3027
3030
  createElementVNode("div", {
@@ -3052,9 +3055,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3052
3055
  ], 4)
3053
3056
  ]);
3054
3057
  }
3055
- var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
3058
+ var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]);
3056
3059
  var formGroup_vue_vue_type_style_index_0_lang = "";
3057
- const _sfc_main$j = defineComponent({
3060
+ const _sfc_main$m = defineComponent({
3058
3061
  name: "DaoFormGroup",
3059
3062
  props: {
3060
3063
  title: {
@@ -3065,7 +3068,7 @@ const _sfc_main$j = defineComponent({
3065
3068
  });
3066
3069
  const _hoisted_1$g = { class: "dao-form-group" };
3067
3070
  const _hoisted_2$d = { class: "dao-form-group__title" };
3068
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3071
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
3069
3072
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
3070
3073
  createElementVNode("div", _hoisted_2$d, [
3071
3074
  renderSlot(_ctx.$slots, "title", {}, () => [
@@ -3075,20 +3078,216 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3075
3078
  renderSlot(_ctx.$slots, "default")
3076
3079
  ]);
3077
3080
  }
3078
- var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
3081
+ var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k]]);
3082
+ const headerProps = {
3083
+ type: {
3084
+ type: String,
3085
+ default: "2rd"
3086
+ },
3087
+ title: {
3088
+ type: String,
3089
+ default: ""
3090
+ }
3091
+ };
3092
+ var header_vue_vue_type_style_index_0_lang = "";
3093
+ const _sfc_main$l = defineComponent({
3094
+ name: "DaoHeader",
3095
+ props: headerProps,
3096
+ setup(props, { slots }) {
3097
+ const showInfo = computed(() => ({
3098
+ title: props.type === "3rd" ? false : Boolean(props.title || slots.title),
3099
+ breadcrumb: props.type === "2rd" ? false : slots.breadcrumb
3100
+ }));
3101
+ return {
3102
+ ns: "dao-header",
3103
+ showInfo
3104
+ };
3105
+ }
3106
+ });
3107
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
3108
+ return openBlock(), createElementBlock("div", {
3109
+ ref: "header",
3110
+ "aria-label": "Header",
3111
+ class: normalizeClass(_ctx.ns)
3112
+ }, [
3113
+ createElementVNode("div", {
3114
+ class: normalizeClass(_ctx.ns + "__left-container")
3115
+ }, [
3116
+ _ctx.showInfo.title ? (openBlock(), createElementBlock("div", {
3117
+ key: 0,
3118
+ class: normalizeClass(_ctx.ns + "__title")
3119
+ }, [
3120
+ renderSlot(_ctx.$slots, "title", {}, () => [
3121
+ createTextVNode(toDisplayString(_ctx.title), 1)
3122
+ ])
3123
+ ], 2)) : createCommentVNode("", true),
3124
+ _ctx.showInfo.breadcrumb ? (openBlock(), createElementBlock("div", {
3125
+ key: 1,
3126
+ class: normalizeClass(_ctx.ns + "__breadcrumb")
3127
+ }, [
3128
+ renderSlot(_ctx.$slots, "breadcrumb")
3129
+ ], 2)) : createCommentVNode("", true)
3130
+ ], 2),
3131
+ _ctx.$slots.action ? (openBlock(), createElementBlock("div", {
3132
+ key: 0,
3133
+ class: normalizeClass(_ctx.ns + "__action")
3134
+ }, [
3135
+ renderSlot(_ctx.$slots, "action")
3136
+ ], 2)) : createCommentVNode("", true)
3137
+ ], 2);
3138
+ }
3139
+ var header = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]);
3140
+ const breadcrumbProps = {
3141
+ type: {
3142
+ type: String,
3143
+ default: "3rd"
3144
+ },
3145
+ list: {
3146
+ type: Array,
3147
+ default: () => []
3148
+ },
3149
+ separator: {
3150
+ type: String,
3151
+ default: "/"
3152
+ },
3153
+ icon: {
3154
+ type: String,
3155
+ default: ""
3156
+ }
3157
+ };
3158
+ const breadcrumbEmits = {
3159
+ navigate: (to) => to
3160
+ };
3161
+ const breadcrumbItemProps = {
3162
+ label: {
3163
+ type: String
3164
+ },
3165
+ value: {
3166
+ type: String
3167
+ },
3168
+ to: {
3169
+ type: [String, Object]
3170
+ }
3171
+ };
3172
+ const _sfc_main$k = defineComponent({
3173
+ name: "DaoBreadcrumbItem",
3174
+ props: breadcrumbItemProps,
3175
+ setup(props) {
3176
+ const parent = inject(breadcrumbKey, null);
3177
+ const separator = computed(() => {
3178
+ var _a;
3179
+ return (_a = parent == null ? void 0 : parent.props) == null ? void 0 : _a.separator;
3180
+ });
3181
+ const handleClick = () => {
3182
+ const to = props == null ? void 0 : props.to;
3183
+ if (to && (parent == null ? void 0 : parent.emit)) {
3184
+ parent.emit("navigate", to);
3185
+ }
3186
+ };
3187
+ return {
3188
+ ns: "dao-breadcrumb",
3189
+ handleClick,
3190
+ separator
3191
+ };
3192
+ }
3193
+ });
3194
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3195
+ return openBlock(), createElementBlock("span", {
3196
+ class: normalizeClass(_ctx.ns + "__item")
3197
+ }, [
3198
+ createElementVNode("span", {
3199
+ role: "link",
3200
+ class: normalizeClass({ [_ctx.ns + "__link"]: !!_ctx.to }),
3201
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
3202
+ }, [
3203
+ _ctx.label ? (openBlock(), createElementBlock("span", {
3204
+ key: 0,
3205
+ role: "label",
3206
+ class: normalizeClass(_ctx.ns + "__label")
3207
+ }, toDisplayString(_ctx.label), 3)) : createCommentVNode("", true),
3208
+ _ctx.value ? (openBlock(), createElementBlock("span", {
3209
+ key: 1,
3210
+ class: normalizeClass(_ctx.ns + "__value"),
3211
+ role: "value"
3212
+ }, toDisplayString(_ctx.value), 3)) : createCommentVNode("", true),
3213
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
3214
+ key: 2,
3215
+ role: "slot",
3216
+ class: normalizeClass(_ctx.ns + "__slot")
3217
+ }, [
3218
+ renderSlot(_ctx.$slots, "default")
3219
+ ], 2)) : createCommentVNode("", true)
3220
+ ], 2),
3221
+ createElementVNode("span", {
3222
+ class: normalizeClass(_ctx.ns + "__separator")
3223
+ }, toDisplayString(_ctx.separator), 3)
3224
+ ], 2);
3225
+ }
3226
+ var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
3227
+ var breadcrumb_vue_vue_type_style_index_0_lang = "";
3228
+ const _sfc_main$j = defineComponent({
3229
+ name: "DaoBreadcrumb",
3230
+ components: {
3231
+ DaoIcon,
3232
+ DaoBreadcrumbItem
3233
+ },
3234
+ props: breadcrumbProps,
3235
+ emits: breadcrumbEmits,
3236
+ setup(props, { emit }) {
3237
+ provide(breadcrumbKey, { props, emit });
3238
+ return {
3239
+ ns: "dao-breadcrumb"
3240
+ };
3241
+ }
3242
+ });
3243
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3244
+ var _a;
3245
+ const _component_dao_icon = resolveComponent("dao-icon");
3246
+ const _component_dao_breadcrumb_item = resolveComponent("dao-breadcrumb-item");
3247
+ return openBlock(), createElementBlock("div", {
3248
+ ref: "breadcrumb",
3249
+ "aria-label": "Breadcrumb",
3250
+ role: "navigation",
3251
+ class: normalizeClass(_ctx.ns)
3252
+ }, [
3253
+ _ctx.$slots.icon || _ctx.icon ? (openBlock(), createElementBlock("span", {
3254
+ key: 0,
3255
+ class: normalizeClass(_ctx.ns + "__icon")
3256
+ }, [
3257
+ renderSlot(_ctx.$slots, "icon", {}, () => [
3258
+ createVNode(_component_dao_icon, {
3259
+ "use-font": "",
3260
+ name: _ctx.icon
3261
+ }, null, 8, ["name"])
3262
+ ])
3263
+ ], 2)) : createCommentVNode("", true),
3264
+ ((_a = _ctx.list) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.list, (item, index2) => {
3265
+ return openBlock(), createBlock(_component_dao_breadcrumb_item, {
3266
+ key: index2,
3267
+ label: item.label,
3268
+ value: item.value,
3269
+ to: item.to
3270
+ }, null, 8, ["label", "value", "to"]);
3271
+ }), 128)) : createCommentVNode("", true),
3272
+ renderSlot(_ctx.$slots, "default")
3273
+ ], 2);
3274
+ }
3275
+ var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
3079
3276
  if (typeof window !== "undefined") {
3080
3277
  let loadSvg = function() {
3081
- let body = document.body;
3082
- let svgDom = document.getElementById("__svg__icons__dom__1643091635379__");
3278
+ var body = document.body;
3279
+ var svgDom = document.getElementById("__svg__icons__dom__");
3083
3280
  if (!svgDom) {
3084
3281
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
3085
3282
  svgDom.style.position = "absolute";
3086
3283
  svgDom.style.width = "0";
3087
3284
  svgDom.style.height = "0";
3088
- svgDom.id = "__svg__icons__dom__1643091635379__";
3285
+ svgDom.id = "__svg__icons__dom__";
3286
+ svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
3287
+ svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
3089
3288
  }
3090
- 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>';
3091
- body.insertBefore(svgDom, body.firstChild);
3289
+ 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>';
3290
+ body.insertBefore(svgDom, body.lastChild);
3092
3291
  };
3093
3292
  if (document.readyState === "loading") {
3094
3293
  document.addEventListener("DOMContentLoaded", loadSvg);
@@ -3096,55 +3295,59 @@ if (typeof window !== "undefined") {
3096
3295
  loadSvg();
3097
3296
  }
3098
3297
  }
3298
+ const INPUT_STATUS = ["default", "error", "success", "loading"];
3299
+ const INPUT_TYPES = ["text", "search", "number", "password"];
3300
+ var inputProps = {
3301
+ modelValue: {
3302
+ type: [String, Number],
3303
+ default: ""
3304
+ },
3305
+ type: {
3306
+ type: String,
3307
+ default: "text",
3308
+ validator: (value) => INPUT_TYPES.includes(value)
3309
+ },
3310
+ disabled: {
3311
+ type: Boolean,
3312
+ default: false
3313
+ },
3314
+ size: {
3315
+ type: String,
3316
+ default: "md",
3317
+ validator: (value) => ["md", "sm"].includes(value)
3318
+ },
3319
+ block: {
3320
+ type: Boolean,
3321
+ default: false
3322
+ },
3323
+ status: {
3324
+ type: String,
3325
+ default: "default",
3326
+ validator: (value) => INPUT_STATUS.includes(value)
3327
+ },
3328
+ borderless: {
3329
+ type: Boolean,
3330
+ default: false
3331
+ },
3332
+ append: {
3333
+ type: String,
3334
+ default: ""
3335
+ },
3336
+ prepend: {
3337
+ type: String,
3338
+ default: ""
3339
+ }
3340
+ };
3099
3341
  var input_vue_vue_type_style_index_0_lang = "";
3100
3342
  const _sfc_main$i = defineComponent({
3101
3343
  name: "DaoInput",
3102
3344
  inheritAttrs: false,
3103
- props: {
3104
- modelValue: {
3105
- type: [String, Number],
3106
- default: ""
3107
- },
3108
- type: {
3109
- type: String,
3110
- default: "text",
3111
- validator: (value) => ["text", "search", "number", "password"].includes(value)
3112
- },
3113
- disabled: {
3114
- type: Boolean,
3115
- default: false
3116
- },
3117
- size: {
3118
- type: String,
3119
- default: "md",
3120
- validator: (value) => ["md", "sm"].includes(value)
3121
- },
3122
- block: {
3123
- type: Boolean,
3124
- default: false
3125
- },
3126
- status: {
3127
- type: String,
3128
- default: "default",
3129
- validator: (value) => ["default", "error", "success", "loading"].includes(value)
3130
- },
3131
- borderless: {
3132
- type: Boolean,
3133
- default: false
3134
- },
3135
- append: {
3136
- type: String,
3137
- default: ""
3138
- },
3139
- prepend: {
3140
- type: String,
3141
- default: ""
3142
- }
3143
- },
3345
+ props: inputProps,
3144
3346
  emits: ["update:modelValue", "input", "change", "blur", "focus", "after-reset"],
3145
3347
  setup(props, { emit, attrs, slots }) {
3146
3348
  const prefixCls = "dao-input";
3147
3349
  const statusMap = {
3350
+ default: "",
3148
3351
  error: "dao-input-error-icon icon-sys-warning",
3149
3352
  success: "dao-input-success-icon icon-sys-success",
3150
3353
  loading: "dao-input-loading-icon icon-input-loading"
@@ -3162,6 +3365,11 @@ const _sfc_main$i = defineComponent({
3162
3365
  const currentValue = ref(modelValue.value);
3163
3366
  const isFocus = ref(false);
3164
3367
  const input2 = ref(null);
3368
+ const isIncreaseDisabled = ref(false);
3369
+ const isDecreaseDisabled = ref(false);
3370
+ const isChangingNumber = ref(false);
3371
+ let counterInterval = null;
3372
+ let counterTimeout = null;
3165
3373
  const clearable = computed(() => type.value === "search" && currentValue.value && !disabled.value);
3166
3374
  const wrapClasses = computed(() => [
3167
3375
  `${prefixCls}-wrapper`,
@@ -3183,10 +3391,18 @@ const _sfc_main$i = defineComponent({
3183
3391
  [`${prefixCls}--with-append`]: !!append.value
3184
3392
  }
3185
3393
  ]);
3394
+ const statusClasses = computed(() => statusMap[status.value]);
3186
3395
  const setCurrentValue = (val) => {
3187
3396
  if (val === currentValue.value) {
3188
3397
  return;
3189
3398
  }
3399
+ if (type.value === "number") {
3400
+ const inputVal = parseFloat(val);
3401
+ const maxVal = parseFloat(attrs.max);
3402
+ const minVal = parseFloat(attrs.min);
3403
+ isIncreaseDisabled.value = inputVal >= maxVal;
3404
+ isDecreaseDisabled.value = inputVal <= minVal;
3405
+ }
3190
3406
  currentValue.value = val;
3191
3407
  };
3192
3408
  const updateModel = (val) => {
@@ -3203,6 +3419,63 @@ const _sfc_main$i = defineComponent({
3203
3419
  emit("after-reset");
3204
3420
  (_a = input2.value) == null ? void 0 : _a.focus();
3205
3421
  };
3422
+ const getInputRealNumber = (val, fixedPointNum) => parseFloat(val.toFixed(fixedPointNum));
3423
+ const changeNumberValue = (changeType) => {
3424
+ var _a;
3425
+ if (type.value !== "number") {
3426
+ return;
3427
+ }
3428
+ const minimum = parseFloat(attrs.min);
3429
+ const maximum = parseFloat(attrs.max);
3430
+ const isMaximum = currentValue.value || currentValue.value === 0 ? maximum <= (currentValue == null ? void 0 : currentValue.value) : false;
3431
+ const isMinimum = currentValue.value || currentValue.value === 0 ? minimum >= (currentValue == null ? void 0 : currentValue.value) : false;
3432
+ if (changeType === "increase" && isMaximum || changeType === "decrease" && isMinimum) {
3433
+ return;
3434
+ }
3435
+ isChangingNumber.value = true;
3436
+ const stepValue = parseFloat(attrs.step) || 1;
3437
+ let stepPointNum = 0;
3438
+ if (stepValue.toString().split(".").length > 1) {
3439
+ stepPointNum = stepValue.toString().split(".")[1].length;
3440
+ }
3441
+ const inputVal = parseFloat(currentValue.value) || 0;
3442
+ const inputStepPointValue = getInputRealNumber(inputVal, stepPointNum);
3443
+ let setValue = inputVal;
3444
+ const changeStepValue = changeType === "increase" ? stepValue : -stepValue;
3445
+ setValue = (inputStepPointValue - inputVal) * changeStepValue > 0 ? inputStepPointValue : inputStepPointValue + changeStepValue;
3446
+ if (setValue >= maximum) {
3447
+ setValue = maximum;
3448
+ }
3449
+ if (setValue <= minimum) {
3450
+ setValue = minimum;
3451
+ }
3452
+ updateModel(getInputRealNumber(setValue, stepPointNum));
3453
+ (_a = input2.value) == null ? void 0 : _a.focus();
3454
+ if (!counterTimeout && !counterInterval) {
3455
+ counterTimeout = window.setTimeout(() => {
3456
+ counterInterval = window.setInterval(() => changeNumberValue(changeType), 100);
3457
+ }, 300);
3458
+ }
3459
+ };
3460
+ const onInputNumberMouseup = (event) => {
3461
+ var _a;
3462
+ if (isChangingNumber.value) {
3463
+ event.preventDefault();
3464
+ }
3465
+ const onEvents = !!counterTimeout || !!counterInterval;
3466
+ if (counterTimeout) {
3467
+ window.clearTimeout(counterTimeout);
3468
+ }
3469
+ if (counterInterval) {
3470
+ window.clearInterval(counterInterval);
3471
+ }
3472
+ counterTimeout = null;
3473
+ counterInterval = null;
3474
+ isChangingNumber.value = false;
3475
+ if (onEvents) {
3476
+ (_a = input2.value) == null ? void 0 : _a.focus();
3477
+ }
3478
+ };
3206
3479
  const inputAttrs = computed(() => {
3207
3480
  const events = {
3208
3481
  onInput(event) {
@@ -3228,6 +3501,12 @@ const _sfc_main$i = defineComponent({
3228
3501
  return __spreadValues(__spreadValues({}, attrs), events);
3229
3502
  });
3230
3503
  watch(modelValue, (newV) => setCurrentValue(newV));
3504
+ onMounted(() => {
3505
+ window.addEventListener("mouseup", onInputNumberMouseup);
3506
+ });
3507
+ onBeforeUnmount(() => {
3508
+ window.removeEventListener("mouseup", onInputNumberMouseup);
3509
+ });
3231
3510
  return {
3232
3511
  currentValue,
3233
3512
  isFocus,
@@ -3238,7 +3517,11 @@ const _sfc_main$i = defineComponent({
3238
3517
  inputAttrs,
3239
3518
  slots,
3240
3519
  resetCurrentVal,
3241
- statusMap
3520
+ statusClasses,
3521
+ changeNumberValue,
3522
+ isIncreaseDisabled,
3523
+ isDecreaseDisabled,
3524
+ isChangingNumber
3242
3525
  };
3243
3526
  }
3244
3527
  });
@@ -3246,17 +3529,16 @@ const _hoisted_1$f = {
3246
3529
  key: 0,
3247
3530
  class: "dao-input-prepend"
3248
3531
  };
3249
- const _hoisted_2$c = { class: "dao-input-inner" };
3250
- const _hoisted_3$7 = {
3532
+ const _hoisted_2$c = {
3251
3533
  key: 0,
3252
3534
  class: "dao-input-prefix"
3253
3535
  };
3254
- const _hoisted_4$6 = ["type", "disabled", "value"];
3255
- const _hoisted_5$4 = {
3256
- key: 2,
3536
+ const _hoisted_3$7 = ["type", "disabled", "value"];
3537
+ const _hoisted_4$6 = {
3538
+ key: 4,
3257
3539
  class: "dao-input-suffix"
3258
3540
  };
3259
- const _hoisted_6$3 = {
3541
+ const _hoisted_5$4 = {
3260
3542
  key: 1,
3261
3543
  class: "dao-input-append"
3262
3544
  };
@@ -3266,13 +3548,15 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3266
3548
  }, [
3267
3549
  renderSlot(_ctx.$slots, "prepend"),
3268
3550
  _ctx.prepend && !_ctx.slots.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$f, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true),
3269
- createElementVNode("div", _hoisted_2$c, [
3270
- _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
3551
+ createElementVNode("div", {
3552
+ class: normalizeClass(["dao-input-inner", { "dao-input__changing-number": _ctx.isChangingNumber }])
3553
+ }, [
3554
+ _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
3271
3555
  renderSlot(_ctx.$slots, "prefix")
3272
3556
  ])) : createCommentVNode("", true),
3273
3557
  _ctx.type === "search" ? (openBlock(), createElementBlock("i", {
3274
3558
  key: 1,
3275
- class: normalizeClass(["dao-input-search-icon", "icon-search", { active: _ctx.isFocus }])
3559
+ class: normalizeClass(["dao-input-search-icon", "icon-search", { "dao-input__active": _ctx.isFocus }])
3276
3560
  }, null, 2)) : createCommentVNode("", true),
3277
3561
  createElementVNode("input", mergeProps({
3278
3562
  ref: "input",
@@ -3282,24 +3566,44 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3282
3566
  disabled: _ctx.disabled,
3283
3567
  value: _ctx.currentValue,
3284
3568
  onKeyup: _cache[0] || (_cache[0] = withKeys((...args) => _ctx.resetCurrentVal && _ctx.resetCurrentVal(...args), ["esc"]))
3285
- }), null, 16, _hoisted_4$6),
3569
+ }), null, 16, _hoisted_3$7),
3570
+ _ctx.type === "number" ? (openBlock(), createElementBlock("i", {
3571
+ key: 2,
3572
+ class: normalizeClass([
3573
+ "dao-input-number-icon",
3574
+ "icon-arrow-sharp",
3575
+ "number-icon-up",
3576
+ { "dao-input-number-icon__disabled": _ctx.isIncreaseDisabled }
3577
+ ]),
3578
+ onMousedown: _cache[1] || (_cache[1] = ($event) => _ctx.changeNumberValue("increase"))
3579
+ }, null, 34)) : createCommentVNode("", true),
3580
+ _ctx.type === "number" ? (openBlock(), createElementBlock("i", {
3581
+ key: 3,
3582
+ class: normalizeClass([
3583
+ "dao-input-number-icon",
3584
+ "icon-arrow-sharp",
3585
+ "number-icon-down",
3586
+ { "dao-input-number-icon__disabled": _ctx.isDecreaseDisabled }
3587
+ ]),
3588
+ onMousedown: _cache[2] || (_cache[2] = ($event) => _ctx.changeNumberValue("decrease"))
3589
+ }, null, 34)) : createCommentVNode("", true),
3286
3590
  withDirectives(createElementVNode("i", {
3287
- class: normalizeClass(["dao-input-close-icon", "icon-close", { active: _ctx.isFocus }]),
3288
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.resetCurrentVal())
3591
+ class: normalizeClass(["dao-input-close-icon", "icon-close", { "dao-input__active": _ctx.isFocus }]),
3592
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.resetCurrentVal())
3289
3593
  }, null, 2), [
3290
3594
  [vShow, _ctx.clearable]
3291
3595
  ]),
3292
3596
  withDirectives(createElementVNode("i", {
3293
- class: normalizeClass(_ctx.statusMap[_ctx.status])
3597
+ class: normalizeClass(_ctx.statusClasses)
3294
3598
  }, null, 2), [
3295
3599
  [vShow, ["error", "success", "loading"].includes(_ctx.status)]
3296
3600
  ]),
3297
- _ctx.slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
3601
+ _ctx.slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
3298
3602
  renderSlot(_ctx.$slots, "suffix")
3299
3603
  ])) : createCommentVNode("", true)
3300
- ]),
3604
+ ], 2),
3301
3605
  renderSlot(_ctx.$slots, "append"),
3302
- _ctx.append && !_ctx.slots.append ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString(_ctx.append), 1)) : createCommentVNode("", true)
3606
+ _ctx.append && !_ctx.slots.append ? (openBlock(), createElementBlock("div", _hoisted_5$4, toDisplayString(_ctx.append), 1)) : createCommentVNode("", true)
3303
3607
  ], 2);
3304
3608
  }
3305
3609
  var input = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g]]);
@@ -3527,31 +3831,31 @@ const _sfc_main$g = defineComponent({
3527
3831
  const { type, accordion, activeOpened } = toRefs(props);
3528
3832
  const openedNav = ref([]);
3529
3833
  const activeItemIdx = ref();
3530
- const openNavSub = (index) => {
3531
- if (openedNav.value.includes(index)) {
3834
+ const openNavSub = (index2) => {
3835
+ if (openedNav.value.includes(index2)) {
3532
3836
  return;
3533
3837
  }
3534
3838
  if (accordion.value) {
3535
3839
  openedNav.value = [];
3536
3840
  }
3537
- openedNav.value.push(index);
3841
+ openedNav.value.push(index2);
3538
3842
  emit("toggle", {
3539
3843
  action: "open",
3540
- index
3844
+ index: index2
3541
3845
  });
3542
3846
  };
3543
- const closeNavSub = (index) => {
3544
- const idx = openedNav.value.indexOf(index);
3847
+ const closeNavSub = (index2) => {
3848
+ const idx = openedNav.value.indexOf(index2);
3545
3849
  if (idx !== -1) {
3546
3850
  openedNav.value.splice(idx, 1);
3547
3851
  }
3548
3852
  emit("toggle", {
3549
3853
  action: "close",
3550
- index
3854
+ index: index2
3551
3855
  });
3552
3856
  };
3553
- const close = (index) => closeNavSub(index);
3554
- const open = (index) => openNavSub(index);
3857
+ const close = (index2) => closeNavSub(index2);
3858
+ const open = (index2) => openNavSub(index2);
3555
3859
  const initNav = () => {
3556
3860
  activeOpened.value.forEach((v) => {
3557
3861
  openNavSub(v);
@@ -3560,16 +3864,16 @@ const _sfc_main$g = defineComponent({
3560
3864
  onMounted(() => {
3561
3865
  initNav();
3562
3866
  });
3563
- const handleNavItemClick = (index) => {
3564
- activeItemIdx.value = index;
3565
- emit("select", index);
3867
+ const handleNavItemClick = (index2) => {
3868
+ activeItemIdx.value = index2;
3869
+ emit("select", index2);
3566
3870
  };
3567
- const handleNavSubClick = (index) => {
3568
- const isOpened = openedNav.value.includes(index);
3871
+ const handleNavSubClick = (index2) => {
3872
+ const isOpened = openedNav.value.includes(index2);
3569
3873
  if (isOpened) {
3570
- closeNavSub(index);
3874
+ closeNavSub(index2);
3571
3875
  } else {
3572
- openNavSub(index);
3876
+ openNavSub(index2);
3573
3877
  }
3574
3878
  };
3575
3879
  const handleNavHeadClick = () => {
@@ -3676,10 +3980,10 @@ const _sfc_main$e = defineComponent({
3676
3980
  disabled,
3677
3981
  isActive,
3678
3982
  isExactActive,
3679
- index
3983
+ index: index2
3680
3984
  } = toRefs(props);
3681
3985
  const showIcon = computed(() => (rootNav == null ? void 0 : rootNav.type) === "2rd" && Boolean(icon.value));
3682
- const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index.value);
3986
+ const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index2.value);
3683
3987
  const isNavItemActive = computed(() => {
3684
3988
  const unrefIsActive = unref(isActive);
3685
3989
  const unrefIsExactActive = unref(isExactActive);
@@ -3715,17 +4019,17 @@ const _sfc_main$e = defineComponent({
3715
4019
  if (disabled.value) {
3716
4020
  return;
3717
4021
  }
3718
- rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
4022
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index2.value);
3719
4023
  };
3720
4024
  watchEffect(() => {
3721
4025
  if (isActive.value || isExactActive.value) {
3722
- subNav == null ? void 0 : subNav.handleNavItemActive(isActive.value || isExactActive.value, index.value);
3723
- rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
4026
+ subNav == null ? void 0 : subNav.handleNavItemActive(isActive.value || isExactActive.value, index2.value);
4027
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index2.value);
3724
4028
  }
3725
4029
  });
3726
4030
  watch(() => rootNav == null ? void 0 : rootNav.activeItemIdx, (val) => {
3727
- const active = val === index.value;
3728
- subNav == null ? void 0 : subNav.handleNavItemActive(active, index.value);
4031
+ const active = val === index2.value;
4032
+ subNav == null ? void 0 : subNav.handleNavItemActive(active, index2.value);
3729
4033
  }, { immediate: true });
3730
4034
  return {
3731
4035
  classItemList,
@@ -3748,8 +4052,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
3748
4052
  createElementVNode("div", {
3749
4053
  class: normalizeClass(_ctx.classTitleList),
3750
4054
  tabindex: "0",
3751
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
3752
- onKeyup: _cache[1] || (_cache[1] = withKeys(withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]), ["enter"]))
4055
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
4056
+ onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
3753
4057
  }, [
3754
4058
  createElementVNode("div", _hoisted_1$b, [
3755
4059
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -3780,7 +4084,7 @@ const _sfc_main$d = defineComponent({
3780
4084
  disabled,
3781
4085
  isActive,
3782
4086
  isExactActive,
3783
- index,
4087
+ index: index2,
3784
4088
  fold
3785
4089
  } = toRefs(props);
3786
4090
  const rootNav = inject(navRootKey);
@@ -3793,7 +4097,7 @@ const _sfc_main$d = defineComponent({
3793
4097
  const childrenActiveMap = reactive(new Map());
3794
4098
  const showIcon = computed(() => (rootNav == null ? void 0 : rootNav.type) === "2rd" && Boolean(icon.value));
3795
4099
  const foldIcon = computed(() => opened.value ? "icon_caret-up" : "icon_caret-down");
3796
- const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index.value);
4100
+ const isSelect = computed(() => (rootNav == null ? void 0 : rootNav.activeItemIdx) === index2.value);
3797
4101
  const classSubList = computed(() => {
3798
4102
  const unrefDisabled = unref(disabled);
3799
4103
  return [
@@ -3855,24 +4159,24 @@ const _sfc_main$d = defineComponent({
3855
4159
  return;
3856
4160
  }
3857
4161
  if (fold.value) {
3858
- rootNav == null ? void 0 : rootNav.handleNavSubClick(index.value);
4162
+ rootNav == null ? void 0 : rootNav.handleNavSubClick(index2.value);
3859
4163
  } else {
3860
- rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
4164
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index2.value);
3861
4165
  }
3862
4166
  };
3863
4167
  watchEffect(() => {
3864
4168
  if (!fold.value && (isActive.value || isExactActive.value)) {
3865
- rootNav == null ? void 0 : rootNav.handleNavItemClick(index.value);
4169
+ rootNav == null ? void 0 : rootNav.handleNavItemClick(index2.value);
3866
4170
  }
3867
4171
  });
3868
4172
  watch(() => rootNav == null ? void 0 : rootNav.activeItemIdx, (val) => {
3869
- currentActiveIndex.value = Boolean(val === index.value);
4173
+ currentActiveIndex.value = Boolean(val === index2.value);
3870
4174
  }, { immediate: true });
3871
4175
  watch(() => rootNav == null ? void 0 : rootNav.openedNav, (val) => {
3872
4176
  if (disabled.value && !fold.value) {
3873
4177
  opened.value = false;
3874
4178
  } else {
3875
- opened.value = (val == null ? void 0 : val.indexOf(index.value)) !== -1;
4179
+ opened.value = (val == null ? void 0 : val.indexOf(index2.value)) !== -1;
3876
4180
  }
3877
4181
  }, { immediate: true, deep: true });
3878
4182
  return {
@@ -3905,8 +4209,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
3905
4209
  createElementVNode("div", {
3906
4210
  class: normalizeClass(_ctx.classTitleList),
3907
4211
  tabindex: "0",
3908
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
3909
- onKeyup: _cache[1] || (_cache[1] = withKeys(withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]), ["enter"]))
4212
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
4213
+ onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
3910
4214
  }, [
3911
4215
  createElementVNode("div", _hoisted_1$a, [
3912
4216
  renderSlot(_ctx.$slots, "title", {}, () => [
@@ -4143,9 +4447,9 @@ const _sfc_main$c = defineComponent({
4143
4447
  });
4144
4448
  (_a = searchInput.value) == null ? void 0 : _a.focus();
4145
4449
  };
4146
- const remove = (index) => {
4147
- if (index > -1) {
4148
- const [removed] = state.options.splice(index, 1);
4450
+ const remove = (index2) => {
4451
+ if (index2 > -1) {
4452
+ const [removed] = state.options.splice(index2, 1);
4149
4453
  if (removed) {
4150
4454
  checkRemovedOption(removed);
4151
4455
  }
@@ -4328,8 +4632,8 @@ const _sfc_main$b = defineComponent({
4328
4632
  onBeforeUnmount(() => {
4329
4633
  var _a;
4330
4634
  if (typeof removeFn === "function") {
4331
- const index = (_a = selectState == null ? void 0 : selectState.options.indexOf(instance)) != null ? _a : -1;
4332
- removeFn(index);
4635
+ const index2 = (_a = selectState == null ? void 0 : selectState.options.indexOf(instance)) != null ? _a : -1;
4636
+ removeFn(index2);
4333
4637
  }
4334
4638
  });
4335
4639
  return {
@@ -5131,9 +5435,9 @@ const _sfc_main$3 = defineComponent({
5131
5435
  const isRowSelected = (row) => selectedRows.has(row);
5132
5436
  const toggleExpand = (row, rowIndex) => {
5133
5437
  expandedRows.add(row);
5134
- const index = expandRows.indexOf(row);
5135
- if (index > -1) {
5136
- expandRows.splice(index, 1);
5438
+ const index2 = expandRows.indexOf(row);
5439
+ if (index2 > -1) {
5440
+ expandRows.splice(index2, 1);
5137
5441
  emit("expandToggle", row, rowIndex, false);
5138
5442
  } else {
5139
5443
  expandRows.push(row);
@@ -5342,8 +5646,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5342
5646
  ])
5343
5647
  ])) : createCommentVNode("", true),
5344
5648
  createElementVNode("tbody", _hoisted_9, [
5345
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (row, index) => {
5346
- return openBlock(), createElementBlock(Fragment, { key: index }, [
5649
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (row, index2) => {
5650
+ return openBlock(), createElementBlock(Fragment, { key: index2 }, [
5347
5651
  createElementVNode("tr", {
5348
5652
  class: normalizeClass(["dao-table-tr", { "dao-table-tr--expandable-open": _ctx.expandable && _ctx.isRowExpanded(row) }])
5349
5653
  }, [
@@ -5356,7 +5660,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5356
5660
  _ctx.expandable ? (openBlock(), createElementBlock("td", _hoisted_11, [
5357
5661
  createElementVNode("i", {
5358
5662
  class: "dao-table-expand-toggle icon-arrow-sharp",
5359
- onClick: ($event) => _ctx.toggleExpand(row, index)
5663
+ onClick: ($event) => _ctx.toggleExpand(row, index2)
5360
5664
  }, null, 8, _hoisted_12)
5361
5665
  ])) : createCommentVNode("", true),
5362
5666
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filterColumns, (column) => {
@@ -5368,7 +5672,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5368
5672
  renderSlot(_ctx.$slots, `td-${column.id}`, {
5369
5673
  value: row[column.id],
5370
5674
  row,
5371
- rowIndex: index
5675
+ rowIndex: index2
5372
5676
  })
5373
5677
  ], 4);
5374
5678
  }), 128))
@@ -5376,7 +5680,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5376
5680
  _ctx.expandable && _ctx.expandedRows.has(row) ? withDirectives((openBlock(), createElementBlock("tr", _hoisted_13, [
5377
5681
  renderSlot(_ctx.$slots, "expand", {
5378
5682
  row,
5379
- rowIndex: index
5683
+ rowIndex: index2
5380
5684
  })
5381
5685
  ], 512)), [
5382
5686
  [vShow, _ctx.isRowExpanded(row)]
@@ -5512,7 +5816,7 @@ const _sfc_main$2 = defineComponent({
5512
5816
  }
5513
5817
  emit("click", event, value);
5514
5818
  };
5515
- const tabsLi = computed(() => props.tabList.map((tab, index) => {
5819
+ const tabsLi = computed(() => props.tabList.map((tab, index2) => {
5516
5820
  const { label } = tab;
5517
5821
  const isNotString = typeof label !== "string";
5518
5822
  const isActive = tab.value === props.currentTab;
@@ -5526,7 +5830,7 @@ const _sfc_main$2 = defineComponent({
5526
5830
  "dao-tab-nav-item--disabled": tab.disabled
5527
5831
  },
5528
5832
  ref: hasActiveLine ? activeTab : void 0,
5529
- key: index,
5833
+ key: index2,
5530
5834
  onClick: (event) => handleClick(event, tab),
5531
5835
  onMouseenter: hasHoverLine ? onMouseenter : void 0,
5532
5836
  onMouseleave: hasHoverLine ? onMouseleave : void 0
@@ -5594,16 +5898,16 @@ const _sfc_main$1 = defineComponent({
5594
5898
  if (!child.value) {
5595
5899
  return;
5596
5900
  }
5597
- const index = Array.from(((_a = tabBody.value) == null ? void 0 : _a.children) || []).indexOf(child.value);
5598
- if (index > -1) {
5599
- tabList.splice(index, 0, tab);
5901
+ const index2 = Array.from(((_a = tabBody.value) == null ? void 0 : _a.children) || []).indexOf(child.value);
5902
+ if (index2 > -1) {
5903
+ tabList.splice(index2, 0, tab);
5600
5904
  }
5601
5905
  };
5602
5906
  provide(addTabFnKey, addTab);
5603
5907
  const removeTab = (tab) => {
5604
- const index = tabList.indexOf(tab);
5605
- if (index > -1) {
5606
- tabList.splice(index, 1);
5908
+ const index2 = tabList.indexOf(tab);
5909
+ if (index2 > -1) {
5910
+ tabList.splice(index2, 1);
5607
5911
  }
5608
5912
  };
5609
5913
  provide(removeTabFnKey, removeTab);
@@ -5682,10 +5986,11 @@ var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
5682
5986
  var components = /* @__PURE__ */ Object.freeze({
5683
5987
  __proto__: null,
5684
5988
  [Symbol.toStringTag]: "Module",
5989
+ ActionIcon: actionIcon,
5685
5990
  Button: DaoButton,
5686
5991
  ButtonGroup: buttonGroup,
5687
5992
  Card: card,
5688
- CardItem: card,
5993
+ CardItem: cardItem,
5689
5994
  Checkbox: DaoCheckbox,
5690
5995
  CheckboxGroup: checkboxGroup,
5691
5996
  Dialog: dialog,
@@ -5697,6 +6002,9 @@ var components = /* @__PURE__ */ Object.freeze({
5697
6002
  Form: form,
5698
6003
  FormItem: formItem,
5699
6004
  FormGroup: formGroup,
6005
+ Header: header,
6006
+ Breadcrumb: breadcrumb,
6007
+ BreadcrumbItem: DaoBreadcrumbItem,
5700
6008
  Icon: DaoIcon,
5701
6009
  Input: input,
5702
6010
  Message: message,
@@ -5717,23 +6025,23 @@ var components = /* @__PURE__ */ Object.freeze({
5717
6025
  Tabs: tabs,
5718
6026
  TabNav: _sfc_main$2,
5719
6027
  TabItem: tabItem,
5720
- Tooltip: _sfc_main$l
6028
+ Tooltip: _sfc_main$o
5721
6029
  });
5722
6030
  var common = "";
5723
- const plugin$1 = (app) => {
6031
+ const plugin = (app) => {
5724
6032
  Object.values(components).forEach((c) => {
5725
6033
  app.component(c.name, c);
5726
6034
  });
5727
6035
  };
5728
6036
  let installed = false;
5729
- function install(Vue) {
6037
+ const install = (Vue) => {
5730
6038
  if (installed) {
5731
6039
  return;
5732
6040
  }
5733
- Vue.use(plugin$1);
6041
+ Vue.use(plugin);
5734
6042
  installed = true;
5735
- }
5736
- var plugin = {
6043
+ };
6044
+ var index = {
5737
6045
  install
5738
6046
  };
5739
- export { plugin as default };
6047
+ export { index as default };