@dao-style/core 0.0.1-beta.16 → 0.0.1-beta.19

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.
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
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, renderList, getCurrentScope, onScopeDispose, vModelText, onUnmounted, h } from "vue";
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, renderList, getCurrentScope, onScopeDispose, vModelText, onUnmounted, h, resolveDynamicComponent, createSlots } from "vue";
21
21
  import { isArray, isSet, looseIndexOf, looseEqual, isFunction, NOOP } from "@vue/shared";
22
22
  var common = "";
23
23
  var actionIcon_vue_vue_type_style_index_0_lang = "";
@@ -27,7 +27,7 @@ var _export_sfc = (sfc, props) => {
27
27
  }
28
28
  return sfc;
29
29
  };
30
- const _sfc_main$I = defineComponent({
30
+ const _sfc_main$M = defineComponent({
31
31
  name: "DaoActionIcon",
32
32
  props: {
33
33
  name: {
@@ -56,8 +56,8 @@ const _sfc_main$I = defineComponent({
56
56
  };
57
57
  }
58
58
  });
59
- const _hoisted_1$w = ["disabled"];
60
- function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
59
+ const _hoisted_1$A = ["disabled"];
60
+ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
61
61
  return openBlock(), createElementBlock("button", {
62
62
  class: normalizeClass(["dao-action-icon", `dao-action-icon--type-${_ctx.type}`]),
63
63
  disabled: _ctx.realDisabled,
@@ -69,9 +69,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
69
69
  class: normalizeClass(["dao-action-icon__iconfont", _ctx.name])
70
70
  }, null, 2)) : createCommentVNode("", true)
71
71
  ])
72
- ], 10, _hoisted_1$w);
72
+ ], 10, _hoisted_1$A);
73
73
  }
74
- var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$F]]);
74
+ var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$J]]);
75
75
  const BUTTON_TYPES = ["primary", "secondary", "tertiary", "ghost", "danger"];
76
76
  var buttonProps = {
77
77
  type: {
@@ -110,7 +110,7 @@ var buttonProps = {
110
110
  }
111
111
  };
112
112
  var icon_scss_vue_type_style_index_0_src_lang = "";
113
- const _sfc_main$H = defineComponent({
113
+ const _sfc_main$L = defineComponent({
114
114
  name: "DaoIcon",
115
115
  props: {
116
116
  name: {
@@ -123,28 +123,28 @@ const _sfc_main$H = defineComponent({
123
123
  }
124
124
  }
125
125
  });
126
- const _hoisted_1$v = {
126
+ const _hoisted_1$z = {
127
127
  key: 1,
128
128
  class: "dao-icon dao-svg-icon"
129
129
  };
130
- const _hoisted_2$l = ["xlink:href"];
131
- function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
130
+ const _hoisted_2$n = ["xlink:href"];
131
+ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
132
132
  return _ctx.useFont ? (openBlock(), createElementBlock("i", {
133
133
  key: 0,
134
134
  class: normalizeClass(["dao-icon dao-iconfont", _ctx.name])
135
- }, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$v, [
135
+ }, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$z, [
136
136
  createElementVNode("use", {
137
137
  "xlink:href": `#${_ctx.name}`
138
- }, null, 8, _hoisted_2$l)
138
+ }, null, 8, _hoisted_2$n)
139
139
  ]));
140
140
  }
141
- var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$E]]);
141
+ var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$I]]);
142
142
  var button_vue_vue_type_style_index_0_lang = "";
143
143
  const NO_ICON = Symbol(0);
144
144
  const RIGHT_ICON = Symbol(1);
145
145
  const LEFT_ICON = Symbol(2);
146
146
  const BOTH_ICON = Symbol(3);
147
- const _sfc_main$G = defineComponent({
147
+ const _sfc_main$K = defineComponent({
148
148
  name: "DaoButton",
149
149
  components: {
150
150
  DaoIcon
@@ -235,12 +235,12 @@ const _sfc_main$G = defineComponent({
235
235
  };
236
236
  }
237
237
  });
238
- const _hoisted_1$u = ["disabled"];
239
- const _hoisted_2$k = {
238
+ const _hoisted_1$y = ["disabled"];
239
+ const _hoisted_2$m = {
240
240
  key: 1,
241
241
  class: "dao-btn__text"
242
242
  };
243
- function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
243
+ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
244
244
  const _component_dao_icon = resolveComponent("dao-icon");
245
245
  return openBlock(), createElementBlock("button", {
246
246
  class: normalizeClass(_ctx.classList),
@@ -254,7 +254,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
254
254
  "use-font": _ctx.isIconLeftFont,
255
255
  name: _ctx.realIconLeft
256
256
  }, null, 8, ["class", "use-font", "name"])) : createCommentVNode("", true),
257
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$k, [
257
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$m, [
258
258
  renderSlot(_ctx.$slots, "default")
259
259
  ])) : createCommentVNode("", true),
260
260
  _ctx.realIconRight ? (openBlock(), createBlock(_component_dao_icon, {
@@ -264,22 +264,22 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
264
264
  name: _ctx.realIconRight
265
265
  }, null, 8, ["class", "use-font", "name"])) : createCommentVNode("", true)
266
266
  ], 64))
267
- ], 10, _hoisted_1$u);
267
+ ], 10, _hoisted_1$y);
268
268
  }
269
- var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$D]]);
269
+ var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$H]]);
270
270
  var buttonGroup_vue_vue_type_style_index_0_lang = "";
271
- const _sfc_main$F = defineComponent({
271
+ const _sfc_main$J = defineComponent({
272
272
  name: "DaoButtonGroup"
273
273
  });
274
- const _hoisted_1$t = { class: "dao-btn-group" };
275
- function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
276
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
274
+ const _hoisted_1$x = { class: "dao-btn-group" };
275
+ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
276
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
277
277
  renderSlot(_ctx.$slots, "default")
278
278
  ]);
279
279
  }
280
- var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$C]]);
280
+ var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$G]]);
281
281
  var card_scss_vue_type_style_index_0_src_lang = "";
282
- const _sfc_main$E = defineComponent({
282
+ const _sfc_main$I = defineComponent({
283
283
  name: "DaoCard",
284
284
  components: {
285
285
  DaoIcon
@@ -307,25 +307,25 @@ const _sfc_main$E = defineComponent({
307
307
  }
308
308
  }
309
309
  });
310
- const _hoisted_1$s = {
310
+ const _hoisted_1$w = {
311
311
  key: 0,
312
312
  class: "dao-card-header"
313
313
  };
314
- const _hoisted_2$j = {
314
+ const _hoisted_2$l = {
315
315
  key: 0,
316
316
  class: "dao-card-header-item"
317
317
  };
318
- const _hoisted_3$c = { class: "dao-card-header-item dao-card-header-title" };
318
+ const _hoisted_3$e = { class: "dao-card-header-item dao-card-header-title" };
319
319
  const _hoisted_4$a = { class: "dao-card-header-item dao-card-header-action" };
320
- function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
320
+ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
321
321
  const _component_dao_icon = resolveComponent("dao-icon");
322
322
  return openBlock(), createElementBlock("div", {
323
323
  class: normalizeClass(["dao-card", `dao-card--${_ctx.type}`])
324
324
  }, [
325
- _ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
325
+ _ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
326
326
  renderSlot(_ctx.$slots, "header", {}, () => [
327
327
  renderSlot(_ctx.$slots, "header-prefix"),
328
- _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
328
+ _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$l, [
329
329
  renderSlot(_ctx.$slots, "icon", {}, () => [
330
330
  _ctx.icon ? (openBlock(), createBlock(_component_dao_icon, {
331
331
  key: 0,
@@ -335,7 +335,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
335
335
  }, null, 8, ["name", "use-font"])) : createCommentVNode("", true)
336
336
  ])
337
337
  ])) : createCommentVNode("", true),
338
- createElementVNode("div", _hoisted_3$c, [
338
+ createElementVNode("div", _hoisted_3$e, [
339
339
  renderSlot(_ctx.$slots, "title", {}, () => [
340
340
  createTextVNode(toDisplayString(_ctx.title), 1)
341
341
  ])
@@ -362,22 +362,22 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
362
362
  ], 2)
363
363
  ], 2);
364
364
  }
365
- var card = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$B]]);
365
+ var card = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$F]]);
366
366
  var cardItem_scss_vue_type_style_index_0_src_lang = "";
367
- const _sfc_main$D = defineComponent({
367
+ const _sfc_main$H = defineComponent({
368
368
  name: "DaoCardItem"
369
369
  });
370
- const _hoisted_1$r = { class: "dao-card-item" };
371
- function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
372
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
370
+ const _hoisted_1$v = { class: "dao-card-item" };
371
+ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
372
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
373
373
  renderSlot(_ctx.$slots, "default")
374
374
  ]);
375
375
  }
376
- var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$A]]);
376
+ var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$E]]);
377
377
  function isNullish(val) {
378
378
  return val === null || val === void 0;
379
379
  }
380
- const placements$1 = [
380
+ const placements$2 = [
381
381
  "auto",
382
382
  "auto-start",
383
383
  "auto-end",
@@ -417,7 +417,7 @@ function getUnrefItem(set, item) {
417
417
  index: index2
418
418
  };
419
419
  }
420
- const _sfc_main$C = defineComponent({
420
+ const _sfc_main$G = defineComponent({
421
421
  name: "DaoCheckbox",
422
422
  props: {
423
423
  modelValue: {
@@ -557,9 +557,9 @@ const _sfc_main$C = defineComponent({
557
557
  }
558
558
  }
559
559
  });
560
- const _hoisted_1$q = ["disabled", "indeterminate", "checked"];
561
- const _hoisted_2$i = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
562
- const _hoisted_3$b = {
560
+ const _hoisted_1$u = ["disabled", "indeterminate", "checked"];
561
+ const _hoisted_2$k = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
562
+ const _hoisted_3$d = {
563
563
  key: 0,
564
564
  class: "dao-checkbox__label"
565
565
  };
@@ -571,7 +571,7 @@ const _hoisted_5$7 = {
571
571
  key: 1,
572
572
  class: "dao-checkbox__label-helper"
573
573
  };
574
- function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
574
+ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
575
575
  return openBlock(), createElementBlock("label", {
576
576
  class: normalizeClass(_ctx.wrapClasses)
577
577
  }, [
@@ -586,10 +586,10 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
586
586
  }, _ctx.$attrs, {
587
587
  checked: _ctx.currentChecked,
588
588
  onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
589
- }), null, 16, _hoisted_1$q),
590
- _hoisted_2$i
589
+ }), null, 16, _hoisted_1$u),
590
+ _hoisted_2$k
591
591
  ], 2),
592
- _ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$b, [
592
+ _ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$d, [
593
593
  _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$9, [
594
594
  renderSlot(_ctx.$slots, "default")
595
595
  ])) : createCommentVNode("", true),
@@ -601,9 +601,9 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
601
601
  ])) : createCommentVNode("", true)
602
602
  ], 2);
603
603
  }
604
- var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$z]]);
604
+ var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$D]]);
605
605
  var checkboxGroup_vue_vue_type_style_index_0_lang = "";
606
- const _sfc_main$B = defineComponent({
606
+ const _sfc_main$F = defineComponent({
607
607
  name: "DaoCheckboxGroup",
608
608
  props: {
609
609
  modelValue: {
@@ -637,15 +637,15 @@ const _sfc_main$B = defineComponent({
637
637
  };
638
638
  }
639
639
  });
640
- function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
640
+ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
641
641
  return openBlock(), createElementBlock("div", {
642
642
  class: normalizeClass(_ctx.checkboxGroupClasses)
643
643
  }, [
644
644
  renderSlot(_ctx.$slots, "default")
645
645
  ], 2);
646
646
  }
647
- var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$y]]);
648
- const _sfc_main$A = defineComponent({
647
+ var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$C]]);
648
+ const _sfc_main$E = defineComponent({
649
649
  name: "DaoDialogHeader",
650
650
  components: {
651
651
  DaoButton
@@ -668,10 +668,10 @@ const _sfc_main$A = defineComponent({
668
668
  };
669
669
  }
670
670
  });
671
- const _hoisted_1$p = { class: "dao-dialog__header" };
672
- function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
671
+ const _hoisted_1$t = { class: "dao-dialog__header" };
672
+ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
673
673
  const _component_dao_button = resolveComponent("dao-button");
674
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
674
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
675
675
  renderSlot(_ctx.$slots, "default", {}, () => [
676
676
  createElementVNode("span", null, [
677
677
  renderSlot(_ctx.$slots, "title", {}, () => [
@@ -688,8 +688,8 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
688
688
  ])
689
689
  ]);
690
690
  }
691
- var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
692
- const _sfc_main$z = defineComponent({
691
+ var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$B]]);
692
+ const _sfc_main$D = defineComponent({
693
693
  name: "DaoDialogFooter",
694
694
  components: {
695
695
  DaoButton
@@ -725,10 +725,10 @@ const _sfc_main$z = defineComponent({
725
725
  };
726
726
  }
727
727
  });
728
- const _hoisted_1$o = { class: "dao-dialog__footer" };
729
- function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
728
+ const _hoisted_1$s = { class: "dao-dialog__footer" };
729
+ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
730
730
  const _component_dao_button = resolveComponent("dao-button");
731
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
731
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
732
732
  renderSlot(_ctx.$slots, "default", {}, () => [
733
733
  createVNode(_component_dao_button, {
734
734
  type: "ghost",
@@ -753,13 +753,13 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
753
753
  ])
754
754
  ]);
755
755
  }
756
- var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
756
+ var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$A]]);
757
757
  var dialog_scss_vue_type_style_index_0_src_lang = "";
758
758
  const DIALOG_NUM_ATTR = "dao-dialog__num";
759
759
  const DIALOG_MINIMUM_PADDING = "20px";
760
760
  const DIALOG_DEFAULT_PADDING_TOP = "100px";
761
761
  const DIALOG_DEFAULT_PADDING_BOTTOM = "20px";
762
- const _sfc_main$y = defineComponent({
762
+ const _sfc_main$C = defineComponent({
763
763
  name: "DaoDialog",
764
764
  components: {
765
765
  DialogHeader,
@@ -942,8 +942,8 @@ const _sfc_main$y = defineComponent({
942
942
  };
943
943
  }
944
944
  });
945
- const _hoisted_1$n = { class: "dao-dialog__body" };
946
- function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
945
+ const _hoisted_1$r = { class: "dao-dialog__body" };
946
+ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
947
947
  const _component_dialog_header = resolveComponent("dialog-header");
948
948
  const _component_dialog_footer = resolveComponent("dialog-footer");
949
949
  return openBlock(), createBlock(Transition, {
@@ -978,7 +978,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
978
978
  ]),
979
979
  _: 3
980
980
  }, 8, ["title", "show-close", "onClose"])) : createCommentVNode("", true),
