@dao-style/core 0.1.1 → 0.1.4

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.
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createElementVNode, unref, resolveComponent, Fragment, createBlock, createTextVNode, toDisplayString, ref, inject, watchEffect, mergeProps, provide, readonly, toRefs, createVNode, withCtx, watch, onBeforeUnmount, Transition, withModifiers, normalizeStyle, withDirectives, vShow, withKeys, getCurrentInstance, onMounted, Teleport, nextTick, reactive, resolveDynamicComponent, createSlots, renderList, getCurrentScope, onScopeDispose, vModelText, onUnmounted, h } from "vue";
21
- import { isArray, isSet, looseIndexOf, looseEqual, isFunction, NOOP } from "@vue/shared";
21
+ import { isArray as isArray$2, isSet, looseIndexOf, looseEqual, isFunction as isFunction$1, NOOP } from "@vue/shared";
22
22
  import { useI18n } from "vue-i18n";
23
23
  var common = "";
24
24
  var actionIcon_vue_vue_type_style_index_0_lang = "";
@@ -28,7 +28,7 @@ var _export_sfc = (sfc, props) => {
28
28
  }
29
29
  return sfc;
30
30
  };
31
- const _sfc_main$M = defineComponent({
31
+ const _sfc_main$O = defineComponent({
32
32
  name: "DaoActionIcon",
33
33
  props: {
34
34
  name: {
@@ -57,8 +57,8 @@ const _sfc_main$M = defineComponent({
57
57
  };
58
58
  }
59
59
  });
60
- const _hoisted_1$z = ["disabled"];
61
- function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
60
+ const _hoisted_1$A = ["disabled"];
61
+ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
62
62
  return openBlock(), createElementBlock("button", {
63
63
  class: normalizeClass(["dao-action-icon", `dao-action-icon--type-${_ctx.type}`]),
64
64
  disabled: _ctx.realDisabled,
@@ -70,9 +70,9 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
70
70
  class: normalizeClass(["dao-action-icon__iconfont", _ctx.name])
71
71
  }, null, 2)) : createCommentVNode("", true)
72
72
  ])
73
- ], 10, _hoisted_1$z);
73
+ ], 10, _hoisted_1$A);
74
74
  }
75
- var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$J]]);
75
+ var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$L]]);
76
76
  const BUTTON_TYPES = ["primary", "secondary", "tertiary", "ghost", "danger"];
77
77
  var buttonProps = {
78
78
  type: {
@@ -111,7 +111,7 @@ var buttonProps = {
111
111
  }
112
112
  };
113
113
  var icon_scss_vue_type_style_index_0_src_lang = "";
114
- const _sfc_main$L = defineComponent({
114
+ const _sfc_main$N = defineComponent({
115
115
  name: "DaoIcon",
116
116
  props: {
117
117
  name: {
@@ -124,28 +124,28 @@ const _sfc_main$L = defineComponent({
124
124
  }
125
125
  }
126
126
  });
127
- const _hoisted_1$y = {
127
+ const _hoisted_1$z = {
128
128
  key: 1,
129
129
  class: "dao-icon dao-svg-icon"
130
130
  };
131
- const _hoisted_2$n = ["xlink:href"];
132
- function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
131
+ const _hoisted_2$o = ["xlink:href"];
132
+ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
133
133
  return _ctx.useFont ? (openBlock(), createElementBlock("i", {
134
134
  key: 0,
135
135
  class: normalizeClass(["dao-icon dao-iconfont", _ctx.name])
136
- }, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$y, [
136
+ }, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$z, [
137
137
  createElementVNode("use", {
138
138
  "xlink:href": `#${_ctx.name}`
139
- }, null, 8, _hoisted_2$n)
139
+ }, null, 8, _hoisted_2$o)
140
140
  ]));
141
141
  }
142
- var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$I]]);
142
+ var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$K]]);
143
143
  var button_vue_vue_type_style_index_0_lang = "";
144
144
  const NO_ICON = Symbol(0);
145
145
  const RIGHT_ICON = Symbol(1);
146
146
  const LEFT_ICON = Symbol(2);
147
147
  const BOTH_ICON = Symbol(3);
148
- const _sfc_main$K = defineComponent({
148
+ const _sfc_main$M = defineComponent({
149
149
  name: "DaoButton",
150
150
  components: {
151
151
  DaoIcon
@@ -236,12 +236,12 @@ const _sfc_main$K = defineComponent({
236
236
  };
237
237
  }
238
238
  });
239
- const _hoisted_1$x = ["disabled"];
240
- const _hoisted_2$m = {
239
+ const _hoisted_1$y = ["disabled"];
240
+ const _hoisted_2$n = {
241
241
  key: 1,
242
242
  class: "dao-btn__text"
243
243
  };
244
- function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
244
+ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
245
245
  const _component_dao_icon = resolveComponent("dao-icon");
246
246
  return openBlock(), createElementBlock("button", {
247
247
  class: normalizeClass(_ctx.classList),
@@ -255,7 +255,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
255
255
  "use-font": _ctx.isIconLeftFont,
256
256
  name: _ctx.realIconLeft
257
257
  }, null, 8, ["class", "use-font", "name"])) : createCommentVNode("", true),
258
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$m, [
258
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$n, [
259
259
  renderSlot(_ctx.$slots, "default")
260
260
  ])) : createCommentVNode("", true),
261
261
  _ctx.realIconRight ? (openBlock(), createBlock(_component_dao_icon, {
@@ -265,22 +265,22 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
265
265
  name: _ctx.realIconRight
266
266
  }, null, 8, ["class", "use-font", "name"])) : createCommentVNode("", true)
267
267
  ], 64))
268
- ], 10, _hoisted_1$x);
268
+ ], 10, _hoisted_1$y);
269
269
  }
270
- var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$H]]);
270
+ var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$J]]);
271
271
  var buttonGroup_vue_vue_type_style_index_0_lang = "";
272
- const _sfc_main$J = defineComponent({
272
+ const _sfc_main$L = defineComponent({
273
273
  name: "DaoButtonGroup"
274
274
  });
275
- const _hoisted_1$w = { class: "dao-btn-group" };
276
- function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
277
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
275
+ const _hoisted_1$x = { class: "dao-btn-group" };
276
+ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
277
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
278
278
  renderSlot(_ctx.$slots, "default")
279
279
  ]);
280
280
  }
281
- var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$G]]);
281
+ var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$I]]);
282
282
  var card_scss_vue_type_style_index_0_src_lang = "";
283
- const _sfc_main$I = defineComponent({
283
+ const _sfc_main$K = defineComponent({
284
284
  name: "DaoCard",
285
285
  components: {
286
286
  DaoIcon
@@ -308,25 +308,25 @@ const _sfc_main$I = defineComponent({
308
308
  }
309
309
  }
310
310
  });
311
- const _hoisted_1$v = {
311
+ const _hoisted_1$w = {
312
312
  key: 0,
313
313
  class: "dao-card-header"
314
314
  };
315
- const _hoisted_2$l = {
315
+ const _hoisted_2$m = {
316
316
  key: 0,
317
317
  class: "dao-card-header-item"
318
318
  };
319
319
  const _hoisted_3$e = { class: "dao-card-header-item dao-card-header-title" };
320
320
  const _hoisted_4$a = { class: "dao-card-header-item dao-card-header-action" };
321
- function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
321
+ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
322
322
  const _component_dao_icon = resolveComponent("dao-icon");
323
323
  return openBlock(), createElementBlock("div", {
324
324
  class: normalizeClass(["dao-card", `dao-card--${_ctx.type}`])
325
325
  }, [
326
- _ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
326
+ _ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
327
327
  renderSlot(_ctx.$slots, "header", {}, () => [
328
328
  renderSlot(_ctx.$slots, "header-prefix"),
329
- _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$l, [
329
+ _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
330
330
  renderSlot(_ctx.$slots, "icon", {}, () => [
331
331
  _ctx.icon ? (openBlock(), createBlock(_component_dao_icon, {
332
332
  key: 0,
@@ -363,18 +363,18 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
363
363
  ], 2)
364
364
  ], 2);
365
365
  }
366
- var card = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$F]]);
366
+ var card = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$H]]);
367
367
  var cardItem_scss_vue_type_style_index_0_src_lang = "";
368
- const _sfc_main$H = defineComponent({
368
+ const _sfc_main$J = defineComponent({
369
369
  name: "DaoCardItem"
370
370
  });
371
- const _hoisted_1$u = { class: "dao-card-item" };
372
- function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
373
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
371
+ const _hoisted_1$v = { class: "dao-card-item" };
372
+ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
373
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
374
374
  renderSlot(_ctx.$slots, "default")
375
375
  ]);
376
376
  }
377
- var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$E]]);
377
+ var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$G]]);
378
378
  function isNullish(val) {
379
379
  return val === null || val === void 0;
380
380
  }
@@ -418,7 +418,7 @@ function getUnrefItem(set, item) {
418
418
  index: index2
419
419
  };
420
420
  }