981
- createElementVNode("div", _hoisted_1$n, [
981
+ createElementVNode("div", _hoisted_1$r, [
982
982
  renderSlot(_ctx.$slots, "default")
983
983
  ]),
984
984
  _ctx.footer ? (openBlock(), createBlock(_component_dialog_footer, {
@@ -1000,7 +1000,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
1000
1000
  _: 3
1001
1001
  }, 8, ["onBeforeEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"]);
1002
1002
  }
1003
- var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
1003
+ var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$z]]);
1004
1004
  const drawerProps = {
1005
1005
  modelValue: {
1006
1006
  type: Boolean,
@@ -1070,7 +1070,7 @@ const trapTabKey = (e, firstTab, lastTab) => {
1070
1070
  }
1071
1071
  };
1072
1072
  var drawer_vue_vue_type_style_index_0_lang = "";
1073
- const _sfc_main$x = defineComponent({
1073
+ const _sfc_main$B = defineComponent({
1074
1074
  name: "DaoDrawer",
1075
1075
  components: {
1076
1076
  DaoButton,
@@ -1178,19 +1178,19 @@ const _sfc_main$x = defineComponent({
1178
1178
  };
1179
1179
  }
1180
1180
  });
1181
- const _hoisted_1$m = { class: "dao-drawer__content" };
1182
- const _hoisted_2$h = {
1181
+ const _hoisted_1$q = { class: "dao-drawer__content" };
1182
+ const _hoisted_2$j = {
1183
1183
  key: 0,
1184
1184
  class: "dao-drawer__header"
1185
1185
  };
1186
- const _hoisted_3$a = { class: "dao-drawer__header-group" };
1186
+ const _hoisted_3$c = { class: "dao-drawer__header-group" };
1187
1187
  const _hoisted_4$8 = { class: "dao-drawer__body" };
1188
1188
  const _hoisted_5$6 = {
1189
1189
  key: 1,
1190
1190
  class: "dao-drawer__footer"
1191
1191
  };
1192
1192
  const _hoisted_6$4 = { class: "dao-drawer__footer-group" };
1193
- function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
1193
+ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
1194
1194
  const _component_dao_action_icon = resolveComponent("dao-action-icon");
1195
1195
  const _component_dao_button = resolveComponent("dao-button");
1196
1196
  return openBlock(), createElementBlock(Fragment, null, [
@@ -1222,10 +1222,10 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
1222
1222
  withDirectives(createElementVNode("div", {
1223
1223
  class: normalizeClass(_ctx.contentClassList)
1224
1224
  }, [
1225
- createElementVNode("div", _hoisted_1$m, [
1226
- !_ctx.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
1225
+ createElementVNode("div", _hoisted_1$q, [
1226
+ !_ctx.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
1227
1227
  renderSlot(_ctx.$slots, "header", {}, () => [
1228
- createElementVNode("div", _hoisted_3$a, [
1228
+ createElementVNode("div", _hoisted_3$c, [
1229
1229
  createElementVNode("span", null, toDisplayString(_ctx.title), 1),
1230
1230
  !_ctx.hideCloseIcon ? (openBlock(), createBlock(_component_dao_action_icon, {
1231
1231
  key: 0,
@@ -1273,7 +1273,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
1273
1273
  ], 34)
1274
1274
  ], 64);
1275
1275
  }
1276
- var drawer = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
1276
+ var drawer = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$y]]);
1277
1277
  var top = "top";
1278
1278
  var bottom = "bottom";
1279
1279
  var right = "right";
@@ -1289,7 +1289,7 @@ var reference = "reference";
1289
1289
  var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) {
1290
1290
  return acc.concat([placement + "-" + start, placement + "-" + end]);
1291
1291
  }, []);
1292
- var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
1292
+ var placements$1 = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
1293
1293
  return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
1294
1294
  }, []);
1295
1295
  var beforeRead = "beforeRead";
@@ -1959,16 +1959,16 @@ function computeAutoPlacement(state, options) {
1959
1959
  if (options === void 0) {
1960
1960
  options = {};
1961
1961
  }
1962
- var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
1962
+ var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements$1 : _options$allowedAutoP;
1963
1963
  var variation = getVariation(placement);
1964
- var placements$12 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
1964
+ var placements2 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
1965
1965
  return getVariation(placement2) === variation;
1966
1966
  }) : basePlacements;
1967
- var allowedPlacements = placements$12.filter(function(placement2) {
1967
+ var allowedPlacements = placements2.filter(function(placement2) {
1968
1968
  return allowedAutoPlacements.indexOf(placement2) >= 0;
1969
1969
  });
1970
1970
  if (allowedPlacements.length === 0) {
1971
- allowedPlacements = placements$12;
1971
+ allowedPlacements = placements2;
1972
1972
  }
1973
1973
  var overflows = allowedPlacements.reduce(function(acc, placement2) {
1974
1974
  acc[placement2] = detectOverflow(state, {
@@ -2106,7 +2106,7 @@ function distanceAndSkiddingToXY(placement, rects, offset2) {
2106
2106
  function offset(_ref2) {
2107
2107
  var state = _ref2.state, options = _ref2.options, name = _ref2.name;
2108
2108
  var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
2109
- var data = placements.reduce(function(acc, placement) {
2109
+ var data = placements$1.reduce(function(acc, placement) {
2110
2110
  acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
2111
2111
  return acc;
2112
2112
  }, {});
@@ -2472,7 +2472,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
2472
2472
  var createPopper = /* @__PURE__ */ popperGenerator({
2473
2473
  defaultModifiers
2474
2474
  });
2475
- const _sfc_main$w = defineComponent({
2475
+ const _sfc_main$A = defineComponent({
2476
2476
  name: "PopperContent",
2477
2477
  props: {
2478
2478
  popperId: {
@@ -2520,12 +2520,12 @@ const _sfc_main$w = defineComponent({
2520
2520
  };
2521
2521
  }
2522
2522
  });
2523
- const _hoisted_1$l = ["id", "aria-hidden", "tabindex"];
2524
- const _hoisted_2$g = {
2523
+ const _hoisted_1$p = ["id", "aria-hidden", "tabindex"];
2524
+ const _hoisted_2$i = {
2525
2525
  ref: "arrow",
2526
2526
  class: "dao-popper-arrow"
2527
2527
  };
2528
- const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("svg", {
2528
+ const _hoisted_3$b = /* @__PURE__ */ createElementVNode("svg", {
2529
2529
  class: "dao-popper-arrow-viewbox",
2530
2530
  viewBox: "0 0 15 15"
2531
2531
  }, [
@@ -2540,9 +2540,9 @@ const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("svg", {
2540
2540
  })
2541
2541
  ], -1);
2542
2542
  const _hoisted_4$7 = [
2543
- _hoisted_3$9
2543
+ _hoisted_3$b
2544
2544
  ];
2545
- function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
2545
+ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
2546
2546
  return openBlock(), createElementBlock("div", {
2547
2547
  id: _ctx.popperId,
2548
2548
  ref: "popover",
@@ -2561,12 +2561,12 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
2561
2561
  }, [
2562
2562
  renderSlot(_ctx.$slots, "default")
2563
2563
  ], 4),
2564
- withDirectives(createElementVNode("div", _hoisted_2$g, _hoisted_4$7, 512), [
2564
+ withDirectives(createElementVNode("div", _hoisted_2$i, _hoisted_4$7, 512), [
2565
2565
  [vShow, _ctx.visibleArrow]
2566
2566
  ])
2567
- ], 42, _hoisted_1$l);
2567
+ ], 42, _hoisted_1$p);
2568
2568
  }
2569
- var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$t]]);
2569
+ var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
2570
2570
  var PopperProps = {
2571
2571
  modelValue: {
2572
2572
  type: Boolean,
@@ -2599,7 +2599,7 @@ var PopperProps = {
2599
2599
  placement: {
2600
2600
  type: String,
2601
2601
  default: "bottom",
2602
- validator: (value) => placements$1.includes(value)
2602
+ validator: (value) => placements$2.includes(value)
2603
2603
  },
2604
2604
  trigger: {
2605
2605
  type: [String, Array],
@@ -2672,7 +2672,7 @@ function getActualRoot(app) {
2672
2672
  }
2673
2673
  return internalRoot;
2674
2674
  }
2675
- const _sfc_main$v = defineComponent({
2675
+ const _sfc_main$z = defineComponent({
2676
2676
  name: "DaoPopper",
2677
2677
  components: {
2678
2678
  PopperContent
@@ -3043,7 +3043,7 @@ const _sfc_main$v = defineComponent({
3043
3043
  };
3044
3044
  }
3045
3045
  });
3046
- function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
3046
+ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
3047
3047
  const _component_popper_content = resolveComponent("popper-content");
3048
3048
  return openBlock(), createElementBlock("div", {
3049
3049
  ref: "reference",
@@ -3085,8 +3085,8 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
3085
3085
  ], 8, ["to", "disabled"]))
3086
3086
  ], 2);
3087
3087
  }
3088
- var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
3089
- const _sfc_main$u = defineComponent({
3088
+ var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
3089
+ const _sfc_main$y = defineComponent({
3090
3090
  name: "DaoDropdown",
3091
3091
  components: {
3092
3092
  DaoPopper: Popper
@@ -3104,7 +3104,7 @@ const _sfc_main$u = defineComponent({
3104
3104
  placement: {
3105
3105
  type: String,
3106
3106
  default: "bottom",
3107
- validator: (value) => placements$1.includes(value)
3107
+ validator: (value) => placements$2.includes(value)
3108
3108
  },
3109
3109
  offset: {
3110
3110
  type: Number,
@@ -3142,8 +3142,8 @@ const _sfc_main$u = defineComponent({
3142
3142
  };
3143
3143
  }
3144
3144
  });
3145
- const _hoisted_1$k = { tabindex: "0" };
3146
- function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3145
+ const _hoisted_1$o = { tabindex: "0" };
3146
+ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
3147
3147
  const _component_dao_popper = resolveComponent("dao-popper");
3148
3148
  return openBlock(), createBlock(_component_dao_popper, {
3149
3149
  ref: "popper",
@@ -3160,27 +3160,27 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3160
3160
  renderSlot(_ctx.$slots, "menu")
3161
3161
  ]),
3162
3162
  default: withCtx(() => [
3163
- createElementVNode("div", _hoisted_1$k, [
3163
+ createElementVNode("div", _hoisted_1$o, [
3164
3164
  renderSlot(_ctx.$slots, "default")
3165
3165
  ])
3166
3166
  ]),
3167
3167
  _: 3
3168
3168
  }, 8, ["placement", "append-to", "trigger", "offset", "model-value"]);
3169
3169
  }
3170
- var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$r]]);
3170
+ var DaoDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
3171
3171
  var dropdownMenu_vue_vue_type_style_index_0_lang = "";
3172
- const _sfc_main$t = defineComponent({
3172
+ const _sfc_main$x = defineComponent({
3173
3173
  name: "DaoDropdownMenu"
3174
3174
  });
3175
- const _hoisted_1$j = { class: "dao-dropdown-menu" };
3176
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
3177
- return openBlock(), createElementBlock("ul", _hoisted_1$j, [
3175
+ const _hoisted_1$n = { class: "dao-dropdown-menu" };
3176
+ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
3177
+ return openBlock(), createElementBlock("ul", _hoisted_1$n, [
3178
3178
  renderSlot(_ctx.$slots, "default")
3179
3179
  ]);
3180
3180
  }
3181
- var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
3181
+ var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
3182
3182
  var dropdownItem_vue_vue_type_style_index_0_lang = "";
3183
- const _sfc_main$s = defineComponent({
3183
+ const _sfc_main$w = defineComponent({
3184
3184
  name: "DaoDropdownItem",
3185
3185
  props: {
3186
3186
  type: {
@@ -3229,12 +3229,12 @@ const _sfc_main$s = defineComponent({
3229
3229
  };
3230
3230
  }
3231
3231
  });
3232
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
3232
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
3233
3233
  return openBlock(), createElementBlock("li", mergeProps({ class: _ctx.classList }, _ctx.itemAttrs), [
3234
3234
  _ctx.type !== "divider" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
3235
3235
  ], 16);
3236
3236
  }
3237
- var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
3237
+ var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$t]]);
3238
3238
  const expansionProps = {
3239
3239
  modelValue: {
3240
3240
  type: [String, Symbol, Array]
@@ -3259,7 +3259,7 @@ const expansionItemProps = {
3259
3259
  }
3260
3260
  };
3261
3261
  var expansion_vue_vue_type_style_index_0_lang = "";
3262
- const _sfc_main$r = defineComponent({
3262
+ const _sfc_main$v = defineComponent({
3263
3263
  name: "DaoExpansion",
3264
3264
  props: expansionProps,
3265
3265
  emits: ["update:modelValue", "change"],
@@ -3329,15 +3329,15 @@ const _sfc_main$r = defineComponent({
3329
3329
  };
3330
3330
  }
3331
3331
  });
3332
- const _hoisted_1$i = { class: "dao-expansion" };
3333
- function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
3334
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
3332
+ const _hoisted_1$m = { class: "dao-expansion" };
3333
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
3334
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
3335
3335
  renderSlot(_ctx.$slots, "default")
3336
3336
  ]);
3337
3337
  }
3338
- var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
3338
+ var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
3339
3339
  var expansionItem_vue_vue_type_style_index_0_lang = "";
3340
- const _sfc_main$q = defineComponent({
3340
+ const _sfc_main$u = defineComponent({
3341
3341
  name: "DaoExpansionItem",
3342
3342
  components: {
3343
3343
  DaoIcon
@@ -3412,13 +3412,13 @@ const _sfc_main$q = defineComponent({
3412
3412
  };
3413
3413
  }
3414
3414
  });
3415
- const _hoisted_1$h = { class: "dao-expansion-item-icon-container" };
3416
- const _hoisted_2$f = { class: "dao-expansion-item-title-container" };
3417
- const _hoisted_3$8 = { class: "dao-expansion-item-title dao-exp-ellipsis" };
3415
+ const _hoisted_1$l = { class: "dao-expansion-item-icon-container" };
3416
+ const _hoisted_2$h = { class: "dao-expansion-item-title-container" };
3417
+ const _hoisted_3$a = { class: "dao-expansion-item-title dao-exp-ellipsis" };
3418
3418
  const _hoisted_4$6 = { class: "dao-expansion-item-description dao-exp-ellipsis" };
3419
3419
  const _hoisted_5$5 = { class: "dao-expansion-item-content-container" };
3420
3420
  const _hoisted_6$3 = { class: "dao-expansion-item-content" };
3421
- function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
3421
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3422
3422
  const _component_dao_icon = resolveComponent("dao-icon");
3423
3423
  return openBlock(), createElementBlock("div", {
3424
3424
  class: normalizeClass(["dao-expansion-item", {
@@ -3429,15 +3429,15 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
3429
3429
  class: "dao-expansion-item-header",
3430
3430
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onItemClick && _ctx.onItemClick(...args))
3431
3431
  }, [
3432
- createElementVNode("div", _hoisted_1$h, [
3432
+ createElementVNode("div", _hoisted_1$l, [
3433
3433
  createVNode(_component_dao_icon, {
3434
3434
  name: "icon-dropdown-line",
3435
3435
  class: "dao-expansion-item-icon",
3436
3436
  "use-font": ""
3437
3437
  })
3438
3438
  ]),
3439
- createElementVNode("div", _hoisted_2$f, [
3440
- createElementVNode("div", _hoisted_3$8, [
3439
+ createElementVNode("div", _hoisted_2$h, [
3440
+ createElementVNode("div", _hoisted_3$a, [
3441
3441
  renderSlot(_ctx.$slots, "title", {}, () => [
3442
3442
  createTextVNode(toDisplayString(_ctx.title), 1)
3443
3443
  ])
@@ -3479,9 +3479,9 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
3479
3479
  }, 8, ["onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
3480
3480
  ], 2);
3481
3481
  }
3482
- var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
3482
+ var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$r]]);
3483
3483
  var form_vue_vue_type_style_index_0_lang = "";
3484
- const _sfc_main$p = defineComponent({
3484
+ const _sfc_main$t = defineComponent({
3485
3485
  name: "DaoForm",
3486
3486
  props: {
3487
3487
  type: {
@@ -3499,7 +3499,7 @@ const _sfc_main$p = defineComponent({
3499
3499
  provide(formLabelWidthKey, labelWidth.value);
3500
3500
  }
3501
3501
  });
3502
- function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
3502
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
3503
3503
  return openBlock(), createElementBlock("div", {
3504
3504
  class: normalizeClass([
3505
3505
  "dao-form",
@@ -3521,7 +3521,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
3521
3521
  } })
3522
3522
  ], 2);
3523
3523
  }
3524
- var form = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
3524
+ var form = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
3525
3525
  var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
3526
3526
  offset: {
3527
3527
  type: [Number, String],
@@ -3529,16 +3529,16 @@ var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
3529
3529
  }
3530
3530
  });
3531
3531
  var tooltip_scss_vue_type_style_index_0_src_lang = "";
3532
- const _sfc_main$o = defineComponent(__spreadProps(__spreadValues({}, Popper), {
3532
+ const _sfc_main$s = defineComponent(__spreadProps(__spreadValues({}, Popper), {
3533
3533
  name: "DaoTooltip",
3534
3534
  props: tooltipProps,
3535
3535
  daoPopperTheme: "dao-tooltip"
3536
3536
  }));
3537
3537
  var formItem_vue_vue_type_style_index_0_lang = "";
3538
- const _sfc_main$n = defineComponent({
3538
+ const _sfc_main$r = defineComponent({
3539
3539
  name: "DaoFormItem",
3540
3540
  components: {
3541
- DaoTooltip: _sfc_main$o
3541
+ DaoTooltip: _sfc_main$s
3542
3542
  },
3543
3543
  props: {
3544
3544
  label: {
@@ -3587,13 +3587,13 @@ const _sfc_main$n = defineComponent({
3587
3587
  };
3588
3588
  }
3589
3589
  });
3590
- const _hoisted_1$g = {
3590
+ const _hoisted_1$k = {
3591
3591
  key: 0,
3592
3592
  class: "dao-form-item__label-icon-wrapper"
3593
3593
  };
3594
- const _hoisted_2$e = { class: "dao-form-item__label-icon-label" };
3595
- const _hoisted_3$7 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
3596
- function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
3594
+ const _hoisted_2$g = { class: "dao-form-item__label-icon-label" };
3595
+ const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
3596
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
3597
3597
  const _component_dao_tooltip = resolveComponent("dao-tooltip");
3598
3598
  return openBlock(), createElementBlock("div", {
3599
3599
  class: normalizeClass(["dao-form-item", { "is-required": _ctx.required }])
@@ -3604,14 +3604,14 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
3604
3604
  }, [
3605
3605
  renderSlot(_ctx.$slots, "label", {}, () => [
3606
3606
  createTextVNode(toDisplayString(!_ctx.iconMessage ? _ctx.label : ""), 1),
3607
- !!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
3608
- createElementVNode("span", _hoisted_2$e, toDisplayString(_ctx.label), 1),
3607
+ !!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
3608
+ createElementVNode("span", _hoisted_2$g, toDisplayString(_ctx.label), 1),
3609
3609
  createVNode(_component_dao_tooltip, {
3610
3610
  content: _ctx.iconMessage,
3611
3611
  placement: "top"
3612
3612
  }, {
3613
3613
  default: withCtx(() => [
3614
- _hoisted_3$7
3614
+ _hoisted_3$9
3615
3615
  ]),
3616
3616
  _: 1
3617
3617
  }, 8, ["content"])
@@ -3626,9 +3626,9 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
3626
3626
  ], 4)
3627
3627
  ], 2);
3628
3628
  }
3629
- var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]);
3629
+ var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p]]);
3630
3630
  var formGroup_vue_vue_type_style_index_0_lang = "";
3631
- const _sfc_main$m = defineComponent({
3631
+ const _sfc_main$q = defineComponent({
3632
3632
  name: "DaoFormGroup",
3633
3633
  props: {
3634
3634
  title: {
@@ -3637,11 +3637,11 @@ const _sfc_main$m = defineComponent({
3637
3637
  }
3638
3638
  }
3639
3639
  });
3640
- const _hoisted_1$f = { class: "dao-form-group" };
3641
- const _hoisted_2$d = { class: "dao-form-group__title" };
3642
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
3643
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
3644
- createElementVNode("div", _hoisted_2$d, [
3640
+ const _hoisted_1$j = { class: "dao-form-group" };
3641
+ const _hoisted_2$f = { class: "dao-form-group__title" };
3642
+ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
3643
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
3644
+ createElementVNode("div", _hoisted_2$f, [
3645
3645
  renderSlot(_ctx.$slots, "title", {}, () => [
3646
3646
  createTextVNode(toDisplayString(_ctx.title), 1)
3647
3647
  ])
@@ -3649,7 +3649,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
3649
3649
  renderSlot(_ctx.$slots, "default")
3650
3650
  ]);
3651
3651
  }
3652
- var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k]]);
3652
+ var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$o]]);
3653
3653
  const headerProps = {
3654
3654
  type: {
3655
3655
  type: String,
@@ -3661,7 +3661,7 @@ const headerProps = {
3661
3661
  }
3662
3662
  };
3663
3663
  var header_vue_vue_type_style_index_0_lang = "";
3664
- const _sfc_main$l = defineComponent({
3664
+ const _sfc_main$p = defineComponent({
3665
3665
  name: "DaoHeader",
3666
3666
  props: headerProps,
3667
3667
  setup(props, { slots }) {
@@ -3675,7 +3675,7 @@ const _sfc_main$l = defineComponent({
3675
3675
  };
3676
3676
  }
3677
3677
  });
3678
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
3678
+ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
3679
3679
  return openBlock(), createElementBlock("div", {
3680
3680
  ref: "header",
3681
3681
  "aria-label": "Header",
@@ -3707,7 +3707,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
3707
3707
  ], 2)) : createCommentVNode("", true)
3708
3708
  ], 2);
3709
3709
  }
3710
- var header = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]);
3710
+ var header = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$n]]);
3711
3711
  const breadcrumbProps = {
3712
3712
  type: {
3713
3713
  type: String,
@@ -3740,7 +3740,7 @@ const breadcrumbItemProps = {
3740
3740
  type: [String, Object]
3741
3741
  }
3742
3742
  };
3743
- const _sfc_main$k = defineComponent({
3743
+ const _sfc_main$o = defineComponent({
3744
3744
  name: "DaoBreadcrumbItem",
3745
3745
  props: breadcrumbItemProps,
3746
3746
  setup(props) {
@@ -3762,7 +3762,7 @@ const _sfc_main$k = defineComponent({
3762
3762
  };
3763
3763
  }
3764
3764
  });
3765
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3765
+ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
3766
3766
  return openBlock(), createElementBlock("span", {
3767
3767
  class: normalizeClass(_ctx.ns + "__item")
3768
3768
  }, [
@@ -3794,9 +3794,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3794
3794
  }, toDisplayString(_ctx.separator), 3)
3795
3795
  ], 2);
3796
3796
  }
3797
- var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
3797
+ var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m]]);
3798
3798
  var breadcrumb_vue_vue_type_style_index_0_lang = "";
3799
- const _sfc_main$j = defineComponent({
3799
+ const _sfc_main$n = defineComponent({
3800
3800
  name: "DaoBreadcrumb",
3801
3801
  components: {
3802
3802
  DaoIcon,
@@ -3811,7 +3811,7 @@ const _sfc_main$j = defineComponent({
3811
3811
  };
3812
3812
  }
3813
3813
  });
3814
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3814
+ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
3815
3815
  var _a2;
3816
3816
  const _component_dao_icon = resolveComponent("dao-icon");
3817
3817
  const _component_dao_breadcrumb_item = resolveComponent("dao-breadcrumb-item");
@@ -3843,7 +3843,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3843
3843
  renderSlot(_ctx.$slots, "default")
3844
3844
  ], 2);
3845
3845
  }
3846
- var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
3846
+ var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]);
3847
3847
  if (typeof window !== "undefined") {
3848
3848
  let loadSvg = function() {
3849
3849
  var body = document.body;
@@ -3910,7 +3910,7 @@ var inputProps = {
3910
3910
  }
3911
3911
  };
3912
3912
  var input_vue_vue_type_style_index_0_lang = "";
3913
- const _sfc_main$i = defineComponent({
3913
+ const _sfc_main$m = defineComponent({
3914
3914
  name: "DaoInput",
3915
3915
  components: {
3916
3916
  DaoIcon
@@ -3938,7 +3938,7 @@ const _sfc_main$i = defineComponent({
3938
3938
  } = toRefs(props);
3939
3939
  const currentValue = ref(modelValue.value);
3940
3940
  const isFocus = ref(false);
3941
- const input2 = ref(null);
3941
+ const input = ref(null);
3942
3942
  const isIncreaseDisabled = ref(false);
3943
3943
  const isDecreaseDisabled = ref(false);
3944
3944
  const isChangingNumber = ref(false);
@@ -4010,7 +4010,7 @@ const _sfc_main$i = defineComponent({
4010
4010
  }
4011
4011
  updateModel("");
4012
4012
  emit("after-reset");
4013
- (_a2 = input2.value) == null ? void 0 : _a2.focus();
4013
+ (_a2 = input.value) == null ? void 0 : _a2.focus();
4014
4014
  };
4015
4015
  const getInputRealNumber = (val, fixedPointNum) => parseFloat(val.toFixed(fixedPointNum));
4016
4016
  const changeNumberValue = (changeType) => {
@@ -4043,7 +4043,7 @@ const _sfc_main$i = defineComponent({
4043
4043
  setValue = minimum;
4044
4044
  }
4045
4045
  updateModel(getInputRealNumber(setValue, stepPointNum));
4046
- (_a2 = input2.value) == null ? void 0 : _a2.focus();
4046
+ (_a2 = input.value) == null ? void 0 : _a2.focus();
4047
4047
  if (!counterTimeout && !counterInterval) {
4048
4048
  counterTimeout = window.setTimeout(() => {
4049
4049
  counterInterval = window.setInterval(() => changeNumberValue(changeType), 100);
@@ -4066,7 +4066,7 @@ const _sfc_main$i = defineComponent({
4066
4066
  counterInterval = null;
4067
4067
  isChangingNumber.value = false;
4068
4068
  if (onEvents) {
4069
- (_a2 = input2.value) == null ? void 0 : _a2.focus();
4069
+ (_a2 = input.value) == null ? void 0 : _a2.focus();
4070
4070
  }
4071
4071
  };
4072
4072
  const inputAttrs = computed(() => {
@@ -4103,7 +4103,7 @@ const _sfc_main$i = defineComponent({
4103
4103
  return {
4104
4104
  currentValue,
4105
4105
  isFocus,
4106
- input: input2,
4106
+ input,
4107
4107
  clearable,
4108
4108
  wrapClasses,
4109
4109
  inputClasses,
@@ -4121,15 +4121,15 @@ const _sfc_main$i = defineComponent({
4121
4121
  };
4122
4122
  }
4123
4123
  });
4124
- const _hoisted_1$e = {
4124
+ const _hoisted_1$i = {
4125
4125
  key: 0,
4126
4126
  class: "dao-input-prepend"
4127
4127
  };
4128
- const _hoisted_2$c = {
4128
+ const _hoisted_2$e = {
4129
4129
  key: 0,
4130
4130
  class: "dao-input-prefix"
4131
4131
  };
4132
- const _hoisted_3$6 = ["type", "disabled", "value"];
4132
+ const _hoisted_3$8 = ["type", "disabled", "value"];
4133
4133
  const _hoisted_4$5 = {
4134
4134
  key: 4,
4135
4135
  class: "dao-input-suffix"
@@ -4138,18 +4138,18 @@ const _hoisted_5$4 = {
4138
4138
  key: 0,
4139
4139
  class: "dao-input-append"
4140
4140
  };
4141
- function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4141
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
4142
4142
  const _component_dao_icon = resolveComponent("dao-icon");
4143
4143
  return openBlock(), createElementBlock("div", {
4144
4144
  class: normalizeClass(_ctx.wrapClasses)
4145
4145
  }, [
4146
4146
  renderSlot(_ctx.$slots, "prepend", {}, () => [
4147
- _ctx.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$e, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true)
4147
+ _ctx.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$i, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true)
4148
4148
  ]),
4149
4149
  createElementVNode("div", {
4150
4150
  class: normalizeClass(["dao-input-inner", { "dao-input__changing-number": _ctx.isChangingNumber }])
4151
4151
  }, [
4152
- _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
4152
+ _ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
4153
4153
  renderSlot(_ctx.$slots, "prefix")
4154
4154
  ])) : createCommentVNode("", true),
4155
4155
  _ctx.type === "search" ? (openBlock(), createElementBlock("i", {
@@ -4164,7 +4164,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4164
4164
  disabled: _ctx.disabled,
4165
4165
  value: _ctx.currentValue,
4166
4166
  onKeyup: _cache[0] || (_cache[0] = withKeys((...args) => _ctx.resetCurrentVal && _ctx.resetCurrentVal(...args), ["esc"]))
4167
- }), null, 16, _hoisted_3$6),
4167
+ }), null, 16, _hoisted_3$8),
4168
4168
  _ctx.type === "number" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
4169
4169
  createElementVNode("i", {
4170
4170
  class: normalizeClass([
@@ -4212,7 +4212,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4212
4212
  ])
4213
4213
  ], 2);
4214
4214
  }
4215
- var input = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g]]);
4215
+ var DaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k]]);
4216
4216
  var MessageProps = {
4217
4217
  modelValue: {
4218
4218
  type: Boolean,
@@ -4236,7 +4236,7 @@ var MessageProps = {
4236
4236
  }
4237
4237
  };
4238
4238
  var message_vue_vue_type_style_index_0_lang = "";
4239
- const _sfc_main$h = defineComponent({
4239
+ const _sfc_main$l = defineComponent({
4240
4240
  name: "DaoMessage",
4241
4241
  props: MessageProps,
4242
4242
  emits: ["update:modelValue", "change", "beforeClose", "closed", "beforeShow", "show"],
@@ -4283,9 +4283,9 @@ const _sfc_main$h = defineComponent({
4283
4283
  };
4284
4284
  }
4285
4285
  });
4286
- const _hoisted_1$d = { class: "dao-message-icon" };
4287
- const _hoisted_2$b = { class: "dao-message-section" };
4288
- const _hoisted_3$5 = {
4286
+ const _hoisted_1$h = { class: "dao-message-icon" };
4287
+ const _hoisted_2$d = { class: "dao-message-section" };
4288
+ const _hoisted_3$7 = {
4289
4289
  key: 0,
4290
4290
  class: "dao-message-title"
4291
4291
  };
@@ -4293,7 +4293,7 @@ const _hoisted_4$4 = {
4293
4293
  key: 0,
4294
4294
  class: "dao-message-content"
4295
4295
  };
4296
- function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4296
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
4297
4297
  return _ctx.isMessageShow ? (openBlock(), createElementBlock("div", {
4298
4298
  key: 0,
4299
4299
  class: normalizeClass(["dao-message-outer", _ctx.typeClass]),
@@ -4304,17 +4304,17 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4304
4304
  createElementVNode("div", {
4305
4305
  class: normalizeClass(["dao-message-inner", { "dao-message-inner-without-close": !_ctx.isCloseShow }])
4306
4306
  }, [
4307
- createElementVNode("div", _hoisted_1$d, [
4307
+ createElementVNode("div", _hoisted_1$h, [
4308
4308
  renderSlot(_ctx.$slots, "icon", {}, () => [
4309
4309
  createElementVNode("i", {
4310
4310
  class: normalizeClass(`icon-sys-${_ctx.type} dao-message-icon-general dao-message-icon-${_ctx.type}`)
4311
4311
  }, null, 2)
4312
4312
  ])
4313
4313
  ]),
4314
- createElementVNode("div", _hoisted_2$b, [
4314
+ createElementVNode("div", _hoisted_2$d, [
4315
4315
  renderSlot(_ctx.$slots, "section", {}, () => [
4316
4316
  renderSlot(_ctx.$slots, "title", { className: "dao-message-title" }, () => [
4317
- _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$5, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
4317
+ _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
4318
4318
  ]),
4319
4319
  renderSlot(_ctx.$slots, "default", { className: "dao-message-content" }, () => [
4320
4320
  _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$4, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
@@ -4330,7 +4330,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4330
4330
  ])
4331
4331
  ], 34)) : createCommentVNode("", true);
4332
4332
  }
4333
- var message = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$f]]);
4333
+ var message = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]);
4334
4334
  const NAV_TYPES = ["2rd", "3rd"];
4335
4335
  const navProps = {
4336
4336
  accordion: {
@@ -4426,7 +4426,7 @@ const navItemProps = {
4426
4426
  }
4427
4427
  };
4428
4428
  var nav_vue_vue_type_style_index_0_lang = "";
4429
- const _sfc_main$g = defineComponent({
4429
+ const _sfc_main$k = defineComponent({
4430
4430
  name: "DaoNav",
4431
4431
  props: navProps,
4432
4432
  emits: ["back", "select", "toggle"],
@@ -4500,18 +4500,18 @@ const _sfc_main$g = defineComponent({
4500
4500
  });
4501
4501
  }
4502
4502
  });
4503
- const _hoisted_1$c = { class: "dao-nav-bar" };
4504
- const _hoisted_2$a = { class: "dao-nav" };
4505
- function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
4506
- return openBlock(), createElementBlock("nav", _hoisted_1$c, [
4503
+ const _hoisted_1$g = { class: "dao-nav-bar" };
4504
+ const _hoisted_2$c = { class: "dao-nav" };
4505
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
4506
+ return openBlock(), createElementBlock("nav", _hoisted_1$g, [
4507
4507
  renderSlot(_ctx.$slots, "header"),
4508
- createElementVNode("ul", _hoisted_2$a, [
4508
+ createElementVNode("ul", _hoisted_2$c, [
4509
4509
  renderSlot(_ctx.$slots, "default")
4510
4510
  ])
4511
4511
  ]);
4512
4512
  }
4513
- var nav = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$e]]);
4514
- const _sfc_main$f = defineComponent({
4513
+ var nav = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
4514
+ const _sfc_main$j = defineComponent({
4515
4515
  name: "DaoNavHead",
4516
4516
  components: {
4517
4517
  DaoIcon
@@ -4546,8 +4546,8 @@ const _sfc_main$f = defineComponent({
4546
4546
  };
4547
4547
  }
4548
4548
  });
4549
- const _hoisted_1$b = { class: "dao-nav__head-text dao-nav-text" };
4550
- function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
4549
+ const _hoisted_1$f = { class: "dao-nav__head-text dao-nav-text" };
4550
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4551
4551
  const _component_dao_icon = resolveComponent("dao-icon");
4552
4552
  return openBlock(), createElementBlock("li", {
4553
4553
  class: normalizeClass(_ctx.classHeadList)
@@ -4562,12 +4562,12 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
4562
4562
  onClick: _ctx.handleClickBack,
4563
4563
  onKeyup: withKeys(withModifiers(_ctx.handleClickBack, ["stop"]), ["esc"])
4564
4564
  }, null, 8, ["name", "use-font", "onClick", "onKeyup"])) : createCommentVNode("", true),
4565
- createElementVNode("span", _hoisted_1$b, toDisplayString(_ctx.title), 1)
4565
+ createElementVNode("span", _hoisted_1$f, toDisplayString(_ctx.title), 1)
4566
4566
  ])
4567
4567
  ], 2);
4568
4568
  }
4569
- var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$d]]);
4570
- const _sfc_main$e = defineComponent({
4569
+ var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
4570
+ const _sfc_main$i = defineComponent({
4571
4571
  name: "DaoNavItem",
4572
4572
  components: {
4573
4573
  DaoIcon
@@ -4648,9 +4648,9 @@ const _sfc_main$e = defineComponent({
4648
4648
  };
4649
4649
  }
4650
4650
  });
4651
- const _hoisted_1$a = { class: "dao-nav-slot" };
4652
- const _hoisted_2$9 = { class: "dao-nav__item-text dao-nav-text" };
4653
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
4651
+ const _hoisted_1$e = { class: "dao-nav-slot" };
4652
+ const _hoisted_2$b = { class: "dao-nav__item-text dao-nav-text" };
4653
+ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4654
4654
  const _component_dao_icon = resolveComponent("dao-icon");
4655
4655
  return openBlock(), createElementBlock("li", {
4656
4656
  class: normalizeClass(_ctx.classItemList)
@@ -4661,7 +4661,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
4661
4661
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
4662
4662
  onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
4663
4663
  }, [
4664
- createElementVNode("div", _hoisted_1$a, [
4664
+ createElementVNode("div", _hoisted_1$e, [
4665
4665
  renderSlot(_ctx.$slots, "default", {}, () => [
4666
4666
  _ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
4667
4667
  key: 0,
@@ -4669,14 +4669,14 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
4669
4669
  name: _ctx.icon,
4670
4670
  "use-font": _ctx.useFont
4671
4671
  }, null, 8, ["name", "use-font"])) : createCommentVNode("", true),
4672
- createElementVNode("span", _hoisted_2$9, toDisplayString(_ctx.title), 1)
4672
+ createElementVNode("span", _hoisted_2$b, toDisplayString(_ctx.title), 1)
4673
4673
  ])
4674
4674
  ])
4675
4675
  ], 34)
4676
4676
  ], 2);
4677
4677
  }
4678
- var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$c]]);
4679
- const _sfc_main$d = defineComponent({
4678
+ var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g]]);
4679
+ const _sfc_main$h = defineComponent({
4680
4680
  name: "DaoNavSub",
4681
4681
  components: {
4682
4682
  DaoIcon
@@ -4798,16 +4798,16 @@ const _sfc_main$d = defineComponent({
4798
4798
  };
4799
4799
  }
4800
4800
  });
4801
- const _hoisted_1$9 = { class: "dao-nav-slot" };
4802
- const _hoisted_2$8 = { class: "dao-nav__sub-text dao-nav-text" };
4803
- const _hoisted_3$4 = {
4801
+ const _hoisted_1$d = { class: "dao-nav-slot" };
4802
+ const _hoisted_2$a = { class: "dao-nav__sub-text dao-nav-text" };
4803
+ const _hoisted_3$6 = {
4804
4804
  key: 0,
4805
4805
  class: "icon-dropdown-line dao-nav__sub__icon-fold"
4806
4806
  };
4807
4807
  const _hoisted_4$3 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
4808
4808
  const _hoisted_5$3 = { class: "dao-nav dao-nav-inner" };
4809
4809
  const _hoisted_6$2 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
4810
- function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
4810
+ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4811
4811
  const _component_dao_icon = resolveComponent("dao-icon");
4812
4812
  return openBlock(), createElementBlock("li", {
4813
4813
  class: normalizeClass(_ctx.classSubList)
@@ -4818,7 +4818,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
4818
4818
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
4819
4819
  onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
4820
4820
  }, [
4821
- createElementVNode("div", _hoisted_1$9, [
4821
+ createElementVNode("div", _hoisted_1$d, [
4822
4822
  renderSlot(_ctx.$slots, "title", {}, () => [
4823
4823
  _ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
4824
4824
  key: 0,
@@ -4826,10 +4826,10 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
4826
4826
  name: _ctx.icon,
4827
4827
  "use-font": _ctx.useFont
4828
4828
  }, null, 8, ["name", "use-font"])) : createCommentVNode("", true),
4829
- createElementVNode("span", _hoisted_2$8, toDisplayString(_ctx.title), 1)
4829
+ createElementVNode("span", _hoisted_2$a, toDisplayString(_ctx.title), 1)
4830
4830
  ])
4831
4831
  ]),
4832
- _ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$4)) : createCommentVNode("", true)
4832
+ _ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$6)) : createCommentVNode("", true)
4833
4833
  ], 34),
4834
4834
  createVNode(Transition, { name: "dao-nav" }, {
4835
4835
  default: withCtx(() => [
@@ -4847,7 +4847,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
4847
4847
  })
4848
4848
  ], 2);
4849
4849
  }
4850
- var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$b]]);
4850
+ var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$f]]);
4851
4851
  const paginationProps = {
4852
4852
  pageSize: {
4853
4853
  type: Number,
@@ -4975,8 +4975,45 @@ _global[globalKey] = _global[globalKey] || {};
4975
4975
  _global[globalKey];
4976
4976
  var _a, _b;
4977
4977
  isClient && (window == null ? void 0 : window.navigator) && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.platform) && /iP(ad|hone|od)/.test((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.platform);
4978
+ function useVModel(props, key, emit, options = {}) {
4979
+ var _a2;
4980
+ const {
4981
+ passive: passive2 = false,
4982
+ eventName,
4983
+ deep = false
4984
+ } = options;
4985
+ const vm = getCurrentInstance();
4986
+ const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a2 = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a2.bind(vm));
4987
+ let event = eventName;
4988
+ if (!key) {
4989
+ {
4990
+ key = "modelValue";
4991
+ }
4992
+ }
4993
+ event = eventName || event || `update:${key}`;
4994
+ if (passive2) {
4995
+ const proxy = ref(props[key]);
4996
+ watch(() => props[key], (v) => proxy.value = v);
4997
+ watch(proxy, (v) => {
4998
+ if (v !== props[key] || deep)
4999
+ _emit(event, v);
5000
+ }, {
5001
+ deep
5002
+ });
5003
+ return proxy;
5004
+ } else {
5005
+ return computed({
5006
+ get() {
5007
+ return props[key];
5008
+ },
5009
+ set(value) {
5010
+ _emit(event, value);
5011
+ }
5012
+ });
5013
+ }
5014
+ }
4978
5015
  var select_vue_vue_type_style_index_0_lang = "";
4979
- const _sfc_main$c = defineComponent({
5016
+ const _sfc_main$g = defineComponent({
4980
5017
  name: "DaoSelect",
4981
5018
  components: {
4982
5019
  DaoPopper: Popper
@@ -4984,7 +5021,7 @@ const _sfc_main$c = defineComponent({
4984
5021
  directives: {},
4985
5022
  props: {
4986
5023
  modelValue: {
4987
- type: [String, Number, Boolean],
5024
+ type: [String, Number, Boolean, Array],
4988
5025
  default: void 0
4989
5026
  },
4990
5027
  placeholder: {
@@ -5019,6 +5056,10 @@ const _sfc_main$c = defineComponent({
5019
5056
  appendTo: {
5020
5057
  type: [String, Boolean, Object],
5021
5058
  default: "root"
5059
+ },
5060
+ multiple: {
5061
+ type: Boolean,
5062
+ default: false
5022
5063
  }
5023
5064
  },
5024
5065
  emits: ["update:modelValue", "change", "search-change", "close", "open"],
@@ -5028,12 +5069,13 @@ const _sfc_main$c = defineComponent({
5028
5069
  disabled,
5029
5070
  size,
5030
5071
  menuClass,
5031
- search
5072
+ search,
5073
+ multiple
5032
5074
  } = toRefs(props);
5033
5075
  const state = reactive({
5034
5076
  optionFocusIndex: -1,
5035
5077
  visible: false,
5036
- selectedOption: void 0,
5078
+ selectedOption: [],
5037
5079
  options: [],
5038
5080
  searchText: ""
5039
5081
  });
@@ -5073,7 +5115,7 @@ const _sfc_main$c = defineComponent({
5073
5115
  });
5074
5116
  const isSelected = computed(() => {
5075
5117
  var _a2;
5076
- return !isNullish((_a2 = state.selectedOption) == null ? void 0 : _a2.value);
5118
+ return !!((_a2 = state.selectedOption) == null ? void 0 : _a2.length);
5077
5119
  });
5078
5120
  const isNoResult = computed(() => {
5079
5121
  const unrefSearch = unref(search);
@@ -5104,32 +5146,61 @@ const _sfc_main$c = defineComponent({
5104
5146
  (_a2 = searchInput.value) == null ? void 0 : _a2.focus();
5105
5147
  };
5106
5148
  const onSelect = (option) => {
5107
- const unrefPopper = unref(popper2);
5108
- state.selectedOption = option;
5109
- onSearchClear();
5110
- emit("update:modelValue", state.selectedOption.value);
5111
- emit("change", state.selectedOption.value);
5112
- unrefPopper == null ? void 0 : unrefPopper.hide();
5149
+ if (!multiple.value) {
5150
+ const unrefPopper = unref(popper2);
5151
+ state.selectedOption = [option];
5152
+ onSearchClear();
5153
+ emit("update:modelValue", option.value);
5154
+ emit("change", option.value);
5155
+ unrefPopper == null ? void 0 : unrefPopper.hide();
5156
+ return;
5157
+ }
5158
+ const index2 = state.selectedOption.indexOf(option);
5159
+ if (index2 > -1) {
5160
+ state.selectedOption.splice(index2, 1);
5161
+ } else {
5162
+ state.selectedOption.push(option);
5163
+ }
5164
+ const values = state.selectedOption.map((i) => i.value);
5165
+ emit("update:modelValue", values);
5166
+ emit("change", values);
5113
5167
  };
5114
5168
  const checkUpdatedOption = () => {
5115
- var _a2;
5116
5169
  const unrefModelValue = unref(modelValue);
5117
- if (!isNullish(unrefModelValue) && unrefModelValue !== ((_a2 = state.selectedOption) == null ? void 0 : _a2.value)) {
5170
+ if (isNullish(unrefModelValue)) {
5171
+ state.selectedOption = [];
5172
+ return;
5173
+ }
5174
+ if (!multiple.value && !Array.isArray(unrefModelValue)) {
5118
5175
  const target = state.options.find((o) => o.value === unrefModelValue);
5119
- state.selectedOption = target;
5176
+ if (target) {
5177
+ state.selectedOption = [target];
5178
+ } else {
5179
+ state.selectedOption = [];
5180
+ }
5181
+ } else if (multiple.value && Array.isArray(unrefModelValue)) {
5182
+ state.selectedOption = state.options.filter((o) => unrefModelValue == null ? void 0 : unrefModelValue.includes(o.value));
5120
5183
  }
5121
5184
  };
5122
5185
  const checkNewOption = (option) => {
5123
- var _a2;
5124
5186
  const unrefModelValue = unref(modelValue);
5125
- if (!isNullish(unrefModelValue) && isNullish((_a2 = state.selectedOption) == null ? void 0 : _a2.value) && unrefModelValue === option.value) {
5126
- state.selectedOption = option;
5187
+ if (isNullish(unrefModelValue)) {
5188
+ return;
5189
+ }
5190
+ if (!multiple.value && !Array.isArray(unrefModelValue)) {
5191
+ if (option.value === unrefModelValue) {
5192
+ state.selectedOption = [option];
5193
+ }
5194
+ } else if (multiple.value && Array.isArray(unrefModelValue)) {
5195
+ if (unrefModelValue.includes(option.value)) {
5196
+ state.selectedOption.push(option);
5197
+ }
5127
5198
  }
5128
5199
  };
5129
5200
  const checkRemovedOption = (option) => {
5130
- var _a2;
5131
- if (((_a2 = state.selectedOption) == null ? void 0 : _a2.value) === option.value) {
5132
- state.selectedOption = void 0;
5201
+ const index2 = state.selectedOption.findIndex((o) => o.value === option.value);
5202
+ if (index2 > -1) {
5203
+ state.selectedOption.splice(index2, 1);
5133
5204
  }
5134
5205
  };
5135
5206
  const filterFn = (keyword, value, option) => {
@@ -5199,13 +5270,14 @@ const _sfc_main$c = defineComponent({
5199
5270
  }
5200
5271
  };
5201
5272
  watch(() => state.visible, (visible) => {
5273
+ var _a2;
5202
5274
  if (visible) {
5203
5275
  bindTriggerEleOutsideClick.visible();
5204
5276
  bindPopperTrigger.visible();
5205
- state.optionFocusIndex = (state == null ? void 0 : state.selectedOption) ? state == null ? void 0 : state.options.indexOf(state.selectedOption) : -1;
5277
+ state.optionFocusIndex = (state == null ? void 0 : state.selectedOption) ? state == null ? void 0 : state.options.indexOf((_a2 = state.selectedOption) == null ? void 0 : _a2[0]) : -1;
5206
5278
  setTimeout(() => {
5207
- var _a2;
5208
- (_a2 = searchInput.value) == null ? void 0 : _a2.focus();
5279
+ var _a3;
5280
+ (_a3 = searchInput.value) == null ? void 0 : _a3.focus();
5209
5281
  }, 0);
5210
5282
  } else {
5211
5283
  bindTriggerEleOutsideClick.invisible();
@@ -5285,9 +5357,9 @@ const _sfc_main$c = defineComponent({
5285
5357
  };
5286
5358
  }
5287
5359
  });
5288
- const _hoisted_1$8 = { class: "dao-selection-text" };
5289
- const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("i", { class: "icon-dropdown-line dao-selection-icon" }, null, -1);
5290
- const _hoisted_3$3 = {
5360
+ const _hoisted_1$c = { class: "dao-selection-text" };
5361
+ const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("i", { class: "icon-dropdown-line dao-selection-icon" }, null, -1);
5362
+ const _hoisted_3$5 = {
5291
5363
  key: 0,
5292
5364
  class: "dao-selection-search"
5293
5365
  };
@@ -5298,12 +5370,12 @@ const _hoisted_7$1 = {
5298
5370
  key: "dao-option-placeholder",
5299
5371
  class: "dao-option-placeholder"
5300
5372
  };
5301
- function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
5373
+ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
5302
5374
  const _component_dao_popper = resolveComponent("dao-popper");
5303
5375
  return openBlock(), createBlock(_component_dao_popper, {
5304
5376
  ref: "popper",
5305
5377
  modelValue: _ctx.state.visible,
5306
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => _ctx.state.visible = $event),
5378
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => _ctx.state.visible = $event),
5307
5379
  delay: 0,
5308
5380
  disabled: _ctx.disabled,
5309
5381
  offset: _ctx.popperOffset,
@@ -5315,25 +5387,25 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
5315
5387
  transition: "dao-select",
5316
5388
  trigger: "manual",
5317
5389
  placement: "bottom",
5318
- onHide: _cache[14] || (_cache[14] = ($event) => _ctx.$emit("close")),
5319
- onShow: _cache[15] || (_cache[15] = ($event) => _ctx.$emit("open"))
5390
+ onHide: _cache[15] || (_cache[15] = ($event) => _ctx.$emit("close")),
5391
+ onShow: _cache[16] || (_cache[16] = ($event) => _ctx.$emit("open"))
5320
5392
  }, {
5321
5393
  content: withCtx(() => [
5322
5394
  renderSlot(_ctx.$slots, "optionsHeader", {}, () => [
5323
- _ctx.search ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
5395
+ _ctx.search ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
5324
5396
  withDirectives(createElementVNode("input", {
5325
5397
  ref: "searchInput",
5326
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.state.searchText = $event),
5398
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.state.searchText = $event),
5327
5399
  placeholder: _ctx.searchPlaceholder,
5328
5400
  class: "dao-selection-search-input",
5329
5401
  type: "search",
5330
- onInput: _cache[6] || (_cache[6] = (...args) => _ctx.onSearchTextChange && _ctx.onSearchTextChange(...args)),
5402
+ onInput: _cache[7] || (_cache[7] = (...args) => _ctx.onSearchTextChange && _ctx.onSearchTextChange(...args)),
5331
5403
  onKeydown: [
5332
- _cache[7] || (_cache[7] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop", "prevent"]), ["tab"])),
5333
- _cache[8] || (_cache[8] = withKeys((...args) => _ctx.handleEvent.searchInput.keydownEsc && _ctx.handleEvent.searchInput.keydownEsc(...args), ["esc"])),
5334
- _cache[9] || (_cache[9] = withKeys(withModifiers((...args) => _ctx.handleEvent.searchInput.keydownEnter && _ctx.handleEvent.searchInput.keydownEnter(...args), ["stop", "prevent"]), ["enter"])),
5335
- _cache[10] || (_cache[10] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
5336
- _cache[11] || (_cache[11] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"]))
5404
+ _cache[8] || (_cache[8] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop", "prevent"]), ["tab"])),
5405
+ _cache[9] || (_cache[9] = withKeys((...args) => _ctx.handleEvent.searchInput.keydownEsc && _ctx.handleEvent.searchInput.keydownEsc(...args), ["esc"])),
5406
+ _cache[10] || (_cache[10] = withKeys(withModifiers((...args) => _ctx.handleEvent.searchInput.keydownEnter && _ctx.handleEvent.searchInput.keydownEnter(...args), ["stop", "prevent"]), ["enter"])),
5407
+ _cache[11] || (_cache[11] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
5408
+ _cache[12] || (_cache[12] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"]))
5337
5409
  ]
5338
5410
  }, null, 40, _hoisted_4$2), [
5339
5411
  [vModelText, _ctx.state.searchText]
@@ -5341,7 +5413,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
5341
5413
  _hoisted_5$2,
5342
5414
  withDirectives(createElementVNode("i", {
5343
5415
  class: "icon-sys-error dao-selection-search-clear-icon",
5344
- onClick: _cache[12] || (_cache[12] = withModifiers((...args) => _ctx.onSearchClear && _ctx.onSearchClear(...args), ["stop", "prevent"]))
5416
+ onClick: _cache[13] || (_cache[13] = withModifiers((...args) => _ctx.onSearchClear && _ctx.onSearchClear(...args), ["stop", "prevent"]))
5345
5417
  }, null, 512), [
5346
5418
  [vShow, _ctx.state.searchText]
5347
5419
  ])
@@ -5353,28 +5425,37 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
5353
5425
  ])
5354
5426
  ]),
5355
5427
  default: withCtx(() => {
5356
- var _a2, _b2;
5428
+ var _a2, _b2, _c, _d, _e;
5357
5429
  return [
5358
5430
  createElementVNode("button", {
5359
5431
  ref: "triggerRef",
5360
5432
  class: "dao-selection",
5361
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleTargetTrigger && _ctx.handleTargetTrigger(...args)),
5362
5433
  onKeydown: [
5363
- _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop"]), ["tab"])),
5364
- _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop", "prevent"]), ["esc"])),
5365
- _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
5366
- _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"]))
5367
- ]
5434
+ _cache[0] || (_cache[0] = withKeys(withModifiers((...args) => _ctx.handleTargetTrigger && _ctx.handleTargetTrigger(...args), ["prevent"]), ["enter"])),
5435
+ _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop"]), ["tab"])),
5436
+ _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop", "prevent"]), ["esc"])),
5437
+ _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
5438
+ _cache[5] || (_cache[5] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"]))
5439
+ ],
5440
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.state.visible = !_ctx.state.visible)
5368
5441
  }, [
5369
- withDirectives(createElementVNode("span", _hoisted_1$8, [
5370
- renderSlot(_ctx.$slots, "selected", {
5371
- selectedLabel: (_a2 = _ctx.state.selectedOption) == null ? void 0 : _a2.label,
5442
+ withDirectives(createElementVNode("span", _hoisted_1$c, [
5443
+ _ctx.multiple ? renderSlot(_ctx.$slots, "selected", {
5444
+ key: 0,
5445
+ selectedLabel: _ctx.state.selectedOption.map((o) => o.label),
5372
5446
  selectedOption: _ctx.state.selectedOption,
5373
- selectedValue: (_b2 = _ctx.state.selectedOption) == null ? void 0 : _b2.value
5447
+ selectedValue: _ctx.state.selectedOption.map((o) => o.value)
5448
+ }, () => [
5449
+ createTextVNode(toDisplayString(_ctx.state.selectedOption.map((i) => i.labelValue).join(", ")), 1)
5450
+ ]) : renderSlot(_ctx.$slots, "selected", {
5451
+ key: 1,
5452
+ selectedLabel: (_b2 = (_a2 = _ctx.state.selectedOption) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.label,
5453
+ selectedOption: (_c = _ctx.state.selectedOption) == null ? void 0 : _c[0],
5454
+ selectedValue: (_e = (_d = _ctx.state.selectedOption) == null ? void 0 : _d[0]) == null ? void 0 : _e.value
5374
5455
  }, () => {
5375
- var _a3;
5456
+ var _a3, _b3;
5376
5457
  return [
5377
- createTextVNode(toDisplayString((_a3 = _ctx.state.selectedOption) == null ? void 0 : _a3.labelValue), 1)
5458
+ createTextVNode(toDisplayString((_b3 = (_a3 = _ctx.state.selectedOption) == null ? void 0 : _a3[0]) == null ? void 0 : _b3.labelValue), 1)
5378
5459
  ];
5379
5460
  })
5380
5461
  ], 512), [
@@ -5383,16 +5464,16 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
5383
5464
  withDirectives(createElementVNode("span", { class: "dao-selection-text--placeholder" }, toDisplayString(_ctx.placeholder), 513), [
5384
5465
  [vShow, !_ctx.isSelected]
5385
5466
  ]),
5386
- _hoisted_2$7
5467
+ _hoisted_2$9
5387
5468
  ], 544)
5388
5469
  ];
5389
5470
  }),
5390
5471
  _: 3
5391
5472
  }, 8, ["modelValue", "disabled", "offset", "popper-class", "popper-options", "class", "append-to"]);
5392
5473
  }
5393
- var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$a]]);
5474
+ var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$e]]);
5394
5475
  var option_vue_vue_type_style_index_0_lang = "";
5395
- const _sfc_main$b = defineComponent({
5476
+ const _sfc_main$f = defineComponent({
5396
5477
  name: "DaoOption",
5397
5478
  props: {
5398
5479
  value: {
@@ -5434,7 +5515,7 @@ const _sfc_main$b = defineComponent({
5434
5515
  const visible = computed(() => instance.visible);
5435
5516
  const isSelected = computed(() => {
5436
5517
  var _a2;
5437
- return ((_a2 = selectState == null ? void 0 : selectState.selectedOption) == null ? void 0 : _a2.value) === instance.value;
5518
+ return !!((_a2 = selectState == null ? void 0 : selectState.selectedOption) == null ? void 0 : _a2.find((option) => option.value === instance.value));
5438
5519
  });
5439
5520
  const isFocus = computed(() => {
5440
5521
  var _a2, _b2;
@@ -5474,12 +5555,12 @@ const _sfc_main$b = defineComponent({
5474
5555
  };
5475
5556
  }
5476
5557
  });
5477
- const _hoisted_1$7 = ["title"];
5478
- const _hoisted_2$6 = {
5558
+ const _hoisted_1$b = ["title"];
5559
+ const _hoisted_2$8 = {
5479
5560
  key: 0,
5480
5561
  class: "icon-checked dao-option-checkmark"
5481
5562
  };
5482
- function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
5563
+ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
5483
5564
  return withDirectives((openBlock(), createElementBlock("li", {
5484
5565
  ref: "optionRef",
5485
5566
  class: normalizeClass([
@@ -5498,16 +5579,16 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
5498
5579
  renderSlot(_ctx.$slots, "default", {}, () => [
5499
5580
  createTextVNode(toDisplayString(_ctx.labelValue), 1)
5500
5581
  ])
5501
- ], 8, _hoisted_1$7),
5502
- _ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$6)) : createCommentVNode("", true)
5582
+ ], 8, _hoisted_1$b),
5583
+ _ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$8)) : createCommentVNode("", true)
5503
5584
  ], 2)), [
5504
5585
  [vShow, _ctx.visible]
5505
5586
  ]);
5506
5587
  }
5507
- var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
5588
+ var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$d]]);
5508
5589
  var pagination_vue_vue_type_style_index_0_lang = "";
5509
5590
  const numberAscSort = (a, b) => a - b;
5510
- const _sfc_main$a = defineComponent({
5591
+ const _sfc_main$e = defineComponent({
5511
5592
  name: "DaoPagination",
5512
5593
  components: {
5513
5594
  DaoSelect,
@@ -5611,9 +5692,9 @@ const _sfc_main$a = defineComponent({
5611
5692
  };
5612
5693
  }
5613
5694
  });
5614
- const _hoisted_1$6 = ["disabled"];
5615
- const _hoisted_2$5 = { class: "dao-pagination__pager-total" };
5616
- function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
5695
+ const _hoisted_1$a = ["disabled"];
5696
+ const _hoisted_2$7 = { class: "dao-pagination__pager-total" };
5697
+ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
5617
5698
  const _component_dao_option = resolveComponent("dao-option");
5618
5699
  const _component_dao_select = resolveComponent("dao-select");
5619
5700
  return _ctx.computedLayout.show ? (openBlock(), createElementBlock("div", {
@@ -5640,10 +5721,10 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
5640
5721
  disabled: _ctx.totalPage <= 1,
5641
5722
  onKeydown: _cache[2] || (_cache[2] = withKeys((...args) => _ctx.targetPage && _ctx.targetPage(...args), ["enter"])),
5642
5723
  onInput: _cache[3] || (_cache[3] = (...args) => _ctx.currentShowPageFormat && _ctx.currentShowPageFormat(...args))
5643
- }, null, 40, _hoisted_1$6), [
5724
+ }, null, 40, _hoisted_1$a), [
5644
5725
  [vModelText, _ctx.currentShowPage]
5645
5726
  ]),
5646
- createElementVNode("span", _hoisted_2$5, " / " + toDisplayString(_ctx.totalPage), 1),
5727
+ createElementVNode("span", _hoisted_2$7, " / " + toDisplayString(_ctx.totalPage), 1),
5647
5728
  createElementVNode("i", {
5648
5729
  class: normalizeClass([
5649
5730
  "icon-arrow-next",
@@ -5674,15 +5755,15 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
5674
5755
  }, 8, ["class", "model-value", "style", "onChange"])
5675
5756
  ], 2)) : createCommentVNode("", true);
5676
5757
  }
5677
- var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$8]]);
5758
+ var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$c]]);
5678
5759
  var popover_scss_vue_type_style_index_0_src_lang = "";
5679
- const _sfc_main$9 = defineComponent(__spreadProps(__spreadValues({}, Popper), {
5760
+ const _sfc_main$d = defineComponent(__spreadProps(__spreadValues({}, Popper), {
5680
5761
  name: "DaoPopover",
5681
5762
  props: PopperProps,
5682
5763
  daoPopperTheme: "dao-popover"
5683
5764
  }));
5684
5765
  var progress_vue_vue_type_style_index_0_lang = "";
5685
- const _sfc_main$8 = defineComponent({
5766
+ const _sfc_main$c = defineComponent({
5686
5767
  name: "DaoProgress",
5687
5768
  props: {
5688
5769
  value: {
@@ -5731,17 +5812,17 @@ const _sfc_main$8 = defineComponent({
5731
5812
  };
5732
5813
  }
5733
5814
  });
5734
- const _hoisted_1$5 = { class: "dao-progress" };
5735
- const _hoisted_2$4 = {
5815
+ const _hoisted_1$9 = { class: "dao-progress" };
5816
+ const _hoisted_2$6 = {
5736
5817
  key: 1,
5737
5818
  class: "dao-progress__stacked"
5738
5819
  };
5739
- const _hoisted_3$2 = {
5820
+ const _hoisted_3$4 = {
5740
5821
  key: 0,
5741
5822
  class: "dao-progress__text"
5742
5823
  };
5743
- function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
5744
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
5824
+ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
5825
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
5745
5826
  createElementVNode("div", {
5746
5827
  class: "dao-progress__inner",
5747
5828
  style: normalizeStyle({ background: _ctx.bgColor })
@@ -5750,7 +5831,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
5750
5831
  key: 0,
5751
5832
  class: "dao-progress__bar",
5752
5833
  style: normalizeStyle({ width: `${_ctx.value}%`, background: _ctx.stackedBgColor })
5753
- }, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$4, [
5834
+ }, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$6, [
5754
5835
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.stackedStyles, (stackedStyle, idx) => {
5755
5836
  return openBlock(), createElementBlock("div", {
5756
5837
  key: idx,
@@ -5760,14 +5841,14 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
5760
5841
  }), 128))
5761
5842
  ]))
5762
5843
  ], 4),
5763
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$2, [
5844
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
5764
5845
  renderSlot(_ctx.$slots, "default")
5765
5846
  ])) : createCommentVNode("", true)
5766
5847
  ]);
5767
5848
  }
5768
- var progress = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]);
5849
+ var progress = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]]);
5769
5850
  var radio_vue_vue_type_style_index_0_lang = "";
5770
- const _sfc_main$7 = defineComponent({
5851
+ const _sfc_main$b = defineComponent({
5771
5852
  name: "DaoRadio",
5772
5853
  props: {
5773
5854
  modelValue: {
@@ -5837,9 +5918,9 @@ const _sfc_main$7 = defineComponent({
5837
5918
  };
5838
5919
  }
5839
5920
  });
5840
- const _hoisted_1$4 = ["disabled", "name", "checked"];
5841
- const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("span", { class: "dao-radio-inner" }, null, -1);
5842
- const _hoisted_3$1 = {
5921
+ const _hoisted_1$8 = ["disabled", "name", "checked"];
5922
+ const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("span", { class: "dao-radio-inner" }, null, -1);
5923
+ const _hoisted_3$3 = {
5843
5924
  key: 0,
5844
5925
  class: "dao-radio__label-wrapper"
5845
5926
  };
@@ -5851,7 +5932,7 @@ const _hoisted_5$1 = {
5851
5932
  key: 1,
5852
5933
  class: "dao-radio__help"
5853
5934
  };
5854
- function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
5935
+ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
5855
5936
  return openBlock(), createElementBlock("label", {
5856
5937
  class: normalizeClass(_ctx.wrapClasses)
5857
5938
  }, [
@@ -5865,10 +5946,10 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
5865
5946
  name: _ctx.name,
5866
5947
  checked: _ctx.currentValue,
5867
5948
  onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
5868
- }, null, 40, _hoisted_1$4),
5869
- _hoisted_2$3
5949
+ }, null, 40, _hoisted_1$8),
5950
+ _hoisted_2$5
5870
5951
  ], 2),
5871
- _ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
5952
+ _ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
5872
5953
  _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
5873
5954
  renderSlot(_ctx.$slots, "default", {}, () => [
5874
5955
  createTextVNode(toDisplayString(_ctx.label), 1)
@@ -5880,9 +5961,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
5880
5961
  ])) : createCommentVNode("", true)
5881
5962
  ], 2);
5882
5963
  }
5883
- var radio = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]);
5964
+ var radio = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]);
5884
5965
  var radioGroup_vue_vue_type_style_index_0_lang = "";
5885
- const _sfc_main$6 = defineComponent({
5966
+ const _sfc_main$a = defineComponent({
5886
5967
  name: "DaoRadioGroup",
5887
5968
  props: {
5888
5969
  modelValue: {
@@ -5916,16 +5997,16 @@ const _sfc_main$6 = defineComponent({
5916
5997
  };
5917
5998
  }
5918
5999
  });
5919
- function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6000
+ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
5920
6001
  return openBlock(), createElementBlock("div", {
5921
6002
  class: normalizeClass(_ctx.radioGroupClasses)
5922
6003
  }, [
5923
6004
  renderSlot(_ctx.$slots, "default")
5924
6005
  ], 2);
5925
6006
  }
5926
- var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5]]);
6007
+ var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]);
5927
6008
  var switch_vue_vue_type_style_index_0_lang = "";
5928
- const _sfc_main$5 = defineComponent({
6009
+ const _sfc_main$9 = defineComponent({
5929
6010
  name: "DaoSwitch",
5930
6011
  props: {
5931
6012
  modelValue: {
@@ -5980,12 +6061,12 @@ const _sfc_main$5 = defineComponent({
5980
6061
  };
5981
6062
  }
5982
6063
  });
5983
- const _hoisted_1$3 = ["value", "name", "disabled"];
5984
- const _hoisted_2$2 = {
6064
+ const _hoisted_1$7 = ["value", "name", "disabled"];
6065
+ const _hoisted_2$4 = {
5985
6066
  key: 0,
5986
6067
  class: "dao-switch__label"
5987
6068
  };
5988
- function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6069
+ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
5989
6070
  return openBlock(), createElementBlock("div", {
5990
6071
  class: normalizeClass(["dao-switch", { "dao-switch--disabled": _ctx.disabled, "dao-switch--size-sm": _ctx.size === "sm" }]),
5991
6072
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
@@ -5996,16 +6077,16 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
5996
6077
  value: _ctx.currentValue,
5997
6078
  name: _ctx.name,
5998
6079
  disabled: _ctx.disabled
5999
- }, null, 8, _hoisted_1$3),
6080
+ }, null, 8, _hoisted_1$7),
6000
6081
  createElementVNode("span", {
6001
6082
  class: normalizeClass(["dao-switch__pill", { "dao-switch-checked": _ctx.currentValue }])
6002
6083
  }, null, 2),
6003
- _ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(_ctx.currentValue ? _ctx.textOn : _ctx.textOff), 1)) : createCommentVNode("", true)
6084
+ _ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(_ctx.currentValue ? _ctx.textOn : _ctx.textOff), 1)) : createCommentVNode("", true)
6004
6085
  ], 2);
6005
6086
  }
6006
- var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4]]);
6087
+ var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]);
6007
6088
  var resizer_vue_vue_type_style_index_0_lang = "";
6008
- const _sfc_main$4 = defineComponent({
6089
+ const _sfc_main$8 = defineComponent({
6009
6090
  name: "DaoResizer",
6010
6091
  props: {
6011
6092
  column: {
@@ -6052,9 +6133,9 @@ const _sfc_main$4 = defineComponent({
6052
6133
  };
6053
6134
  }
6054
6135
  });
6055
- const _hoisted_1$2 = { class: "dao-table-resizer-separator" };
6056
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
6057
- return openBlock(), createElementBlock("span", _hoisted_1$2, [
6136
+ const _hoisted_1$6 = { class: "dao-table-resizer-separator" };
6137
+ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
6138
+ return openBlock(), createElementBlock("span", _hoisted_1$6, [
6058
6139
  !_ctx.disabled ? (openBlock(), createElementBlock("span", {
6059
6140
  key: 0,
6060
6141
  class: "dao-table-resizer-handle",
@@ -6064,7 +6145,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
6064
6145
  }, null, 32)) : createCommentVNode("", true)
6065
6146
  ]);
6066
6147
  }
6067
- var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3]]);
6148
+ var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]);
6068
6149
  const tableProps = {
6069
6150
  id: {
6070
6151
  type: String,
@@ -6086,6 +6167,10 @@ const tableProps = {
6086
6167
  type: [Function, Boolean],
6087
6168
  default: false
6088
6169
  },
6170
+ selectedRows: {
6171
+ type: Array,
6172
+ default: () => []
6173
+ },
6089
6174
  expandable: {
6090
6175
  type: Boolean,
6091
6176
  default: false
@@ -6147,16 +6232,20 @@ const defaultColumnConfig = {
6147
6232
  hidable: true,
6148
6233
  defaultHide: false
6149
6234
  };
6150
- const _sfc_main$3 = defineComponent({
6235
+ const defaultSelectableFn = () => true;
6236
+ const _sfc_main$7 = defineComponent({
6151
6237
  name: "DaoTable",
6152
6238
  components: {
6153
6239
  DaoResizer,
6154
6240
  DaoPagination,
6155
- DaoCheckbox
6241
+ DaoCheckbox,
6242
+ DaoButton,
6243
+ DaoDropdown
6156
6244
  },
6157
6245
  props: tableProps,
6158
6246
  emits: [
6159
6247
  "select",
6248
+ "update:selectedRows",
6160
6249
  "sortChange",
6161
6250
  "hideColumn",
6162
6251
  "afterResize",
@@ -6174,18 +6263,100 @@ const _sfc_main$3 = defineComponent({
6174
6263
  const tableSetting = reactive({});
6175
6264
  const sort = reactive(props.sort);
6176
6265
  const expandRows = reactive([]);
6177
- const selectedRows = reactive(new Set());
6178
- const selectableFn = computed(() => typeof props.selectable === "function" ? props.selectable : () => true);
6266
+ const global2 = reactive({
6267
+ checked: false,
6268
+ indeterminate: false
6269
+ });
6270
+ const selectedRowsModel = useVModel(props, "selectedRows", emit);
6271
+ const selectedRowsSet = reactive(new Set());
6272
+ const isRowSelected = (row) => selectedRowsSet.has(row);
6273
+ const selectableFn = computed(() => typeof props.selectable === "function" ? props.selectable : defaultSelectableFn);
6179
6274
  const selectableRows = computed(() => {
6180
6275
  var _a2;
6181
6276
  const selectableRowsSet = new Set();
6182
6277
  (_a2 = props.data) == null ? void 0 : _a2.forEach((item, index2) => {
6183
- if (selectableFn.value && selectableFn.value(item, index2)) {
6278
+ if (selectableFn.value(item, index2)) {
6184
6279
  selectableRowsSet.add(item);
6185
6280
  }
6186
6281
  });
6187
6282
  return selectableRowsSet;
6188
6283
  });
6284
+ const toggleSelected = (row) => {
6285
+ if (selectedRowsSet.has(row)) {
6286
+ selectedRowsSet.delete(row);
6287
+ } else {
6288
+ selectedRowsSet.add(row);
6289
+ }
6290
+ emit("select", Array.from(selectedRowsSet));
6291
+ };
6292
+ const clearSelection = () => {
6293
+ selectedRowsSet.forEach((item) => {
6294
+ if (selectableRows.value.has(item)) {
6295
+ selectedRowsSet.delete(item);
6296
+ }
6297
+ });
6298
+ };
6299
+ const selectedAll = () => {
6300
+ props.data.forEach((item) => {
6301
+ if (selectableRows.value.has(item)) {
6302
+ selectedRowsSet.add(item);
6303
+ }
6304
+ });
6305
+ };
6306
+ const toggleSelectedAll = () => {
6307
+ if (!global2.checked || global2.indeterminate) {
6308
+ selectedAll();
6309
+ } else {
6310
+ clearSelection();
6311
+ }
6312
+ emit("select", Array.from(selectedRowsSet));
6313
+ };
6314
+ const handleSelectedRows = () => {
6315
+ const nowValue = selectedRowsModel.value;
6316
+ const { data } = props;
6317
+ const { length } = data;
6318
+ selectedRowsSet.clear();
6319
+ if (nowValue.length && length) {
6320
+ for (let index2 = 0; index2 < length; index2 += 1) {
6321
+ const row = data[index2];
6322
+ if (nowValue.includes(row)) {
6323
+ selectedRowsSet.add(row);
6324
+ }
6325
+ }
6326
+ }
6327
+ };
6328
+ watch([() => props.data, () => selectedRowsModel], handleSelectedRows, {
6329
+ immediate: true
6330
+ });
6331
+ watch([() => selectedRowsSet, () => selectableRows], () => {
6332
+ let have = 0;
6333
+ let notHave = 0;
6334
+ for (let i = 0; i < props.data.length; i += 1) {
6335
+ const item = props.data[i];
6336
+ if (selectedRowsSet.has(item)) {
6337
+ have += 1;
6338
+ } else if (selectableRows.value.has(item)) {
6339
+ notHave += 1;
6340
+ }
6341
+ if (have && notHave) {
6342
+ break;
6343
+ }
6344
+ }
6345
+ if (have && notHave) {
6346
+ global2.checked = false;
6347
+ global2.indeterminate = true;
6348
+ } else if (have) {
6349
+ global2.checked = true;
6350
+ global2.indeterminate = false;
6351
+ } else {
6352
+ global2.checked = false;
6353
+ global2.indeterminate = false;
6354
+ }
6355
+ selectedRowsModel.value.splice(0, selectedRowsModel.value.length, ...Array.from(selectedRowsSet));
6356
+ }, {
6357
+ deep: true,
6358
+ immediate: true
6359
+ });
6189
6360
  const expandedRows = reactive(new WeakSet());
6190
6361
  const columnRefs = reactive({});
6191
6362
  const columns = reactive([]);
@@ -6206,10 +6377,6 @@ const _sfc_main$3 = defineComponent({
6206
6377
  }
6207
6378
  });
6208
6379
  const tableScroll = ref();
6209
- const global2 = reactive({
6210
- checked: false,
6211
- indeterminate: false
6212
- });
6213
6380
  const setColumnRef = (columnId, el) => {
6214
6381
  columnRefs[columnId] = el;
6215
6382
  };
@@ -6313,7 +6480,6 @@ const _sfc_main$3 = defineComponent({
6313
6480
  return "";
6314
6481
  };
6315
6482
  const isRowExpanded = (row) => expandRows.includes(row);
6316
- const isRowSelected = (row) => selectedRows.has(row);
6317
6483
  const toggleExpand = (row, rowIndex) => {
6318
6484
  expandedRows.add(row);
6319
6485
  const index2 = expandRows.indexOf(row);
@@ -6325,28 +6491,6 @@ const _sfc_main$3 = defineComponent({
6325
6491
  emit("expandToggle", row, rowIndex, true);
6326
6492
  }
6327
6493
  };
6328
- const toggleSelected = (row) => {
6329
- if (selectedRows.has(row)) {
6330
- selectedRows.delete(row);
6331
- emit("select", Array.from(selectedRows));
6332
- } else {
6333
- selectedRows.add(row);
6334
- emit("select", Array.from(selectedRows));
6335
- }
6336
- };
6337
- const toggleSelectedAll = () => {
6338
- if (!global2.checked || global2.indeterminate) {
6339
- props.data.forEach((item) => {
6340
- if (selectableRows.value.has(item)) {
6341
- selectedRows.add(item);
6342
- }
6343
- });
6344
- emit("select", Array.from(selectedRows));
6345
- } else {
6346
- selectedRows.clear();
6347
- emit("select", []);
6348
- }
6349
- };
6350
6494
  const fixedColumnWidth = () => {
6351
6495
  columns.forEach((column) => {
6352
6496
  tableSetting[column.id].width = `${columnRefs[column.id].clientWidth}px`;
@@ -6358,9 +6502,6 @@ const _sfc_main$3 = defineComponent({
6358
6502
  const clearExpansion = () => {
6359
6503
  expandRows.length = 0;
6360
6504
  };
6361
- const clearSelection = () => {
6362
- selectedRows.clear();
6363
- };
6364
6505
  const clearState = () => {
6365
6506
  clearExpansion();
6366
6507
  clearSelection();
@@ -6368,31 +6509,6 @@ const _sfc_main$3 = defineComponent({
6368
6509
  watch(() => props.columns, () => {
6369
6510
  init();
6370
6511
  }, { deep: true, immediate: true });
6371
- watchEffect(() => {
6372
- let have = 0;
6373
- let notHave = 0;
6374
- for (let i = 0; i < props.data.length; i += 1) {
6375
- const item = props.data[i];
6376
- if (selectedRows.has(item)) {
6377
- have += 1;
6378
- } else if (selectableRows.value.has(item)) {
6379
- notHave += 1;
6380
- }
6381
- if (have && notHave) {
6382
- break;
6383
- }
6384
- }
6385
- if (have && notHave) {
6386
- global2.checked = false;
6387
- global2.indeterminate = true;
6388
- } else if (have) {
6389
- global2.checked = true;
6390
- global2.indeterminate = false;
6391
- } else {
6392
- global2.checked = false;
6393
- global2.indeterminate = false;
6394
- }
6395
- });
6396
6512
  const isEllipsis = () => {
6397
6513
  if (!tableScroll.value) {
6398
6514
  return false;
@@ -6429,10 +6545,7 @@ const _sfc_main$3 = defineComponent({
6429
6545
  sort,
6430
6546
  thClass,
6431
6547
  isRowExpanded,
6432
- isRowSelected,
6433
6548
  toggleExpand,
6434
- toggleSelected,
6435
- toggleSelectedAll,
6436
6549
  setColumnRef,
6437
6550
  fixedColumnWidth,
6438
6551
  updateColumnWidth,
@@ -6444,16 +6557,19 @@ const _sfc_main$3 = defineComponent({
6444
6557
  expandedRows,
6445
6558
  onRowClick,
6446
6559
  isEmpty,
6447
- selectableRows
6560
+ selectableRows,
6561
+ isRowSelected,
6562
+ toggleSelected,
6563
+ toggleSelectedAll
6448
6564
  };
6449
6565
  }
6450
6566
  });
6451
- const _hoisted_1$1 = { class: "dao-table" };
6452
- const _hoisted_2$1 = {
6567
+ const _hoisted_1$5 = { class: "dao-table" };
6568
+ const _hoisted_2$3 = {
6453
6569
  key: 0,
6454
6570
  class: "dao-table-thead"
6455
6571
  };
6456
- const _hoisted_3 = { class: "dao-table-tr" };
6572
+ const _hoisted_3$2 = { class: "dao-table-tr" };
6457
6573
  const _hoisted_4 = {
6458
6574
  key: 0,
6459
6575
  class: "dao-table-th"
@@ -6484,9 +6600,11 @@ const _hoisted_14 = {
6484
6600
  class: "dao-table__empty-block"
6485
6601
  };
6486
6602
  const _hoisted_15 = { class: "dao-table-pagination" };
6487
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6603
+ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
6488
6604
  const _component_dao_checkbox = resolveComponent("dao-checkbox");
6489
6605
  const _component_dao_resizer = resolveComponent("dao-resizer");
6606
+ const _component_dao_button = resolveComponent("dao-button");
6607
+ const _component_dao_dropdown = resolveComponent("dao-dropdown");
6490
6608
  const _component_dao_pagination = resolveComponent("dao-pagination");
6491
6609
  return openBlock(), createElementBlock("div", {
6492
6610
  class: normalizeClass(["dao-table-container", { "dao-table-container--with-shadow": !_ctx.noShadow }])
@@ -6495,9 +6613,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6495
6613
  ref: "tableScroll",
6496
6614
  class: normalizeClass(["dao-table-scroll", _ctx.tableWrapperClasses])
6497
6615
  }, [
6498
- createElementVNode("table", _hoisted_1$1, [
6499
- _ctx.showHeader ? (openBlock(), createElementBlock("thead", _hoisted_2$1, [
6500
- createElementVNode("tr", _hoisted_3, [
6616
+ createElementVNode("table", _hoisted_1$5, [
6617
+ _ctx.showHeader ? (openBlock(), createElementBlock("thead", _hoisted_2$3, [
6618
+ createElementVNode("tr", _hoisted_3$2, [
6501
6619
  _ctx.selectable ? (openBlock(), createElementBlock("th", _hoisted_4, [
6502
6620
  createVNode(_component_dao_checkbox, {
6503
6621
  checked: _ctx.global.checked,
@@ -6548,6 +6666,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6548
6666
  createVNode(_component_dao_checkbox, {
6549
6667
  disabled: !_ctx.selectableRows.has(row),
6550
6668
  checked: _ctx.isRowSelected(row),
6669
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
6670
+ }, ["stop"])),
6551
6671
  onChange: ($event) => _ctx.toggleSelected(row)
6552
6672
  }, null, 8, ["disabled", "checked", "onChange"])
6553
6673
  ])) : createCommentVNode("", true),
@@ -6563,7 +6683,35 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6563
6683
  class: "dao-table-td",
6564
6684
  style: normalizeStyle(_ctx.columnStyle(column.id))
6565
6685
  }, [
6566
- renderSlot(_ctx.$slots, `td-${column.id}`, {
6686
+ column.id === "action" ? renderSlot(_ctx.$slots, `td-${column.id}`, {
6687
+ key: 0,
6688
+ value: row[column.id],
6689
+ row,
6690
+ rowIndex: index2
6691
+ }, () => [
6692
+ createVNode(_component_dao_dropdown, {
6693
+ placement: "bottom-end",
6694
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {
6695
+ }, ["stop"]))
6696
+ }, {
6697
+ menu: withCtx(() => [
6698
+ renderSlot(_ctx.$slots, `td-${column.id}-menu`, {
6699
+ value: row[column.id],
6700
+ row,
6701
+ rowIndex: index2
6702
+ })
6703
+ ]),
6704
+ default: withCtx(() => [
6705
+ createVNode(_component_dao_button, {
6706
+ size: "sm",
6707
+ "icon-left": "icon_more",
6708
+ type: "secondary"
6709
+ })
6710
+ ]),
6711
+ _: 2
6712
+ }, 1024)
6713
+ ]) : renderSlot(_ctx.$slots, `td-${column.id}`, {
6714
+ key: 1,
6567
6715
  value: row[column.id],
6568
6716
  row,
6569
6717
  rowIndex: index2
@@ -6598,9 +6746,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6598
6746
  !_ctx.isEmpty && ((_a2 = _ctx.pageLayout) == null ? void 0 : _a2.length) ? (openBlock(), createBlock(_component_dao_pagination, {
6599
6747
  key: 0,
6600
6748
  "current-page": _ctx.currentPage,
6601
- "onUpdate:current-page": _cache[0] || (_cache[0] = ($event) => _ctx.currentPage = $event),
6749
+ "onUpdate:current-page": _cache[2] || (_cache[2] = ($event) => _ctx.currentPage = $event),
6602
6750
  "page-size": _ctx.pageSize,
6603
- "onUpdate:page-size": _cache[1] || (_cache[1] = ($event) => _ctx.pageSize = $event),
6751
+ "onUpdate:page-size": _cache[3] || (_cache[3] = ($event) => _ctx.pageSize = $event),
6604
6752
  "page-size-options": _ctx.pageSizeOptions,
6605
6753
  "page-format": _ctx.pageFormat,
6606
6754
  compact: _ctx.compact,
@@ -6608,19 +6756,19 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6608
6756
  "total-format": _ctx.totalFormat,
6609
6757
  layout: _ctx.pageLayout,
6610
6758
  "page-sizer-width": _ctx.pageSizerWidth,
6611
- onNext: _cache[2] || (_cache[2] = ($event) => {
6759
+ onNext: _cache[4] || (_cache[4] = ($event) => {
6612
6760
  _ctx.$emit("next", $event);
6613
6761
  _ctx.clearState();
6614
6762
  }),
6615
- onPrev: _cache[3] || (_cache[3] = ($event) => {
6763
+ onPrev: _cache[5] || (_cache[5] = ($event) => {
6616
6764
  _ctx.$emit("prev", $event);
6617
6765
  _ctx.clearState();
6618
6766
  }),
6619
- onPageChange: _cache[4] || (_cache[4] = ($event) => {
6767
+ onPageChange: _cache[6] || (_cache[6] = ($event) => {
6620
6768
  _ctx.$emit("pageChange", $event);
6621
6769
  _ctx.clearState();
6622
6770
  }),
6623
- onSizeChange: _cache[5] || (_cache[5] = ($event) => {
6771
+ onSizeChange: _cache[7] || (_cache[7] = ($event) => {
6624
6772
  _ctx.$emit("sizeChange", $event);
6625
6773
  _ctx.clearState();
6626
6774
  })
@@ -6630,9 +6778,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6630
6778
  ])
6631
6779
  ], 2);
6632
6780
  }
6633
- var table = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2]]);
6781
+ var table = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]);
6634
6782
  var tabNav_scss_vue_type_style_index_0_src_lang = "";
6635
- const _sfc_main$2 = defineComponent({
6783
+ const _sfc_main$6 = defineComponent({
6636
6784
  name: "DaoTabNav",
6637
6785
  props: {
6638
6786
  type: {
@@ -6683,7 +6831,7 @@ const _sfc_main$2 = defineComponent({
6683
6831
  const activeLineStyle = ref({});
6684
6832
  setActiveLineStyle = () => {
6685
6833
  const tab = unref(activeTab);
6686
- if (tab && tab.offsetWidth && tab.offsetLeft) {
6834
+ if (tab && tab.offsetWidth && tab.offsetLeft !== void 0) {
6687
6835
  activeLineStyle.value = {
6688
6836
  "--active-line-width": `${tab.offsetWidth || 0}px`,
6689
6837
  "--active-line-left": `${tab.offsetLeft || 0}px`
@@ -6731,12 +6879,12 @@ const _sfc_main$2 = defineComponent({
6731
6879
  const isActive = tab.value === props.currentTab;
6732
6880
  const hasHoverLine = isLine.value && !tab.disabled;
6733
6881
  const hasActiveLine = isLine.value && isActive;
6734
- return h("li", {
6882
+ return h("div", {
6735
6883
  class: {
6736
- "dao-tab-nav-item": true,
6737
- "dao-tab-nav-item--active": isActive,
6738
- "dao-tab-nav-item--custom": isNotString,
6739
- "dao-tab-nav-item--disabled": tab.disabled
6884
+ "dao-tabs__nav-item": true,
6885
+ "dao-tabs__nav-item--active": isActive,
6886
+ "dao-tabs__nav-item--custom": isNotString,
6887
+ "dao-tabs__nav-item--disabled": tab.disabled
6740
6888
  },
6741
6889
  ref: hasActiveLine ? activeTab : void 0,
6742
6890
  key: index2,
@@ -6745,21 +6893,24 @@ const _sfc_main$2 = defineComponent({
6745
6893
  onMouseleave: hasHoverLine ? onMouseleave : void 0
6746
6894
  }, [isNotString ? label() : label]);
6747
6895
  }));
6748
- return () => h("ul", {
6896
+ return () => h("div", {
6897
+ class: [
6898
+ "dao-tabs__nav__scroll"
6899
+ ]
6900
+ }, h("div", {
6749
6901
  class: [
6750
- "dao-tab-nav",
6751
- `dao-tab-nav--${props.type}`
6902
+ "dao-tabs__nav"
6752
6903
  ],
6753
6904
  style: lineStyle == null ? void 0 : lineStyle.value,
6754
6905
  ref: tabNav
6755
- }, tabsLi.value);
6906
+ }, tabsLi.value));
6756
6907
  }
6757
6908
  });
6758
6909
  var tabs_scss_vue_type_style_index_0_src_lang = "";
6759
- const _sfc_main$1 = defineComponent({
6910
+ const _sfc_main$5 = defineComponent({
6760
6911
  name: "DaoTabs",
6761
6912
  components: {
6762
- TabNav: _sfc_main$2
6913
+ TabNav: _sfc_main$6
6763
6914
  },
6764
6915
  props: {
6765
6916
  type: {
@@ -6828,30 +6979,44 @@ const _sfc_main$1 = defineComponent({
6828
6979
  };
6829
6980
  }
6830
6981
  });
6831
- const _hoisted_1 = { class: "dao-tabs" };
6832
- const _hoisted_2 = {
6982
+ const _hoisted_1$4 = { class: "dao-tabs__nav__warp" };
6983
+ const _hoisted_2$2 = {
6984
+ key: 0,
6985
+ class: "dao-tabs__action"
6986
+ };
6987
+ const _hoisted_3$1 = {
6833
6988
  ref: "tabBody",
6834
- class: "dao-tabs-body"
6989
+ class: "dao-tabs__body"
6835
6990
  };
6836
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
6991
+ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6837
6992
  const _component_tab_nav = resolveComponent("tab-nav");
6838
- return openBlock(), createElementBlock("div", _hoisted_1, [
6839
- createVNode(_component_tab_nav, {
6840
- type: _ctx.type,
6841
- "tab-list": _ctx.tabList,
6842
- class: normalizeClass({ "dao-tabs--right": _ctx.direction === "right" }),
6843
- "current-tab": _ctx.modelValue,
6844
- onUpdateValue: _ctx.updateValue,
6845
- onClick: _ctx.onClick
6846
- }, null, 8, ["type", "tab-list", "class", "current-tab", "onUpdateValue", "onClick"]),
6847
- createElementVNode("div", _hoisted_2, [
6993
+ return openBlock(), createElementBlock("div", {
6994
+ class: normalizeClass(["dao-tabs", ["dao-tabs--" + _ctx.type, _ctx.direction === "right" ? "dao-tabs--right" : ""]])
6995
+ }, [
6996
+ createElementVNode("div", {
6997
+ class: normalizeClass(["dao-tabs__header", "dao-tabs__header--" + _ctx.type])
6998
+ }, [
6999
+ createElementVNode("div", _hoisted_1$4, [
7000
+ createVNode(_component_tab_nav, {
7001
+ type: _ctx.type,
7002
+ "tab-list": _ctx.tabList,
7003
+ "current-tab": _ctx.modelValue,
7004
+ onUpdateValue: _ctx.updateValue,
7005
+ onClick: _ctx.onClick
7006
+ }, null, 8, ["type", "tab-list", "current-tab", "onUpdateValue", "onClick"])
7007
+ ]),
7008
+ _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
7009
+ renderSlot(_ctx.$slots, "action")
7010
+ ])) : createCommentVNode("", true)
7011
+ ], 2),
7012
+ createElementVNode("div", _hoisted_3$1, [
6848
7013
  renderSlot(_ctx.$slots, "default")
6849
7014
  ], 512)
6850
- ]);
7015
+ ], 2);
6851
7016
  }
6852
- var tabs = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
7017
+ var tabs = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
6853
7018
  var tabItem_scss_vue_type_style_index_0_src_lang = "";
6854
- const _sfc_main = defineComponent({
7019
+ const _sfc_main$4 = defineComponent({
6855
7020
  name: "DaoTabItem",
6856
7021
  props: {
6857
7022
  label: {
@@ -6881,7 +7046,7 @@ const _sfc_main = defineComponent({
6881
7046
  };
6882
7047
  }
6883
7048
  });
6884
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7049
+ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6885
7050
  return openBlock(), createElementBlock("div", {
6886
7051
  ref: "tabItem",
6887
7052
  class: normalizeClass(["dao-tab-item", {
@@ -6891,7 +7056,657 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6891
7056
  renderSlot(_ctx.$slots, "default")
6892
7057
  ], 2);
6893
7058
  }
6894
- var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
7059
+ var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
7060
+ const placements = [
7061
+ "auto",
7062
+ "auto-start",
7063
+ "auto-end",
7064
+ "top",
7065
+ "top-start",
7066
+ "top-end",
7067
+ "right",
7068
+ "right-start",
7069
+ "right-end",
7070
+ "bottom",
7071
+ "bottom-start",
7072
+ "bottom-end",
7073
+ "left",
7074
+ "left-start",
7075
+ "left-end"
7076
+ ];
7077
+ const ellipsisProps = {
7078
+ type: {
7079
+ type: String,
7080
+ default: "tooltip"
7081
+ },
7082
+ manual: {
7083
+ type: Boolean,
7084
+ default: false
7085
+ },
7086
+ force: {
7087
+ type: Boolean,
7088
+ default: false
7089
+ },
7090
+ disabled: {
7091
+ type: Boolean,
7092
+ default: false
7093
+ },
7094
+ content: {
7095
+ type: String,
7096
+ default: ""
7097
+ },
7098
+ width: {
7099
+ type: Number,
7100
+ default: 200
7101
+ },
7102
+ ellipsisPlacement: {
7103
+ type: String,
7104
+ default: "bottom-start",
7105
+ validator: (value) => placements.includes(value)
7106
+ },
7107
+ appendTo: {
7108
+ type: [String, Boolean, Object],
7109
+ default: "root"
7110
+ },
7111
+ popperClass: {
7112
+ type: String,
7113
+ default: ""
7114
+ },
7115
+ offset: {
7116
+ type: [Number, String],
7117
+ default: 10
7118
+ },
7119
+ delay: {
7120
+ type: [Number, Object, String],
7121
+ default: () => ({ show: 0, hide: 100 })
7122
+ }
7123
+ };
7124
+ var ellipsis_vue_vue_type_style_index_0_lang = "";
7125
+ const _sfc_main$3 = defineComponent({
7126
+ name: "DaoEllipsis",
7127
+ components: {
7128
+ Tooltip: _sfc_main$s
7129
+ },
7130
+ props: ellipsisProps,
7131
+ setup(props) {
7132
+ const disabled = ref(true);
7133
+ const tooltipRef = ref();
7134
+ const ComponentType = computed(() => props.type === "tooltip" ? _sfc_main$s : _sfc_main$d);
7135
+ const isOpen = computed(() => {
7136
+ var _a2, _b2, _c, _d;
7137
+ return (_d = (_c = (_b2 = (_a2 = tooltipRef.value) == null ? void 0 : _a2.$) == null ? void 0 : _b2.ctx) == null ? void 0 : _c.isOpen) != null ? _d : false;
7138
+ });
7139
+ const isEllipsis = ref(false);
7140
+ const update = (ele) => {
7141
+ isEllipsis.value = ((ele == null ? void 0 : ele.offsetWidth) || 0) < ((ele == null ? void 0 : ele.scrollWidth) || 0);
7142
+ if (props.disabled) {
7143
+ disabled.value = true;
7144
+ return;
7145
+ }
7146
+ if (props.force) {
7147
+ disabled.value = false;
7148
+ return;
7149
+ }
7150
+ disabled.value = !isEllipsis.value;
7151
+ };
7152
+ function onMouseOver(e) {
7153
+ var _a2;
7154
+ let path = (_a2 = e == null ? void 0 : e.path) != null ? _a2 : [];
7155
+ if (e.composedPath) {
7156
+ path = e.composedPath();
7157
+ }
7158
+ const count = path.length;
7159
+ let index2 = 0;
7160
+ while (index2 < count) {
7161
+ const target = path[index2];
7162
+ if (target.scrollWidth) {
7163
+ update(target);
7164
+ break;
7165
+ }
7166
+ index2 += 1;
7167
+ }
7168
+ }
7169
+ return {
7170
+ ns: "dao-ellipsis",
7171
+ disabled,
7172
+ onMouseOver,
7173
+ tooltipRef,
7174
+ isOpen,
7175
+ isEllipsis,
7176
+ Tooltip: _sfc_main$s,
7177
+ ComponentType
7178
+ };
7179
+ }
7180
+ });
7181
+ const _hoisted_1$3 = { key: 1 };
7182
+ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
7183
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.ComponentType), {
7184
+ ref: "ComponentRef",
7185
+ disabled: _ctx.disabled,
7186
+ "visible-arrow": false,
7187
+ placement: _ctx.ellipsisPlacement,
7188
+ offset: _ctx.offset,
7189
+ class: normalizeClass({ ns: _ctx.ns, [`${_ctx.ns}--auto-mode`]: !_ctx.manual }),
7190
+ "append-to": _ctx.appendTo,
7191
+ delay: _ctx.delay,
7192
+ "popper-class": [`${_ctx.ns}-popper`, _ctx.popperClass].join(" "),
7193
+ width: _ctx.width
7194
+ }, createSlots({
7195
+ default: withCtx(() => [
7196
+ createElementVNode("span", {
7197
+ class: normalizeClass([_ctx.ns + "__target", { "is-disabled": _ctx.disabled }]),
7198
+ onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.onMouseOver && _ctx.onMouseOver(...args))
7199
+ }, [
7200
+ renderSlot(_ctx.$slots, "default")
7201
+ ], 34)
7202
+ ]),
7203
+ _: 2
7204
+ }, [
7205
+ !_ctx.disabled ? {
7206
+ name: "content",
7207
+ fn: withCtx(() => [
7208
+ _ctx.$slots.content ? renderSlot(_ctx.$slots, "content", {
7209
+ key: 0,
7210
+ show: _ctx.isOpen,
7211
+ ellipsis: _ctx.isEllipsis
7212
+ }) : _ctx.content ? (openBlock(), createElementBlock("span", _hoisted_1$3, toDisplayString(_ctx.content), 1)) : renderSlot(_ctx.$slots, "default", { key: 2 })
7213
+ ])
7214
+ } : void 0
7215
+ ]), 1032, ["disabled", "placement", "offset", "class", "append-to", "delay", "popper-class", "width"]);
7216
+ }
7217
+ var DaoEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
7218
+ const transferProps = {
7219
+ source: {
7220
+ type: Array,
7221
+ default: () => []
7222
+ },
7223
+ modelValue: {
7224
+ type: Array,
7225
+ default: () => []
7226
+ },
7227
+ disabledKeys: {
7228
+ type: Array,
7229
+ default: () => []
7230
+ },
7231
+ filterable: {
7232
+ type: Array,
7233
+ default: () => [false, false]
7234
+ },
7235
+ filterMethod: {
7236
+ type: Array,
7237
+ default: () => []
7238
+ },
7239
+ filterPlaceholder: {
7240
+ type: Array,
7241
+ default: () => []
7242
+ },
7243
+ hideDesc: {
7244
+ type: Boolean,
7245
+ default: false
7246
+ },
7247
+ props: {
7248
+ type: Object,
7249
+ default: () => ({})
7250
+ }
7251
+ };
7252
+ const panelType = ["source", "target"];
7253
+ const transferPanelProp = {
7254
+ type: {
7255
+ type: String,
7256
+ default: panelType[0]
7257
+ },
7258
+ data: {
7259
+ type: Array,
7260
+ default: () => []
7261
+ },
7262
+ checkedKeys: {
7263
+ type: Array,
7264
+ default: () => []
7265
+ },
7266
+ disabledKeys: transferProps.disabledKeys,
7267
+ filterable: {
7268
+ type: Boolean,
7269
+ default: false
7270
+ },
7271
+ filterMethod: {
7272
+ type: Function
7273
+ },
7274
+ filterPlaceholder: {
7275
+ type: String
7276
+ },
7277
+ hideDesc: transferProps.hideDesc,
7278
+ props: transferProps.props
7279
+ };
7280
+ var link_vue_vue_type_style_index_0_lang = "";
7281
+ const _sfc_main$2 = defineComponent({
7282
+ name: "Link",
7283
+ components: {
7284
+ DaoIcon
7285
+ },
7286
+ props: {
7287
+ type: {
7288
+ type: String,
7289
+ default: "default"
7290
+ },
7291
+ disabled: {
7292
+ type: Boolean,
7293
+ default: false
7294
+ },
7295
+ icon: {
7296
+ type: String,
7297
+ default: void 0
7298
+ }
7299
+ },
7300
+ emits: {
7301
+ click: (evt) => evt instanceof MouseEvent
7302
+ },
7303
+ setup(props, { emit }) {
7304
+ function handleClick(event) {
7305
+ if (!props.disabled) {
7306
+ emit("click", event);
7307
+ }
7308
+ }
7309
+ return {
7310
+ handleClick
7311
+ };
7312
+ }
7313
+ });
7314
+ const _hoisted_1$2 = {
7315
+ key: 1,
7316
+ class: "dao-link__inner"
7317
+ };
7318
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7319
+ const _component_dao_icon = resolveComponent("dao-icon");
7320
+ return openBlock(), createElementBlock("span", {
7321
+ class: normalizeClass(["dao-link", `dao-link--${_ctx.type}`, _ctx.disabled && "is-disabled"]),
7322
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
7323
+ }, [
7324
+ _ctx.icon ? (openBlock(), createBlock(_component_dao_icon, {
7325
+ key: 0,
7326
+ "use-font": "",
7327
+ class: "dao-action-icon__svg",
7328
+ name: _ctx.icon
7329
+ }, null, 8, ["name"])) : createCommentVNode("", true),
7330
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$2, [
7331
+ renderSlot(_ctx.$slots, "default")
7332
+ ])) : createCommentVNode("", true)
7333
+ ], 2);
7334
+ }
7335
+ var DaoLink = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
7336
+ const _sfc_main$1 = defineComponent({
7337
+ name: "DaoTransferPanel",
7338
+ components: {
7339
+ DaoCheckbox,
7340
+ DaoInput,
7341
+ DaoActionIcon,
7342
+ DaoLink,
7343
+ DaoEllipsis
7344
+ },
7345
+ props: transferPanelProp,
7346
+ emits: ["selectedChange", "refresh"],
7347
+ setup(props, { slots, emit }) {
7348
+ const query = ref("");
7349
+ const labelProp = computed(() => props.props.label || "label");
7350
+ const keyProp = computed(() => props.props.key || "key");
7351
+ const descProp = computed(() => props.props.desc || "desc");
7352
+ const isSource = computed(() => props.type === "source");
7353
+ const filteredData = computed(() => props.data.filter((item) => {
7354
+ if (!props.filterable) {
7355
+ return true;
7356
+ }
7357
+ if (typeof props.filterMethod === "function") {
7358
+ return props.filterMethod(query.value, item);
7359
+ }
7360
+ const label = item[labelProp.value] || item[keyProp.value];
7361
+ return String(label).toLowerCase().includes(query.value.toLowerCase());
7362
+ }));
7363
+ const hasNoMatch = computed(() => query.value.length > 0 && filteredData.value.length === 0);
7364
+ const isEmpty = computed(() => hasNoMatch.value || props.data.length === 0);
7365
+ const hasFooter = computed(() => {
7366
+ var _a2;
7367
+ return !!((_a2 = slots.footer) == null ? void 0 : _a2.call(slots));
7368
+ });
7369
+ function handleEvent(action, row) {
7370
+ let direction = "";
7371
+ const key = row[keyProp.value];
7372
+ const isDisabled = (props.disabledKeys || []).includes(key);
7373
+ const isChecked = (props.checkedKeys || []).includes(key);
7374
+ switch (action) {
7375
+ case "remove":
7376
+ direction = "left";
7377
+ break;
7378
+ case "check":
7379
+ direction = isChecked ? "left" : "right";
7380
+ break;
7381
+ }
7382
+ if (!isDisabled) {
7383
+ emit("selectedChange", { direction, row });
7384
+ }
7385
+ }
7386
+ return {
7387
+ ns: "dao-transfer-panel",
7388
+ query,
7389
+ labelProp,
7390
+ keyProp,
7391
+ descProp,
7392
+ filteredData,
7393
+ isSource,
7394
+ isEmpty,
7395
+ hasFooter,
7396
+ handleEvent
7397
+ };
7398
+ }
7399
+ });
7400
+ const _hoisted_1$1 = ["onClick"];
7401
+ const _hoisted_2$1 = /* @__PURE__ */ createTextVNode(" empty ");
7402
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7403
+ const _component_dao_input = resolveComponent("dao-input");
7404
+ const _component_dao_action_icon = resolveComponent("dao-action-icon");
7405
+ const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
7406
+ const _component_dao_checkbox = resolveComponent("dao-checkbox");
7407
+ const _component_dao_link = resolveComponent("dao-link");
7408
+ return openBlock(), createElementBlock("div", {
7409
+ class: normalizeClass([_ctx.ns, `${_ctx.ns}--${_ctx.type}`, _ctx.hideDesc && `${_ctx.ns}--desc-hide`])
7410
+ }, [
7411
+ createElementVNode("div", {
7412
+ class: normalizeClass(`${_ctx.ns}__header`)
7413
+ }, [
7414
+ renderSlot(_ctx.$slots, "header", {}, () => [
7415
+ createElementVNode("div", {
7416
+ class: normalizeClass(`${_ctx.ns}__header-left`)
7417
+ }, [
7418
+ renderSlot(_ctx.$slots, "header-left")
7419
+ ], 2),
7420
+ createElementVNode("div", {
7421
+ class: normalizeClass(`${_ctx.ns}__header-right`)
7422
+ }, [
7423
+ renderSlot(_ctx.$slots, "header-right")
7424
+ ], 2)
7425
+ ])
7426
+ ], 2),
7427
+ createElementVNode("div", {
7428
+ class: normalizeClass(`${_ctx.ns}__toolbar`)
7429
+ }, [
7430
+ createElementVNode("div", {
7431
+ class: normalizeClass(`${_ctx.ns}__toolbar-left`)
7432
+ }, [
7433
+ _ctx.filterable ? (openBlock(), createBlock(_component_dao_input, {
7434
+ key: 0,
7435
+ modelValue: _ctx.query,
7436
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.query = $event),
7437
+ block: "",
7438
+ type: "search",
7439
+ placeholder: _ctx.filterPlaceholder,
7440
+ class: normalizeClass(`${_ctx.ns}__toolbar__search`)
7441
+ }, null, 8, ["modelValue", "placeholder", "class"])) : createCommentVNode("", true)
7442
+ ], 2),
7443
+ _ctx.isSource ? (openBlock(), createElementBlock("div", {
7444
+ key: 0,
7445
+ class: normalizeClass(`${_ctx.ns}__toolbar-right`)
7446
+ }, [
7447
+ createVNode(_component_dao_action_icon, {
7448
+ name: "icon-refresh",
7449
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("refresh"))
7450
+ })
7451
+ ], 2)) : createCommentVNode("", true)
7452
+ ], 2),
7453
+ createElementVNode("div", {
7454
+ class: normalizeClass([`${_ctx.ns}__body`, _ctx.hasFooter && "is-with-footer"])
7455
+ }, [
7456
+ withDirectives(createElementVNode("div", {
7457
+ class: normalizeClass([`${_ctx.ns}__list`, _ctx.filterable && "is-filterable"])
7458
+ }, [
7459
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filteredData, (item) => {
7460
+ return openBlock(), createElementBlock("div", {
7461
+ key: _ctx.type + item[_ctx.keyProp],
7462
+ class: normalizeClass(`${_ctx.ns}__item`)
7463
+ }, [
7464
+ createVNode(_component_dao_checkbox, {
7465
+ id: _ctx.type + item[_ctx.keyProp],
7466
+ class: normalizeClass(_ctx.ns + "__content"),
7467
+ type: "checkbox",
7468
+ checked: _ctx.checkedKeys.includes(item[_ctx.keyProp]),
7469
+ disabled: _ctx.disabledKeys.includes(item[_ctx.keyProp]),
7470
+ onChange: ($event) => _ctx.handleEvent("check", item)
7471
+ }, createSlots({
7472
+ default: withCtx(() => [
7473
+ createVNode(_component_dao_ellipsis, null, {
7474
+ default: withCtx(() => [
7475
+ renderSlot(_ctx.$slots, "item", {
7476
+ row: item,
7477
+ role: _ctx.type
7478
+ }, () => [
7479
+ createTextVNode(toDisplayString(String(item[_ctx.labelProp])), 1)
7480
+ ])
7481
+ ]),
7482
+ _: 2
7483
+ }, 1024)
7484
+ ]),
7485
+ _: 2
7486
+ }, [
7487
+ !_ctx.hideDesc && !_ctx.$slots.item ? {
7488
+ name: "helper",
7489
+ fn: withCtx(() => [
7490
+ createVNode(_component_dao_ellipsis, null, {
7491
+ default: withCtx(() => [
7492
+ createTextVNode(toDisplayString(String(item[_ctx.descProp])), 1)
7493
+ ]),
7494
+ _: 2
7495
+ }, 1024)
7496
+ ])
7497
+ } : void 0
7498
+ ]), 1032, ["id", "class", "checked", "disabled", "onChange"]),
7499
+ !_ctx.isSource && !_ctx.disabledKeys.includes(item[_ctx.keyProp]) ? (openBlock(), createElementBlock("div", {
7500
+ key: 0,
7501
+ onClick: ($event) => _ctx.handleEvent("remove", item)
7502
+ }, [
7503
+ createVNode(_component_dao_link, {
7504
+ style: { fontSize: "16px" },
7505
+ icon: "icon-sys-error"
7506
+ })
7507
+ ], 8, _hoisted_1$1)) : createCommentVNode("", true)
7508
+ ], 2);
7509
+ }), 128))
7510
+ ], 2), [
7511
+ [vShow, !_ctx.isEmpty]
7512
+ ]),
7513
+ withDirectives(createElementVNode("div", {
7514
+ class: normalizeClass(`${_ctx.ns}__empty`)
7515
+ }, [
7516
+ renderSlot(_ctx.$slots, "empty", {}, () => [
7517
+ _hoisted_2$1
7518
+ ])
7519
+ ], 2), [
7520
+ [vShow, _ctx.isEmpty]
7521
+ ])
7522
+ ], 2),
7523
+ _ctx.hasFooter ? (openBlock(), createElementBlock("p", {
7524
+ key: 0,
7525
+ class: normalizeClass(`${_ctx.ns}__footer`)
7526
+ }, [
7527
+ renderSlot(_ctx.$slots, "footer")
7528
+ ], 2)) : createCommentVNode("", true)
7529
+ ], 2);
7530
+ }
7531
+ var transferPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
7532
+ var transfer_scss_vue_type_style_index_0_src_lang = "";
7533
+ const _sfc_main = defineComponent({
7534
+ name: "DaoTransfer",
7535
+ components: {
7536
+ transferPanel,
7537
+ DaoLink
7538
+ },
7539
+ props: transferProps,
7540
+ emits: ["update:modelValue", "add", "clear", "change", "refresh"],
7541
+ setup(props, { emit }) {
7542
+ const keyProp = computed(() => props.props.key || "key");
7543
+ const sourceData = computed(() => props.source || []);
7544
+ const selectedKeys = useVModel(props, "modelValue", emit, {
7545
+ passive: true
7546
+ });
7547
+ const targetData = computed(() => sourceData.value.filter((item) => selectedKeys.value.includes(item == null ? void 0 : item[keyProp.value])));
7548
+ const onAdd = () => {
7549
+ emit("add");
7550
+ };
7551
+ const onChange = ({
7552
+ direction,
7553
+ row
7554
+ }) => {
7555
+ const key = row[keyProp.value];
7556
+ const index2 = selectedKeys.value.indexOf(key);
7557
+ switch (direction) {
7558
+ case "left":
7559
+ if (index2 > -1) {
7560
+ selectedKeys.value.splice(index2, 1);
7561
+ }
7562
+ break;
7563
+ case "right":
7564
+ index2 > -1 || selectedKeys.value.push(key);
7565
+ break;
7566
+ default:
7567
+ console.warn(`${direction} callback is not defined`);
7568
+ break;
7569
+ }
7570
+ emit("change", { direction, rows: [row] });
7571
+ };
7572
+ const onClear = () => {
7573
+ const disabledKeys = props.disabledKeys || [];
7574
+ if (disabledKeys.length) {
7575
+ selectedKeys.value = selectedKeys.value.filter((key) => disabledKeys.includes(key));
7576
+ } else {
7577
+ selectedKeys.value = [];
7578
+ }
7579
+ emit("clear", selectedKeys.value);
7580
+ };
7581
+ return {
7582
+ sourceData,
7583
+ targetData,
7584
+ selectedKeys,
7585
+ onAdd,
7586
+ onChange,
7587
+ onClear
7588
+ };
7589
+ }
7590
+ });
7591
+ const _hoisted_1 = { class: "dao-transfer" };
7592
+ const _hoisted_2 = /* @__PURE__ */ createTextVNode(" + \u6DFB\u52A0 ");
7593
+ const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u6E05\u7A7A ");
7594
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7595
+ var _a2, _b2, _c, _d, _e, _f, _g, _h;
7596
+ const _component_dao_link = resolveComponent("dao-link");
7597
+ const _component_transfer_panel = resolveComponent("transfer-panel");
7598
+ return openBlock(), createElementBlock("div", _hoisted_1, [
7599
+ createVNode(_component_transfer_panel, {
7600
+ ref: "leftPanel",
7601
+ type: "source",
7602
+ "hide-desc": _ctx.hideDesc,
7603
+ data: _ctx.sourceData,
7604
+ "checked-keys": _ctx.selectedKeys,
7605
+ filterable: (_a2 = _ctx.filterable) == null ? void 0 : _a2[0],
7606
+ "filter-method": (_b2 = _ctx.filterMethod) == null ? void 0 : _b2[0],
7607
+ "filter-placeholder": (_c = _ctx.filterPlaceholder) == null ? void 0 : _c[0],
7608
+ "disabled-keys": _ctx.disabledKeys,
7609
+ props: _ctx.props,
7610
+ onSelectedChange: _ctx.onChange,
7611
+ onRefresh: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refresh"))
7612
+ }, createSlots({
7613
+ header: withCtx(() => [
7614
+ renderSlot(_ctx.$slots, "left-header")
7615
+ ]),
7616
+ "header-left": withCtx(() => [
7617
+ renderSlot(_ctx.$slots, "left-header-left")
7618
+ ]),
7619
+ "header-right": withCtx(() => [
7620
+ renderSlot(_ctx.$slots, "left-header-right", {}, () => [
7621
+ createVNode(_component_dao_link, {
7622
+ type: "primary",
7623
+ class: "dao-transfer__add",
7624
+ onClick: _ctx.onAdd
7625
+ }, {
7626
+ default: withCtx(() => [
7627
+ renderSlot(_ctx.$slots, "add", {}, () => [
7628
+ _hoisted_2
7629
+ ])
7630
+ ]),
7631
+ _: 3
7632
+ }, 8, ["onClick"])
7633
+ ])
7634
+ ]),
7635
+ _: 2
7636
+ }, [
7637
+ _ctx.$slots.item ? {
7638
+ name: "item",
7639
+ fn: withCtx(({ row, role }) => [
7640
+ renderSlot(_ctx.$slots, "item", {
7641
+ row,
7642
+ role
7643
+ })
7644
+ ])
7645
+ } : void 0,
7646
+ ((_d = _ctx.$slots) == null ? void 0 : _d["left-footer"]) ? {
7647
+ name: "footer",
7648
+ fn: withCtx(() => [
7649
+ renderSlot(_ctx.$slots, "left-footer")
7650
+ ])
7651
+ } : void 0
7652
+ ]), 1032, ["hide-desc", "data", "checked-keys", "filterable", "filter-method", "filter-placeholder", "disabled-keys", "props", "onSelectedChange"]),
7653
+ createVNode(_component_transfer_panel, {
7654
+ ref: "rightPanel",
7655
+ type: "target",
7656
+ "hide-desc": _ctx.hideDesc,
7657
+ data: _ctx.targetData,
7658
+ filterable: (_e = _ctx.filterable) == null ? void 0 : _e[1],
7659
+ "filter-method": (_f = _ctx.filterMethod) == null ? void 0 : _f[1],
7660
+ "filter-placeholder": (_g = _ctx.filterPlaceholder) == null ? void 0 : _g[1],
7661
+ "disabled-keys": _ctx.disabledKeys,
7662
+ props: _ctx.props,
7663
+ onSelectedChange: _ctx.onChange
7664
+ }, createSlots({
7665
+ header: withCtx(() => [
7666
+ renderSlot(_ctx.$slots, "right-header")
7667
+ ]),
7668
+ "header-left": withCtx(() => [
7669
+ renderSlot(_ctx.$slots, "right-header-left")
7670
+ ]),
7671
+ "header-right": withCtx(() => [
7672
+ renderSlot(_ctx.$slots, "right-header-right", {}, () => [
7673
+ renderSlot(_ctx.$slots, "header-right", {}, () => [
7674
+ createVNode(_component_dao_link, {
7675
+ class: "dao-transfer__clear",
7676
+ type: "primary",
7677
+ onClick: _ctx.onClear
7678
+ }, {
7679
+ default: withCtx(() => [
7680
+ renderSlot(_ctx.$slots, "clear", {}, () => [
7681
+ _hoisted_3
7682
+ ])
7683
+ ]),
7684
+ _: 3
7685
+ }, 8, ["onClick"])
7686
+ ])
7687
+ ])
7688
+ ]),
7689
+ _: 2
7690
+ }, [
7691
+ _ctx.$slots.item ? {
7692
+ name: "item",
7693
+ fn: withCtx(({ row, role }) => [
7694
+ renderSlot(_ctx.$slots, "item", {
7695
+ row,
7696
+ role
7697
+ })
7698
+ ])
7699
+ } : void 0,
7700
+ ((_h = _ctx.$slots) == null ? void 0 : _h["right-footer"]) ? {
7701
+ name: "footer",
7702
+ fn: withCtx(() => [
7703
+ renderSlot(_ctx.$slots, "right-footer")
7704
+ ])
7705
+ } : void 0
7706
+ ]), 1032, ["hide-desc", "data", "filterable", "filter-method", "filter-placeholder", "disabled-keys", "props", "onSelectedChange"])
7707
+ ]);
7708
+ }
7709
+ var transfer = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
6895
7710
  var components = /* @__PURE__ */ Object.freeze({
6896
7711
  __proto__: null,
6897
7712
  [Symbol.toStringTag]: "Module",
@@ -6906,7 +7721,7 @@ var components = /* @__PURE__ */ Object.freeze({
6906
7721
  DialogFooter,
6907
7722
  DialogHeader,
6908
7723
  Drawer: drawer,
6909
- Dropdown: dropdown,
7724
+ Dropdown: DaoDropdown,
6910
7725
  DropdownMenu: dropdownMenu,
6911
7726
  DropdownItem: dropdownItem,
6912
7727
  Expansion: expansion,
@@ -6918,14 +7733,14 @@ var components = /* @__PURE__ */ Object.freeze({
6918
7733
  Breadcrumb: breadcrumb,
6919
7734
  BreadcrumbItem: DaoBreadcrumbItem,
6920
7735
  Icon: DaoIcon,
6921
- Input: input,
7736
+ Input: DaoInput,
6922
7737
  Message: message,
6923
7738
  Nav: nav,
6924
7739
  NavHead: navHead,
6925
7740
  NavItem: navItem,
6926
7741
  NavSub: navSub,
6927
7742
  Pagination: DaoPagination,
6928
- Popover: _sfc_main$9,
7743
+ Popover: _sfc_main$d,
6929
7744
  Popper,
6930
7745
  Progress: progress,
6931
7746
  Radio: radio,
@@ -6935,9 +7750,12 @@ var components = /* @__PURE__ */ Object.freeze({
6935
7750
  Switch: _switch,
6936
7751
  Table: table,
6937
7752
  Tabs: tabs,
6938
- TabNav: _sfc_main$2,
7753
+ TabNav: _sfc_main$6,
6939
7754
  TabItem: tabItem,
6940
- Tooltip: _sfc_main$o
7755
+ Tooltip: _sfc_main$s,
7756
+ DaoEllipsis,
7757
+ Transfer: transfer,
7758
+ TransferPanel: transferPanel
6941
7759
  });
6942
7760
  const plugin = (app) => {
6943
7761
  Object.values(components).forEach((c) => {
@@ -6950,4 +7768,4 @@ const install = (Vue) => {
6950
7768
  var index = {
6951
7769
  install
6952
7770
  };
6953
- 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, dialog as Dialog, DialogFooter, DialogHeader, drawer as Drawer, dropdown 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, input as Input, message as Message, nav as Nav, navHead as NavHead, navItem as NavItem, navSub as NavSub, DaoOption as Option, DaoPagination as Pagination, _sfc_main$9 as Popover, Popper, progress as Progress, radio as Radio, radioGroup as RadioGroup, DaoSelect as Select, _switch as Switch, tabItem as TabItem, _sfc_main$2 as TabNav, table as Table, tabs as Tabs, _sfc_main$o as Tooltip, index as default };
7771
+ 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$d as Popover, 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, _sfc_main$s as Tooltip, transfer as Transfer, transferPanel as TransferPanel, index as default };