421
- const _sfc_main$G = defineComponent({
421
+ const _sfc_main$I = defineComponent({
422
422
  name: "DaoCheckbox",
423
423
  props: {
424
424
  modelValue: {
@@ -456,7 +456,7 @@ const _sfc_main$G = defineComponent({
456
456
  const groupModelValue = inject(checkboxGroupModelValueKey, void 0);
457
457
  const currentModelValue = computed(() => {
458
458
  const modelValue = groupModelValue == null ? void 0 : groupModelValue.value;
459
- if (isArray(modelValue) || isSet(modelValue)) {
459
+ if (isArray$2(modelValue) || isSet(modelValue)) {
460
460
  return modelValue;
461
461
  }
462
462
  return props.modelValue;
@@ -469,7 +469,7 @@ const _sfc_main$G = defineComponent({
469
469
  value,
470
470
  trueValue
471
471
  } = props;
472
- if (isArray(modelValue)) {
472
+ if (isArray$2(modelValue)) {
473
473
  currentChecked.value = looseIndexOf(modelValue, value) > -1;
474
474
  } else if (isSet(modelValue)) {
475
475
  const { index: index2 } = getUnrefItem(modelValue, value);
@@ -498,10 +498,10 @@ const _sfc_main$G = defineComponent({
498
498
  const emitModelValue = (currentValue, event) => {
499
499
  emit("update:modelValue", currentValue);
500
500
  emit("change", currentValue, event);
501
- if (isFunction(updateGroupModelValue)) {
501
+ if (isFunction$1(updateGroupModelValue)) {
502
502
  updateGroupModelValue(currentValue);
503
503
  }
504
- if (isFunction(groupChange)) {
504
+ if (isFunction$1(groupChange)) {
505
505
  groupChange(currentValue, event);
506
506
  }
507
507
  };
@@ -513,7 +513,7 @@ const _sfc_main$G = defineComponent({
513
513
  currentChecked.value = checked;
514
514
  const modelValue = currentModelValue.value;
515
515
  const { value } = props;
516
- if (isArray(modelValue)) {
516
+ if (isArray$2(modelValue)) {
517
517
  const index2 = looseIndexOf(modelValue, value);
518
518
  const found = index2 !== -1;
519
519
  if (checked && !found) {
@@ -558,8 +558,8 @@ const _sfc_main$G = defineComponent({
558
558
  }
559
559
  }
560
560
  });
561
- const _hoisted_1$t = ["disabled", "indeterminate", "checked"];
562
- const _hoisted_2$k = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
561
+ const _hoisted_1$u = ["disabled", "indeterminate", "checked"];
562
+ const _hoisted_2$l = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
563
563
  const _hoisted_3$d = {
564
564
  key: 0,
565
565
  class: "dao-checkbox__label"
@@ -572,7 +572,7 @@ const _hoisted_5$7 = {
572
572
  key: 1,
573
573
  class: "dao-checkbox__label-helper"
574
574
  };
575
- function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
575
+ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
576
576
  return openBlock(), createElementBlock("label", {
577
577
  class: normalizeClass(_ctx.wrapClasses)
578
578
  }, [
@@ -587,8 +587,8 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
587
587
  }, _ctx.$attrs, {
588
588
  checked: _ctx.currentChecked,
589
589
  onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
590
- }), null, 16, _hoisted_1$t),
591
- _hoisted_2$k
590
+ }), null, 16, _hoisted_1$u),
591
+ _hoisted_2$l
592
592
  ], 2),
593
593
  _ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$d, [
594
594
  _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$9, [
@@ -602,9 +602,9 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
602
602
  ])) : createCommentVNode("", true)
603
603
  ], 2);
604
604
  }
605
- var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$D]]);
605
+ var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$F]]);
606
606
  var checkboxGroup_vue_vue_type_style_index_0_lang = "";
607
- const _sfc_main$F = defineComponent({
607
+ const _sfc_main$H = defineComponent({
608
608
  name: "DaoCheckboxGroup",
609
609
  props: {
610
610
  modelValue: {
@@ -622,7 +622,7 @@ const _sfc_main$F = defineComponent({
622
622
  "dao-checkbox-group",
623
623
  props.vertical ? "dao-checkbox-group--vertical" : "dao-checkbox-group--horizontal"
624
624
  ]);
625
- if (isArray(props.modelValue) || isSet(props.modelValue)) {
625
+ if (isArray$2(props.modelValue) || isSet(props.modelValue)) {
626
626
  provide(checkboxGroupModelValueKey, readonly(computed(() => props.modelValue)));
627
627
  }
628
628
  const updateGroupModelValueFn = (modelValue) => {
@@ -638,18 +638,18 @@ const _sfc_main$F = defineComponent({
638
638
  };
639
639
  }
640
640
  });
641
- function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
641
+ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
642
642
  return openBlock(), createElementBlock("div", {
643
643
  class: normalizeClass(_ctx.checkboxGroupClasses)
644
644
  }, [
645
645
  renderSlot(_ctx.$slots, "default")
646
646
  ], 2);
647
647
  }
648
- var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$C]]);
649
- const _sfc_main$E = defineComponent({
648
+ var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$E]]);
649
+ const _sfc_main$G = defineComponent({
650
650
  name: "DaoDialogHeader",
651
651
  components: {
652
- DaoButton
652
+ DaoActionIcon
653
653
  },
654
654
  props: {
655
655
  showClose: {
@@ -669,28 +669,27 @@ const _sfc_main$E = defineComponent({
669
669
  };
670
670
  }
671
671
  });
672
- const _hoisted_1$s = { class: "dao-dialog__header" };
673
- function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
674
- const _component_dao_button = resolveComponent("dao-button");
675
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
672
+ const _hoisted_1$t = { class: "dao-dialog__header" };
673
+ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
674
+ const _component_dao_action_icon = resolveComponent("dao-action-icon");
675
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
676
676
  renderSlot(_ctx.$slots, "default", {}, () => [
677
677
  createElementVNode("span", null, [
678
678
  renderSlot(_ctx.$slots, "title", {}, () => [
679
679
  createTextVNode(toDisplayString(_ctx.title), 1)
680
680
  ])
681
681
  ]),
682
- _ctx.showClose ? (openBlock(), createBlock(_component_dao_button, {
682
+ _ctx.showClose ? (openBlock(), createBlock(_component_dao_action_icon, {
683
683
  key: 0,
684
- "use-font": "",
685
- type: "ghost",
686
- "icon-left": "icon-close",
684
+ class: "dao-action-icon--close",
685
+ name: "icon-close",
687
686
  onClick: _ctx.onClose
688
687
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
689
688
  ])
690
689
  ]);
691
690
  }
692
- var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$B]]);
693
- const _sfc_main$D = defineComponent({
691
+ var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$D]]);
692
+ const _sfc_main$F = defineComponent({
694
693
  name: "DaoDialogFooter",
695
694
  components: {
696
695
  DaoButton
@@ -726,10 +725,10 @@ const _sfc_main$D = defineComponent({
726
725
  };
727
726
  }
728
727
  });
729
- const _hoisted_1$r = { class: "dao-dialog__footer" };
730
- function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
728
+ const _hoisted_1$s = { class: "dao-dialog__footer" };
729
+ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
731
730
  const _component_dao_button = resolveComponent("dao-button");
732
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
731
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
733
732
  renderSlot(_ctx.$slots, "default", {}, () => [
734
733
  createVNode(_component_dao_button, {
735
734
  type: "ghost",
@@ -754,14 +753,14 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
754
753
  ])
755
754
  ]);
756
755
  }
757
- var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$A]]);
756
+ var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$C]]);
758
757
  var dialog_scss_vue_type_style_index_0_src_lang = "";
759
758
  const DIALOG_NUM_ATTR = "dao-dialog__num";
760
759
  const DIALOG_MINIMUM_PADDING = "20px";
761
760
  const DIALOG_DEFAULT_PADDING_TOP = "100px";
762
761
  const DIALOG_DEFAULT_PADDING_BOTTOM = "20px";
763
762
  const KEYBOARD_EVENT_NAME$1 = "keydown";
764
- const _sfc_main$C = defineComponent({
763
+ const _sfc_main$E = defineComponent({
765
764
  name: "DaoDialog",
766
765
  components: {
767
766
  DialogHeader,
@@ -953,8 +952,8 @@ const _sfc_main$C = defineComponent({
953
952
  };
954
953
  }
955
954
  });
956
- const _hoisted_1$q = { class: "dao-dialog__body" };
957
- function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
955
+ const _hoisted_1$r = { class: "dao-dialog__body" };
956
+ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
958
957
  const _component_dialog_header = resolveComponent("dialog-header");
959
958
  const _component_dialog_footer = resolveComponent("dialog-footer");
960
959
  return openBlock(), createBlock(Transition, {
@@ -989,7 +988,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
989
988
  ]),
990
989
  _: 3
991
990
  }, 8, ["title", "show-close", "onClose"])) : createCommentVNode("", true),
992
- createElementVNode("div", _hoisted_1$q, [
991
+ createElementVNode("div", _hoisted_1$r, [
993
992
  renderSlot(_ctx.$slots, "default")
994
993
  ]),
995
994
  _ctx.footer ? (openBlock(), createBlock(_component_dialog_footer, {
@@ -1011,7 +1010,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
1011
1010
  _: 3
1012
1011
  }, 8, ["onBeforeEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"]);
1013
1012
  }
1014
- var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$z]]);
1013
+ var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$B]]);
1015
1014
  const drawerProps = {
1016
1015
  modelValue: {
1017
1016
  type: Boolean,
@@ -1082,7 +1081,7 @@ const trapTabKey = (e, firstTab, lastTab) => {
1082
1081
  };
1083
1082
  var drawer_vue_vue_type_style_index_0_lang = "";
1084
1083
  const KEYBOARD_EVENT_NAME = "keydown";
1085
- const _sfc_main$B = defineComponent({
1084
+ const _sfc_main$D = defineComponent({
1086
1085
  name: "DaoDrawer",
1087
1086
  components: {
1088
1087
  DaoButton,
@@ -1199,8 +1198,8 @@ const _sfc_main$B = defineComponent({
1199
1198
  };
1200
1199
  }
1201
1200
  });
1202
- const _hoisted_1$p = { class: "dao-drawer__content" };
1203
- const _hoisted_2$j = {
1201
+ const _hoisted_1$q = { class: "dao-drawer__content" };
1202
+ const _hoisted_2$k = {
1204
1203
  key: 0,
1205
1204
  class: "dao-drawer__header"
1206
1205
  };
@@ -1211,7 +1210,7 @@ const _hoisted_5$6 = {
1211
1210
  class: "dao-drawer__footer"
1212
1211
  };
1213
1212
  const _hoisted_6$4 = { class: "dao-drawer__footer-group" };
1214
- function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
1213
+ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
1215
1214
  const _component_dao_action_icon = resolveComponent("dao-action-icon");
1216
1215
  const _component_dao_button = resolveComponent("dao-button");
1217
1216
  return openBlock(), createElementBlock(Fragment, null, [
@@ -1243,13 +1242,14 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
1243
1242
  withDirectives(createElementVNode("div", {
1244
1243
  class: normalizeClass(_ctx.contentClassList)
1245
1244
  }, [
1246
- createElementVNode("div", _hoisted_1$p, [
1247
- !_ctx.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
1245
+ createElementVNode("div", _hoisted_1$q, [
1246
+ !_ctx.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
1248
1247
  renderSlot(_ctx.$slots, "header", {}, () => [
1249
1248
  createElementVNode("div", _hoisted_3$c, [
1250
1249
  createElementVNode("span", null, toDisplayString(_ctx.title), 1),
1251
1250
  !_ctx.hideCloseIcon ? (openBlock(), createBlock(_component_dao_action_icon, {
1252
1251
  key: 0,
1252
+ class: "dao-action-icon--close",
1253
1253
  name: "icon-close",
1254
1254
  onClick: _ctx.close
1255
1255
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
@@ -1294,7 +1294,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
1294
1294
  ], 34)
1295
1295
  ], 64);
1296
1296
  }
1297
- var drawer = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$y]]);
1297
+ var drawer = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$A]]);
1298
1298
  var top = "top";
1299
1299
  var bottom = "bottom";
1300
1300
  var right = "right";
@@ -2493,7 +2493,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
2493
2493
  var createPopper = /* @__PURE__ */ popperGenerator({
2494
2494
  defaultModifiers
2495
2495
  });
2496
- const _sfc_main$A = defineComponent({
2496
+ const _sfc_main$C = defineComponent({
2497
2497
  name: "PopperContent",
2498
2498
  props: {
2499
2499
  popperId: {
@@ -2541,8 +2541,8 @@ const _sfc_main$A = defineComponent({
2541
2541
  };
2542
2542
  }
2543
2543
  });
2544
- const _hoisted_1$o = ["id", "aria-hidden", "tabindex"];
2545
- const _hoisted_2$i = {
2544
+ const _hoisted_1$p = ["id", "aria-hidden", "tabindex"];
2545
+ const _hoisted_2$j = {
2546
2546
  ref: "arrow",
2547
2547
  class: "dao-popper-arrow"
2548
2548
  };
@@ -2563,7 +2563,7 @@ const _hoisted_3$b = /* @__PURE__ */ createElementVNode("svg", {
2563
2563
  const _hoisted_4$7 = [
2564
2564
  _hoisted_3$b
2565
2565
  ];
2566
- function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
2566
+ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
2567
2567
  return openBlock(), createElementBlock("div", {
2568
2568
  id: _ctx.popperId,
2569
2569
  ref: "popover",
@@ -2582,12 +2582,12 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
2582
2582
  }, [
2583
2583
  renderSlot(_ctx.$slots, "default")
2584
2584
  ], 4),
2585
- withDirectives(createElementVNode("div", _hoisted_2$i, _hoisted_4$7, 512), [
2585
+ withDirectives(createElementVNode("div", _hoisted_2$j, _hoisted_4$7, 512), [
2586
2586
  [vShow, _ctx.visibleArrow]
2587
2587
  ])
2588
- ], 42, _hoisted_1$o);
2588
+ ], 42, _hoisted_1$p);
2589
2589
  }
2590
- var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
2590
+ var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$z]]);
2591
2591
  var PopperProps = {
2592
2592
  modelValue: {
2593
2593
  type: Boolean,
@@ -2693,7 +2693,7 @@ function getActualRoot(app) {
2693
2693
  }
2694
2694
  return internalRoot;
2695
2695
  }
2696
- const _sfc_main$z = defineComponent({
2696
+ const _sfc_main$B = defineComponent({
2697
2697
  name: "DaoPopper",
2698
2698
  components: {
2699
2699
  PopperContent
@@ -3064,7 +3064,7 @@ const _sfc_main$z = defineComponent({
3064
3064
  };
3065
3065
  }
3066
3066
  });
3067
- function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
3067
+ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
3068
3068
  const _component_popper_content = resolveComponent("popper-content");
3069
3069
  return openBlock(), createElementBlock("div", {
3070
3070
  ref: "reference",
@@ -3106,8 +3106,8 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
3106
3106
  ], 8, ["to", "disabled"]))
3107
3107
  ], 2);
3108
3108
  }
3109
- var DaoPopper = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
3110
- const _sfc_main$y = defineComponent({
3109
+ var DaoPopper = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$y]]);
3110
+ const _sfc_main$A = defineComponent({
3111
3111
  name: "DaoDropdown",
3112
3112
  components: {
3113
3113
  DaoPopper
@@ -3163,8 +3163,8 @@ const _sfc_main$y = defineComponent({
3163
3163
  };
3164
3164
  }
3165
3165
  });
3166
- const _hoisted_1$n = { tabindex: "0" };
3167
- function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
3166
+ const _hoisted_1$o = { tabindex: "0" };
3167
+ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
3168
3168
  const _component_dao_popper = resolveComponent("dao-popper");
3169
3169
  return openBlock(), createBlock(_component_dao_popper, {
3170
3170
  ref: "popper",
@@ -3181,27 +3181,27 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
3181
3181
  renderSlot(_ctx.$slots, "menu")
3182
3182
  ]),
3183
3183
  default: withCtx(() => [
3184
- createElementVNode("div", _hoisted_1$n, [
3184
+ createElementVNode("div", _hoisted_1$o, [
3185
3185
  renderSlot(_ctx.$slots, "default")
3186
3186
  ])
3187
3187
  ]),
3188
3188
  _: 3
3189
3189
  }, 8, ["placement", "append-to", "trigger", "offset", "model-value"]);
3190
3190
  }
3191
- var DaoDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
3191
+ var DaoDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
3192
3192
  var dropdownMenu_vue_vue_type_style_index_0_lang = "";
3193
- const _sfc_main$x = defineComponent({
3193
+ const _sfc_main$z = defineComponent({
3194
3194
  name: "DaoDropdownMenu"
3195
3195
  });
3196
- const _hoisted_1$m = { class: "dao-dropdown-menu" };
3197
- function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
3198
- return openBlock(), createElementBlock("ul", _hoisted_1$m, [
3196
+ const _hoisted_1$n = { class: "dao-dropdown-menu" };
3197
+ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
3198
+ return openBlock(), createElementBlock("ul", _hoisted_1$n, [
3199
3199
  renderSlot(_ctx.$slots, "default")
3200
3200
  ]);
3201
3201
  }
3202
- var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
3202
+ var DaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
3203
3203
  var dropdownItem_vue_vue_type_style_index_0_lang = "";
3204
- const _sfc_main$w = defineComponent({
3204
+ const _sfc_main$y = defineComponent({
3205
3205
  name: "DaoDropdownItem",
3206
3206
  props: {
3207
3207
  type: {
@@ -3250,12 +3250,12 @@ const _sfc_main$w = defineComponent({
3250
3250
  };
3251
3251
  }
3252
3252
  });
3253
- function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
3253
+ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
3254
3254
  return openBlock(), createElementBlock("li", mergeProps({ class: _ctx.classList }, _ctx.itemAttrs), [
3255
3255
  _ctx.type !== "divider" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
3256
3256
  ], 16);
3257
3257
  }
3258
- var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$t]]);
3258
+ var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
3259
3259
  const expansionProps = {
3260
3260
  modelValue: {
3261
3261
  type: [String, Symbol, Array]
@@ -3284,7 +3284,7 @@ const expansionItemProps = {
3284
3284
  }
3285
3285
  };
3286
3286
  var expansion_vue_vue_type_style_index_0_lang = "";
3287
- const _sfc_main$v = defineComponent({
3287
+ const _sfc_main$x = defineComponent({
3288
3288
  name: "DaoExpansion",
3289
3289
  props: expansionProps,
3290
3290
  emits: ["update:modelValue", "change"],
@@ -3303,7 +3303,9 @@ const _sfc_main$v = defineComponent({
3303
3303
  ]);
3304
3304
  const state = reactive({
3305
3305
  expansionRecord: modelValue.value,
3306
- accordion: accordion.value
3306
+ accordion: accordion.value,
3307
+ type: type.value,
3308
+ mode: props.manual ? "manual" : "auto"
3307
3309
  });
3308
3310
  function toggleItem(itemName) {
3309
3311
  if (manual.value) {
@@ -3359,6 +3361,12 @@ const _sfc_main$v = defineComponent({
3359
3361
  }
3360
3362
  state.accordion = newA;
3361
3363
  });
3364
+ watch(() => type.value, (newV) => {
3365
+ state.type = newV;
3366
+ });
3367
+ watch(() => props.manual, (newV) => {
3368
+ state.mode = newV ? "manual" : "auto";
3369
+ });
3362
3370
  provide(ToggleItemKey, toggleItem);
3363
3371
  provide(ExpansionStateKey, state);
3364
3372
  return {
@@ -3368,14 +3376,14 @@ const _sfc_main$v = defineComponent({
3368
3376
  };
3369
3377
  }
3370
3378
  });
3371
- function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
3379
+ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
3372
3380
  return openBlock(), createElementBlock("div", {
3373
3381
  class: normalizeClass(_ctx.classList)
3374
3382
  }, [
3375
3383
  renderSlot(_ctx.$slots, "default")
3376
3384
  ], 2);
3377
3385
  }
3378
- var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
3386
+ var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
3379
3387
  var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
3380
3388
  offset: {
3381
3389
  type: [Number, String],
@@ -3383,13 +3391,13 @@ var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
3383
3391
  }
3384
3392
  });
3385
3393
  var tooltip_scss_vue_type_style_index_0_src_lang = "";
3386
- const _sfc_main$u = defineComponent(__spreadProps(__spreadValues({}, DaoPopper), {
3394
+ const _sfc_main$w = defineComponent(__spreadProps(__spreadValues({}, DaoPopper), {
3387
3395
  name: "DaoTooltip",
3388
3396
  props: tooltipProps,
3389
3397
  daoPopperTheme: "dao-tooltip"
3390
3398
  }));
3391
3399
  var popover_scss_vue_type_style_index_0_src_lang = "";
3392
- const _sfc_main$t = defineComponent(__spreadProps(__spreadValues({}, DaoPopper), {
3400
+ const _sfc_main$v = defineComponent(__spreadProps(__spreadValues({}, DaoPopper), {
3393
3401
  name: "DaoPopover",
3394
3402
  props: PopperProps,
3395
3403
  daoPopperTheme: "dao-popover"
@@ -3459,16 +3467,17 @@ const ellipsisProps = {
3459
3467
  }
3460
3468
  };
3461
3469
  var ellipsis_vue_vue_type_style_index_0_lang = "";
3462
- const _sfc_main$s = defineComponent({
3470
+ const _sfc_main$u = defineComponent({
3463
3471
  name: "DaoEllipsis",
3464
3472
  components: {
3465
- Tooltip: _sfc_main$u
3473
+ Tooltip: _sfc_main$w,
3474
+ Popover: _sfc_main$v
3466
3475
  },
3467
3476
  props: ellipsisProps,
3468
3477
  setup(props) {
3469
3478
  const disabled = ref(true);
3470
3479
  const tooltipRef = ref();
3471
- const ComponentType = computed(() => props.type === "tooltip" ? _sfc_main$u : _sfc_main$t);
3480
+ const ComponentType = computed(() => props.type === "tooltip" ? _sfc_main$w : _sfc_main$v);
3472
3481
  const isOpen = computed(() => {
3473
3482
  var _a2, _b2, _c, _d;
3474
3483
  return (_d = (_c = (_b2 = (_a2 = tooltipRef.value) == null ? void 0 : _a2.$) == null ? void 0 : _b2.ctx) == null ? void 0 : _c.isOpen) != null ? _d : false;
@@ -3510,20 +3519,20 @@ const _sfc_main$s = defineComponent({
3510
3519
  tooltipRef,
3511
3520
  isOpen,
3512
3521
  isEllipsis,
3513
- Tooltip: _sfc_main$u,
3522
+ Tooltip: _sfc_main$w,
3514
3523
  ComponentType
3515
3524
  };
3516
3525
  }
3517
3526
  });
3518
- const _hoisted_1$l = { key: 1 };
3519
- function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3527
+ const _hoisted_1$m = { key: 1 };
3528
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
3520
3529
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.ComponentType), {
3521
3530
  ref: "ComponentRef",
3522
3531
  disabled: _ctx.disabled,
3523
3532
  "visible-arrow": false,
3524
3533
  placement: _ctx.ellipsisPlacement,
3525
3534
  offset: _ctx.offset,
3526
- class: normalizeClass({ ns: _ctx.ns, [`${_ctx.ns}--auto-mode`]: !_ctx.manual }),
3535
+ class: normalizeClass([_ctx.ns]),
3527
3536
  "append-to": _ctx.appendTo,
3528
3537
  delay: _ctx.delay,
3529
3538
  "popper-class": [`${_ctx.ns}-popper`, _ctx.popperClass].join(" "),
@@ -3531,7 +3540,9 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3531
3540
  }, createSlots({
3532
3541
  default: withCtx(() => [
3533
3542
  createElementVNode("span", {
3534
- class: normalizeClass([_ctx.ns + "__target", { "is-disabled": _ctx.disabled }]),
3543
+ class: normalizeClass([
3544
+ !_ctx.manual && `${_ctx.ns}--auto-mode`
3545
+ ]),
3535
3546
  onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.onMouseOver && _ctx.onMouseOver(...args))
3536
3547
  }, [
3537
3548
  renderSlot(_ctx.$slots, "default")
@@ -3546,14 +3557,14 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3546
3557
  key: 0,
3547
3558
  show: _ctx.isOpen,
3548
3559
  ellipsis: _ctx.isEllipsis
3549
- }) : _ctx.content ? (openBlock(), createElementBlock("span", _hoisted_1$l, toDisplayString(_ctx.content), 1)) : renderSlot(_ctx.$slots, "default", { key: 2 })
3560
+ }) : _ctx.content ? (openBlock(), createElementBlock("span", _hoisted_1$m, toDisplayString(_ctx.content), 1)) : renderSlot(_ctx.$slots, "default", { key: 2 })
3550
3561
  ])
3551
3562
  } : void 0
3552
3563
  ]), 1032, ["disabled", "placement", "offset", "class", "append-to", "delay", "popper-class", "width"]);
3553
3564
  }
3554
- var DaoEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$r]]);
3565
+ var DaoEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$t]]);
3555
3566
  var expansionItem_vue_vue_type_style_index_0_lang = "";
3556
- const _sfc_main$r = defineComponent({
3567
+ const _sfc_main$t = defineComponent({
3557
3568
  name: "DaoExpansionItem",
3558
3569
  components: {
3559
3570
  DaoIcon,
@@ -3579,6 +3590,8 @@ const _sfc_main$r = defineComponent({
3579
3590
  }
3580
3591
  return false;
3581
3592
  });
3593
+ const expansionType = computed(() => parentState == null ? void 0 : parentState.type);
3594
+ const expansionMode = computed(() => parentState == null ? void 0 : parentState.mode);
3582
3595
  function onBeforeEnter(el) {
3583
3596
  if (el instanceof HTMLElement) {
3584
3597
  const { style } = el;
@@ -3620,6 +3633,8 @@ const _sfc_main$r = defineComponent({
3620
3633
  return {
3621
3634
  onItemClick,
3622
3635
  isExpanded,
3636
+ expansionType,
3637
+ expansionMode,
3623
3638
  onBeforeEnter,
3624
3639
  onEnter,
3625
3640
  onAfterEnter,
@@ -3629,11 +3644,11 @@ const _sfc_main$r = defineComponent({
3629
3644
  };
3630
3645
  }
3631
3646
  });
3632
- const _hoisted_1$k = {
3647
+ const _hoisted_1$l = {
3633
3648
  key: 0,
3634
3649
  class: "dao-expansion-item-header-handler"
3635
3650
  };
3636
- const _hoisted_2$h = {
3651
+ const _hoisted_2$i = {
3637
3652
  key: 1,
3638
3653
  class: "dao-expansion-item-icon-container dao-expansion-item-header-item"
3639
3654
  };
@@ -3652,22 +3667,24 @@ const _hoisted_6$3 = {
3652
3667
  };
3653
3668
  const _hoisted_7$2 = { class: "dao-expansion-item-content-container" };
3654
3669
  const _hoisted_8$1 = { class: "dao-expansion-item-content" };
3655
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
3670
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
3656
3671
  const _component_dao_icon = resolveComponent("dao-icon");
3657
3672
  const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
3658
3673
  return openBlock(), createElementBlock("div", {
3659
- class: normalizeClass(["dao-expansion-item", {
3660
- "dao-expansion-item--expanded": _ctx.isExpanded
3661
- }])
3674
+ class: normalizeClass(["dao-expansion-item", [
3675
+ `dao-expansion-item--${_ctx.expansionType}`,
3676
+ `dao-expansion-item--${_ctx.expansionMode}`,
3677
+ _ctx.isExpanded && "dao-expansion-item--expanded"
3678
+ ]])
3662
3679
  }, [
3663
3680
  createElementVNode("div", {
3664
3681
  class: "dao-expansion-item-header",
3665
3682
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onItemClick && _ctx.onItemClick(...args))
3666
3683
  }, [
3667
- _ctx.$slots.handler ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
3684
+ _ctx.$slots.handler ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
3668
3685
  renderSlot(_ctx.$slots, "handler")
3669
3686
  ])) : createCommentVNode("", true),
3670
- !_ctx.$slots.trigger ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
3687
+ !_ctx.$slots.trigger ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
3671
3688
  createVNode(_component_dao_icon, {
3672
3689
  name: "icon-dropdown-line",
3673
3690
  class: "dao-expansion-item-icon",
@@ -3723,9 +3740,9 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
3723
3740
  }, 8, ["onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
3724
3741
  ], 2);
3725
3742
  }
3726
- var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$q]]);
3743
+ var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$s]]);
3727
3744
  var form_vue_vue_type_style_index_0_lang = "";
3728
- const _sfc_main$q = defineComponent({
3745
+ const _sfc_main$s = defineComponent({
3729
3746
  name: "DaoForm",
3730
3747
  props: {
3731
3748
  type: {
@@ -3743,7 +3760,7 @@ const _sfc_main$q = defineComponent({
3743
3760
  provide(formLabelWidthKey, labelWidth.value);
3744
3761
  }
3745
3762
  });
3746
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
3763
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3747
3764
  return openBlock(), createElementBlock("div", {
3748
3765
  class: normalizeClass([
3749
3766
  "dao-form",
@@ -3765,12 +3782,13 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
3765
3782
  } })
3766
3783
  ], 2);
3767
3784
  }
3768
- var form = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$p]]);
3785
+ var form = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$r]]);
3769
3786
  var formItem_vue_vue_type_style_index_0_lang = "";
3770
- const _sfc_main$p = defineComponent({
3787
+ const _sfc_main$r = defineComponent({
3771
3788
  name: "DaoFormItem",
3772
3789
  components: {
3773
- DaoTooltip: _sfc_main$u
3790
+ DaoTooltip: _sfc_main$w,
3791
+ DaoEllipsis
3774
3792
  },
3775
3793
  props: {
3776
3794
  label: {
@@ -3819,13 +3837,10 @@ const _sfc_main$p = defineComponent({
3819
3837
  };
3820
3838
  }
3821
3839
  });
3822
- const _hoisted_1$j = {
3823
- key: 0,
3824
- class: "dao-form-item__label-icon-wrapper"
3825
- };
3826
- const _hoisted_2$g = { class: "dao-form-item__label-icon-label" };
3827
- const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
3828
- function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
3840
+ const _hoisted_1$k = { class: "dao-form-item__label-icon-wrapper" };
3841
+ const _hoisted_2$h = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
3842
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
3843
+ const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
3829
3844
  const _component_dao_tooltip = resolveComponent("dao-tooltip");
3830
3845
  return openBlock(), createElementBlock("div", {
3831
3846
  class: normalizeClass(["dao-form-item", { "is-required": _ctx.required }])
@@ -3835,19 +3850,24 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
3835
3850
  style: normalizeStyle(_ctx.labelStyle)
3836
3851
  }, [
3837
3852
  renderSlot(_ctx.$slots, "label", {}, () => [
3838
- createTextVNode(toDisplayString(!_ctx.iconMessage ? _ctx.label : ""), 1),
3839
- !!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
3840
- createElementVNode("span", _hoisted_2$g, toDisplayString(_ctx.label), 1),
3841
- createVNode(_component_dao_tooltip, {
3853
+ createElementVNode("div", _hoisted_1$k, [
3854
+ createVNode(_component_dao_ellipsis, { class: "dao-form-item__label-icon-label" }, {
3855
+ default: withCtx(() => [
3856
+ createTextVNode(toDisplayString(_ctx.label), 1)
3857
+ ]),
3858
+ _: 1
3859
+ }),
3860
+ _ctx.iconMessage ? (openBlock(), createBlock(_component_dao_tooltip, {
3861
+ key: 0,
3842
3862
  content: _ctx.iconMessage,
3843
3863
  placement: "top"
3844
3864
  }, {
3845
3865
  default: withCtx(() => [
3846
- _hoisted_3$9
3866
+ _hoisted_2$h
3847
3867
  ]),
3848
3868
  _: 1
3849
- }, 8, ["content"])
3850
- ])) : createCommentVNode("", true)
3869
+ }, 8, ["content"])) : createCommentVNode("", true)
3870
+ ])
3851
3871
  ])
3852
3872
  ], 4),
3853
3873
  createElementVNode("div", {
@@ -3858,9 +3878,9 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
3858
3878
  ], 4)
3859
3879
  ], 2);
3860
3880
  }
3861
- var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$o]]);
3881
+ var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$q]]);
3862
3882
  var formGroup_vue_vue_type_style_index_0_lang = "";
3863
- const _sfc_main$o = defineComponent({
3883
+ const _sfc_main$q = defineComponent({
3864
3884
  name: "DaoFormGroup",
3865
3885
  props: {
3866
3886
  title: {
@@ -3869,11 +3889,11 @@ const _sfc_main$o = defineComponent({
3869
3889
  }
3870
3890
  }
3871
3891
  });
3872
- const _hoisted_1$i = { class: "dao-form-group" };
3873
- const _hoisted_2$f = { class: "dao-form-group__title" };
3874
- function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
3875
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
3876
- createElementVNode("div", _hoisted_2$f, [
3892
+ const _hoisted_1$j = { class: "dao-form-group" };
3893
+ const _hoisted_2$g = { class: "dao-form-group__title" };
3894
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
3895
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
3896
+ createElementVNode("div", _hoisted_2$g, [
3877
3897
  renderSlot(_ctx.$slots, "title", {}, () => [
3878
3898
  createTextVNode(toDisplayString(_ctx.title), 1)
3879
3899
  ])
@@ -3881,7 +3901,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
3881
3901
  renderSlot(_ctx.$slots, "default")
3882
3902
  ]);
3883
3903
  }
3884
- var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$n]]);
3904
+ var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$p]]);
3885
3905
  const headerProps = {
3886
3906
  type: {
3887
3907
  type: String,
@@ -3893,7 +3913,7 @@ const headerProps = {
3893
3913
  }
3894
3914
  };
3895
3915
  var header_vue_vue_type_style_index_0_lang = "";
3896
- const _sfc_main$n = defineComponent({
3916
+ const _sfc_main$p = defineComponent({
3897
3917
  name: "DaoHeader",
3898
3918
  props: headerProps,
3899
3919
  setup(props, { slots }) {
@@ -3907,7 +3927,7 @@ const _sfc_main$n = defineComponent({
3907
3927
  };
3908
3928
  }
3909
3929
  });
3910
- function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
3930
+ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
3911
3931
  return openBlock(), createElementBlock("div", {
3912
3932
  ref: "header",
3913
3933
  "aria-label": "Header",
@@ -3939,7 +3959,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
3939
3959
  ], 2)) : createCommentVNode("", true)
3940
3960
  ], 2);
3941
3961
  }
3942
- var header = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$m]]);
3962
+ var header = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$o]]);
3943
3963
  const breadcrumbProps = {
3944
3964
  type: {
3945
3965
  type: String,
@@ -3972,7 +3992,7 @@ const breadcrumbItemProps = {
3972
3992
  type: [String, Object]
3973
3993
  }
3974
3994
  };
3975
- const _sfc_main$m = defineComponent({
3995
+ const _sfc_main$o = defineComponent({
3976
3996
  name: "DaoBreadcrumbItem",
3977
3997
  props: breadcrumbItemProps,
3978
3998
  setup(props) {
@@ -3994,7 +4014,7 @@ const _sfc_main$m = defineComponent({
3994
4014
  };
3995
4015
  }
3996
4016
  });
3997
- function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
4017
+ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
3998
4018
  return openBlock(), createElementBlock("span", {
3999
4019
  class: normalizeClass(_ctx.ns + "__item")
4000
4020
  }, [
@@ -4026,9 +4046,9 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
4026
4046
  }, toDisplayString(_ctx.separator), 3)
4027
4047
  ], 2);
4028
4048
  }
4029
- var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$l]]);
4049
+ var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$n]]);
4030
4050
  var breadcrumb_vue_vue_type_style_index_0_lang = "";
4031
- const _sfc_main$l = defineComponent({
4051
+ const _sfc_main$n = defineComponent({
4032
4052
  name: "DaoBreadcrumb",
4033
4053
  components: {
4034
4054
  DaoIcon,
@@ -4043,7 +4063,7 @@ const _sfc_main$l = defineComponent({
4043
4063
  };
4044
4064
  }
4045
4065
  });
4046
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
4066
+ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
4047
4067
  var _a2;
4048
4068
  const _component_dao_icon = resolveComponent("dao-icon");
4049
4069
  const _component_dao_breadcrumb_item = resolveComponent("dao-breadcrumb-item");
@@ -4075,7 +4095,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
4075
4095
  renderSlot(_ctx.$slots, "default")
4076
4096
  ], 2);
4077
4097
  }
4078
- var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k]]);
4098
+ var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$m]]);
4079
4099
  if (typeof window !== "undefined") {
4080
4100
  let loadSvg = function() {
4081
4101
  var body = document.body;
@@ -4142,7 +4162,7 @@ var inputProps = {
4142
4162
  }
4143
4163
  };
4144
4164
  var input_vue_vue_type_style_index_0_lang = "";
4145
- const _sfc_main$k = defineComponent({
4165
+ const _sfc_main$m = defineComponent({
4146
4166
  name: "DaoInput",
4147
4167
  components: {
4148
4168
  DaoIcon
@@ -4353,15 +4373,15 @@ const _sfc_main$k = defineComponent({
4353
4373
  };
4354
4374
  }
4355
4375
  });
4356
- const _hoisted_1$h = {
4376
+ const _hoisted_1$i = {
4357
4377
  key: 0,
4358
4378
  class: "dao-input-prepend"
4359
4379
  };
4360
- const _hoisted_2$e = {
4380
+ const _hoisted_2$f = {
4361
4381
  key: 0,
4362
4382
  class: "dao-input-prefix"
4363
4383
  };
4364
- const _hoisted_3$8 = ["type", "disabled", "value"];
4384
+ const _hoisted_3$9 = ["type", "disabled", "value"];
4365
4385
  const _hoisted_4$5 = {
4366
4386
  key: 4,
4367
4387
  class: "dao-input-suffix"
@@ -4370,18 +4390,18 @@ const _hoisted_5$4 = {
4370
4390
  key: 0,
4371
4391
  class: "dao-input-append"
4372
4392
  };
4373
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
4393
+ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
4374
4394
  const _component_dao_icon = resolveComponent("dao-icon");
4375
4395
  return openBlock(), createElementBlock("div", {
4376
4396
  class: normalizeClass(_ctx.wrapClasses)
4377
4397
  }, [
4378
4398
  renderSlot(_ctx.$slots, "prepend", {}, () => [
4379
- _ctx.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$h, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true)
4399
+ _ctx.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$i, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true)
4380
4400
  ]),
4381
4401
  createElementVNode("div", {
4382
4402
  class: normalizeClass(["dao-input-inner", { "dao-input__changing-number": _ctx.isChangingNumber }])
4383
4403
  }, [
4384
- _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
4404
+ _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
4385
4405
  renderSlot(_ctx.$slots, "prefix")
4386
4406
  ])) : createCommentVNode("", true),
4387
4407
  _ctx.type === "search" ? (openBlock(), createElementBlock("i", {
@@ -4396,7 +4416,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
4396
4416
  disabled: _ctx.disabled,
4397
4417
  value: _ctx.currentValue,
4398
4418
  onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers((...args) => _ctx.resetCurrentVal && _ctx.resetCurrentVal(...args), ["stop"]), ["esc"]))
4399
- }), null, 16, _hoisted_3$8),
4419
+ }), null, 16, _hoisted_3$9),
4400
4420
  _ctx.type === "number" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
4401
4421
  createElementVNode("i", {
4402
4422
  class: normalizeClass([
@@ -4444,7 +4464,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
4444
4464
  ])
4445
4465
  ], 2);
4446
4466
  }
4447
- var DaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j]]);
4467
+ var DaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$l]]);
4448
4468
  var MessageProps = {
4449
4469
  modelValue: {
4450
4470
  type: Boolean,
@@ -4468,7 +4488,7 @@ var MessageProps = {
4468
4488
  }
4469
4489
  };
4470
4490
  var message_vue_vue_type_style_index_0_lang = "";
4471
- const _sfc_main$j = defineComponent({
4491
+ const _sfc_main$l = defineComponent({
4472
4492
  name: "DaoMessage",
4473
4493
  props: MessageProps,
4474
4494
  emits: ["update:modelValue", "change", "beforeClose", "closed", "beforeShow", "show"],
@@ -4515,9 +4535,9 @@ const _sfc_main$j = defineComponent({
4515
4535
  };
4516
4536
  }
4517
4537
  });
4518
- const _hoisted_1$g = { class: "dao-message-icon" };
4519
- const _hoisted_2$d = { class: "dao-message-section" };
4520
- const _hoisted_3$7 = {
4538
+ const _hoisted_1$h = { class: "dao-message-icon" };
4539
+ const _hoisted_2$e = { class: "dao-message-section" };
4540
+ const _hoisted_3$8 = {
4521
4541
  key: 0,
4522
4542
  class: "dao-message-title"
4523
4543
  };
@@ -4525,7 +4545,7 @@ const _hoisted_4$4 = {
4525
4545
  key: 0,
4526
4546
  class: "dao-message-content"
4527
4547
  };
4528
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
4548
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
4529
4549
  return _ctx.isMessageShow ? (openBlock(), createElementBlock("div", {
4530
4550
  key: 0,
4531
4551
  class: normalizeClass(["dao-message-outer", _ctx.typeClass]),
@@ -4536,17 +4556,17 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
4536
4556
  createElementVNode("div", {
4537
4557
  class: normalizeClass(["dao-message-inner", { "dao-message-inner-without-close": !_ctx.isCloseShow }])
4538
4558
  }, [
4539
- createElementVNode("div", _hoisted_1$g, [
4559
+ createElementVNode("div", _hoisted_1$h, [
4540
4560
  renderSlot(_ctx.$slots, "icon", {}, () => [
4541
4561
  createElementVNode("i", {
4542
4562
  class: normalizeClass(`icon-sys-${_ctx.type} dao-message-icon-general dao-message-icon-${_ctx.type}`)
4543
4563
  }, null, 2)
4544
4564
  ])
4545
4565
  ]),
4546
- createElementVNode("div", _hoisted_2$d, [
4566
+ createElementVNode("div", _hoisted_2$e, [
4547
4567
  renderSlot(_ctx.$slots, "section", {}, () => [
4548
4568
  renderSlot(_ctx.$slots, "title", { className: "dao-message-title" }, () => [
4549
- _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
4569
+ _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$8, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
4550
4570
  ]),
4551
4571
  renderSlot(_ctx.$slots, "default", { className: "dao-message-content" }, () => [
4552
4572
  _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$4, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
@@ -4562,7 +4582,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
4562
4582
  ])
4563
4583
  ], 34)) : createCommentVNode("", true);
4564
4584
  }
4565
- var message = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i]]);
4585
+ var message = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k]]);
4566
4586
  const NAV_TYPES = ["2rd", "3rd"];
4567
4587
  const navProps = {
4568
4588
  accordion: {
@@ -4658,7 +4678,7 @@ const navItemProps = {
4658
4678
  }
4659
4679
  };
4660
4680
  var nav_vue_vue_type_style_index_0_lang = "";
4661
- const _sfc_main$i = defineComponent({
4681
+ const _sfc_main$k = defineComponent({
4662
4682
  name: "DaoNav",
4663
4683
  props: navProps,
4664
4684
  emits: ["back", "select", "toggle"],
@@ -4732,21 +4752,22 @@ const _sfc_main$i = defineComponent({
4732
4752
  });
4733
4753
  }
4734
4754
  });
4735
- const _hoisted_1$f = { class: "dao-nav-bar" };
4736
- const _hoisted_2$c = { class: "dao-nav" };
4737
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4738
- return openBlock(), createElementBlock("nav", _hoisted_1$f, [
4755
+ const _hoisted_1$g = { class: "dao-nav-bar" };
4756
+ const _hoisted_2$d = { class: "dao-nav" };
4757
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
4758
+ return openBlock(), createElementBlock("nav", _hoisted_1$g, [
4739
4759
  renderSlot(_ctx.$slots, "header"),
4740
- createElementVNode("ul", _hoisted_2$c, [
4760
+ createElementVNode("ul", _hoisted_2$d, [
4741
4761
  renderSlot(_ctx.$slots, "default")
4742
4762
  ])
4743
4763
  ]);
4744
4764
  }
4745
- var nav = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h]]);
4746
- const _sfc_main$h = defineComponent({
4765
+ var nav = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j]]);
4766
+ const _sfc_main$j = defineComponent({
4747
4767
  name: "DaoNavHead",
4748
4768
  components: {
4749
- DaoIcon
4769
+ DaoIcon,
4770
+ DaoEllipsis
4750
4771
  },
4751
4772
  props: navHeadProps,
4752
4773
  setup(props) {
@@ -4778,9 +4799,10 @@ const _sfc_main$h = defineComponent({
4778
4799
  };
4779
4800
  }
4780
4801
  });
4781
- const _hoisted_1$e = { class: "dao-nav__head-text dao-nav-text" };
4782
- function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4802
+ const _hoisted_1$f = { class: "dao-nav__head-text dao-nav-text" };
4803
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
4783
4804
  const _component_dao_icon = resolveComponent("dao-icon");
4805
+ const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
4784
4806
  return openBlock(), createElementBlock("li", {
4785
4807
  class: normalizeClass(_ctx.classHeadList)
4786
4808
  }, [
@@ -4794,15 +4816,23 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4794
4816
  onClick: _ctx.handleClickBack,
4795
4817
  onKeydown: withKeys(withModifiers(_ctx.handleClickBack, ["stop"]), ["esc"])
4796
4818
  }, null, 8, ["name", "use-font", "onClick", "onKeydown"])) : createCommentVNode("", true),
4797
- createElementVNode("span", _hoisted_1$e, toDisplayString(_ctx.title), 1)
4819
+ createElementVNode("span", _hoisted_1$f, [
4820
+ createVNode(_component_dao_ellipsis, { "ellipsis-placement": "right" }, {
4821
+ default: withCtx(() => [
4822
+ createTextVNode(toDisplayString(_ctx.title), 1)
4823
+ ]),
4824
+ _: 1
4825
+ })
4826
+ ])
4798
4827
  ])
4799
4828
  ], 2);
4800
4829
  }
4801
- var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]);
4802
- const _sfc_main$g = defineComponent({
4830
+ var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i]]);
4831
+ const _sfc_main$i = defineComponent({
4803
4832
  name: "DaoNavItem",
4804
4833
  components: {
4805
- DaoIcon
4834
+ DaoIcon,
4835
+ DaoEllipsis
4806
4836
  },
4807
4837
  props: navItemProps,
4808
4838
  setup(props, { slots }) {
@@ -4880,10 +4910,11 @@ const _sfc_main$g = defineComponent({
4880
4910
  };
4881
4911
  }
4882
4912
  });
4883
- const _hoisted_1$d = { class: "dao-nav-slot" };
4884
- const _hoisted_2$b = { class: "dao-nav__item-text dao-nav-text" };
4885
- function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4913
+ const _hoisted_1$e = { class: "dao-nav-slot" };
4914
+ const _hoisted_2$c = { class: "dao-nav__item-text dao-nav-text" };
4915
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4886
4916
  const _component_dao_icon = resolveComponent("dao-icon");
4917
+ const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
4887
4918
  return openBlock(), createElementBlock("li", {
4888
4919
  class: normalizeClass(_ctx.classItemList)
4889
4920
  }, [
@@ -4893,7 +4924,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4893
4924
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
4894
4925
  onKeydown: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
4895
4926
  }, [
4896
- createElementVNode("div", _hoisted_1$d, [
4927
+ createElementVNode("div", _hoisted_1$e, [
4897
4928
  renderSlot(_ctx.$slots, "default", {}, () => [
4898
4929
  _ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
4899
4930
  key: 0,
@@ -4901,17 +4932,25 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4901
4932
  name: _ctx.icon,
4902
4933
  "use-font": _ctx.useFont
4903
4934
  }, null, 8, ["name", "use-font"])) : createCommentVNode("", true),
4904
- createElementVNode("span", _hoisted_2$b, toDisplayString(_ctx.title), 1)
4935
+ createElementVNode("span", _hoisted_2$c, [
4936
+ createVNode(_component_dao_ellipsis, { "ellipsis-placement": "right" }, {
4937
+ default: withCtx(() => [
4938
+ createTextVNode(toDisplayString(_ctx.title), 1)
4939
+ ]),
4940
+ _: 1
4941
+ })
4942
+ ])
4905
4943
  ])
4906
4944
  ])
4907
4945
  ], 34)
4908
4946
  ], 2);
4909
4947
  }
4910
- var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]]);
4911
- const _sfc_main$f = defineComponent({
4948
+ var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h]]);
4949
+ const _sfc_main$h = defineComponent({
4912
4950
  name: "DaoNavSub",
4913
4951
  components: {
4914
- DaoIcon
4952
+ DaoIcon,
4953
+ DaoEllipsis
4915
4954
  },
4916
4955
  props: navSubProps,
4917
4956
  setup(props, { slots }) {
@@ -5030,17 +5069,18 @@ const _sfc_main$f = defineComponent({
5030
5069
  };
5031
5070
  }
5032
5071
  });
5033
- const _hoisted_1$c = { class: "dao-nav-slot" };
5034
- const _hoisted_2$a = { class: "dao-nav__sub-text dao-nav-text" };
5035
- const _hoisted_3$6 = {
5072
+ const _hoisted_1$d = { class: "dao-nav-slot" };
5073
+ const _hoisted_2$b = { class: "dao-nav__sub-text dao-nav-text" };
5074
+ const _hoisted_3$7 = {
5036
5075
  key: 0,
5037
5076
  class: "icon-dropdown-line dao-nav__sub__icon-fold"
5038
5077
  };
5039
5078
  const _hoisted_4$3 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
5040
5079
  const _hoisted_5$3 = { class: "dao-nav dao-nav-inner" };
5041
5080
  const _hoisted_6$2 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
5042
- function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
5081
+ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
5043
5082
  const _component_dao_icon = resolveComponent("dao-icon");
5083
+ const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
5044
5084
  return openBlock(), createElementBlock("li", {
5045
5085
  class: normalizeClass(_ctx.classSubList)
5046
5086
  }, [
@@ -5050,7 +5090,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
5050
5090
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
5051
5091
  onKeydown: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
5052
5092
  }, [
5053
- createElementVNode("div", _hoisted_1$c, [
5093
+ createElementVNode("div", _hoisted_1$d, [
5054
5094
  renderSlot(_ctx.$slots, "title", {}, () => [
5055
5095
  _ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
5056
5096
  key: 0,
@@ -5058,10 +5098,17 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
5058
5098
  name: _ctx.icon,
5059
5099
  "use-font": _ctx.useFont
5060
5100
  }, null, 8, ["name", "use-font"])) : createCommentVNode("", true),
5061
- createElementVNode("span", _hoisted_2$a, toDisplayString(_ctx.title), 1)
5101
+ createElementVNode("span", _hoisted_2$b, [
5102
+ createVNode(_component_dao_ellipsis, { "ellipsis-placement": "right" }, {
5103
+ default: withCtx(() => [
5104
+ createTextVNode(toDisplayString(_ctx.title), 1)
5105
+ ]),
5106
+ _: 1
5107
+ })
5108
+ ])
5062
5109
  ])
5063
5110
  ]),
5064
- _ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$6)) : createCommentVNode("", true)
5111
+ _ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$7)) : createCommentVNode("", true)
5065
5112
  ], 34),
5066
5113
  createVNode(Transition, { name: "dao-nav" }, {
5067
5114
  default: withCtx(() => [
@@ -5079,7 +5126,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
5079
5126
  })
5080
5127
  ], 2);
5081
5128
  }
5082
- var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]]);
5129
+ var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]);
5083
5130
  const paginationProps = {
5084
5131
  pageSize: {
5085
5132
  type: Number,
@@ -5243,7 +5290,7 @@ function useVModel(props, key, emit, options = {}) {
5243
5290
  }
5244
5291
  }
5245
5292
  var select_vue_vue_type_style_index_0_lang = "";
5246
- const _sfc_main$e = defineComponent({
5293
+ const _sfc_main$g = defineComponent({
5247
5294
  name: "DaoSelect",
5248
5295
  components: {
5249
5296
  DaoPopper
@@ -5596,9 +5643,9 @@ const _sfc_main$e = defineComponent({
5596
5643
  };
5597
5644
  }
5598
5645
  });
5599
- const _hoisted_1$b = { class: "dao-selection-text" };
5600
- const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("i", { class: "icon-dropdown-line dao-selection-icon" }, null, -1);
5601
- const _hoisted_3$5 = {
5646
+ const _hoisted_1$c = { class: "dao-selection-text" };
5647
+ const _hoisted_2$a = /* @__PURE__ */ createElementVNode("i", { class: "icon-dropdown-line dao-selection-icon" }, null, -1);
5648
+ const _hoisted_3$6 = {
5602
5649
  key: 0,
5603
5650
  class: "dao-selection-search"
5604
5651
  };
@@ -5609,7 +5656,7 @@ const _hoisted_7$1 = {
5609
5656
  key: "dao-option-placeholder",
5610
5657
  class: "dao-option-placeholder"
5611
5658
  };
5612
- function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
5659
+ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5613
5660
  const _component_dao_popper = resolveComponent("dao-popper");
5614
5661
  return openBlock(), createBlock(_component_dao_popper, {
5615
5662
  ref: "popper",
@@ -5631,7 +5678,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
5631
5678
  }, {
5632
5679
  content: withCtx(() => [
5633
5680
  renderSlot(_ctx.$slots, "optionsHeader", {}, () => [
5634
- _ctx.search ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
5681
+ _ctx.search ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
5635
5682
  withDirectives(createElementVNode("input", {
5636
5683
  ref: "searchInput",
5637
5684
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.state.searchText = $event),
@@ -5678,7 +5725,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
5678
5725
  ],
5679
5726
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.state.visible = !_ctx.state.visible)
5680
5727
  }, [
5681
- withDirectives(createElementVNode("span", _hoisted_1$b, [
5728
+ withDirectives(createElementVNode("span", _hoisted_1$c, [
5682
5729
  _ctx.multiple ? renderSlot(_ctx.$slots, "selected", {
5683
5730
  key: 0,
5684
5731
  selectedLabel: _ctx.state.selectedOption.map((o) => o.label),
@@ -5703,16 +5750,16 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
5703
5750
  withDirectives(createElementVNode("span", { class: "dao-selection-text--placeholder" }, toDisplayString(_ctx.placeholder), 513), [
5704
5751
  [vShow, !_ctx.isSelected]
5705
5752
  ]),
5706
- _hoisted_2$9
5753
+ _hoisted_2$a
5707
5754
  ], 544)
5708
5755
  ];
5709
5756
  }),
5710
5757
  _: 3
5711
5758
  }, 8, ["modelValue", "disabled", "offset", "popper-class", "popper-options", "class", "append-to"]);
5712
5759
  }
5713
- var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d]]);
5760
+ var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]]);
5714
5761
  var option_vue_vue_type_style_index_0_lang = "";
5715
- const _sfc_main$d = defineComponent({
5762
+ const _sfc_main$f = defineComponent({
5716
5763
  name: "DaoOption",
5717
5764
  props: {
5718
5765
  value: {
@@ -5794,12 +5841,12 @@ const _sfc_main$d = defineComponent({
5794
5841
  };
5795
5842
  }
5796
5843
  });
5797
- const _hoisted_1$a = ["title"];
5798
- const _hoisted_2$8 = {
5844
+ const _hoisted_1$b = ["title"];
5845
+ const _hoisted_2$9 = {
5799
5846
  key: 0,
5800
5847
  class: "icon-checked dao-option-checkmark"
5801
5848
  };
5802
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
5849
+ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
5803
5850
  return withDirectives((openBlock(), createElementBlock("li", {
5804
5851
  ref: "optionRef",
5805
5852
  class: normalizeClass([
@@ -5818,16 +5865,16 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
5818
5865
  renderSlot(_ctx.$slots, "default", {}, () => [
5819
5866
  createTextVNode(toDisplayString(_ctx.labelValue), 1)
5820
5867
  ])
5821
- ], 8, _hoisted_1$a),
5822
- _ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$8)) : createCommentVNode("", true)
5868
+ ], 8, _hoisted_1$b),
5869
+ _ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$9)) : createCommentVNode("", true)
5823
5870
  ], 2)), [
5824
5871
  [vShow, _ctx.visible]
5825
5872
  ]);
5826
5873
  }
5827
- var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c]]);
5874
+ var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]]);
5828
5875
  var pagination_vue_vue_type_style_index_0_lang = "";
5829
5876
  const numberAscSort = (a, b) => a - b;
5830
- const _sfc_main$c = defineComponent({
5877
+ const _sfc_main$e = defineComponent({
5831
5878
  name: "DaoPagination",
5832
5879
  components: {
5833
5880
  DaoSelect,
@@ -5943,9 +5990,9 @@ const _sfc_main$c = defineComponent({
5943
5990
  };
5944
5991
  }
5945
5992
  });
5946
- const _hoisted_1$9 = ["disabled"];
5947
- const _hoisted_2$7 = { class: "dao-pagination__pager-total" };
5948
- function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
5993
+ const _hoisted_1$a = ["disabled"];
5994
+ const _hoisted_2$8 = { class: "dao-pagination__pager-total" };
5995
+ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
5949
5996
  const _component_dao_option = resolveComponent("dao-option");
5950
5997
  const _component_dao_select = resolveComponent("dao-select");
5951
5998
  return _ctx.computedLayout.show ? (openBlock(), createElementBlock("div", {
@@ -5972,10 +6019,10 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
5972
6019
  disabled: _ctx.totalPage <= 1,
5973
6020
  onKeydown: _cache[2] || (_cache[2] = withKeys((...args) => _ctx.targetPage && _ctx.targetPage(...args), ["enter"])),
5974
6021
  onInput: _cache[3] || (_cache[3] = (...args) => _ctx.currentShowPageFormat && _ctx.currentShowPageFormat(...args))
5975
- }, null, 40, _hoisted_1$9), [
6022
+ }, null, 40, _hoisted_1$a), [
5976
6023
  [vModelText, _ctx.currentShowPage]
5977
6024
  ]),
5978
- createElementVNode("span", _hoisted_2$7, " / " + toDisplayString(_ctx.totalPage), 1),
6025
+ createElementVNode("span", _hoisted_2$8, " / " + toDisplayString(_ctx.totalPage), 1),
5979
6026
  createElementVNode("i", {
5980
6027
  class: normalizeClass([
5981
6028
  "icon-arrow-next",
@@ -6006,9 +6053,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
6006
6053
  }, 8, ["class", "model-value", "style", "onChange"])
6007
6054
  ], 2)) : createCommentVNode("", true);
6008
6055
  }
6009
- var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]]);
6056
+ var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d]]);
6010
6057
  var progress_vue_vue_type_style_index_0_lang = "";
6011
- const _sfc_main$b = defineComponent({
6058
+ const _sfc_main$d = defineComponent({
6012
6059
  name: "DaoProgress",
6013
6060
  props: {
6014
6061
  value: {
@@ -6057,17 +6104,17 @@ const _sfc_main$b = defineComponent({
6057
6104
  };
6058
6105
  }
6059
6106
  });
6060
- const _hoisted_1$8 = { class: "dao-progress" };
6061
- const _hoisted_2$6 = {
6107
+ const _hoisted_1$9 = { class: "dao-progress" };
6108
+ const _hoisted_2$7 = {
6062
6109
  key: 1,
6063
6110
  class: "dao-progress__stacked"
6064
6111
  };
6065
- const _hoisted_3$4 = {
6112
+ const _hoisted_3$5 = {
6066
6113
  key: 0,
6067
6114
  class: "dao-progress__text"
6068
6115
  };
6069
- function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
6070
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
6116
+ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
6117
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
6071
6118
  createElementVNode("div", {
6072
6119
  class: "dao-progress__inner",
6073
6120
  style: normalizeStyle({ background: _ctx.bgColor })
@@ -6076,7 +6123,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
6076
6123
  key: 0,
6077
6124
  class: "dao-progress__bar",
6078
6125
  style: normalizeStyle({ width: `${_ctx.value}%`, background: _ctx.stackedBgColor })
6079
- }, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$6, [
6126
+ }, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$7, [
6080
6127
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.stackedStyles, (stackedStyle, idx) => {
6081
6128
  return openBlock(), createElementBlock("div", {
6082
6129
  key: idx,
@@ -6086,14 +6133,14 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
6086
6133
  }), 128))
6087
6134
  ]))
6088
6135
  ], 4),
6089
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
6136
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$5, [
6090
6137
  renderSlot(_ctx.$slots, "default")
6091
6138
  ])) : createCommentVNode("", true)
6092
6139
  ]);
6093
6140
  }
6094
- var progress = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]);
6141
+ var progress = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c]]);
6095
6142
  var radio_vue_vue_type_style_index_0_lang = "";
6096
- const _sfc_main$a = defineComponent({
6143
+ const _sfc_main$c = defineComponent({
6097
6144
  name: "DaoRadio",
6098
6145
  props: {
6099
6146
  modelValue: {
@@ -6163,9 +6210,9 @@ const _sfc_main$a = defineComponent({
6163
6210
  };
6164
6211
  }
6165
6212
  });
6166
- const _hoisted_1$7 = ["disabled", "name", "checked"];
6167
- const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("span", { class: "dao-radio-inner" }, null, -1);
6168
- const _hoisted_3$3 = {
6213
+ const _hoisted_1$8 = ["disabled", "name", "checked"];
6214
+ const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("span", { class: "dao-radio-inner" }, null, -1);
6215
+ const _hoisted_3$4 = {
6169
6216
  key: 0,
6170
6217
  class: "dao-radio__label-wrapper"
6171
6218
  };
@@ -6177,7 +6224,7 @@ const _hoisted_5$1 = {
6177
6224
  key: 1,
6178
6225
  class: "dao-radio__help"
6179
6226
  };
6180
- function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
6227
+ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
6181
6228
  return openBlock(), createElementBlock("label", {
6182
6229
  class: normalizeClass(_ctx.wrapClasses)
6183
6230
  }, [
@@ -6191,10 +6238,10 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
6191
6238
  name: _ctx.name,
6192
6239
  checked: _ctx.currentValue,
6193
6240
  onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
6194
- }, null, 40, _hoisted_1$7),
6195
- _hoisted_2$5
6241
+ }, null, 40, _hoisted_1$8),
6242
+ _hoisted_2$6
6196
6243
  ], 2),
6197
- _ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
6244
+ _ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
6198
6245
  _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
6199
6246
  renderSlot(_ctx.$slots, "default", {}, () => [
6200
6247
  createTextVNode(toDisplayString(_ctx.label), 1)
@@ -6206,9 +6253,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
6206
6253
  ])) : createCommentVNode("", true)
6207
6254
  ], 2);
6208
6255
  }
6209
- var radio = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]);
6256
+ var radio = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]]);
6210
6257
  var radioGroup_vue_vue_type_style_index_0_lang = "";
6211
- const _sfc_main$9 = defineComponent({
6258
+ const _sfc_main$b = defineComponent({
6212
6259
  name: "DaoRadioGroup",
6213
6260
  props: {
6214
6261
  modelValue: {
@@ -6242,16 +6289,16 @@ const _sfc_main$9 = defineComponent({
6242
6289
  };
6243
6290
  }
6244
6291
  });
6245
- function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
6292
+ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
6246
6293
  return openBlock(), createElementBlock("div", {
6247
6294
  class: normalizeClass(_ctx.radioGroupClasses)
6248
6295
  }, [
6249
6296
  renderSlot(_ctx.$slots, "default")
6250
6297
  ], 2);
6251
6298
  }
6252
- var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]);
6299
+ var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]);
6253
6300
  var switch_vue_vue_type_style_index_0_lang = "";
6254
- const _sfc_main$8 = defineComponent({
6301
+ const _sfc_main$a = defineComponent({
6255
6302
  name: "DaoSwitch",
6256
6303
  props: {
6257
6304
  modelValue: {
@@ -6315,12 +6362,12 @@ const _sfc_main$8 = defineComponent({
6315
6362
  };
6316
6363
  }
6317
6364
  });
6318
- const _hoisted_1$6 = ["value", "name", "disabled"];
6319
- const _hoisted_2$4 = {
6365
+ const _hoisted_1$7 = ["value", "name", "disabled"];
6366
+ const _hoisted_2$5 = {
6320
6367
  key: 0,
6321
6368
  class: "dao-switch__label"
6322
6369
  };
6323
- function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
6370
+ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
6324
6371
  return openBlock(), createElementBlock("div", {
6325
6372
  class: normalizeClass(["dao-switch", { "dao-switch--disabled": _ctx.disabled, "dao-switch--size-sm": _ctx.size === "sm" }]),
6326
6373
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
@@ -6331,16 +6378,16 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
6331
6378
  value: _ctx.currentValue,
6332
6379
  name: _ctx.name,
6333
6380
  disabled: _ctx.disabled
6334
- }, null, 8, _hoisted_1$6),
6381
+ }, null, 8, _hoisted_1$7),
6335
6382
  createElementVNode("span", {
6336
6383
  class: normalizeClass(["dao-switch__pill", { "dao-switch-checked": _ctx.currentValue }])
6337
6384
  }, null, 2),
6338
- _ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(_ctx.currentValue ? _ctx.textContent.on : _ctx.textContent.off), 1)) : createCommentVNode("", true)
6385
+ _ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$5, toDisplayString(_ctx.currentValue ? _ctx.textContent.on : _ctx.textContent.off), 1)) : createCommentVNode("", true)
6339
6386
  ], 2);
6340
6387
  }
6341
- var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]);
6388
+ var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]);
6342
6389
  var resizer_vue_vue_type_style_index_0_lang = "";
6343
- const _sfc_main$7 = defineComponent({
6390
+ const _sfc_main$9 = defineComponent({
6344
6391
  name: "DaoResizer",
6345
6392
  props: {
6346
6393
  column: {
@@ -6387,9 +6434,9 @@ const _sfc_main$7 = defineComponent({
6387
6434
  };
6388
6435
  }
6389
6436
  });
6390
- const _hoisted_1$5 = { class: "dao-table-resizer-separator" };
6391
- function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
6392
- return openBlock(), createElementBlock("span", _hoisted_1$5, [
6437
+ const _hoisted_1$6 = { class: "dao-table-resizer-separator" };
6438
+ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
6439
+ return openBlock(), createElementBlock("span", _hoisted_1$6, [
6393
6440
  !_ctx.disabled ? (openBlock(), createElementBlock("span", {
6394
6441
  key: 0,
6395
6442
  class: "dao-table-resizer-handle",
@@ -6399,7 +6446,258 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
6399
6446
  }, null, 32)) : createCommentVNode("", true)
6400
6447
  ]);
6401
6448
  }
6402
- var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]);
6449
+ var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]);
6450
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
6451
+ var freeGlobal$1 = freeGlobal;
6452
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
6453
+ var root = freeGlobal$1 || freeSelf || Function("return this")();
6454
+ var root$1 = root;
6455
+ var Symbol$1 = root$1.Symbol;
6456
+ var Symbol$2 = Symbol$1;
6457
+ var objectProto$6 = Object.prototype;
6458
+ var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
6459
+ var nativeObjectToString$1 = objectProto$6.toString;
6460
+ var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
6461
+ function getRawTag(value) {
6462
+ var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), tag2 = value[symToStringTag$1];
6463
+ try {
6464
+ value[symToStringTag$1] = void 0;
6465
+ var unmasked = true;
6466
+ } catch (e) {
6467
+ }
6468
+ var result = nativeObjectToString$1.call(value);
6469
+ if (unmasked) {
6470
+ if (isOwn) {
6471
+ value[symToStringTag$1] = tag2;
6472
+ } else {
6473
+ delete value[symToStringTag$1];
6474
+ }
6475
+ }
6476
+ return result;
6477
+ }
6478
+ var objectProto$5 = Object.prototype;
6479
+ var nativeObjectToString = objectProto$5.toString;
6480
+ function objectToString(value) {
6481
+ return nativeObjectToString.call(value);
6482
+ }
6483
+ var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
6484
+ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
6485
+ function baseGetTag(value) {
6486
+ if (value == null) {
6487
+ return value === void 0 ? undefinedTag : nullTag;
6488
+ }
6489
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
6490
+ }
6491
+ function isObjectLike(value) {
6492
+ return value != null && typeof value == "object";
6493
+ }
6494
+ var isArray = Array.isArray;
6495
+ var isArray$1 = isArray;
6496
+ function isObject(value) {
6497
+ var type = typeof value;
6498
+ return value != null && (type == "object" || type == "function");
6499
+ }
6500
+ var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
6501
+ function isFunction(value) {
6502
+ if (!isObject(value)) {
6503
+ return false;
6504
+ }
6505
+ var tag2 = baseGetTag(value);
6506
+ return tag2 == funcTag$1 || tag2 == genTag || tag2 == asyncTag || tag2 == proxyTag;
6507
+ }
6508
+ var coreJsData = root$1["__core-js_shared__"];
6509
+ var coreJsData$1 = coreJsData;
6510
+ var maskSrcKey = function() {
6511
+ var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
6512
+ return uid ? "Symbol(src)_1." + uid : "";
6513
+ }();
6514
+ function isMasked(func) {
6515
+ return !!maskSrcKey && maskSrcKey in func;
6516
+ }
6517
+ var funcProto$1 = Function.prototype;
6518
+ var funcToString$1 = funcProto$1.toString;
6519
+ function toSource(func) {
6520
+ if (func != null) {
6521
+ try {
6522
+ return funcToString$1.call(func);
6523
+ } catch (e) {
6524
+ }
6525
+ try {
6526
+ return func + "";
6527
+ } catch (e) {
6528
+ }
6529
+ }
6530
+ return "";
6531
+ }
6532
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
6533
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
6534
+ var funcProto = Function.prototype, objectProto$4 = Object.prototype;
6535
+ var funcToString = funcProto.toString;
6536
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
6537
+ var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$3).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
6538
+ function baseIsNative(value) {
6539
+ if (!isObject(value) || isMasked(value)) {
6540
+ return false;
6541
+ }
6542
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
6543
+ return pattern.test(toSource(value));
6544
+ }
6545
+ function getValue(object, key) {
6546
+ return object == null ? void 0 : object[key];
6547
+ }
6548
+ function getNative(object, key) {
6549
+ var value = getValue(object, key);
6550
+ return baseIsNative(value) ? value : void 0;
6551
+ }
6552
+ var WeakMap = getNative(root$1, "WeakMap");
6553
+ var WeakMap$1 = WeakMap;
6554
+ var MAX_SAFE_INTEGER = 9007199254740991;
6555
+ function isLength(value) {
6556
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
6557
+ }
6558
+ function isArrayLike(value) {
6559
+ return value != null && isLength(value.length) && !isFunction(value);
6560
+ }
6561
+ var objectProto$3 = Object.prototype;
6562
+ function isPrototype(value) {
6563
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$3;
6564
+ return value === proto;
6565
+ }
6566
+ var argsTag$1 = "[object Arguments]";
6567
+ function baseIsArguments(value) {
6568
+ return isObjectLike(value) && baseGetTag(value) == argsTag$1;
6569
+ }
6570
+ var objectProto$2 = Object.prototype;
6571
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
6572
+ var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
6573
+ var isArguments = baseIsArguments(function() {
6574
+ return arguments;
6575
+ }()) ? baseIsArguments : function(value) {
6576
+ return isObjectLike(value) && hasOwnProperty$2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
6577
+ };
6578
+ var isArguments$1 = isArguments;
6579
+ function stubFalse() {
6580
+ return false;
6581
+ }
6582
+ var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
6583
+ var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
6584
+ var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
6585
+ var Buffer2 = moduleExports$1 ? root$1.Buffer : void 0;
6586
+ var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
6587
+ var isBuffer = nativeIsBuffer || stubFalse;
6588
+ var isBuffer$1 = isBuffer;
6589
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag$2 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]";
6590
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
6591
+ var typedArrayTags = {};
6592
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
6593
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag] = typedArrayTags[objectTag$1] = typedArrayTags[regexpTag] = typedArrayTags[setTag$2] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
6594
+ function baseIsTypedArray(value) {
6595
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
6596
+ }
6597
+ function baseUnary(func) {
6598
+ return function(value) {
6599
+ return func(value);
6600
+ };
6601
+ }
6602
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
6603
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
6604
+ var moduleExports = freeModule && freeModule.exports === freeExports;
6605
+ var freeProcess = moduleExports && freeGlobal$1.process;
6606
+ var nodeUtil = function() {
6607
+ try {
6608
+ var types = freeModule && freeModule.require && freeModule.require("util").types;
6609
+ if (types) {
6610
+ return types;
6611
+ }
6612
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
6613
+ } catch (e) {
6614
+ }
6615
+ }();
6616
+ var nodeUtil$1 = nodeUtil;
6617
+ var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
6618
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
6619
+ var isTypedArray$1 = isTypedArray;
6620
+ function overArg(func, transform) {
6621
+ return function(arg) {
6622
+ return func(transform(arg));
6623
+ };
6624
+ }
6625
+ var nativeKeys = overArg(Object.keys, Object);
6626
+ var nativeKeys$1 = nativeKeys;
6627
+ var objectProto$1 = Object.prototype;
6628
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
6629
+ function baseKeys(object) {
6630
+ if (!isPrototype(object)) {
6631
+ return nativeKeys$1(object);
6632
+ }
6633
+ var result = [];
6634
+ for (var key in Object(object)) {
6635
+ if (hasOwnProperty$1.call(object, key) && key != "constructor") {
6636
+ result.push(key);
6637
+ }
6638
+ }
6639
+ return result;
6640
+ }
6641
+ var Map$1 = getNative(root$1, "Map");
6642
+ var Map$2 = Map$1;
6643
+ var DataView = getNative(root$1, "DataView");
6644
+ var DataView$1 = DataView;
6645
+ var Promise$1 = getNative(root$1, "Promise");
6646
+ var Promise$2 = Promise$1;
6647
+ var Set$1 = getNative(root$1, "Set");
6648
+ var Set$2 = Set$1;
6649
+ var mapTag$1 = "[object Map]", objectTag = "[object Object]", promiseTag = "[object Promise]", setTag$1 = "[object Set]", weakMapTag = "[object WeakMap]";
6650
+ var dataViewTag = "[object DataView]";
6651
+ var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$2), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$2), weakMapCtorString = toSource(WeakMap$1);
6652
+ var getTag = baseGetTag;
6653
+ if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag || Map$2 && getTag(new Map$2()) != mapTag$1 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$2 && getTag(new Set$2()) != setTag$1 || WeakMap$1 && getTag(new WeakMap$1()) != weakMapTag) {
6654
+ getTag = function(value) {
6655
+ var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
6656
+ if (ctorString) {
6657
+ switch (ctorString) {
6658
+ case dataViewCtorString:
6659
+ return dataViewTag;
6660
+ case mapCtorString:
6661
+ return mapTag$1;
6662
+ case promiseCtorString:
6663
+ return promiseTag;
6664
+ case setCtorString:
6665
+ return setTag$1;
6666
+ case weakMapCtorString:
6667
+ return weakMapTag;
6668
+ }
6669
+ }
6670
+ return result;
6671
+ };
6672
+ }
6673
+ var getTag$1 = getTag;
6674
+ var mapTag = "[object Map]", setTag = "[object Set]";
6675
+ var objectProto = Object.prototype;
6676
+ var hasOwnProperty = objectProto.hasOwnProperty;
6677
+ function isEmpty(value) {
6678
+ if (value == null) {
6679
+ return true;
6680
+ }
6681
+ if (isArrayLike(value) && (isArray$1(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$1(value) || isTypedArray$1(value) || isArguments$1(value))) {
6682
+ return !value.length;
6683
+ }
6684
+ var tag2 = getTag$1(value);
6685
+ if (tag2 == mapTag || tag2 == setTag) {
6686
+ return !value.size;
6687
+ }
6688
+ if (isPrototype(value)) {
6689
+ return !baseKeys(value).length;
6690
+ }
6691
+ for (var key in value) {
6692
+ if (hasOwnProperty.call(value, key)) {
6693
+ return false;
6694
+ }
6695
+ }
6696
+ return true;
6697
+ }
6698
+ function withDefaultValue(val) {
6699
+ return isEmpty(val) ? "-" : val;
6700
+ }
6403
6701
  const tableProps = {
6404
6702
  id: {
6405
6703
  type: String,
@@ -6476,6 +6774,46 @@ const tableProps = {
6476
6774
  },
6477
6775
  pageLayout: paginationProps.layout
6478
6776
  };
6777
+ const _sfc_main$8 = defineComponent({
6778
+ components: {
6779
+ DaoActionIcon,
6780
+ DaoDropdown,
6781
+ DaoDropdownMenu
6782
+ },
6783
+ setup() {
6784
+ function handleClick(e) {
6785
+ e.stopRowClick = true;
6786
+ }
6787
+ return {
6788
+ handleClick
6789
+ };
6790
+ }
6791
+ });
6792
+ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
6793
+ const _component_dao_action_icon = resolveComponent("dao-action-icon");
6794
+ const _component_dao_dropdown_menu = resolveComponent("dao-dropdown-menu");
6795
+ const _component_dao_dropdown = resolveComponent("dao-dropdown");
6796
+ return openBlock(), createBlock(_component_dao_dropdown, { placement: "bottom-end" }, {
6797
+ menu: withCtx(() => [
6798
+ createVNode(_component_dao_dropdown_menu, null, {
6799
+ default: withCtx(() => [
6800
+ renderSlot(_ctx.$slots, "default")
6801
+ ]),
6802
+ _: 3
6803
+ })
6804
+ ]),
6805
+ default: withCtx(() => [
6806
+ createVNode(_component_dao_action_icon, {
6807
+ name: "icon-more-vertical",
6808
+ "data-action-td": "",
6809
+ "use-font": "",
6810
+ onClick: _ctx.handleClick
6811
+ }, null, 8, ["onClick"])
6812
+ ]),
6813
+ _: 3
6814
+ });
6815
+ }
6816
+ var TdAction = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]);
6479
6817
  var table_vue_vue_type_style_index_0_lang = "";
6480
6818
  const positiveIntegerNumberReg = /^[1-9]\d*$/;
6481
6819
  const defaultColumnConfig = {
@@ -6487,14 +6825,13 @@ const defaultColumnConfig = {
6487
6825
  defaultHide: false
6488
6826
  };
6489
6827
  const defaultSelectableFn = () => true;
6490
- const _sfc_main$6 = defineComponent({
6828
+ const _sfc_main$7 = defineComponent({
6491
6829
  name: "DaoTable",
6492
6830
  components: {
6493
6831
  DaoResizer,
6494
6832
  DaoPagination,
6495
6833
  DaoCheckbox,
6496
- DaoButton,
6497
- DaoDropdown
6834
+ TdAction
6498
6835
  },
6499
6836
  props: tableProps,
6500
6837
  emits: [
@@ -6718,7 +7055,7 @@ const _sfc_main$6 = defineComponent({
6718
7055
  }
6719
7056
  return classes;
6720
7057
  });
6721
- const isEmpty = computed(() => (props.data || []).length === 0);
7058
+ const isEmpty2 = computed(() => (props.data || []).length === 0);
6722
7059
  const sortColumn = (column) => {
6723
7060
  if (!column.sortable) {
6724
7061
  return;
@@ -6790,7 +7127,10 @@ const _sfc_main$6 = defineComponent({
6790
7127
  onUnmounted(() => {
6791
7128
  window.removeEventListener("resize", windowResize);
6792
7129
  });
6793
- function onRowClick(row, rowIndex) {
7130
+ function onRowClick(e, row, rowIndex) {
7131
+ if (e.stopRowClick) {
7132
+ return;
7133
+ }
6794
7134
  emit("row-click", row, rowIndex);
6795
7135
  }
6796
7136
  return {
@@ -6815,20 +7155,21 @@ const _sfc_main$6 = defineComponent({
6815
7155
  tableScroll,
6816
7156
  expandedRows,
6817
7157
  onRowClick,
6818
- isEmpty,
7158
+ isEmpty: isEmpty2,
6819
7159
  selectableRows,
6820
7160
  isRowSelected,
6821
7161
  toggleSelected,
6822
- toggleSelectedAll
7162
+ toggleSelectedAll,
7163
+ withDefaultValue
6823
7164
  };
6824
7165
  }
6825
7166
  });
6826
- const _hoisted_1$4 = { class: "dao-table" };
6827
- const _hoisted_2$3 = {
7167
+ const _hoisted_1$5 = { class: "dao-table" };
7168
+ const _hoisted_2$4 = {
6828
7169
  key: 0,
6829
7170
  class: "dao-table-thead"
6830
7171
  };
6831
- const _hoisted_3$2 = { class: "dao-table-tr" };
7172
+ const _hoisted_3$3 = { class: "dao-table-tr" };
6832
7173
  const _hoisted_4 = {
6833
7174
  key: 0,
6834
7175
  class: "dao-table-th"
@@ -6859,11 +7200,10 @@ const _hoisted_14 = {
6859
7200
  class: "dao-table__empty-block"
6860
7201
  };
6861
7202
  const _hoisted_15 = { class: "dao-table-pagination" };
6862
- function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
7203
+ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
6863
7204
  const _component_dao_checkbox = resolveComponent("dao-checkbox");
6864
7205
  const _component_dao_resizer = resolveComponent("dao-resizer");
6865
- const _component_dao_button = resolveComponent("dao-button");
6866
- const _component_dao_dropdown = resolveComponent("dao-dropdown");
7206
+ const _component_td_action = resolveComponent("td-action");
6867
7207
  const _component_dao_pagination = resolveComponent("dao-pagination");
6868
7208
  return openBlock(), createElementBlock("div", {
6869
7209
  class: normalizeClass(["dao-table-container", { "dao-table-container--with-shadow": !_ctx.noShadow }])
@@ -6872,9 +7212,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6872
7212
  ref: "tableScroll",
6873
7213
  class: normalizeClass(["dao-table-scroll", _ctx.tableWrapperClasses])
6874
7214
  }, [
6875
- createElementVNode("table", _hoisted_1$4, [
6876
- _ctx.showHeader ? (openBlock(), createElementBlock("thead", _hoisted_2$3, [
6877
- createElementVNode("tr", _hoisted_3$2, [
7215
+ createElementVNode("table", _hoisted_1$5, [
7216
+ _ctx.showHeader ? (openBlock(), createElementBlock("thead", _hoisted_2$4, [
7217
+ createElementVNode("tr", _hoisted_3$3, [
6878
7218
  _ctx.selectable ? (openBlock(), createElementBlock("th", _hoisted_4, [
6879
7219
  createVNode(_component_dao_checkbox, {
6880
7220
  checked: _ctx.global.checked,
@@ -6892,7 +7232,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6892
7232
  onClick: ($event) => _ctx.sortColumn(column)
6893
7233
  }, [
6894
7234
  createElementVNode("span", _hoisted_7, [
6895
- renderSlot(_ctx.$slots, `th-${column.id}`, {}, () => [
7235
+ renderSlot(_ctx.$slots, `th-${column.id}`, { column }, () => [
6896
7236
  createTextVNode(toDisplayString(column.header), 1)
6897
7237
  ])
6898
7238
  ]),
@@ -6919,7 +7259,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6919
7259
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
6920
7260
  createElementVNode("tr", {
6921
7261
  class: normalizeClass(["dao-table-tr", { "dao-table-tr--expandable-open": _ctx.expandable && _ctx.isRowExpanded(row) }]),
6922
- onClick: ($event) => _ctx.onRowClick(row, index2)
7262
+ onClick: (e) => _ctx.onRowClick(e, row, index2)
6923
7263
  }, [
6924
7264
  _ctx.selectable ? (openBlock(), createElementBlock("td", _hoisted_10, [
6925
7265
  createVNode(_component_dao_checkbox, {
@@ -6937,47 +7277,44 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6937
7277
  }, null, 8, _hoisted_12)
6938
7278
  ])) : createCommentVNode("", true),
6939
7279
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filterColumns, (column) => {
6940
- return openBlock(), createElementBlock("td", {
6941
- key: column.id,
6942
- class: "dao-table-td",
6943
- style: normalizeStyle(_ctx.columnStyle(column.id))
7280
+ return openBlock(), createElementBlock(Fragment, {
7281
+ key: column.id
6944
7282
  }, [
6945
- column.id === "action" ? renderSlot(_ctx.$slots, `td-${column.id}`, {
7283
+ column.id === "action" ? (openBlock(), createElementBlock("td", {
6946
7284
  key: 0,
6947
- value: row[column.id],
6948
- row,
6949
- rowIndex: index2
6950
- }, () => [
6951
- createVNode(_component_dao_dropdown, {
6952
- placement: "bottom-end",
6953
- onClick: _cache[1] || (_cache[1] = withModifiers(() => {
6954
- }, ["stop"]))
6955
- }, {
6956
- menu: withCtx(() => [
6957
- renderSlot(_ctx.$slots, `td-${column.id}-menu`, {
6958
- value: row[column.id],
6959
- row,
6960
- rowIndex: index2
6961
- })
6962
- ]),
6963
- default: withCtx(() => [
6964
- createVNode(_component_dao_button, {
6965
- size: "sm",
6966
- "icon-left": "icon_more",
6967
- type: "secondary"
6968
- })
6969
- ]),
6970
- _: 2
6971
- }, 1024)
6972
- ]) : renderSlot(_ctx.$slots, `td-${column.id}`, {
7285
+ class: "dao-table-td",
7286
+ style: normalizeStyle(_ctx.columnStyle(column.id))
7287
+ }, [
7288
+ renderSlot(_ctx.$slots, `td-${column.id}`, {
7289
+ value: row[column.id],
7290
+ row,
7291
+ rowIndex: index2
7292
+ }, () => [
7293
+ createVNode(_component_td_action, null, {
7294
+ default: withCtx(() => [
7295
+ renderSlot(_ctx.$slots, `td-${column.id}-menu`, {
7296
+ value: row[column.id],
7297
+ row,
7298
+ rowIndex: index2
7299
+ })
7300
+ ]),
7301
+ _: 2
7302
+ }, 1024)
7303
+ ])
7304
+ ], 4)) : (openBlock(), createElementBlock("td", {
6973
7305
  key: 1,
6974
- value: row[column.id],
6975
- row,
6976
- rowIndex: index2
6977
- }, () => [
6978
- createElementVNode("span", null, toDisplayString(row[column.id]), 1)
6979
- ])
6980
- ], 4);
7306
+ class: "dao-table-td",
7307
+ style: normalizeStyle(_ctx.columnStyle(column.id))
7308
+ }, [
7309
+ renderSlot(_ctx.$slots, `td-${column.id}`, {
7310
+ value: row[column.id],
7311
+ row,
7312
+ rowIndex: index2
7313
+ }, () => [
7314
+ createElementVNode("span", null, toDisplayString(_ctx.withDefaultValue(row[column.id])), 1)
7315
+ ])
7316
+ ], 4))
7317
+ ], 64);
6981
7318
  }), 128))
6982
7319
  ], 10, _hoisted_9),
6983
7320
  _ctx.expandable && _ctx.expandedRows.has(row) ? withDirectives((openBlock(), createElementBlock("tr", _hoisted_13, [
@@ -7005,9 +7342,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
7005
7342
  !_ctx.isEmpty && ((_a2 = _ctx.pageLayout) == null ? void 0 : _a2.length) ? (openBlock(), createBlock(_component_dao_pagination, {
7006
7343
  key: 0,
7007
7344
  "current-page": _ctx.currentPage,
7008
- "onUpdate:current-page": _cache[2] || (_cache[2] = ($event) => _ctx.currentPage = $event),
7345
+ "onUpdate:current-page": _cache[1] || (_cache[1] = ($event) => _ctx.currentPage = $event),
7009
7346
  "page-size": _ctx.pageSize,
7010
- "onUpdate:page-size": _cache[3] || (_cache[3] = ($event) => _ctx.pageSize = $event),
7347
+ "onUpdate:page-size": _cache[2] || (_cache[2] = ($event) => _ctx.pageSize = $event),
7011
7348
  "page-size-options": _ctx.pageSizeOptions,
7012
7349
  "page-format": _ctx.pageFormat,
7013
7350
  compact: _ctx.compact,
@@ -7015,19 +7352,19 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
7015
7352
  "total-format": _ctx.totalFormat,
7016
7353
  layout: _ctx.pageLayout,
7017
7354
  "page-sizer-width": _ctx.pageSizerWidth,
7018
- onNext: _cache[4] || (_cache[4] = ($event) => {
7355
+ onNext: _cache[3] || (_cache[3] = ($event) => {
7019
7356
  _ctx.$emit("next", $event);
7020
7357
  _ctx.clearState();
7021
7358
  }),
7022
- onPrev: _cache[5] || (_cache[5] = ($event) => {
7359
+ onPrev: _cache[4] || (_cache[4] = ($event) => {
7023
7360
  _ctx.$emit("prev", $event);
7024
7361
  _ctx.clearState();
7025
7362
  }),
7026
- onPageChange: _cache[6] || (_cache[6] = ($event) => {
7363
+ onPageChange: _cache[5] || (_cache[5] = ($event) => {
7027
7364
  _ctx.$emit("pageChange", $event);
7028
7365
  _ctx.clearState();
7029
7366
  }),
7030
- onSizeChange: _cache[7] || (_cache[7] = ($event) => {
7367
+ onSizeChange: _cache[6] || (_cache[6] = ($event) => {
7031
7368
  _ctx.$emit("sizeChange", $event);
7032
7369
  _ctx.clearState();
7033
7370
  })
@@ -7037,9 +7374,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
7037
7374
  ])
7038
7375
  ], 2);
7039
7376
  }
7040
- var table = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5]]);
7377
+ var table = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]);
7041
7378
  var tabNav_scss_vue_type_style_index_0_src_lang = "";
7042
- const _sfc_main$5 = defineComponent({
7379
+ const _sfc_main$6 = defineComponent({
7043
7380
  name: "DaoTabNav",
7044
7381
  props: {
7045
7382
  type: {
@@ -7166,10 +7503,10 @@ const _sfc_main$5 = defineComponent({
7166
7503
  }
7167
7504
  });
7168
7505
  var tabs_scss_vue_type_style_index_0_src_lang = "";
7169
- const _sfc_main$4 = defineComponent({
7506
+ const _sfc_main$5 = defineComponent({
7170
7507
  name: "DaoTabs",
7171
7508
  components: {
7172
- TabNav: _sfc_main$5
7509
+ TabNav: _sfc_main$6
7173
7510
  },
7174
7511
  props: {
7175
7512
  type: {
@@ -7238,16 +7575,16 @@ const _sfc_main$4 = defineComponent({
7238
7575
  };
7239
7576
  }
7240
7577
  });
7241
- const _hoisted_1$3 = { class: "dao-tabs__nav__wrap" };
7242
- const _hoisted_2$2 = {
7578
+ const _hoisted_1$4 = { class: "dao-tabs__nav__wrap" };
7579
+ const _hoisted_2$3 = {
7243
7580
  key: 0,
7244
7581
  class: "dao-tabs__action"
7245
7582
  };
7246
- const _hoisted_3$1 = {
7583
+ const _hoisted_3$2 = {
7247
7584
  ref: "tabBody",
7248
7585
  class: "dao-tabs__body"
7249
7586
  };
7250
- function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
7587
+ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
7251
7588
  const _component_tab_nav = resolveComponent("tab-nav");
7252
7589
  return openBlock(), createElementBlock("div", {
7253
7590
  class: normalizeClass(["dao-tabs", ["dao-tabs--" + _ctx.type, _ctx.direction === "right" ? "dao-tabs--right" : ""]])
@@ -7255,7 +7592,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
7255
7592
  createElementVNode("div", {
7256
7593
  class: normalizeClass(["dao-tabs__header", "dao-tabs__header--" + _ctx.type])
7257
7594
  }, [
7258
- createElementVNode("div", _hoisted_1$3, [
7595
+ createElementVNode("div", _hoisted_1$4, [
7259
7596
  createVNode(_component_tab_nav, {
7260
7597
  type: _ctx.type,
7261
7598
  "tab-list": _ctx.tabList,
@@ -7264,18 +7601,18 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
7264
7601
  onClick: _ctx.onClick
7265
7602
  }, null, 8, ["type", "tab-list", "current-tab", "onUpdateValue", "onClick"])
7266
7603
  ]),
7267
- _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
7604
+ _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
7268
7605
  renderSlot(_ctx.$slots, "action")
7269
7606
  ])) : createCommentVNode("", true)
7270
7607
  ], 2),
7271
- createElementVNode("div", _hoisted_3$1, [
7608
+ createElementVNode("div", _hoisted_3$2, [
7272
7609
  renderSlot(_ctx.$slots, "default")
7273
7610
  ], 512)
7274
7611
  ], 2);
7275
7612
  }
7276
- var tabs = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
7613
+ var tabs = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
7277
7614
  var tabItem_scss_vue_type_style_index_0_src_lang = "";
7278
- const _sfc_main$3 = defineComponent({
7615
+ const _sfc_main$4 = defineComponent({
7279
7616
  name: "DaoTabItem",
7280
7617
  props: {
7281
7618
  label: {
@@ -7305,7 +7642,7 @@ const _sfc_main$3 = defineComponent({
7305
7642
  };
7306
7643
  }
7307
7644
  });
7308
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
7645
+ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
7309
7646
  return openBlock(), createElementBlock("div", {
7310
7647
  ref: "tabItem",
7311
7648
  class: normalizeClass(["dao-tab-item", {
@@ -7315,7 +7652,64 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
7315
7652
  renderSlot(_ctx.$slots, "default")
7316
7653
  ], 2);
7317
7654
  }
7318
- var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
7655
+ var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
7656
+ var tag_vue_vue_type_style_index_0_lang = "";
7657
+ const _sfc_main$3 = defineComponent({
7658
+ name: "DaoTag",
7659
+ components: {
7660
+ DaoIcon
7661
+ },
7662
+ props: {
7663
+ closable: {
7664
+ type: Boolean,
7665
+ default: false
7666
+ },
7667
+ separator: {
7668
+ type: String,
7669
+ default: ": "
7670
+ },
7671
+ label: {
7672
+ type: String,
7673
+ default: ""
7674
+ },
7675
+ value: {
7676
+ type: String,
7677
+ default: ""
7678
+ }
7679
+ },
7680
+ emits: ["close"]
7681
+ });
7682
+ const _hoisted_1$3 = { class: "dao-tag" };
7683
+ const _hoisted_2$2 = { class: "dao-tag__key" };
7684
+ const _hoisted_3$1 = { class: "dao-tag__value" };
7685
+ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
7686
+ const _component_dao_icon = resolveComponent("dao-icon");
7687
+ return openBlock(), createElementBlock("span", _hoisted_1$3, [
7688
+ renderSlot(_ctx.$slots, "default", {}, () => [
7689
+ createElementVNode("span", null, [
7690
+ createElementVNode("span", _hoisted_2$2, [
7691
+ renderSlot(_ctx.$slots, "label", {}, () => [
7692
+ createTextVNode(toDisplayString(_ctx.label), 1)
7693
+ ]),
7694
+ createTextVNode(toDisplayString(_ctx.separator), 1)
7695
+ ]),
7696
+ createElementVNode("span", _hoisted_3$1, [
7697
+ renderSlot(_ctx.$slots, "value", {}, () => [
7698
+ createTextVNode(toDisplayString(_ctx.value), 1)
7699
+ ])
7700
+ ])
7701
+ ])
7702
+ ]),
7703
+ _ctx.closable ? (openBlock(), createBlock(_component_dao_icon, {
7704
+ key: 0,
7705
+ class: "dao-tag__close-icon",
7706
+ name: "icon-close",
7707
+ "use-font": "",
7708
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
7709
+ })) : createCommentVNode("", true)
7710
+ ]);
7711
+ }
7712
+ var tag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
7319
7713
  const transferProps = {
7320
7714
  source: {
7321
7715
  type: Array,
@@ -7462,7 +7856,7 @@ const _sfc_main$1 = defineComponent({
7462
7856
  return String(label).toLowerCase().includes(query.value.toLowerCase());
7463
7857
  }));
7464
7858
  const hasNoMatch = computed(() => query.value.length > 0 && filteredData.value.length === 0);
7465
- const isEmpty = computed(() => hasNoMatch.value || props.data.length === 0);
7859
+ const isEmpty2 = computed(() => hasNoMatch.value || props.data.length === 0);
7466
7860
  const hasFooter = computed(() => {
7467
7861
  var _a2;
7468
7862
  return !!((_a2 = slots.footer) == null ? void 0 : _a2.call(slots));
@@ -7492,7 +7886,7 @@ const _sfc_main$1 = defineComponent({
7492
7886
  descProp,
7493
7887
  filteredData,
7494
7888
  isSource,
7495
- isEmpty,
7889
+ isEmpty: isEmpty2,
7496
7890
  hasFooter,
7497
7891
  handleEvent
7498
7892
  };
@@ -7823,7 +8217,7 @@ var components = /* @__PURE__ */ Object.freeze({
7823
8217
  DialogHeader,
7824
8218
  Drawer: drawer,
7825
8219
  Dropdown: DaoDropdown,
7826
- DropdownMenu: dropdownMenu,
8220
+ DropdownMenu: DaoDropdownMenu,
7827
8221
  DropdownItem: dropdownItem,
7828
8222
  Expansion: expansion,
7829
8223
  ExpansionItem: expansionItem,
@@ -7841,7 +8235,7 @@ var components = /* @__PURE__ */ Object.freeze({
7841
8235
  NavItem: navItem,
7842
8236
  NavSub: navSub,
7843
8237
  Pagination: DaoPagination,
7844
- Popover: _sfc_main$t,
8238
+ Popover: _sfc_main$v,
7845
8239
  Popper: DaoPopper,
7846
8240
  Progress: progress,
7847
8241
  Radio: radio,
@@ -7851,9 +8245,10 @@ var components = /* @__PURE__ */ Object.freeze({
7851
8245
  Switch: _switch,
7852
8246
  Table: table,
7853
8247
  Tabs: tabs,
7854
- TabNav: _sfc_main$5,
8248
+ TabNav: _sfc_main$6,
7855
8249
  TabItem: tabItem,
7856
- Tooltip: _sfc_main$u,
8250
+ Tag: tag,
8251
+ Tooltip: _sfc_main$w,
7857
8252
  DaoEllipsis,
7858
8253
  Transfer: transfer,
7859
8254
  TransferPanel: transferPanel
@@ -7948,4 +8343,4 @@ var index = {
7948
8343
  install,
7949
8344
  locale
7950
8345
  };
7951
- export { DaoActionIcon 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, DaoEllipsis, dialog as Dialog, DialogFooter, DialogHeader, drawer as Drawer, DaoDropdown as Dropdown, dropdownItem as DropdownItem, dropdownMenu as DropdownMenu, expansion as Expansion, expansionItem as ExpansionItem, form as Form, formGroup as FormGroup, formItem as FormItem, header as Header, DaoIcon as Icon, DaoInput 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$t as Popover, DaoPopper as Popper, progress as Progress, radio as Radio, radioGroup as RadioGroup, DaoSelect as Select, _switch as Switch, tabItem as TabItem, _sfc_main$5 as TabNav, table as Table, tabs as Tabs, _sfc_main$u as Tooltip, transfer as Transfer, transferPanel as TransferPanel, index as default };
8346
+ export { DaoActionIcon 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, DaoEllipsis, dialog as Dialog, DialogFooter, DialogHeader, drawer as Drawer, DaoDropdown as Dropdown, dropdownItem as DropdownItem, DaoDropdownMenu as DropdownMenu, expansion as Expansion, expansionItem as ExpansionItem, form as Form, formGroup as FormGroup, formItem as FormItem, header as Header, DaoIcon as Icon, DaoInput 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$v as Popover, DaoPopper as Popper, progress as Progress, radio as Radio, radioGroup as RadioGroup, DaoSelect as Select, _switch as Switch, tabItem as TabItem, _sfc_main$6 as TabNav, table as Table, tabs as Tabs, tag as Tag, _sfc_main$w as Tooltip, transfer as Transfer, transferPanel as TransferPanel, index as default };