@dao-style/core 0.0.1-beta.14 → 0.0.1-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ellipsis/ellipsis.vue.d.ts +330 -0
- package/dist/components/ellipsis/index.d.ts +2 -0
- package/dist/components/ellipsis/props.d.ts +50 -0
- package/dist/components/ellipsis/test/ellipsis.spec.d.ts +1 -0
- package/dist/components/ellipsis/types.d.ts +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/plugin.d.ts +1 -2
- package/dist/components/select/select.vue.d.ts +11 -4
- package/dist/components/select/types.d.ts +1 -1
- package/dist/components/table/table-props.d.ts +4 -2
- package/dist/components/table/table.vue.d.ts +4 -3
- package/dist/dao-style.es.js +573 -325
- package/dist/dao-style.umd.js +1 -1
- package/dist/font/DaoCloudIconFont/DaoCloudIconFont.woff2 +0 -0
- package/dist/font/nunito/XRXV3I6Li01BKofINeaB.woff2 +0 -0
- package/dist/font/nunito/XRXV3I6Li01BKofIO-aBXso.woff2 +0 -0
- package/dist/font/nunito/XRXX3I6Li01BKofIMNaDRs4.woff2 +0 -0
- package/dist/font/nunito/XRXX3I6Li01BKofIMNaNRs71cA.woff2 +0 -0
- package/dist/font/roboto/KFOjCnqEu92Fr1Mu51S7ACc0CsTKlA.woff2 +0 -0
- package/dist/font/roboto/KFOjCnqEu92Fr1Mu51S7ACc6CsQ.woff2 +0 -0
- package/dist/font/roboto/KFOjCnqEu92Fr1Mu51TzBic0CsTKlA.woff2 +0 -0
- package/dist/font/roboto/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2 +0 -0
- package/dist/font/roboto/KFOlCnqEu92Fr1MmEU9fBBc4.woff2 +0 -0
- package/dist/font/roboto/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2 +0 -0
- package/dist/font/roboto/KFOlCnqEu92Fr1MmWUlfBBc4.woff2 +0 -0
- package/dist/font/roboto/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2 +0 -0
- package/dist/style.css +1 -1
- package/dist/styles/color/alias.json +17 -2
- package/dist/styles/color/alias.scss +9 -0
- package/dist/styles/color/var.json +4 -0
- package/dist/styles/color/var.scss +2 -0
- package/package.json +2 -1
- package/volar.d.ts +1 -0
package/dist/dao-style.es.js
CHANGED
|
@@ -17,8 +17,9 @@ 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, Transition, withModifiers, normalizeStyle, withDirectives, vShow, withKeys, getCurrentInstance, onMounted,
|
|
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
|
+
var common = "";
|
|
22
23
|
var actionIcon_vue_vue_type_style_index_0_lang = "";
|
|
23
24
|
var _export_sfc = (sfc, props) => {
|
|
24
25
|
for (const [key, val] of props) {
|
|
@@ -26,7 +27,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
26
27
|
}
|
|
27
28
|
return sfc;
|
|
28
29
|
};
|
|
29
|
-
const _sfc_main$
|
|
30
|
+
const _sfc_main$J = defineComponent({
|
|
30
31
|
name: "DaoActionIcon",
|
|
31
32
|
props: {
|
|
32
33
|
name: {
|
|
@@ -55,8 +56,8 @@ const _sfc_main$I = defineComponent({
|
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
|
-
const _hoisted_1$
|
|
59
|
-
function _sfc_render$
|
|
59
|
+
const _hoisted_1$x = ["disabled"];
|
|
60
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
60
61
|
return openBlock(), createElementBlock("button", {
|
|
61
62
|
class: normalizeClass(["dao-action-icon", `dao-action-icon--type-${_ctx.type}`]),
|
|
62
63
|
disabled: _ctx.realDisabled,
|
|
@@ -68,9 +69,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
68
69
|
class: normalizeClass(["dao-action-icon__iconfont", _ctx.name])
|
|
69
70
|
}, null, 2)) : createCommentVNode("", true)
|
|
70
71
|
])
|
|
71
|
-
], 10, _hoisted_1$
|
|
72
|
+
], 10, _hoisted_1$x);
|
|
72
73
|
}
|
|
73
|
-
var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
74
|
+
var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$G]]);
|
|
74
75
|
const BUTTON_TYPES = ["primary", "secondary", "tertiary", "ghost", "danger"];
|
|
75
76
|
var buttonProps = {
|
|
76
77
|
type: {
|
|
@@ -109,7 +110,7 @@ var buttonProps = {
|
|
|
109
110
|
}
|
|
110
111
|
};
|
|
111
112
|
var icon_scss_vue_type_style_index_0_src_lang = "";
|
|
112
|
-
const _sfc_main$
|
|
113
|
+
const _sfc_main$I = defineComponent({
|
|
113
114
|
name: "DaoIcon",
|
|
114
115
|
props: {
|
|
115
116
|
name: {
|
|
@@ -122,28 +123,28 @@ const _sfc_main$H = defineComponent({
|
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
});
|
|
125
|
-
const _hoisted_1$
|
|
126
|
+
const _hoisted_1$w = {
|
|
126
127
|
key: 1,
|
|
127
128
|
class: "dao-icon dao-svg-icon"
|
|
128
129
|
};
|
|
129
130
|
const _hoisted_2$l = ["xlink:href"];
|
|
130
|
-
function _sfc_render$
|
|
131
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
131
132
|
return _ctx.useFont ? (openBlock(), createElementBlock("i", {
|
|
132
133
|
key: 0,
|
|
133
134
|
class: normalizeClass(["dao-icon dao-iconfont", _ctx.name])
|
|
134
|
-
}, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$
|
|
135
|
+
}, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$w, [
|
|
135
136
|
createElementVNode("use", {
|
|
136
137
|
"xlink:href": `#${_ctx.name}`
|
|
137
138
|
}, null, 8, _hoisted_2$l)
|
|
138
139
|
]));
|
|
139
140
|
}
|
|
140
|
-
var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
141
|
+
var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$F]]);
|
|
141
142
|
var button_vue_vue_type_style_index_0_lang = "";
|
|
142
143
|
const NO_ICON = Symbol(0);
|
|
143
144
|
const RIGHT_ICON = Symbol(1);
|
|
144
145
|
const LEFT_ICON = Symbol(2);
|
|
145
146
|
const BOTH_ICON = Symbol(3);
|
|
146
|
-
const _sfc_main$
|
|
147
|
+
const _sfc_main$H = defineComponent({
|
|
147
148
|
name: "DaoButton",
|
|
148
149
|
components: {
|
|
149
150
|
DaoIcon
|
|
@@ -234,12 +235,12 @@ const _sfc_main$G = defineComponent({
|
|
|
234
235
|
};
|
|
235
236
|
}
|
|
236
237
|
});
|
|
237
|
-
const _hoisted_1$
|
|
238
|
+
const _hoisted_1$v = ["disabled"];
|
|
238
239
|
const _hoisted_2$k = {
|
|
239
240
|
key: 1,
|
|
240
241
|
class: "dao-btn__text"
|
|
241
242
|
};
|
|
242
|
-
function _sfc_render$
|
|
243
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
243
244
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
244
245
|
return openBlock(), createElementBlock("button", {
|
|
245
246
|
class: normalizeClass(_ctx.classList),
|
|
@@ -263,22 +264,22 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
263
264
|
name: _ctx.realIconRight
|
|
264
265
|
}, null, 8, ["class", "use-font", "name"])) : createCommentVNode("", true)
|
|
265
266
|
], 64))
|
|
266
|
-
], 10, _hoisted_1$
|
|
267
|
+
], 10, _hoisted_1$v);
|
|
267
268
|
}
|
|
268
|
-
var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
269
|
+
var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$E]]);
|
|
269
270
|
var buttonGroup_vue_vue_type_style_index_0_lang = "";
|
|
270
|
-
const _sfc_main$
|
|
271
|
+
const _sfc_main$G = defineComponent({
|
|
271
272
|
name: "DaoButtonGroup"
|
|
272
273
|
});
|
|
273
|
-
const _hoisted_1$
|
|
274
|
-
function _sfc_render$
|
|
275
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
274
|
+
const _hoisted_1$u = { class: "dao-btn-group" };
|
|
275
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
276
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
276
277
|
renderSlot(_ctx.$slots, "default")
|
|
277
278
|
]);
|
|
278
279
|
}
|
|
279
|
-
var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
280
|
+
var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$D]]);
|
|
280
281
|
var card_scss_vue_type_style_index_0_src_lang = "";
|
|
281
|
-
const _sfc_main$
|
|
282
|
+
const _sfc_main$F = defineComponent({
|
|
282
283
|
name: "DaoCard",
|
|
283
284
|
components: {
|
|
284
285
|
DaoIcon
|
|
@@ -306,7 +307,7 @@ const _sfc_main$E = defineComponent({
|
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
309
|
});
|
|
309
|
-
const _hoisted_1$
|
|
310
|
+
const _hoisted_1$t = {
|
|
310
311
|
key: 0,
|
|
311
312
|
class: "dao-card-header"
|
|
312
313
|
};
|
|
@@ -314,14 +315,14 @@ const _hoisted_2$j = {
|
|
|
314
315
|
key: 0,
|
|
315
316
|
class: "dao-card-header-item"
|
|
316
317
|
};
|
|
317
|
-
const _hoisted_3$
|
|
318
|
+
const _hoisted_3$d = { class: "dao-card-header-item dao-card-header-title" };
|
|
318
319
|
const _hoisted_4$a = { class: "dao-card-header-item dao-card-header-action" };
|
|
319
|
-
function _sfc_render$
|
|
320
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
320
321
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
321
322
|
return openBlock(), createElementBlock("div", {
|
|
322
323
|
class: normalizeClass(["dao-card", `dao-card--${_ctx.type}`])
|
|
323
324
|
}, [
|
|
324
|
-
_ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
325
|
+
_ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
325
326
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
326
327
|
renderSlot(_ctx.$slots, "header-prefix"),
|
|
327
328
|
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
|
|
@@ -334,7 +335,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
334
335
|
}, null, 8, ["name", "use-font"])) : createCommentVNode("", true)
|
|
335
336
|
])
|
|
336
337
|
])) : createCommentVNode("", true),
|
|
337
|
-
createElementVNode("div", _hoisted_3$
|
|
338
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
338
339
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
339
340
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
340
341
|
])
|
|
@@ -361,22 +362,22 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
361
362
|
], 2)
|
|
362
363
|
], 2);
|
|
363
364
|
}
|
|
364
|
-
var card = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
365
|
+
var card = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$C]]);
|
|
365
366
|
var cardItem_scss_vue_type_style_index_0_src_lang = "";
|
|
366
|
-
const _sfc_main$
|
|
367
|
+
const _sfc_main$E = defineComponent({
|
|
367
368
|
name: "DaoCardItem"
|
|
368
369
|
});
|
|
369
|
-
const _hoisted_1$
|
|
370
|
-
function _sfc_render$
|
|
371
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
370
|
+
const _hoisted_1$s = { class: "dao-card-item" };
|
|
371
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
372
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
372
373
|
renderSlot(_ctx.$slots, "default")
|
|
373
374
|
]);
|
|
374
375
|
}
|
|
375
|
-
var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
376
|
+
var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$B]]);
|
|
376
377
|
function isNullish(val) {
|
|
377
378
|
return val === null || val === void 0;
|
|
378
379
|
}
|
|
379
|
-
const placements$
|
|
380
|
+
const placements$2 = [
|
|
380
381
|
"auto",
|
|
381
382
|
"auto-start",
|
|
382
383
|
"auto-end",
|
|
@@ -416,7 +417,7 @@ function getUnrefItem(set, item) {
|
|
|
416
417
|
index: index2
|
|
417
418
|
};
|
|
418
419
|
}
|
|
419
|
-
const _sfc_main$
|
|
420
|
+
const _sfc_main$D = defineComponent({
|
|
420
421
|
name: "DaoCheckbox",
|
|
421
422
|
props: {
|
|
422
423
|
modelValue: {
|
|
@@ -556,9 +557,9 @@ const _sfc_main$C = defineComponent({
|
|
|
556
557
|
}
|
|
557
558
|
}
|
|
558
559
|
});
|
|
559
|
-
const _hoisted_1$
|
|
560
|
+
const _hoisted_1$r = ["disabled", "indeterminate", "checked"];
|
|
560
561
|
const _hoisted_2$i = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
|
|
561
|
-
const _hoisted_3$
|
|
562
|
+
const _hoisted_3$c = {
|
|
562
563
|
key: 0,
|
|
563
564
|
class: "dao-checkbox__label"
|
|
564
565
|
};
|
|
@@ -570,7 +571,7 @@ const _hoisted_5$7 = {
|
|
|
570
571
|
key: 1,
|
|
571
572
|
class: "dao-checkbox__label-helper"
|
|
572
573
|
};
|
|
573
|
-
function _sfc_render$
|
|
574
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
574
575
|
return openBlock(), createElementBlock("label", {
|
|
575
576
|
class: normalizeClass(_ctx.wrapClasses)
|
|
576
577
|
}, [
|
|
@@ -585,10 +586,10 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
585
586
|
}, _ctx.$attrs, {
|
|
586
587
|
checked: _ctx.currentChecked,
|
|
587
588
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
|
|
588
|
-
}), null, 16, _hoisted_1$
|
|
589
|
+
}), null, 16, _hoisted_1$r),
|
|
589
590
|
_hoisted_2$i
|
|
590
591
|
], 2),
|
|
591
|
-
_ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
592
|
+
_ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$c, [
|
|
592
593
|
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$9, [
|
|
593
594
|
renderSlot(_ctx.$slots, "default")
|
|
594
595
|
])) : createCommentVNode("", true),
|
|
@@ -600,9 +601,9 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
600
601
|
])) : createCommentVNode("", true)
|
|
601
602
|
], 2);
|
|
602
603
|
}
|
|
603
|
-
var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
604
|
+
var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$A]]);
|
|
604
605
|
var checkboxGroup_vue_vue_type_style_index_0_lang = "";
|
|
605
|
-
const _sfc_main$
|
|
606
|
+
const _sfc_main$C = defineComponent({
|
|
606
607
|
name: "DaoCheckboxGroup",
|
|
607
608
|
props: {
|
|
608
609
|
modelValue: {
|
|
@@ -636,15 +637,15 @@ const _sfc_main$B = defineComponent({
|
|
|
636
637
|
};
|
|
637
638
|
}
|
|
638
639
|
});
|
|
639
|
-
function _sfc_render$
|
|
640
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
640
641
|
return openBlock(), createElementBlock("div", {
|
|
641
642
|
class: normalizeClass(_ctx.checkboxGroupClasses)
|
|
642
643
|
}, [
|
|
643
644
|
renderSlot(_ctx.$slots, "default")
|
|
644
645
|
], 2);
|
|
645
646
|
}
|
|
646
|
-
var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
647
|
-
const _sfc_main$
|
|
647
|
+
var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$z]]);
|
|
648
|
+
const _sfc_main$B = defineComponent({
|
|
648
649
|
name: "DaoDialogHeader",
|
|
649
650
|
components: {
|
|
650
651
|
DaoButton
|
|
@@ -667,10 +668,10 @@ const _sfc_main$A = defineComponent({
|
|
|
667
668
|
};
|
|
668
669
|
}
|
|
669
670
|
});
|
|
670
|
-
const _hoisted_1$
|
|
671
|
-
function _sfc_render$
|
|
671
|
+
const _hoisted_1$q = { class: "dao-dialog__header" };
|
|
672
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
672
673
|
const _component_dao_button = resolveComponent("dao-button");
|
|
673
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
674
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
674
675
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
675
676
|
createElementVNode("span", null, [
|
|
676
677
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
@@ -687,8 +688,8 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
687
688
|
])
|
|
688
689
|
]);
|
|
689
690
|
}
|
|
690
|
-
var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
691
|
-
const _sfc_main$
|
|
691
|
+
var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$y]]);
|
|
692
|
+
const _sfc_main$A = defineComponent({
|
|
692
693
|
name: "DaoDialogFooter",
|
|
693
694
|
components: {
|
|
694
695
|
DaoButton
|
|
@@ -724,10 +725,10 @@ const _sfc_main$z = defineComponent({
|
|
|
724
725
|
};
|
|
725
726
|
}
|
|
726
727
|
});
|
|
727
|
-
const _hoisted_1$
|
|
728
|
-
function _sfc_render$
|
|
728
|
+
const _hoisted_1$p = { class: "dao-dialog__footer" };
|
|
729
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
729
730
|
const _component_dao_button = resolveComponent("dao-button");
|
|
730
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
731
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
731
732
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
732
733
|
createVNode(_component_dao_button, {
|
|
733
734
|
type: "ghost",
|
|
@@ -752,13 +753,13 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
752
753
|
])
|
|
753
754
|
]);
|
|
754
755
|
}
|
|
755
|
-
var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
756
|
+
var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
|
|
756
757
|
var dialog_scss_vue_type_style_index_0_src_lang = "";
|
|
757
758
|
const DIALOG_NUM_ATTR = "dao-dialog__num";
|
|
758
759
|
const DIALOG_MINIMUM_PADDING = "20px";
|
|
759
760
|
const DIALOG_DEFAULT_PADDING_TOP = "100px";
|
|
760
761
|
const DIALOG_DEFAULT_PADDING_BOTTOM = "20px";
|
|
761
|
-
const _sfc_main$
|
|
762
|
+
const _sfc_main$z = defineComponent({
|
|
762
763
|
name: "DaoDialog",
|
|
763
764
|
components: {
|
|
764
765
|
DialogHeader,
|
|
@@ -864,8 +865,8 @@ const _sfc_main$y = defineComponent({
|
|
|
864
865
|
if (!lockScroll.value) {
|
|
865
866
|
return;
|
|
866
867
|
}
|
|
867
|
-
const
|
|
868
|
-
document.body.setAttribute(DIALOG_NUM_ATTR, String(
|
|
868
|
+
const bodyDialogNum = Number(document.body.getAttribute(DIALOG_NUM_ATTR) || 0);
|
|
869
|
+
document.body.setAttribute(DIALOG_NUM_ATTR, String(bodyDialogNum + 1));
|
|
869
870
|
document.body.style.overflow = "hidden";
|
|
870
871
|
};
|
|
871
872
|
const onClose = () => {
|
|
@@ -885,16 +886,18 @@ const _sfc_main$y = defineComponent({
|
|
|
885
886
|
return;
|
|
886
887
|
}
|
|
887
888
|
const specDialogNum = Number(document.body.getAttribute(DIALOG_NUM_ATTR)) - 1;
|
|
888
|
-
if (specDialogNum
|
|
889
|
+
if (specDialogNum < 1) {
|
|
889
890
|
document.body.removeAttribute(DIALOG_NUM_ATTR);
|
|
890
891
|
document.body.style.overflow = "";
|
|
891
892
|
} else {
|
|
892
893
|
document.body.setAttribute(DIALOG_NUM_ATTR, String(specDialogNum));
|
|
893
894
|
}
|
|
894
895
|
};
|
|
896
|
+
let currentDialogOpened = false;
|
|
895
897
|
const onBeforeEnter = () => {
|
|
896
|
-
lockWindowScroll();
|
|
897
898
|
document.addEventListener("keydown", onKeyDown);
|
|
899
|
+
lockWindowScroll();
|
|
900
|
+
currentDialogOpened = true;
|
|
898
901
|
emit("before-open");
|
|
899
902
|
};
|
|
900
903
|
const onAfterEnter = () => {
|
|
@@ -915,8 +918,14 @@ const _sfc_main$y = defineComponent({
|
|
|
915
918
|
const onAfterLeave = () => {
|
|
916
919
|
document.removeEventListener("keydown", onKeyDown);
|
|
917
920
|
unLockWindowScroll();
|
|
921
|
+
currentDialogOpened = false;
|
|
918
922
|
emit("closed");
|
|
919
923
|
};
|
|
924
|
+
onBeforeUnmount(() => {
|
|
925
|
+
if (currentDialogOpened) {
|
|
926
|
+
onAfterLeave();
|
|
927
|
+
}
|
|
928
|
+
});
|
|
920
929
|
return {
|
|
921
930
|
computedPaddingTop,
|
|
922
931
|
computedPaddingBottom,
|
|
@@ -933,8 +942,8 @@ const _sfc_main$y = defineComponent({
|
|
|
933
942
|
};
|
|
934
943
|
}
|
|
935
944
|
});
|
|
936
|
-
const _hoisted_1$
|
|
937
|
-
function _sfc_render$
|
|
945
|
+
const _hoisted_1$o = { class: "dao-dialog__body" };
|
|
946
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
938
947
|
const _component_dialog_header = resolveComponent("dialog-header");
|
|
939
948
|
const _component_dialog_footer = resolveComponent("dialog-footer");
|
|
940
949
|
return openBlock(), createBlock(Transition, {
|
|
@@ -969,7 +978,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
969
978
|
]),
|
|
970
979
|
_: 3
|
|
971
980
|
}, 8, ["title", "show-close", "onClose"])) : createCommentVNode("", true),
|
|
972
|
-
createElementVNode("div", _hoisted_1$
|
|
981
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
973
982
|
renderSlot(_ctx.$slots, "default")
|
|
974
983
|
]),
|
|
975
984
|
_ctx.footer ? (openBlock(), createBlock(_component_dialog_footer, {
|
|
@@ -991,7 +1000,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
991
1000
|
_: 3
|
|
992
1001
|
}, 8, ["onBeforeEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"]);
|
|
993
1002
|
}
|
|
994
|
-
var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1003
|
+
var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
|
|
995
1004
|
const drawerProps = {
|
|
996
1005
|
modelValue: {
|
|
997
1006
|
type: Boolean,
|
|
@@ -1061,7 +1070,7 @@ const trapTabKey = (e, firstTab, lastTab) => {
|
|
|
1061
1070
|
}
|
|
1062
1071
|
};
|
|
1063
1072
|
var drawer_vue_vue_type_style_index_0_lang = "";
|
|
1064
|
-
const _sfc_main$
|
|
1073
|
+
const _sfc_main$y = defineComponent({
|
|
1065
1074
|
name: "DaoDrawer",
|
|
1066
1075
|
components: {
|
|
1067
1076
|
DaoButton,
|
|
@@ -1169,19 +1178,19 @@ const _sfc_main$x = defineComponent({
|
|
|
1169
1178
|
};
|
|
1170
1179
|
}
|
|
1171
1180
|
});
|
|
1172
|
-
const _hoisted_1$
|
|
1181
|
+
const _hoisted_1$n = { class: "dao-drawer__content" };
|
|
1173
1182
|
const _hoisted_2$h = {
|
|
1174
1183
|
key: 0,
|
|
1175
1184
|
class: "dao-drawer__header"
|
|
1176
1185
|
};
|
|
1177
|
-
const _hoisted_3$
|
|
1186
|
+
const _hoisted_3$b = { class: "dao-drawer__header-group" };
|
|
1178
1187
|
const _hoisted_4$8 = { class: "dao-drawer__body" };
|
|
1179
1188
|
const _hoisted_5$6 = {
|
|
1180
1189
|
key: 1,
|
|
1181
1190
|
class: "dao-drawer__footer"
|
|
1182
1191
|
};
|
|
1183
1192
|
const _hoisted_6$4 = { class: "dao-drawer__footer-group" };
|
|
1184
|
-
function _sfc_render$
|
|
1193
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1185
1194
|
const _component_dao_action_icon = resolveComponent("dao-action-icon");
|
|
1186
1195
|
const _component_dao_button = resolveComponent("dao-button");
|
|
1187
1196
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -1213,10 +1222,10 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1213
1222
|
withDirectives(createElementVNode("div", {
|
|
1214
1223
|
class: normalizeClass(_ctx.contentClassList)
|
|
1215
1224
|
}, [
|
|
1216
|
-
createElementVNode("div", _hoisted_1$
|
|
1225
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
1217
1226
|
!_ctx.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
|
|
1218
1227
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1219
|
-
createElementVNode("div", _hoisted_3$
|
|
1228
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
1220
1229
|
createElementVNode("span", null, toDisplayString(_ctx.title), 1),
|
|
1221
1230
|
!_ctx.hideCloseIcon ? (openBlock(), createBlock(_component_dao_action_icon, {
|
|
1222
1231
|
key: 0,
|
|
@@ -1264,7 +1273,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1264
1273
|
], 34)
|
|
1265
1274
|
], 64);
|
|
1266
1275
|
}
|
|
1267
|
-
var drawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1276
|
+
var drawer = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
|
|
1268
1277
|
var top = "top";
|
|
1269
1278
|
var bottom = "bottom";
|
|
1270
1279
|
var right = "right";
|
|
@@ -1280,7 +1289,7 @@ var reference = "reference";
|
|
|
1280
1289
|
var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) {
|
|
1281
1290
|
return acc.concat([placement + "-" + start, placement + "-" + end]);
|
|
1282
1291
|
}, []);
|
|
1283
|
-
var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
1292
|
+
var placements$1 = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
1284
1293
|
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
1285
1294
|
}, []);
|
|
1286
1295
|
var beforeRead = "beforeRead";
|
|
@@ -1950,16 +1959,16 @@ function computeAutoPlacement(state, options) {
|
|
|
1950
1959
|
if (options === void 0) {
|
|
1951
1960
|
options = {};
|
|
1952
1961
|
}
|
|
1953
|
-
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;
|
|
1954
1963
|
var variation = getVariation(placement);
|
|
1955
|
-
var
|
|
1964
|
+
var placements2 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
|
|
1956
1965
|
return getVariation(placement2) === variation;
|
|
1957
1966
|
}) : basePlacements;
|
|
1958
|
-
var allowedPlacements =
|
|
1967
|
+
var allowedPlacements = placements2.filter(function(placement2) {
|
|
1959
1968
|
return allowedAutoPlacements.indexOf(placement2) >= 0;
|
|
1960
1969
|
});
|
|
1961
1970
|
if (allowedPlacements.length === 0) {
|
|
1962
|
-
allowedPlacements =
|
|
1971
|
+
allowedPlacements = placements2;
|
|
1963
1972
|
}
|
|
1964
1973
|
var overflows = allowedPlacements.reduce(function(acc, placement2) {
|
|
1965
1974
|
acc[placement2] = detectOverflow(state, {
|
|
@@ -2097,7 +2106,7 @@ function distanceAndSkiddingToXY(placement, rects, offset2) {
|
|
|
2097
2106
|
function offset(_ref2) {
|
|
2098
2107
|
var state = _ref2.state, options = _ref2.options, name = _ref2.name;
|
|
2099
2108
|
var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
2100
|
-
var data = placements.reduce(function(acc, placement) {
|
|
2109
|
+
var data = placements$1.reduce(function(acc, placement) {
|
|
2101
2110
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
|
|
2102
2111
|
return acc;
|
|
2103
2112
|
}, {});
|
|
@@ -2463,7 +2472,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
|
|
|
2463
2472
|
var createPopper = /* @__PURE__ */ popperGenerator({
|
|
2464
2473
|
defaultModifiers
|
|
2465
2474
|
});
|
|
2466
|
-
const _sfc_main$
|
|
2475
|
+
const _sfc_main$x = defineComponent({
|
|
2467
2476
|
name: "PopperContent",
|
|
2468
2477
|
props: {
|
|
2469
2478
|
popperId: {
|
|
@@ -2511,12 +2520,12 @@ const _sfc_main$w = defineComponent({
|
|
|
2511
2520
|
};
|
|
2512
2521
|
}
|
|
2513
2522
|
});
|
|
2514
|
-
const _hoisted_1$
|
|
2523
|
+
const _hoisted_1$m = ["id", "aria-hidden", "tabindex"];
|
|
2515
2524
|
const _hoisted_2$g = {
|
|
2516
2525
|
ref: "arrow",
|
|
2517
2526
|
class: "dao-popper-arrow"
|
|
2518
2527
|
};
|
|
2519
|
-
const _hoisted_3$
|
|
2528
|
+
const _hoisted_3$a = /* @__PURE__ */ createElementVNode("svg", {
|
|
2520
2529
|
class: "dao-popper-arrow-viewbox",
|
|
2521
2530
|
viewBox: "0 0 15 15"
|
|
2522
2531
|
}, [
|
|
@@ -2531,9 +2540,9 @@ const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
2531
2540
|
})
|
|
2532
2541
|
], -1);
|
|
2533
2542
|
const _hoisted_4$7 = [
|
|
2534
|
-
_hoisted_3$
|
|
2543
|
+
_hoisted_3$a
|
|
2535
2544
|
];
|
|
2536
|
-
function _sfc_render$
|
|
2545
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2537
2546
|
return openBlock(), createElementBlock("div", {
|
|
2538
2547
|
id: _ctx.popperId,
|
|
2539
2548
|
ref: "popover",
|
|
@@ -2555,9 +2564,9 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2555
2564
|
withDirectives(createElementVNode("div", _hoisted_2$g, _hoisted_4$7, 512), [
|
|
2556
2565
|
[vShow, _ctx.visibleArrow]
|
|
2557
2566
|
])
|
|
2558
|
-
], 42, _hoisted_1$
|
|
2567
|
+
], 42, _hoisted_1$m);
|
|
2559
2568
|
}
|
|
2560
|
-
var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2569
|
+
var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
|
|
2561
2570
|
var PopperProps = {
|
|
2562
2571
|
modelValue: {
|
|
2563
2572
|
type: Boolean,
|
|
@@ -2590,7 +2599,7 @@ var PopperProps = {
|
|
|
2590
2599
|
placement: {
|
|
2591
2600
|
type: String,
|
|
2592
2601
|
default: "bottom",
|
|
2593
|
-
validator: (value) => placements$
|
|
2602
|
+
validator: (value) => placements$2.includes(value)
|
|
2594
2603
|
},
|
|
2595
2604
|
trigger: {
|
|
2596
2605
|
type: [String, Array],
|
|
@@ -2648,18 +2657,22 @@ function updatePopperOptions(popperInstance, modifiers, popperOptions = {}) {
|
|
|
2648
2657
|
});
|
|
2649
2658
|
}
|
|
2650
2659
|
function getActualRoot(app) {
|
|
2651
|
-
var _a2, _b2, _c, _d;
|
|
2660
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h;
|
|
2652
2661
|
let internalRoot = "body";
|
|
2653
2662
|
if (!app) {
|
|
2654
2663
|
return internalRoot;
|
|
2655
2664
|
}
|
|
2656
|
-
|
|
2665
|
+
let ele = (_f = (_c = (_b2 = (_a2 = app == null ? void 0 : app.root) == null ? void 0 : _a2.appContext) == null ? void 0 : _b2.app) == null ? void 0 : _c._container) != null ? _f : (_e = (_d = app == null ? void 0 : app.root) == null ? void 0 : _d.vnode) == null ? void 0 : _e.el;
|
|
2666
|
+
if ((ele == null ? void 0 : ele.nodeType) !== Node.ELEMENT_NODE && (ele == null ? void 0 : ele.nodeType) !== Node.DOCUMENT_FRAGMENT_NODE && (ele == null ? void 0 : ele.nodeType) !== Node.DOCUMENT_NODE) {
|
|
2667
|
+
ele = ele == null ? void 0 : ele.parentNode;
|
|
2668
|
+
}
|
|
2669
|
+
const rootNode = (_g = ele == null ? void 0 : ele.getRootNode) == null ? void 0 : _g.call(ele);
|
|
2657
2670
|
if (rootNode) {
|
|
2658
|
-
internalRoot = (
|
|
2671
|
+
internalRoot = (_h = rootNode.body) != null ? _h : rootNode;
|
|
2659
2672
|
}
|
|
2660
2673
|
return internalRoot;
|
|
2661
2674
|
}
|
|
2662
|
-
const _sfc_main$
|
|
2675
|
+
const _sfc_main$w = defineComponent({
|
|
2663
2676
|
name: "DaoPopper",
|
|
2664
2677
|
components: {
|
|
2665
2678
|
PopperContent
|
|
@@ -3030,7 +3043,7 @@ const _sfc_main$v = defineComponent({
|
|
|
3030
3043
|
};
|
|
3031
3044
|
}
|
|
3032
3045
|
});
|
|
3033
|
-
function _sfc_render$
|
|
3046
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3034
3047
|
const _component_popper_content = resolveComponent("popper-content");
|
|
3035
3048
|
return openBlock(), createElementBlock("div", {
|
|
3036
3049
|
ref: "reference",
|
|
@@ -3072,8 +3085,8 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3072
3085
|
], 8, ["to", "disabled"]))
|
|
3073
3086
|
], 2);
|
|
3074
3087
|
}
|
|
3075
|
-
var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3076
|
-
const _sfc_main$
|
|
3088
|
+
var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$t]]);
|
|
3089
|
+
const _sfc_main$v = defineComponent({
|
|
3077
3090
|
name: "DaoDropdown",
|
|
3078
3091
|
components: {
|
|
3079
3092
|
DaoPopper: Popper
|
|
@@ -3091,7 +3104,7 @@ const _sfc_main$u = defineComponent({
|
|
|
3091
3104
|
placement: {
|
|
3092
3105
|
type: String,
|
|
3093
3106
|
default: "bottom",
|
|
3094
|
-
validator: (value) => placements$
|
|
3107
|
+
validator: (value) => placements$2.includes(value)
|
|
3095
3108
|
},
|
|
3096
3109
|
offset: {
|
|
3097
3110
|
type: Number,
|
|
@@ -3129,8 +3142,8 @@ const _sfc_main$u = defineComponent({
|
|
|
3129
3142
|
};
|
|
3130
3143
|
}
|
|
3131
3144
|
});
|
|
3132
|
-
const _hoisted_1$
|
|
3133
|
-
function _sfc_render$
|
|
3145
|
+
const _hoisted_1$l = { tabindex: "0" };
|
|
3146
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3134
3147
|
const _component_dao_popper = resolveComponent("dao-popper");
|
|
3135
3148
|
return openBlock(), createBlock(_component_dao_popper, {
|
|
3136
3149
|
ref: "popper",
|
|
@@ -3147,27 +3160,27 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3147
3160
|
renderSlot(_ctx.$slots, "menu")
|
|
3148
3161
|
]),
|
|
3149
3162
|
default: withCtx(() => [
|
|
3150
|
-
createElementVNode("div", _hoisted_1$
|
|
3163
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
3151
3164
|
renderSlot(_ctx.$slots, "default")
|
|
3152
3165
|
])
|
|
3153
3166
|
]),
|
|
3154
3167
|
_: 3
|
|
3155
3168
|
}, 8, ["placement", "append-to", "trigger", "offset", "model-value"]);
|
|
3156
3169
|
}
|
|
3157
|
-
var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3170
|
+
var dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
|
|
3158
3171
|
var dropdownMenu_vue_vue_type_style_index_0_lang = "";
|
|
3159
|
-
const _sfc_main$
|
|
3172
|
+
const _sfc_main$u = defineComponent({
|
|
3160
3173
|
name: "DaoDropdownMenu"
|
|
3161
3174
|
});
|
|
3162
|
-
const _hoisted_1$
|
|
3163
|
-
function _sfc_render$
|
|
3164
|
-
return openBlock(), createElementBlock("ul", _hoisted_1$
|
|
3175
|
+
const _hoisted_1$k = { class: "dao-dropdown-menu" };
|
|
3176
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3177
|
+
return openBlock(), createElementBlock("ul", _hoisted_1$k, [
|
|
3165
3178
|
renderSlot(_ctx.$slots, "default")
|
|
3166
3179
|
]);
|
|
3167
3180
|
}
|
|
3168
|
-
var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3181
|
+
var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$r]]);
|
|
3169
3182
|
var dropdownItem_vue_vue_type_style_index_0_lang = "";
|
|
3170
|
-
const _sfc_main$
|
|
3183
|
+
const _sfc_main$t = defineComponent({
|
|
3171
3184
|
name: "DaoDropdownItem",
|
|
3172
3185
|
props: {
|
|
3173
3186
|
type: {
|
|
@@ -3216,12 +3229,12 @@ const _sfc_main$s = defineComponent({
|
|
|
3216
3229
|
};
|
|
3217
3230
|
}
|
|
3218
3231
|
});
|
|
3219
|
-
function _sfc_render$
|
|
3232
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3220
3233
|
return openBlock(), createElementBlock("li", mergeProps({ class: _ctx.classList }, _ctx.itemAttrs), [
|
|
3221
3234
|
_ctx.type !== "divider" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
|
|
3222
3235
|
], 16);
|
|
3223
3236
|
}
|
|
3224
|
-
var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3237
|
+
var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
|
|
3225
3238
|
const expansionProps = {
|
|
3226
3239
|
modelValue: {
|
|
3227
3240
|
type: [String, Symbol, Array]
|
|
@@ -3246,7 +3259,7 @@ const expansionItemProps = {
|
|
|
3246
3259
|
}
|
|
3247
3260
|
};
|
|
3248
3261
|
var expansion_vue_vue_type_style_index_0_lang = "";
|
|
3249
|
-
const _sfc_main$
|
|
3262
|
+
const _sfc_main$s = defineComponent({
|
|
3250
3263
|
name: "DaoExpansion",
|
|
3251
3264
|
props: expansionProps,
|
|
3252
3265
|
emits: ["update:modelValue", "change"],
|
|
@@ -3316,15 +3329,15 @@ const _sfc_main$r = defineComponent({
|
|
|
3316
3329
|
};
|
|
3317
3330
|
}
|
|
3318
3331
|
});
|
|
3319
|
-
const _hoisted_1$
|
|
3320
|
-
function _sfc_render$
|
|
3321
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3332
|
+
const _hoisted_1$j = { class: "dao-expansion" };
|
|
3333
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3334
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
3322
3335
|
renderSlot(_ctx.$slots, "default")
|
|
3323
3336
|
]);
|
|
3324
3337
|
}
|
|
3325
|
-
var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3338
|
+
var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
|
|
3326
3339
|
var expansionItem_vue_vue_type_style_index_0_lang = "";
|
|
3327
|
-
const _sfc_main$
|
|
3340
|
+
const _sfc_main$r = defineComponent({
|
|
3328
3341
|
name: "DaoExpansionItem",
|
|
3329
3342
|
components: {
|
|
3330
3343
|
DaoIcon
|
|
@@ -3399,13 +3412,13 @@ const _sfc_main$q = defineComponent({
|
|
|
3399
3412
|
};
|
|
3400
3413
|
}
|
|
3401
3414
|
});
|
|
3402
|
-
const _hoisted_1$
|
|
3415
|
+
const _hoisted_1$i = { class: "dao-expansion-item-icon-container" };
|
|
3403
3416
|
const _hoisted_2$f = { class: "dao-expansion-item-title-container" };
|
|
3404
|
-
const _hoisted_3$
|
|
3417
|
+
const _hoisted_3$9 = { class: "dao-expansion-item-title dao-exp-ellipsis" };
|
|
3405
3418
|
const _hoisted_4$6 = { class: "dao-expansion-item-description dao-exp-ellipsis" };
|
|
3406
3419
|
const _hoisted_5$5 = { class: "dao-expansion-item-content-container" };
|
|
3407
3420
|
const _hoisted_6$3 = { class: "dao-expansion-item-content" };
|
|
3408
|
-
function _sfc_render$
|
|
3421
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3409
3422
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
3410
3423
|
return openBlock(), createElementBlock("div", {
|
|
3411
3424
|
class: normalizeClass(["dao-expansion-item", {
|
|
@@ -3416,7 +3429,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3416
3429
|
class: "dao-expansion-item-header",
|
|
3417
3430
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onItemClick && _ctx.onItemClick(...args))
|
|
3418
3431
|
}, [
|
|
3419
|
-
createElementVNode("div", _hoisted_1$
|
|
3432
|
+
createElementVNode("div", _hoisted_1$i, [
|
|
3420
3433
|
createVNode(_component_dao_icon, {
|
|
3421
3434
|
name: "icon-dropdown-line",
|
|
3422
3435
|
class: "dao-expansion-item-icon",
|
|
@@ -3424,7 +3437,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3424
3437
|
})
|
|
3425
3438
|
]),
|
|
3426
3439
|
createElementVNode("div", _hoisted_2$f, [
|
|
3427
|
-
createElementVNode("div", _hoisted_3$
|
|
3440
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
3428
3441
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3429
3442
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
3430
3443
|
])
|
|
@@ -3466,9 +3479,9 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3466
3479
|
}, 8, ["onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
|
|
3467
3480
|
], 2);
|
|
3468
3481
|
}
|
|
3469
|
-
var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3482
|
+
var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
|
|
3470
3483
|
var form_vue_vue_type_style_index_0_lang = "";
|
|
3471
|
-
const _sfc_main$
|
|
3484
|
+
const _sfc_main$q = defineComponent({
|
|
3472
3485
|
name: "DaoForm",
|
|
3473
3486
|
props: {
|
|
3474
3487
|
type: {
|
|
@@ -3486,7 +3499,7 @@ const _sfc_main$p = defineComponent({
|
|
|
3486
3499
|
provide(formLabelWidthKey, labelWidth.value);
|
|
3487
3500
|
}
|
|
3488
3501
|
});
|
|
3489
|
-
function _sfc_render$
|
|
3502
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3490
3503
|
return openBlock(), createElementBlock("div", {
|
|
3491
3504
|
class: normalizeClass([
|
|
3492
3505
|
"dao-form",
|
|
@@ -3508,7 +3521,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3508
3521
|
} })
|
|
3509
3522
|
], 2);
|
|
3510
3523
|
}
|
|
3511
|
-
var form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3524
|
+
var form = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
|
|
3512
3525
|
var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
|
|
3513
3526
|
offset: {
|
|
3514
3527
|
type: [Number, String],
|
|
@@ -3516,16 +3529,16 @@ var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
|
|
|
3516
3529
|
}
|
|
3517
3530
|
});
|
|
3518
3531
|
var tooltip_scss_vue_type_style_index_0_src_lang = "";
|
|
3519
|
-
const _sfc_main$
|
|
3532
|
+
const _sfc_main$p = defineComponent(__spreadProps(__spreadValues({}, Popper), {
|
|
3520
3533
|
name: "DaoTooltip",
|
|
3521
3534
|
props: tooltipProps,
|
|
3522
3535
|
daoPopperTheme: "dao-tooltip"
|
|
3523
3536
|
}));
|
|
3524
3537
|
var formItem_vue_vue_type_style_index_0_lang = "";
|
|
3525
|
-
const _sfc_main$
|
|
3538
|
+
const _sfc_main$o = defineComponent({
|
|
3526
3539
|
name: "DaoFormItem",
|
|
3527
3540
|
components: {
|
|
3528
|
-
DaoTooltip: _sfc_main$
|
|
3541
|
+
DaoTooltip: _sfc_main$p
|
|
3529
3542
|
},
|
|
3530
3543
|
props: {
|
|
3531
3544
|
label: {
|
|
@@ -3574,13 +3587,13 @@ const _sfc_main$n = defineComponent({
|
|
|
3574
3587
|
};
|
|
3575
3588
|
}
|
|
3576
3589
|
});
|
|
3577
|
-
const _hoisted_1$
|
|
3590
|
+
const _hoisted_1$h = {
|
|
3578
3591
|
key: 0,
|
|
3579
3592
|
class: "dao-form-item__label-icon-wrapper"
|
|
3580
3593
|
};
|
|
3581
3594
|
const _hoisted_2$e = { class: "dao-form-item__label-icon-label" };
|
|
3582
|
-
const _hoisted_3$
|
|
3583
|
-
function _sfc_render$
|
|
3595
|
+
const _hoisted_3$8 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
|
|
3596
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3584
3597
|
const _component_dao_tooltip = resolveComponent("dao-tooltip");
|
|
3585
3598
|
return openBlock(), createElementBlock("div", {
|
|
3586
3599
|
class: normalizeClass(["dao-form-item", { "is-required": _ctx.required }])
|
|
@@ -3591,14 +3604,14 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3591
3604
|
}, [
|
|
3592
3605
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
3593
3606
|
createTextVNode(toDisplayString(!_ctx.iconMessage ? _ctx.label : ""), 1),
|
|
3594
|
-
!!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3607
|
+
!!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
3595
3608
|
createElementVNode("span", _hoisted_2$e, toDisplayString(_ctx.label), 1),
|
|
3596
3609
|
createVNode(_component_dao_tooltip, {
|
|
3597
3610
|
content: _ctx.iconMessage,
|
|
3598
3611
|
placement: "top"
|
|
3599
3612
|
}, {
|
|
3600
3613
|
default: withCtx(() => [
|
|
3601
|
-
_hoisted_3$
|
|
3614
|
+
_hoisted_3$8
|
|
3602
3615
|
]),
|
|
3603
3616
|
_: 1
|
|
3604
3617
|
}, 8, ["content"])
|
|
@@ -3613,9 +3626,9 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3613
3626
|
], 4)
|
|
3614
3627
|
], 2);
|
|
3615
3628
|
}
|
|
3616
|
-
var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3629
|
+
var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m]]);
|
|
3617
3630
|
var formGroup_vue_vue_type_style_index_0_lang = "";
|
|
3618
|
-
const _sfc_main$
|
|
3631
|
+
const _sfc_main$n = defineComponent({
|
|
3619
3632
|
name: "DaoFormGroup",
|
|
3620
3633
|
props: {
|
|
3621
3634
|
title: {
|
|
@@ -3624,10 +3637,10 @@ const _sfc_main$m = defineComponent({
|
|
|
3624
3637
|
}
|
|
3625
3638
|
}
|
|
3626
3639
|
});
|
|
3627
|
-
const _hoisted_1$
|
|
3640
|
+
const _hoisted_1$g = { class: "dao-form-group" };
|
|
3628
3641
|
const _hoisted_2$d = { class: "dao-form-group__title" };
|
|
3629
|
-
function _sfc_render$
|
|
3630
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3642
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3643
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
3631
3644
|
createElementVNode("div", _hoisted_2$d, [
|
|
3632
3645
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3633
3646
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
@@ -3636,7 +3649,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3636
3649
|
renderSlot(_ctx.$slots, "default")
|
|
3637
3650
|
]);
|
|
3638
3651
|
}
|
|
3639
|
-
var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3652
|
+
var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]);
|
|
3640
3653
|
const headerProps = {
|
|
3641
3654
|
type: {
|
|
3642
3655
|
type: String,
|
|
@@ -3648,7 +3661,7 @@ const headerProps = {
|
|
|
3648
3661
|
}
|
|
3649
3662
|
};
|
|
3650
3663
|
var header_vue_vue_type_style_index_0_lang = "";
|
|
3651
|
-
const _sfc_main$
|
|
3664
|
+
const _sfc_main$m = defineComponent({
|
|
3652
3665
|
name: "DaoHeader",
|
|
3653
3666
|
props: headerProps,
|
|
3654
3667
|
setup(props, { slots }) {
|
|
@@ -3662,11 +3675,11 @@ const _sfc_main$l = defineComponent({
|
|
|
3662
3675
|
};
|
|
3663
3676
|
}
|
|
3664
3677
|
});
|
|
3665
|
-
function _sfc_render$
|
|
3678
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3666
3679
|
return openBlock(), createElementBlock("div", {
|
|
3667
3680
|
ref: "header",
|
|
3668
3681
|
"aria-label": "Header",
|
|
3669
|
-
class: normalizeClass(_ctx.ns)
|
|
3682
|
+
class: normalizeClass([_ctx.ns, `${_ctx.ns}--${_ctx.type}`])
|
|
3670
3683
|
}, [
|
|
3671
3684
|
createElementVNode("div", {
|
|
3672
3685
|
class: normalizeClass(_ctx.ns + "__left-container")
|
|
@@ -3694,7 +3707,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3694
3707
|
], 2)) : createCommentVNode("", true)
|
|
3695
3708
|
], 2);
|
|
3696
3709
|
}
|
|
3697
|
-
var header = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3710
|
+
var header = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k]]);
|
|
3698
3711
|
const breadcrumbProps = {
|
|
3699
3712
|
type: {
|
|
3700
3713
|
type: String,
|
|
@@ -3727,7 +3740,7 @@ const breadcrumbItemProps = {
|
|
|
3727
3740
|
type: [String, Object]
|
|
3728
3741
|
}
|
|
3729
3742
|
};
|
|
3730
|
-
const _sfc_main$
|
|
3743
|
+
const _sfc_main$l = defineComponent({
|
|
3731
3744
|
name: "DaoBreadcrumbItem",
|
|
3732
3745
|
props: breadcrumbItemProps,
|
|
3733
3746
|
setup(props) {
|
|
@@ -3749,7 +3762,7 @@ const _sfc_main$k = defineComponent({
|
|
|
3749
3762
|
};
|
|
3750
3763
|
}
|
|
3751
3764
|
});
|
|
3752
|
-
function _sfc_render$
|
|
3765
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3753
3766
|
return openBlock(), createElementBlock("span", {
|
|
3754
3767
|
class: normalizeClass(_ctx.ns + "__item")
|
|
3755
3768
|
}, [
|
|
@@ -3781,9 +3794,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3781
3794
|
}, toDisplayString(_ctx.separator), 3)
|
|
3782
3795
|
], 2);
|
|
3783
3796
|
}
|
|
3784
|
-
var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3797
|
+
var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]);
|
|
3785
3798
|
var breadcrumb_vue_vue_type_style_index_0_lang = "";
|
|
3786
|
-
const _sfc_main$
|
|
3799
|
+
const _sfc_main$k = defineComponent({
|
|
3787
3800
|
name: "DaoBreadcrumb",
|
|
3788
3801
|
components: {
|
|
3789
3802
|
DaoIcon,
|
|
@@ -3798,7 +3811,7 @@ const _sfc_main$j = defineComponent({
|
|
|
3798
3811
|
};
|
|
3799
3812
|
}
|
|
3800
3813
|
});
|
|
3801
|
-
function _sfc_render$
|
|
3814
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3802
3815
|
var _a2;
|
|
3803
3816
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
3804
3817
|
const _component_dao_breadcrumb_item = resolveComponent("dao-breadcrumb-item");
|
|
@@ -3830,7 +3843,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3830
3843
|
renderSlot(_ctx.$slots, "default")
|
|
3831
3844
|
], 2);
|
|
3832
3845
|
}
|
|
3833
|
-
var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3846
|
+
var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
|
|
3834
3847
|
if (typeof window !== "undefined") {
|
|
3835
3848
|
let loadSvg = function() {
|
|
3836
3849
|
var body = document.body;
|
|
@@ -3897,7 +3910,7 @@ var inputProps = {
|
|
|
3897
3910
|
}
|
|
3898
3911
|
};
|
|
3899
3912
|
var input_vue_vue_type_style_index_0_lang = "";
|
|
3900
|
-
const _sfc_main$
|
|
3913
|
+
const _sfc_main$j = defineComponent({
|
|
3901
3914
|
name: "DaoInput",
|
|
3902
3915
|
components: {
|
|
3903
3916
|
DaoIcon
|
|
@@ -4108,7 +4121,7 @@ const _sfc_main$i = defineComponent({
|
|
|
4108
4121
|
};
|
|
4109
4122
|
}
|
|
4110
4123
|
});
|
|
4111
|
-
const _hoisted_1$
|
|
4124
|
+
const _hoisted_1$f = {
|
|
4112
4125
|
key: 0,
|
|
4113
4126
|
class: "dao-input-prepend"
|
|
4114
4127
|
};
|
|
@@ -4116,7 +4129,7 @@ const _hoisted_2$c = {
|
|
|
4116
4129
|
key: 0,
|
|
4117
4130
|
class: "dao-input-prefix"
|
|
4118
4131
|
};
|
|
4119
|
-
const _hoisted_3$
|
|
4132
|
+
const _hoisted_3$7 = ["type", "disabled", "value"];
|
|
4120
4133
|
const _hoisted_4$5 = {
|
|
4121
4134
|
key: 4,
|
|
4122
4135
|
class: "dao-input-suffix"
|
|
@@ -4125,13 +4138,13 @@ const _hoisted_5$4 = {
|
|
|
4125
4138
|
key: 0,
|
|
4126
4139
|
class: "dao-input-append"
|
|
4127
4140
|
};
|
|
4128
|
-
function _sfc_render$
|
|
4141
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4129
4142
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
4130
4143
|
return openBlock(), createElementBlock("div", {
|
|
4131
4144
|
class: normalizeClass(_ctx.wrapClasses)
|
|
4132
4145
|
}, [
|
|
4133
4146
|
renderSlot(_ctx.$slots, "prepend", {}, () => [
|
|
4134
|
-
_ctx.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4147
|
+
_ctx.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$f, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true)
|
|
4135
4148
|
]),
|
|
4136
4149
|
createElementVNode("div", {
|
|
4137
4150
|
class: normalizeClass(["dao-input-inner", { "dao-input__changing-number": _ctx.isChangingNumber }])
|
|
@@ -4151,7 +4164,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4151
4164
|
disabled: _ctx.disabled,
|
|
4152
4165
|
value: _ctx.currentValue,
|
|
4153
4166
|
onKeyup: _cache[0] || (_cache[0] = withKeys((...args) => _ctx.resetCurrentVal && _ctx.resetCurrentVal(...args), ["esc"]))
|
|
4154
|
-
}), null, 16, _hoisted_3$
|
|
4167
|
+
}), null, 16, _hoisted_3$7),
|
|
4155
4168
|
_ctx.type === "number" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
4156
4169
|
createElementVNode("i", {
|
|
4157
4170
|
class: normalizeClass([
|
|
@@ -4199,7 +4212,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4199
4212
|
])
|
|
4200
4213
|
], 2);
|
|
4201
4214
|
}
|
|
4202
|
-
var input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4215
|
+
var input = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
|
|
4203
4216
|
var MessageProps = {
|
|
4204
4217
|
modelValue: {
|
|
4205
4218
|
type: Boolean,
|
|
@@ -4223,7 +4236,7 @@ var MessageProps = {
|
|
|
4223
4236
|
}
|
|
4224
4237
|
};
|
|
4225
4238
|
var message_vue_vue_type_style_index_0_lang = "";
|
|
4226
|
-
const _sfc_main$
|
|
4239
|
+
const _sfc_main$i = defineComponent({
|
|
4227
4240
|
name: "DaoMessage",
|
|
4228
4241
|
props: MessageProps,
|
|
4229
4242
|
emits: ["update:modelValue", "change", "beforeClose", "closed", "beforeShow", "show"],
|
|
@@ -4270,9 +4283,9 @@ const _sfc_main$h = defineComponent({
|
|
|
4270
4283
|
};
|
|
4271
4284
|
}
|
|
4272
4285
|
});
|
|
4273
|
-
const _hoisted_1$
|
|
4286
|
+
const _hoisted_1$e = { class: "dao-message-icon" };
|
|
4274
4287
|
const _hoisted_2$b = { class: "dao-message-section" };
|
|
4275
|
-
const _hoisted_3$
|
|
4288
|
+
const _hoisted_3$6 = {
|
|
4276
4289
|
key: 0,
|
|
4277
4290
|
class: "dao-message-title"
|
|
4278
4291
|
};
|
|
@@ -4280,7 +4293,7 @@ const _hoisted_4$4 = {
|
|
|
4280
4293
|
key: 0,
|
|
4281
4294
|
class: "dao-message-content"
|
|
4282
4295
|
};
|
|
4283
|
-
function _sfc_render$
|
|
4296
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4284
4297
|
return _ctx.isMessageShow ? (openBlock(), createElementBlock("div", {
|
|
4285
4298
|
key: 0,
|
|
4286
4299
|
class: normalizeClass(["dao-message-outer", _ctx.typeClass]),
|
|
@@ -4291,7 +4304,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4291
4304
|
createElementVNode("div", {
|
|
4292
4305
|
class: normalizeClass(["dao-message-inner", { "dao-message-inner-without-close": !_ctx.isCloseShow }])
|
|
4293
4306
|
}, [
|
|
4294
|
-
createElementVNode("div", _hoisted_1$
|
|
4307
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
4295
4308
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4296
4309
|
createElementVNode("i", {
|
|
4297
4310
|
class: normalizeClass(`icon-sys-${_ctx.type} dao-message-icon-general dao-message-icon-${_ctx.type}`)
|
|
@@ -4301,7 +4314,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4301
4314
|
createElementVNode("div", _hoisted_2$b, [
|
|
4302
4315
|
renderSlot(_ctx.$slots, "section", {}, () => [
|
|
4303
4316
|
renderSlot(_ctx.$slots, "title", { className: "dao-message-title" }, () => [
|
|
4304
|
-
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4317
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$6, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
|
|
4305
4318
|
]),
|
|
4306
4319
|
renderSlot(_ctx.$slots, "default", { className: "dao-message-content" }, () => [
|
|
4307
4320
|
_ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$4, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
@@ -4317,7 +4330,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4317
4330
|
])
|
|
4318
4331
|
], 34)) : createCommentVNode("", true);
|
|
4319
4332
|
}
|
|
4320
|
-
var message = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4333
|
+
var message = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g]]);
|
|
4321
4334
|
const NAV_TYPES = ["2rd", "3rd"];
|
|
4322
4335
|
const navProps = {
|
|
4323
4336
|
accordion: {
|
|
@@ -4413,7 +4426,7 @@ const navItemProps = {
|
|
|
4413
4426
|
}
|
|
4414
4427
|
};
|
|
4415
4428
|
var nav_vue_vue_type_style_index_0_lang = "";
|
|
4416
|
-
const _sfc_main$
|
|
4429
|
+
const _sfc_main$h = defineComponent({
|
|
4417
4430
|
name: "DaoNav",
|
|
4418
4431
|
props: navProps,
|
|
4419
4432
|
emits: ["back", "select", "toggle"],
|
|
@@ -4487,18 +4500,18 @@ const _sfc_main$g = defineComponent({
|
|
|
4487
4500
|
});
|
|
4488
4501
|
}
|
|
4489
4502
|
});
|
|
4490
|
-
const _hoisted_1$
|
|
4503
|
+
const _hoisted_1$d = { class: "dao-nav-bar" };
|
|
4491
4504
|
const _hoisted_2$a = { class: "dao-nav" };
|
|
4492
|
-
function _sfc_render$
|
|
4493
|
-
return openBlock(), createElementBlock("nav", _hoisted_1$
|
|
4505
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4506
|
+
return openBlock(), createElementBlock("nav", _hoisted_1$d, [
|
|
4494
4507
|
renderSlot(_ctx.$slots, "header"),
|
|
4495
4508
|
createElementVNode("ul", _hoisted_2$a, [
|
|
4496
4509
|
renderSlot(_ctx.$slots, "default")
|
|
4497
4510
|
])
|
|
4498
4511
|
]);
|
|
4499
4512
|
}
|
|
4500
|
-
var nav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4501
|
-
const _sfc_main$
|
|
4513
|
+
var nav = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$f]]);
|
|
4514
|
+
const _sfc_main$g = defineComponent({
|
|
4502
4515
|
name: "DaoNavHead",
|
|
4503
4516
|
components: {
|
|
4504
4517
|
DaoIcon
|
|
@@ -4533,8 +4546,8 @@ const _sfc_main$f = defineComponent({
|
|
|
4533
4546
|
};
|
|
4534
4547
|
}
|
|
4535
4548
|
});
|
|
4536
|
-
const _hoisted_1$
|
|
4537
|
-
function _sfc_render$
|
|
4549
|
+
const _hoisted_1$c = { class: "dao-nav__head-text dao-nav-text" };
|
|
4550
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4538
4551
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
4539
4552
|
return openBlock(), createElementBlock("li", {
|
|
4540
4553
|
class: normalizeClass(_ctx.classHeadList)
|
|
@@ -4549,12 +4562,12 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4549
4562
|
onClick: _ctx.handleClickBack,
|
|
4550
4563
|
onKeyup: withKeys(withModifiers(_ctx.handleClickBack, ["stop"]), ["esc"])
|
|
4551
4564
|
}, null, 8, ["name", "use-font", "onClick", "onKeyup"])) : createCommentVNode("", true),
|
|
4552
|
-
createElementVNode("span", _hoisted_1$
|
|
4565
|
+
createElementVNode("span", _hoisted_1$c, toDisplayString(_ctx.title), 1)
|
|
4553
4566
|
])
|
|
4554
4567
|
], 2);
|
|
4555
4568
|
}
|
|
4556
|
-
var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4557
|
-
const _sfc_main$
|
|
4569
|
+
var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$e]]);
|
|
4570
|
+
const _sfc_main$f = defineComponent({
|
|
4558
4571
|
name: "DaoNavItem",
|
|
4559
4572
|
components: {
|
|
4560
4573
|
DaoIcon
|
|
@@ -4635,9 +4648,9 @@ const _sfc_main$e = defineComponent({
|
|
|
4635
4648
|
};
|
|
4636
4649
|
}
|
|
4637
4650
|
});
|
|
4638
|
-
const _hoisted_1$
|
|
4651
|
+
const _hoisted_1$b = { class: "dao-nav-slot" };
|
|
4639
4652
|
const _hoisted_2$9 = { class: "dao-nav__item-text dao-nav-text" };
|
|
4640
|
-
function _sfc_render$
|
|
4653
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4641
4654
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
4642
4655
|
return openBlock(), createElementBlock("li", {
|
|
4643
4656
|
class: normalizeClass(_ctx.classItemList)
|
|
@@ -4648,7 +4661,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4648
4661
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
4649
4662
|
onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
|
|
4650
4663
|
}, [
|
|
4651
|
-
createElementVNode("div", _hoisted_1$
|
|
4664
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
4652
4665
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4653
4666
|
_ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
|
|
4654
4667
|
key: 0,
|
|
@@ -4662,8 +4675,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4662
4675
|
], 34)
|
|
4663
4676
|
], 2);
|
|
4664
4677
|
}
|
|
4665
|
-
var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4666
|
-
const _sfc_main$
|
|
4678
|
+
var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$d]]);
|
|
4679
|
+
const _sfc_main$e = defineComponent({
|
|
4667
4680
|
name: "DaoNavSub",
|
|
4668
4681
|
components: {
|
|
4669
4682
|
DaoIcon
|
|
@@ -4785,16 +4798,16 @@ const _sfc_main$d = defineComponent({
|
|
|
4785
4798
|
};
|
|
4786
4799
|
}
|
|
4787
4800
|
});
|
|
4788
|
-
const _hoisted_1$
|
|
4801
|
+
const _hoisted_1$a = { class: "dao-nav-slot" };
|
|
4789
4802
|
const _hoisted_2$8 = { class: "dao-nav__sub-text dao-nav-text" };
|
|
4790
|
-
const _hoisted_3$
|
|
4803
|
+
const _hoisted_3$5 = {
|
|
4791
4804
|
key: 0,
|
|
4792
4805
|
class: "icon-dropdown-line dao-nav__sub__icon-fold"
|
|
4793
4806
|
};
|
|
4794
4807
|
const _hoisted_4$3 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
|
|
4795
4808
|
const _hoisted_5$3 = { class: "dao-nav dao-nav-inner" };
|
|
4796
4809
|
const _hoisted_6$2 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
|
|
4797
|
-
function _sfc_render$
|
|
4810
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4798
4811
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
4799
4812
|
return openBlock(), createElementBlock("li", {
|
|
4800
4813
|
class: normalizeClass(_ctx.classSubList)
|
|
@@ -4805,7 +4818,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4805
4818
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
4806
4819
|
onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
|
|
4807
4820
|
}, [
|
|
4808
|
-
createElementVNode("div", _hoisted_1$
|
|
4821
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
4809
4822
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
4810
4823
|
_ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
|
|
4811
4824
|
key: 0,
|
|
@@ -4816,7 +4829,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4816
4829
|
createElementVNode("span", _hoisted_2$8, toDisplayString(_ctx.title), 1)
|
|
4817
4830
|
])
|
|
4818
4831
|
]),
|
|
4819
|
-
_ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$
|
|
4832
|
+
_ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$5)) : createCommentVNode("", true)
|
|
4820
4833
|
], 34),
|
|
4821
4834
|
createVNode(Transition, { name: "dao-nav" }, {
|
|
4822
4835
|
default: withCtx(() => [
|
|
@@ -4834,7 +4847,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4834
4847
|
})
|
|
4835
4848
|
], 2);
|
|
4836
4849
|
}
|
|
4837
|
-
var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4850
|
+
var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$c]]);
|
|
4838
4851
|
const paginationProps = {
|
|
4839
4852
|
pageSize: {
|
|
4840
4853
|
type: Number,
|
|
@@ -4963,7 +4976,7 @@ _global[globalKey];
|
|
|
4963
4976
|
var _a, _b;
|
|
4964
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);
|
|
4965
4978
|
var select_vue_vue_type_style_index_0_lang = "";
|
|
4966
|
-
const _sfc_main$
|
|
4979
|
+
const _sfc_main$d = defineComponent({
|
|
4967
4980
|
name: "DaoSelect",
|
|
4968
4981
|
components: {
|
|
4969
4982
|
DaoPopper: Popper
|
|
@@ -4971,7 +4984,7 @@ const _sfc_main$c = defineComponent({
|
|
|
4971
4984
|
directives: {},
|
|
4972
4985
|
props: {
|
|
4973
4986
|
modelValue: {
|
|
4974
|
-
type: [String, Number, Boolean],
|
|
4987
|
+
type: [String, Number, Boolean, Array],
|
|
4975
4988
|
default: void 0
|
|
4976
4989
|
},
|
|
4977
4990
|
placeholder: {
|
|
@@ -5006,6 +5019,10 @@ const _sfc_main$c = defineComponent({
|
|
|
5006
5019
|
appendTo: {
|
|
5007
5020
|
type: [String, Boolean, Object],
|
|
5008
5021
|
default: "root"
|
|
5022
|
+
},
|
|
5023
|
+
multiple: {
|
|
5024
|
+
type: Boolean,
|
|
5025
|
+
default: false
|
|
5009
5026
|
}
|
|
5010
5027
|
},
|
|
5011
5028
|
emits: ["update:modelValue", "change", "search-change", "close", "open"],
|
|
@@ -5015,12 +5032,13 @@ const _sfc_main$c = defineComponent({
|
|
|
5015
5032
|
disabled,
|
|
5016
5033
|
size,
|
|
5017
5034
|
menuClass,
|
|
5018
|
-
search
|
|
5035
|
+
search,
|
|
5036
|
+
multiple
|
|
5019
5037
|
} = toRefs(props);
|
|
5020
5038
|
const state = reactive({
|
|
5021
5039
|
optionFocusIndex: -1,
|
|
5022
5040
|
visible: false,
|
|
5023
|
-
selectedOption:
|
|
5041
|
+
selectedOption: [],
|
|
5024
5042
|
options: [],
|
|
5025
5043
|
searchText: ""
|
|
5026
5044
|
});
|
|
@@ -5060,7 +5078,7 @@ const _sfc_main$c = defineComponent({
|
|
|
5060
5078
|
});
|
|
5061
5079
|
const isSelected = computed(() => {
|
|
5062
5080
|
var _a2;
|
|
5063
|
-
return
|
|
5081
|
+
return !!((_a2 = state.selectedOption) == null ? void 0 : _a2.length);
|
|
5064
5082
|
});
|
|
5065
5083
|
const isNoResult = computed(() => {
|
|
5066
5084
|
const unrefSearch = unref(search);
|
|
@@ -5091,32 +5109,61 @@ const _sfc_main$c = defineComponent({
|
|
|
5091
5109
|
(_a2 = searchInput.value) == null ? void 0 : _a2.focus();
|
|
5092
5110
|
};
|
|
5093
5111
|
const onSelect = (option) => {
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5112
|
+
if (!multiple.value) {
|
|
5113
|
+
const unrefPopper = unref(popper2);
|
|
5114
|
+
state.selectedOption = [option];
|
|
5115
|
+
onSearchClear();
|
|
5116
|
+
emit("update:modelValue", option.value);
|
|
5117
|
+
emit("change", option.value);
|
|
5118
|
+
unrefPopper == null ? void 0 : unrefPopper.hide();
|
|
5119
|
+
return;
|
|
5120
|
+
}
|
|
5121
|
+
const index2 = state.selectedOption.indexOf(option);
|
|
5122
|
+
if (index2 > -1) {
|
|
5123
|
+
state.selectedOption.splice(index2, 1);
|
|
5124
|
+
} else {
|
|
5125
|
+
state.selectedOption.push(option);
|
|
5126
|
+
}
|
|
5127
|
+
const values = state.selectedOption.map((i) => i.value);
|
|
5128
|
+
emit("update:modelValue", values);
|
|
5129
|
+
emit("change", values);
|
|
5100
5130
|
};
|
|
5101
5131
|
const checkUpdatedOption = () => {
|
|
5102
|
-
var _a2;
|
|
5103
5132
|
const unrefModelValue = unref(modelValue);
|
|
5104
|
-
if (
|
|
5133
|
+
if (isNullish(unrefModelValue)) {
|
|
5134
|
+
state.selectedOption = [];
|
|
5135
|
+
return;
|
|
5136
|
+
}
|
|
5137
|
+
if (!multiple.value && !Array.isArray(unrefModelValue)) {
|
|
5105
5138
|
const target = state.options.find((o) => o.value === unrefModelValue);
|
|
5106
|
-
|
|
5139
|
+
if (target) {
|
|
5140
|
+
state.selectedOption = [target];
|
|
5141
|
+
} else {
|
|
5142
|
+
state.selectedOption = [];
|
|
5143
|
+
}
|
|
5144
|
+
} else if (multiple.value && Array.isArray(unrefModelValue)) {
|
|
5145
|
+
state.selectedOption = state.options.filter((o) => unrefModelValue == null ? void 0 : unrefModelValue.includes(o.value));
|
|
5107
5146
|
}
|
|
5108
5147
|
};
|
|
5109
5148
|
const checkNewOption = (option) => {
|
|
5110
|
-
var _a2;
|
|
5111
5149
|
const unrefModelValue = unref(modelValue);
|
|
5112
|
-
if (
|
|
5113
|
-
|
|
5150
|
+
if (isNullish(unrefModelValue)) {
|
|
5151
|
+
return;
|
|
5152
|
+
}
|
|
5153
|
+
if (!multiple.value && !Array.isArray(unrefModelValue)) {
|
|
5154
|
+
if (option.value === unrefModelValue) {
|
|
5155
|
+
state.selectedOption = [option];
|
|
5156
|
+
}
|
|
5157
|
+
} else if (multiple.value && Array.isArray(unrefModelValue)) {
|
|
5158
|
+
if (unrefModelValue.includes(option.value)) {
|
|
5159
|
+
state.selectedOption.push(option);
|
|
5160
|
+
}
|
|
5114
5161
|
}
|
|
5115
5162
|
};
|
|
5116
5163
|
const checkRemovedOption = (option) => {
|
|
5117
|
-
|
|
5118
|
-
if (
|
|
5119
|
-
state.selectedOption
|
|
5164
|
+
const index2 = state.selectedOption.findIndex((o) => o.value === option.value);
|
|
5165
|
+
if (index2 > -1) {
|
|
5166
|
+
state.selectedOption.splice(index2, 1);
|
|
5120
5167
|
}
|
|
5121
5168
|
};
|
|
5122
5169
|
const filterFn = (keyword, value, option) => {
|
|
@@ -5155,8 +5202,10 @@ const _sfc_main$c = defineComponent({
|
|
|
5155
5202
|
const bindTriggerEleOutsideClick = {
|
|
5156
5203
|
cleanup: void 0,
|
|
5157
5204
|
visible() {
|
|
5158
|
-
|
|
5159
|
-
|
|
5205
|
+
var _a2;
|
|
5206
|
+
const el = (_a2 = popper2.value) == null ? void 0 : _a2.popper.$el;
|
|
5207
|
+
if (!this.cleanup && el) {
|
|
5208
|
+
this.cleanup = onClickOutside(el, () => {
|
|
5160
5209
|
state.visible = false;
|
|
5161
5210
|
}, {
|
|
5162
5211
|
ignore: [triggerRef]
|
|
@@ -5184,13 +5233,14 @@ const _sfc_main$c = defineComponent({
|
|
|
5184
5233
|
}
|
|
5185
5234
|
};
|
|
5186
5235
|
watch(() => state.visible, (visible) => {
|
|
5236
|
+
var _a2;
|
|
5187
5237
|
if (visible) {
|
|
5188
5238
|
bindTriggerEleOutsideClick.visible();
|
|
5189
5239
|
bindPopperTrigger.visible();
|
|
5190
|
-
state.optionFocusIndex = (state == null ? void 0 : state.selectedOption) ? state == null ? void 0 : state.options.indexOf(state.selectedOption) : -1;
|
|
5240
|
+
state.optionFocusIndex = (state == null ? void 0 : state.selectedOption) ? state == null ? void 0 : state.options.indexOf((_a2 = state.selectedOption) == null ? void 0 : _a2[0]) : -1;
|
|
5191
5241
|
setTimeout(() => {
|
|
5192
|
-
var
|
|
5193
|
-
(
|
|
5242
|
+
var _a3;
|
|
5243
|
+
(_a3 = searchInput.value) == null ? void 0 : _a3.focus();
|
|
5194
5244
|
}, 0);
|
|
5195
5245
|
} else {
|
|
5196
5246
|
bindTriggerEleOutsideClick.invisible();
|
|
@@ -5270,9 +5320,9 @@ const _sfc_main$c = defineComponent({
|
|
|
5270
5320
|
};
|
|
5271
5321
|
}
|
|
5272
5322
|
});
|
|
5273
|
-
const _hoisted_1$
|
|
5323
|
+
const _hoisted_1$9 = { class: "dao-selection-text" };
|
|
5274
5324
|
const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("i", { class: "icon-dropdown-line dao-selection-icon" }, null, -1);
|
|
5275
|
-
const _hoisted_3$
|
|
5325
|
+
const _hoisted_3$4 = {
|
|
5276
5326
|
key: 0,
|
|
5277
5327
|
class: "dao-selection-search"
|
|
5278
5328
|
};
|
|
@@ -5283,12 +5333,12 @@ const _hoisted_7$1 = {
|
|
|
5283
5333
|
key: "dao-option-placeholder",
|
|
5284
5334
|
class: "dao-option-placeholder"
|
|
5285
5335
|
};
|
|
5286
|
-
function _sfc_render$
|
|
5336
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5287
5337
|
const _component_dao_popper = resolveComponent("dao-popper");
|
|
5288
5338
|
return openBlock(), createBlock(_component_dao_popper, {
|
|
5289
5339
|
ref: "popper",
|
|
5290
5340
|
modelValue: _ctx.state.visible,
|
|
5291
|
-
"onUpdate:modelValue": _cache[
|
|
5341
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => _ctx.state.visible = $event),
|
|
5292
5342
|
delay: 0,
|
|
5293
5343
|
disabled: _ctx.disabled,
|
|
5294
5344
|
offset: _ctx.popperOffset,
|
|
@@ -5300,25 +5350,25 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5300
5350
|
transition: "dao-select",
|
|
5301
5351
|
trigger: "manual",
|
|
5302
5352
|
placement: "bottom",
|
|
5303
|
-
onHide: _cache[
|
|
5304
|
-
onShow: _cache[
|
|
5353
|
+
onHide: _cache[15] || (_cache[15] = ($event) => _ctx.$emit("close")),
|
|
5354
|
+
onShow: _cache[16] || (_cache[16] = ($event) => _ctx.$emit("open"))
|
|
5305
5355
|
}, {
|
|
5306
5356
|
content: withCtx(() => [
|
|
5307
5357
|
renderSlot(_ctx.$slots, "optionsHeader", {}, () => [
|
|
5308
|
-
_ctx.search ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5358
|
+
_ctx.search ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
5309
5359
|
withDirectives(createElementVNode("input", {
|
|
5310
5360
|
ref: "searchInput",
|
|
5311
|
-
"onUpdate:modelValue": _cache[
|
|
5361
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.state.searchText = $event),
|
|
5312
5362
|
placeholder: _ctx.searchPlaceholder,
|
|
5313
5363
|
class: "dao-selection-search-input",
|
|
5314
5364
|
type: "search",
|
|
5315
|
-
onInput: _cache[
|
|
5365
|
+
onInput: _cache[7] || (_cache[7] = (...args) => _ctx.onSearchTextChange && _ctx.onSearchTextChange(...args)),
|
|
5316
5366
|
onKeydown: [
|
|
5317
|
-
_cache[
|
|
5318
|
-
_cache[
|
|
5319
|
-
_cache[
|
|
5320
|
-
_cache[
|
|
5321
|
-
_cache[
|
|
5367
|
+
_cache[8] || (_cache[8] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop", "prevent"]), ["tab"])),
|
|
5368
|
+
_cache[9] || (_cache[9] = withKeys((...args) => _ctx.handleEvent.searchInput.keydownEsc && _ctx.handleEvent.searchInput.keydownEsc(...args), ["esc"])),
|
|
5369
|
+
_cache[10] || (_cache[10] = withKeys(withModifiers((...args) => _ctx.handleEvent.searchInput.keydownEnter && _ctx.handleEvent.searchInput.keydownEnter(...args), ["stop", "prevent"]), ["enter"])),
|
|
5370
|
+
_cache[11] || (_cache[11] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
|
|
5371
|
+
_cache[12] || (_cache[12] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"]))
|
|
5322
5372
|
]
|
|
5323
5373
|
}, null, 40, _hoisted_4$2), [
|
|
5324
5374
|
[vModelText, _ctx.state.searchText]
|
|
@@ -5326,7 +5376,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5326
5376
|
_hoisted_5$2,
|
|
5327
5377
|
withDirectives(createElementVNode("i", {
|
|
5328
5378
|
class: "icon-sys-error dao-selection-search-clear-icon",
|
|
5329
|
-
onClick: _cache[
|
|
5379
|
+
onClick: _cache[13] || (_cache[13] = withModifiers((...args) => _ctx.onSearchClear && _ctx.onSearchClear(...args), ["stop", "prevent"]))
|
|
5330
5380
|
}, null, 512), [
|
|
5331
5381
|
[vShow, _ctx.state.searchText]
|
|
5332
5382
|
])
|
|
@@ -5338,28 +5388,37 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5338
5388
|
])
|
|
5339
5389
|
]),
|
|
5340
5390
|
default: withCtx(() => {
|
|
5341
|
-
var _a2, _b2;
|
|
5391
|
+
var _a2, _b2, _c, _d, _e;
|
|
5342
5392
|
return [
|
|
5343
5393
|
createElementVNode("button", {
|
|
5344
5394
|
ref: "triggerRef",
|
|
5345
5395
|
class: "dao-selection",
|
|
5346
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleTargetTrigger && _ctx.handleTargetTrigger(...args)),
|
|
5347
5396
|
onKeydown: [
|
|
5348
|
-
_cache[
|
|
5349
|
-
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop"
|
|
5350
|
-
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.
|
|
5351
|
-
_cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.navigateOptions("
|
|
5352
|
-
|
|
5397
|
+
_cache[0] || (_cache[0] = withKeys(withModifiers((...args) => _ctx.handleTargetTrigger && _ctx.handleTargetTrigger(...args), ["prevent"]), ["enter"])),
|
|
5398
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop"]), ["tab"])),
|
|
5399
|
+
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop", "prevent"]), ["esc"])),
|
|
5400
|
+
_cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
|
|
5401
|
+
_cache[5] || (_cache[5] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"]))
|
|
5402
|
+
],
|
|
5403
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.state.visible = !_ctx.state.visible)
|
|
5353
5404
|
}, [
|
|
5354
|
-
withDirectives(createElementVNode("span", _hoisted_1$
|
|
5355
|
-
renderSlot(_ctx.$slots, "selected", {
|
|
5356
|
-
|
|
5405
|
+
withDirectives(createElementVNode("span", _hoisted_1$9, [
|
|
5406
|
+
_ctx.multiple ? renderSlot(_ctx.$slots, "selected", {
|
|
5407
|
+
key: 0,
|
|
5408
|
+
selectedLabel: _ctx.state.selectedOption.map((o) => o.label),
|
|
5357
5409
|
selectedOption: _ctx.state.selectedOption,
|
|
5358
|
-
selectedValue:
|
|
5410
|
+
selectedValue: _ctx.state.selectedOption.map((o) => o.value)
|
|
5411
|
+
}, () => [
|
|
5412
|
+
createTextVNode(toDisplayString(_ctx.state.selectedOption.map((i) => i.labelValue).join(", ")), 1)
|
|
5413
|
+
]) : renderSlot(_ctx.$slots, "selected", {
|
|
5414
|
+
key: 1,
|
|
5415
|
+
selectedLabel: (_b2 = (_a2 = _ctx.state.selectedOption) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.label,
|
|
5416
|
+
selectedOption: (_c = _ctx.state.selectedOption) == null ? void 0 : _c[0],
|
|
5417
|
+
selectedValue: (_e = (_d = _ctx.state.selectedOption) == null ? void 0 : _d[0]) == null ? void 0 : _e.value
|
|
5359
5418
|
}, () => {
|
|
5360
|
-
var _a3;
|
|
5419
|
+
var _a3, _b3;
|
|
5361
5420
|
return [
|
|
5362
|
-
createTextVNode(toDisplayString((_a3 = _ctx.state.selectedOption) == null ? void 0 : _a3.labelValue), 1)
|
|
5421
|
+
createTextVNode(toDisplayString((_b3 = (_a3 = _ctx.state.selectedOption) == null ? void 0 : _a3[0]) == null ? void 0 : _b3.labelValue), 1)
|
|
5363
5422
|
];
|
|
5364
5423
|
})
|
|
5365
5424
|
], 512), [
|
|
@@ -5375,9 +5434,9 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5375
5434
|
_: 3
|
|
5376
5435
|
}, 8, ["modelValue", "disabled", "offset", "popper-class", "popper-options", "class", "append-to"]);
|
|
5377
5436
|
}
|
|
5378
|
-
var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5437
|
+
var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$b]]);
|
|
5379
5438
|
var option_vue_vue_type_style_index_0_lang = "";
|
|
5380
|
-
const _sfc_main$
|
|
5439
|
+
const _sfc_main$c = defineComponent({
|
|
5381
5440
|
name: "DaoOption",
|
|
5382
5441
|
props: {
|
|
5383
5442
|
value: {
|
|
@@ -5419,7 +5478,7 @@ const _sfc_main$b = defineComponent({
|
|
|
5419
5478
|
const visible = computed(() => instance.visible);
|
|
5420
5479
|
const isSelected = computed(() => {
|
|
5421
5480
|
var _a2;
|
|
5422
|
-
return ((_a2 = selectState == null ? void 0 : selectState.selectedOption) == null ? void 0 : _a2.
|
|
5481
|
+
return !!((_a2 = selectState == null ? void 0 : selectState.selectedOption) == null ? void 0 : _a2.find((option) => option.value === instance.value));
|
|
5423
5482
|
});
|
|
5424
5483
|
const isFocus = computed(() => {
|
|
5425
5484
|
var _a2, _b2;
|
|
@@ -5459,12 +5518,12 @@ const _sfc_main$b = defineComponent({
|
|
|
5459
5518
|
};
|
|
5460
5519
|
}
|
|
5461
5520
|
});
|
|
5462
|
-
const _hoisted_1$
|
|
5521
|
+
const _hoisted_1$8 = ["title"];
|
|
5463
5522
|
const _hoisted_2$6 = {
|
|
5464
5523
|
key: 0,
|
|
5465
5524
|
class: "icon-checked dao-option-checkmark"
|
|
5466
5525
|
};
|
|
5467
|
-
function _sfc_render$
|
|
5526
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5468
5527
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
5469
5528
|
ref: "optionRef",
|
|
5470
5529
|
class: normalizeClass([
|
|
@@ -5483,16 +5542,16 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5483
5542
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5484
5543
|
createTextVNode(toDisplayString(_ctx.labelValue), 1)
|
|
5485
5544
|
])
|
|
5486
|
-
], 8, _hoisted_1$
|
|
5545
|
+
], 8, _hoisted_1$8),
|
|
5487
5546
|
_ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$6)) : createCommentVNode("", true)
|
|
5488
5547
|
], 2)), [
|
|
5489
5548
|
[vShow, _ctx.visible]
|
|
5490
5549
|
]);
|
|
5491
5550
|
}
|
|
5492
|
-
var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5551
|
+
var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$a]]);
|
|
5493
5552
|
var pagination_vue_vue_type_style_index_0_lang = "";
|
|
5494
5553
|
const numberAscSort = (a, b) => a - b;
|
|
5495
|
-
const _sfc_main$
|
|
5554
|
+
const _sfc_main$b = defineComponent({
|
|
5496
5555
|
name: "DaoPagination",
|
|
5497
5556
|
components: {
|
|
5498
5557
|
DaoSelect,
|
|
@@ -5596,9 +5655,9 @@ const _sfc_main$a = defineComponent({
|
|
|
5596
5655
|
};
|
|
5597
5656
|
}
|
|
5598
5657
|
});
|
|
5599
|
-
const _hoisted_1$
|
|
5658
|
+
const _hoisted_1$7 = ["disabled"];
|
|
5600
5659
|
const _hoisted_2$5 = { class: "dao-pagination__pager-total" };
|
|
5601
|
-
function _sfc_render$
|
|
5660
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5602
5661
|
const _component_dao_option = resolveComponent("dao-option");
|
|
5603
5662
|
const _component_dao_select = resolveComponent("dao-select");
|
|
5604
5663
|
return _ctx.computedLayout.show ? (openBlock(), createElementBlock("div", {
|
|
@@ -5625,7 +5684,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5625
5684
|
disabled: _ctx.totalPage <= 1,
|
|
5626
5685
|
onKeydown: _cache[2] || (_cache[2] = withKeys((...args) => _ctx.targetPage && _ctx.targetPage(...args), ["enter"])),
|
|
5627
5686
|
onInput: _cache[3] || (_cache[3] = (...args) => _ctx.currentShowPageFormat && _ctx.currentShowPageFormat(...args))
|
|
5628
|
-
}, null, 40, _hoisted_1$
|
|
5687
|
+
}, null, 40, _hoisted_1$7), [
|
|
5629
5688
|
[vModelText, _ctx.currentShowPage]
|
|
5630
5689
|
]),
|
|
5631
5690
|
createElementVNode("span", _hoisted_2$5, " / " + toDisplayString(_ctx.totalPage), 1),
|
|
@@ -5659,15 +5718,15 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5659
5718
|
}, 8, ["class", "model-value", "style", "onChange"])
|
|
5660
5719
|
], 2)) : createCommentVNode("", true);
|
|
5661
5720
|
}
|
|
5662
|
-
var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5721
|
+
var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
|
|
5663
5722
|
var popover_scss_vue_type_style_index_0_src_lang = "";
|
|
5664
|
-
const _sfc_main$
|
|
5723
|
+
const _sfc_main$a = defineComponent(__spreadProps(__spreadValues({}, Popper), {
|
|
5665
5724
|
name: "DaoPopover",
|
|
5666
5725
|
props: PopperProps,
|
|
5667
5726
|
daoPopperTheme: "dao-popover"
|
|
5668
5727
|
}));
|
|
5669
5728
|
var progress_vue_vue_type_style_index_0_lang = "";
|
|
5670
|
-
const _sfc_main$
|
|
5729
|
+
const _sfc_main$9 = defineComponent({
|
|
5671
5730
|
name: "DaoProgress",
|
|
5672
5731
|
props: {
|
|
5673
5732
|
value: {
|
|
@@ -5716,17 +5775,17 @@ const _sfc_main$8 = defineComponent({
|
|
|
5716
5775
|
};
|
|
5717
5776
|
}
|
|
5718
5777
|
});
|
|
5719
|
-
const _hoisted_1$
|
|
5778
|
+
const _hoisted_1$6 = { class: "dao-progress" };
|
|
5720
5779
|
const _hoisted_2$4 = {
|
|
5721
5780
|
key: 1,
|
|
5722
5781
|
class: "dao-progress__stacked"
|
|
5723
5782
|
};
|
|
5724
|
-
const _hoisted_3$
|
|
5783
|
+
const _hoisted_3$3 = {
|
|
5725
5784
|
key: 0,
|
|
5726
5785
|
class: "dao-progress__text"
|
|
5727
5786
|
};
|
|
5728
|
-
function _sfc_render$
|
|
5729
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5787
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5788
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
5730
5789
|
createElementVNode("div", {
|
|
5731
5790
|
class: "dao-progress__inner",
|
|
5732
5791
|
style: normalizeStyle({ background: _ctx.bgColor })
|
|
@@ -5745,14 +5804,14 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5745
5804
|
}), 128))
|
|
5746
5805
|
]))
|
|
5747
5806
|
], 4),
|
|
5748
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5807
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$3, [
|
|
5749
5808
|
renderSlot(_ctx.$slots, "default")
|
|
5750
5809
|
])) : createCommentVNode("", true)
|
|
5751
5810
|
]);
|
|
5752
5811
|
}
|
|
5753
|
-
var progress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5812
|
+
var progress = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]);
|
|
5754
5813
|
var radio_vue_vue_type_style_index_0_lang = "";
|
|
5755
|
-
const _sfc_main$
|
|
5814
|
+
const _sfc_main$8 = defineComponent({
|
|
5756
5815
|
name: "DaoRadio",
|
|
5757
5816
|
props: {
|
|
5758
5817
|
modelValue: {
|
|
@@ -5822,9 +5881,9 @@ const _sfc_main$7 = defineComponent({
|
|
|
5822
5881
|
};
|
|
5823
5882
|
}
|
|
5824
5883
|
});
|
|
5825
|
-
const _hoisted_1$
|
|
5884
|
+
const _hoisted_1$5 = ["disabled", "name", "checked"];
|
|
5826
5885
|
const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("span", { class: "dao-radio-inner" }, null, -1);
|
|
5827
|
-
const _hoisted_3$
|
|
5886
|
+
const _hoisted_3$2 = {
|
|
5828
5887
|
key: 0,
|
|
5829
5888
|
class: "dao-radio__label-wrapper"
|
|
5830
5889
|
};
|
|
@@ -5836,7 +5895,7 @@ const _hoisted_5$1 = {
|
|
|
5836
5895
|
key: 1,
|
|
5837
5896
|
class: "dao-radio__help"
|
|
5838
5897
|
};
|
|
5839
|
-
function _sfc_render$
|
|
5898
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5840
5899
|
return openBlock(), createElementBlock("label", {
|
|
5841
5900
|
class: normalizeClass(_ctx.wrapClasses)
|
|
5842
5901
|
}, [
|
|
@@ -5850,10 +5909,10 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5850
5909
|
name: _ctx.name,
|
|
5851
5910
|
checked: _ctx.currentValue,
|
|
5852
5911
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
|
|
5853
|
-
}, null, 40, _hoisted_1$
|
|
5912
|
+
}, null, 40, _hoisted_1$5),
|
|
5854
5913
|
_hoisted_2$3
|
|
5855
5914
|
], 2),
|
|
5856
|
-
_ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5915
|
+
_ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
5857
5916
|
_ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
5858
5917
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5859
5918
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
@@ -5865,9 +5924,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5865
5924
|
])) : createCommentVNode("", true)
|
|
5866
5925
|
], 2);
|
|
5867
5926
|
}
|
|
5868
|
-
var radio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5927
|
+
var radio = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]);
|
|
5869
5928
|
var radioGroup_vue_vue_type_style_index_0_lang = "";
|
|
5870
|
-
const _sfc_main$
|
|
5929
|
+
const _sfc_main$7 = defineComponent({
|
|
5871
5930
|
name: "DaoRadioGroup",
|
|
5872
5931
|
props: {
|
|
5873
5932
|
modelValue: {
|
|
@@ -5901,16 +5960,16 @@ const _sfc_main$6 = defineComponent({
|
|
|
5901
5960
|
};
|
|
5902
5961
|
}
|
|
5903
5962
|
});
|
|
5904
|
-
function _sfc_render$
|
|
5963
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5905
5964
|
return openBlock(), createElementBlock("div", {
|
|
5906
5965
|
class: normalizeClass(_ctx.radioGroupClasses)
|
|
5907
5966
|
}, [
|
|
5908
5967
|
renderSlot(_ctx.$slots, "default")
|
|
5909
5968
|
], 2);
|
|
5910
5969
|
}
|
|
5911
|
-
var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5970
|
+
var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]);
|
|
5912
5971
|
var switch_vue_vue_type_style_index_0_lang = "";
|
|
5913
|
-
const _sfc_main$
|
|
5972
|
+
const _sfc_main$6 = defineComponent({
|
|
5914
5973
|
name: "DaoSwitch",
|
|
5915
5974
|
props: {
|
|
5916
5975
|
modelValue: {
|
|
@@ -5965,12 +6024,12 @@ const _sfc_main$5 = defineComponent({
|
|
|
5965
6024
|
};
|
|
5966
6025
|
}
|
|
5967
6026
|
});
|
|
5968
|
-
const _hoisted_1$
|
|
6027
|
+
const _hoisted_1$4 = ["value", "name", "disabled"];
|
|
5969
6028
|
const _hoisted_2$2 = {
|
|
5970
6029
|
key: 0,
|
|
5971
6030
|
class: "dao-switch__label"
|
|
5972
6031
|
};
|
|
5973
|
-
function _sfc_render$
|
|
6032
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5974
6033
|
return openBlock(), createElementBlock("div", {
|
|
5975
6034
|
class: normalizeClass(["dao-switch", { "dao-switch--disabled": _ctx.disabled, "dao-switch--size-sm": _ctx.size === "sm" }]),
|
|
5976
6035
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
|
|
@@ -5981,16 +6040,16 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5981
6040
|
value: _ctx.currentValue,
|
|
5982
6041
|
name: _ctx.name,
|
|
5983
6042
|
disabled: _ctx.disabled
|
|
5984
|
-
}, null, 8, _hoisted_1$
|
|
6043
|
+
}, null, 8, _hoisted_1$4),
|
|
5985
6044
|
createElementVNode("span", {
|
|
5986
6045
|
class: normalizeClass(["dao-switch__pill", { "dao-switch-checked": _ctx.currentValue }])
|
|
5987
6046
|
}, null, 2),
|
|
5988
6047
|
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(_ctx.currentValue ? _ctx.textOn : _ctx.textOff), 1)) : createCommentVNode("", true)
|
|
5989
6048
|
], 2);
|
|
5990
6049
|
}
|
|
5991
|
-
var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6050
|
+
var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5]]);
|
|
5992
6051
|
var resizer_vue_vue_type_style_index_0_lang = "";
|
|
5993
|
-
const _sfc_main$
|
|
6052
|
+
const _sfc_main$5 = defineComponent({
|
|
5994
6053
|
name: "DaoResizer",
|
|
5995
6054
|
props: {
|
|
5996
6055
|
column: {
|
|
@@ -6037,9 +6096,9 @@ const _sfc_main$4 = defineComponent({
|
|
|
6037
6096
|
};
|
|
6038
6097
|
}
|
|
6039
6098
|
});
|
|
6040
|
-
const _hoisted_1$
|
|
6041
|
-
function _sfc_render$
|
|
6042
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
6099
|
+
const _hoisted_1$3 = { class: "dao-table-resizer-separator" };
|
|
6100
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6101
|
+
return openBlock(), createElementBlock("span", _hoisted_1$3, [
|
|
6043
6102
|
!_ctx.disabled ? (openBlock(), createElementBlock("span", {
|
|
6044
6103
|
key: 0,
|
|
6045
6104
|
class: "dao-table-resizer-handle",
|
|
@@ -6049,7 +6108,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6049
6108
|
}, null, 32)) : createCommentVNode("", true)
|
|
6050
6109
|
]);
|
|
6051
6110
|
}
|
|
6052
|
-
var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6111
|
+
var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4]]);
|
|
6053
6112
|
const tableProps = {
|
|
6054
6113
|
id: {
|
|
6055
6114
|
type: String,
|
|
@@ -6068,7 +6127,7 @@ const tableProps = {
|
|
|
6068
6127
|
default: true
|
|
6069
6128
|
},
|
|
6070
6129
|
selectable: {
|
|
6071
|
-
type: Boolean,
|
|
6130
|
+
type: [Function, Boolean],
|
|
6072
6131
|
default: false
|
|
6073
6132
|
},
|
|
6074
6133
|
expandable: {
|
|
@@ -6132,7 +6191,7 @@ const defaultColumnConfig = {
|
|
|
6132
6191
|
hidable: true,
|
|
6133
6192
|
defaultHide: false
|
|
6134
6193
|
};
|
|
6135
|
-
const _sfc_main$
|
|
6194
|
+
const _sfc_main$4 = defineComponent({
|
|
6136
6195
|
name: "DaoTable",
|
|
6137
6196
|
components: {
|
|
6138
6197
|
DaoResizer,
|
|
@@ -6160,6 +6219,17 @@ const _sfc_main$3 = defineComponent({
|
|
|
6160
6219
|
const sort = reactive(props.sort);
|
|
6161
6220
|
const expandRows = reactive([]);
|
|
6162
6221
|
const selectedRows = reactive(new Set());
|
|
6222
|
+
const selectableFn = computed(() => typeof props.selectable === "function" ? props.selectable : () => true);
|
|
6223
|
+
const selectableRows = computed(() => {
|
|
6224
|
+
var _a2;
|
|
6225
|
+
const selectableRowsSet = new Set();
|
|
6226
|
+
(_a2 = props.data) == null ? void 0 : _a2.forEach((item, index2) => {
|
|
6227
|
+
if (selectableFn.value && selectableFn.value(item, index2)) {
|
|
6228
|
+
selectableRowsSet.add(item);
|
|
6229
|
+
}
|
|
6230
|
+
});
|
|
6231
|
+
return selectableRowsSet;
|
|
6232
|
+
});
|
|
6163
6233
|
const expandedRows = reactive(new WeakSet());
|
|
6164
6234
|
const columnRefs = reactive({});
|
|
6165
6235
|
const columns = reactive([]);
|
|
@@ -6309,14 +6379,16 @@ const _sfc_main$3 = defineComponent({
|
|
|
6309
6379
|
}
|
|
6310
6380
|
};
|
|
6311
6381
|
const toggleSelectedAll = () => {
|
|
6312
|
-
if (global2.checked) {
|
|
6313
|
-
selectedRows.clear();
|
|
6314
|
-
emit("select", []);
|
|
6315
|
-
} else {
|
|
6382
|
+
if (!global2.checked || global2.indeterminate) {
|
|
6316
6383
|
props.data.forEach((item) => {
|
|
6317
|
-
|
|
6384
|
+
if (selectableRows.value.has(item)) {
|
|
6385
|
+
selectedRows.add(item);
|
|
6386
|
+
}
|
|
6318
6387
|
});
|
|
6319
6388
|
emit("select", Array.from(selectedRows));
|
|
6389
|
+
} else {
|
|
6390
|
+
selectedRows.clear();
|
|
6391
|
+
emit("select", []);
|
|
6320
6392
|
}
|
|
6321
6393
|
};
|
|
6322
6394
|
const fixedColumnWidth = () => {
|
|
@@ -6347,7 +6419,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
6347
6419
|
const item = props.data[i];
|
|
6348
6420
|
if (selectedRows.has(item)) {
|
|
6349
6421
|
have += 1;
|
|
6350
|
-
} else {
|
|
6422
|
+
} else if (selectableRows.value.has(item)) {
|
|
6351
6423
|
notHave += 1;
|
|
6352
6424
|
}
|
|
6353
6425
|
if (have && notHave) {
|
|
@@ -6415,16 +6487,17 @@ const _sfc_main$3 = defineComponent({
|
|
|
6415
6487
|
tableScroll,
|
|
6416
6488
|
expandedRows,
|
|
6417
6489
|
onRowClick,
|
|
6418
|
-
isEmpty
|
|
6490
|
+
isEmpty,
|
|
6491
|
+
selectableRows
|
|
6419
6492
|
};
|
|
6420
6493
|
}
|
|
6421
6494
|
});
|
|
6422
|
-
const _hoisted_1$
|
|
6495
|
+
const _hoisted_1$2 = { class: "dao-table" };
|
|
6423
6496
|
const _hoisted_2$1 = {
|
|
6424
6497
|
key: 0,
|
|
6425
6498
|
class: "dao-table-thead"
|
|
6426
6499
|
};
|
|
6427
|
-
const _hoisted_3 = { class: "dao-table-tr" };
|
|
6500
|
+
const _hoisted_3$1 = { class: "dao-table-tr" };
|
|
6428
6501
|
const _hoisted_4 = {
|
|
6429
6502
|
key: 0,
|
|
6430
6503
|
class: "dao-table-th"
|
|
@@ -6455,7 +6528,7 @@ const _hoisted_14 = {
|
|
|
6455
6528
|
class: "dao-table__empty-block"
|
|
6456
6529
|
};
|
|
6457
6530
|
const _hoisted_15 = { class: "dao-table-pagination" };
|
|
6458
|
-
function _sfc_render$
|
|
6531
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6459
6532
|
const _component_dao_checkbox = resolveComponent("dao-checkbox");
|
|
6460
6533
|
const _component_dao_resizer = resolveComponent("dao-resizer");
|
|
6461
6534
|
const _component_dao_pagination = resolveComponent("dao-pagination");
|
|
@@ -6466,9 +6539,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6466
6539
|
ref: "tableScroll",
|
|
6467
6540
|
class: normalizeClass(["dao-table-scroll", _ctx.tableWrapperClasses])
|
|
6468
6541
|
}, [
|
|
6469
|
-
createElementVNode("table", _hoisted_1$
|
|
6542
|
+
createElementVNode("table", _hoisted_1$2, [
|
|
6470
6543
|
_ctx.showHeader ? (openBlock(), createElementBlock("thead", _hoisted_2$1, [
|
|
6471
|
-
createElementVNode("tr", _hoisted_3, [
|
|
6544
|
+
createElementVNode("tr", _hoisted_3$1, [
|
|
6472
6545
|
_ctx.selectable ? (openBlock(), createElementBlock("th", _hoisted_4, [
|
|
6473
6546
|
createVNode(_component_dao_checkbox, {
|
|
6474
6547
|
checked: _ctx.global.checked,
|
|
@@ -6517,9 +6590,10 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6517
6590
|
}, [
|
|
6518
6591
|
_ctx.selectable ? (openBlock(), createElementBlock("td", _hoisted_10, [
|
|
6519
6592
|
createVNode(_component_dao_checkbox, {
|
|
6593
|
+
disabled: !_ctx.selectableRows.has(row),
|
|
6520
6594
|
checked: _ctx.isRowSelected(row),
|
|
6521
6595
|
onChange: ($event) => _ctx.toggleSelected(row)
|
|
6522
|
-
}, null, 8, ["checked", "onChange"])
|
|
6596
|
+
}, null, 8, ["disabled", "checked", "onChange"])
|
|
6523
6597
|
])) : createCommentVNode("", true),
|
|
6524
6598
|
_ctx.expandable ? (openBlock(), createElementBlock("td", _hoisted_11, [
|
|
6525
6599
|
createElementVNode("i", {
|
|
@@ -6600,9 +6674,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6600
6674
|
])
|
|
6601
6675
|
], 2);
|
|
6602
6676
|
}
|
|
6603
|
-
var table = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6677
|
+
var table = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3]]);
|
|
6604
6678
|
var tabNav_scss_vue_type_style_index_0_src_lang = "";
|
|
6605
|
-
const _sfc_main$
|
|
6679
|
+
const _sfc_main$3 = defineComponent({
|
|
6606
6680
|
name: "DaoTabNav",
|
|
6607
6681
|
props: {
|
|
6608
6682
|
type: {
|
|
@@ -6653,7 +6727,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
6653
6727
|
const activeLineStyle = ref({});
|
|
6654
6728
|
setActiveLineStyle = () => {
|
|
6655
6729
|
const tab = unref(activeTab);
|
|
6656
|
-
if (tab && tab.offsetWidth && tab.offsetLeft) {
|
|
6730
|
+
if (tab && tab.offsetWidth && tab.offsetLeft !== void 0) {
|
|
6657
6731
|
activeLineStyle.value = {
|
|
6658
6732
|
"--active-line-width": `${tab.offsetWidth || 0}px`,
|
|
6659
6733
|
"--active-line-left": `${tab.offsetLeft || 0}px`
|
|
@@ -6701,12 +6775,12 @@ const _sfc_main$2 = defineComponent({
|
|
|
6701
6775
|
const isActive = tab.value === props.currentTab;
|
|
6702
6776
|
const hasHoverLine = isLine.value && !tab.disabled;
|
|
6703
6777
|
const hasActiveLine = isLine.value && isActive;
|
|
6704
|
-
return h("
|
|
6778
|
+
return h("div", {
|
|
6705
6779
|
class: {
|
|
6706
|
-
"dao-
|
|
6707
|
-
"dao-
|
|
6708
|
-
"dao-
|
|
6709
|
-
"dao-
|
|
6780
|
+
"dao-tabs__nav-item": true,
|
|
6781
|
+
"dao-tabs__nav-item--active": isActive,
|
|
6782
|
+
"dao-tabs__nav-item--custom": isNotString,
|
|
6783
|
+
"dao-tabs__nav-item--disabled": tab.disabled
|
|
6710
6784
|
},
|
|
6711
6785
|
ref: hasActiveLine ? activeTab : void 0,
|
|
6712
6786
|
key: index2,
|
|
@@ -6715,21 +6789,24 @@ const _sfc_main$2 = defineComponent({
|
|
|
6715
6789
|
onMouseleave: hasHoverLine ? onMouseleave : void 0
|
|
6716
6790
|
}, [isNotString ? label() : label]);
|
|
6717
6791
|
}));
|
|
6718
|
-
return () => h("
|
|
6792
|
+
return () => h("div", {
|
|
6719
6793
|
class: [
|
|
6720
|
-
"dao-
|
|
6721
|
-
|
|
6794
|
+
"dao-tabs__nav__scroll"
|
|
6795
|
+
]
|
|
6796
|
+
}, h("div", {
|
|
6797
|
+
class: [
|
|
6798
|
+
"dao-tabs__nav"
|
|
6722
6799
|
],
|
|
6723
6800
|
style: lineStyle == null ? void 0 : lineStyle.value,
|
|
6724
6801
|
ref: tabNav
|
|
6725
|
-
}, tabsLi.value);
|
|
6802
|
+
}, tabsLi.value));
|
|
6726
6803
|
}
|
|
6727
6804
|
});
|
|
6728
6805
|
var tabs_scss_vue_type_style_index_0_src_lang = "";
|
|
6729
|
-
const _sfc_main$
|
|
6806
|
+
const _sfc_main$2 = defineComponent({
|
|
6730
6807
|
name: "DaoTabs",
|
|
6731
6808
|
components: {
|
|
6732
|
-
TabNav: _sfc_main$
|
|
6809
|
+
TabNav: _sfc_main$3
|
|
6733
6810
|
},
|
|
6734
6811
|
props: {
|
|
6735
6812
|
type: {
|
|
@@ -6798,30 +6875,44 @@ const _sfc_main$1 = defineComponent({
|
|
|
6798
6875
|
};
|
|
6799
6876
|
}
|
|
6800
6877
|
});
|
|
6801
|
-
const _hoisted_1 = { class: "dao-
|
|
6878
|
+
const _hoisted_1$1 = { class: "dao-tabs__nav__warp" };
|
|
6802
6879
|
const _hoisted_2 = {
|
|
6880
|
+
key: 0,
|
|
6881
|
+
class: "dao-tabs__action"
|
|
6882
|
+
};
|
|
6883
|
+
const _hoisted_3 = {
|
|
6803
6884
|
ref: "tabBody",
|
|
6804
|
-
class: "dao-
|
|
6885
|
+
class: "dao-tabs__body"
|
|
6805
6886
|
};
|
|
6806
|
-
function _sfc_render$
|
|
6887
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6807
6888
|
const _component_tab_nav = resolveComponent("tab-nav");
|
|
6808
|
-
return openBlock(), createElementBlock("div",
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
class: normalizeClass(
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6889
|
+
return openBlock(), createElementBlock("div", {
|
|
6890
|
+
class: normalizeClass(["dao-tabs", ["dao-tabs--" + _ctx.type, _ctx.direction === "right" ? "dao-tabs--right" : ""]])
|
|
6891
|
+
}, [
|
|
6892
|
+
createElementVNode("div", {
|
|
6893
|
+
class: normalizeClass(["dao-tabs__header", "dao-tabs__header--" + _ctx.type])
|
|
6894
|
+
}, [
|
|
6895
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
6896
|
+
createVNode(_component_tab_nav, {
|
|
6897
|
+
type: _ctx.type,
|
|
6898
|
+
"tab-list": _ctx.tabList,
|
|
6899
|
+
"current-tab": _ctx.modelValue,
|
|
6900
|
+
onUpdateValue: _ctx.updateValue,
|
|
6901
|
+
onClick: _ctx.onClick
|
|
6902
|
+
}, null, 8, ["type", "tab-list", "current-tab", "onUpdateValue", "onClick"])
|
|
6903
|
+
]),
|
|
6904
|
+
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
6905
|
+
renderSlot(_ctx.$slots, "action")
|
|
6906
|
+
])) : createCommentVNode("", true)
|
|
6907
|
+
], 2),
|
|
6908
|
+
createElementVNode("div", _hoisted_3, [
|
|
6818
6909
|
renderSlot(_ctx.$slots, "default")
|
|
6819
6910
|
], 512)
|
|
6820
|
-
]);
|
|
6911
|
+
], 2);
|
|
6821
6912
|
}
|
|
6822
|
-
var tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6913
|
+
var tabs = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
6823
6914
|
var tabItem_scss_vue_type_style_index_0_src_lang = "";
|
|
6824
|
-
const _sfc_main = defineComponent({
|
|
6915
|
+
const _sfc_main$1 = defineComponent({
|
|
6825
6916
|
name: "DaoTabItem",
|
|
6826
6917
|
props: {
|
|
6827
6918
|
label: {
|
|
@@ -6851,7 +6942,7 @@ const _sfc_main = defineComponent({
|
|
|
6851
6942
|
};
|
|
6852
6943
|
}
|
|
6853
6944
|
});
|
|
6854
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6945
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6855
6946
|
return openBlock(), createElementBlock("div", {
|
|
6856
6947
|
ref: "tabItem",
|
|
6857
6948
|
class: normalizeClass(["dao-tab-item", {
|
|
@@ -6861,7 +6952,165 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6861
6952
|
renderSlot(_ctx.$slots, "default")
|
|
6862
6953
|
], 2);
|
|
6863
6954
|
}
|
|
6864
|
-
var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
6955
|
+
var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
6956
|
+
const placements = [
|
|
6957
|
+
"auto",
|
|
6958
|
+
"auto-start",
|
|
6959
|
+
"auto-end",
|
|
6960
|
+
"top",
|
|
6961
|
+
"top-start",
|
|
6962
|
+
"top-end",
|
|
6963
|
+
"right",
|
|
6964
|
+
"right-start",
|
|
6965
|
+
"right-end",
|
|
6966
|
+
"bottom",
|
|
6967
|
+
"bottom-start",
|
|
6968
|
+
"bottom-end",
|
|
6969
|
+
"left",
|
|
6970
|
+
"left-start",
|
|
6971
|
+
"left-end"
|
|
6972
|
+
];
|
|
6973
|
+
const ellipsisProps = {
|
|
6974
|
+
type: {
|
|
6975
|
+
type: String,
|
|
6976
|
+
default: "tooltip"
|
|
6977
|
+
},
|
|
6978
|
+
manual: {
|
|
6979
|
+
type: Boolean,
|
|
6980
|
+
default: false
|
|
6981
|
+
},
|
|
6982
|
+
force: {
|
|
6983
|
+
type: Boolean,
|
|
6984
|
+
default: false
|
|
6985
|
+
},
|
|
6986
|
+
disabled: {
|
|
6987
|
+
type: Boolean,
|
|
6988
|
+
default: false
|
|
6989
|
+
},
|
|
6990
|
+
content: {
|
|
6991
|
+
type: String,
|
|
6992
|
+
default: ""
|
|
6993
|
+
},
|
|
6994
|
+
width: {
|
|
6995
|
+
type: Number,
|
|
6996
|
+
default: 200
|
|
6997
|
+
},
|
|
6998
|
+
ellipsisPlacement: {
|
|
6999
|
+
type: String,
|
|
7000
|
+
default: "bottom-start",
|
|
7001
|
+
validator: (value) => placements.includes(value)
|
|
7002
|
+
},
|
|
7003
|
+
appendTo: {
|
|
7004
|
+
type: [String, Boolean, Object],
|
|
7005
|
+
default: "root"
|
|
7006
|
+
},
|
|
7007
|
+
popperClass: {
|
|
7008
|
+
type: String,
|
|
7009
|
+
default: ""
|
|
7010
|
+
},
|
|
7011
|
+
offset: {
|
|
7012
|
+
type: [Number, String],
|
|
7013
|
+
default: 10
|
|
7014
|
+
},
|
|
7015
|
+
delay: {
|
|
7016
|
+
type: [Number, Object, String],
|
|
7017
|
+
default: () => ({ show: 0, hide: 100 })
|
|
7018
|
+
}
|
|
7019
|
+
};
|
|
7020
|
+
var ellipsis_vue_vue_type_style_index_0_lang = "";
|
|
7021
|
+
const _sfc_main = defineComponent({
|
|
7022
|
+
name: "DaoEllipsis",
|
|
7023
|
+
components: {
|
|
7024
|
+
Tooltip: _sfc_main$p
|
|
7025
|
+
},
|
|
7026
|
+
props: ellipsisProps,
|
|
7027
|
+
setup(props) {
|
|
7028
|
+
const disabled = ref(true);
|
|
7029
|
+
const tooltipRef = ref();
|
|
7030
|
+
const ComponentType = computed(() => props.type === "tooltip" ? _sfc_main$p : _sfc_main$a);
|
|
7031
|
+
const isOpen = computed(() => {
|
|
7032
|
+
var _a2, _b2, _c, _d;
|
|
7033
|
+
return (_d = (_c = (_b2 = (_a2 = tooltipRef.value) == null ? void 0 : _a2.$) == null ? void 0 : _b2.ctx) == null ? void 0 : _c.isOpen) != null ? _d : false;
|
|
7034
|
+
});
|
|
7035
|
+
const isEllipsis = ref(false);
|
|
7036
|
+
const update = (ele) => {
|
|
7037
|
+
isEllipsis.value = ((ele == null ? void 0 : ele.offsetWidth) || 0) < ((ele == null ? void 0 : ele.scrollWidth) || 0);
|
|
7038
|
+
if (props.disabled) {
|
|
7039
|
+
disabled.value = true;
|
|
7040
|
+
return;
|
|
7041
|
+
}
|
|
7042
|
+
if (props.force) {
|
|
7043
|
+
disabled.value = false;
|
|
7044
|
+
return;
|
|
7045
|
+
}
|
|
7046
|
+
disabled.value = !isEllipsis.value;
|
|
7047
|
+
};
|
|
7048
|
+
function onMouseOver(e) {
|
|
7049
|
+
var _a2;
|
|
7050
|
+
let path = (_a2 = e == null ? void 0 : e.path) != null ? _a2 : [];
|
|
7051
|
+
if (e.composedPath) {
|
|
7052
|
+
path = e.composedPath();
|
|
7053
|
+
}
|
|
7054
|
+
const count = path.length;
|
|
7055
|
+
let index2 = 0;
|
|
7056
|
+
while (index2 < count) {
|
|
7057
|
+
const target = path[index2];
|
|
7058
|
+
if (target.scrollWidth) {
|
|
7059
|
+
update(target);
|
|
7060
|
+
break;
|
|
7061
|
+
}
|
|
7062
|
+
index2 += 1;
|
|
7063
|
+
}
|
|
7064
|
+
}
|
|
7065
|
+
return {
|
|
7066
|
+
ns: "dao-ellipsis",
|
|
7067
|
+
disabled,
|
|
7068
|
+
onMouseOver,
|
|
7069
|
+
tooltipRef,
|
|
7070
|
+
isOpen,
|
|
7071
|
+
isEllipsis,
|
|
7072
|
+
Tooltip: _sfc_main$p,
|
|
7073
|
+
ComponentType
|
|
7074
|
+
};
|
|
7075
|
+
}
|
|
7076
|
+
});
|
|
7077
|
+
const _hoisted_1 = { key: 1 };
|
|
7078
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7079
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.ComponentType), {
|
|
7080
|
+
ref: "ComponentRef",
|
|
7081
|
+
disabled: _ctx.disabled,
|
|
7082
|
+
"visible-arrow": false,
|
|
7083
|
+
placement: _ctx.ellipsisPlacement,
|
|
7084
|
+
offset: _ctx.offset,
|
|
7085
|
+
class: normalizeClass({ ns: _ctx.ns, [`${_ctx.ns}--auto-mode`]: !_ctx.manual }),
|
|
7086
|
+
"append-to": _ctx.appendTo,
|
|
7087
|
+
delay: _ctx.delay,
|
|
7088
|
+
"popper-class": [`${_ctx.ns}-popper`, _ctx.popperClass].join(" "),
|
|
7089
|
+
width: _ctx.width
|
|
7090
|
+
}, createSlots({
|
|
7091
|
+
default: withCtx(() => [
|
|
7092
|
+
createElementVNode("span", {
|
|
7093
|
+
class: normalizeClass([_ctx.ns + "__target", { "is-disabled": _ctx.disabled }]),
|
|
7094
|
+
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.onMouseOver && _ctx.onMouseOver(...args))
|
|
7095
|
+
}, [
|
|
7096
|
+
renderSlot(_ctx.$slots, "default")
|
|
7097
|
+
], 34)
|
|
7098
|
+
]),
|
|
7099
|
+
_: 2
|
|
7100
|
+
}, [
|
|
7101
|
+
!_ctx.disabled ? {
|
|
7102
|
+
name: "content",
|
|
7103
|
+
fn: withCtx(() => [
|
|
7104
|
+
_ctx.$slots.content ? renderSlot(_ctx.$slots, "content", {
|
|
7105
|
+
key: 0,
|
|
7106
|
+
show: _ctx.isOpen,
|
|
7107
|
+
ellipsis: _ctx.isEllipsis
|
|
7108
|
+
}) : _ctx.content ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.content), 1)) : renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
7109
|
+
])
|
|
7110
|
+
} : void 0
|
|
7111
|
+
]), 1032, ["disabled", "placement", "offset", "class", "append-to", "delay", "popper-class", "width"]);
|
|
7112
|
+
}
|
|
7113
|
+
var ellipsis = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
6865
7114
|
var components = /* @__PURE__ */ Object.freeze({
|
|
6866
7115
|
__proto__: null,
|
|
6867
7116
|
[Symbol.toStringTag]: "Module",
|
|
@@ -6895,7 +7144,7 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
6895
7144
|
NavItem: navItem,
|
|
6896
7145
|
NavSub: navSub,
|
|
6897
7146
|
Pagination: DaoPagination,
|
|
6898
|
-
Popover: _sfc_main$
|
|
7147
|
+
Popover: _sfc_main$a,
|
|
6899
7148
|
Popper,
|
|
6900
7149
|
Progress: progress,
|
|
6901
7150
|
Radio: radio,
|
|
@@ -6905,12 +7154,11 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
6905
7154
|
Switch: _switch,
|
|
6906
7155
|
Table: table,
|
|
6907
7156
|
Tabs: tabs,
|
|
6908
|
-
TabNav: _sfc_main$
|
|
7157
|
+
TabNav: _sfc_main$3,
|
|
6909
7158
|
TabItem: tabItem,
|
|
6910
|
-
Tooltip: _sfc_main$
|
|
7159
|
+
Tooltip: _sfc_main$p,
|
|
7160
|
+
DaoEllipsis: ellipsis
|
|
6911
7161
|
});
|
|
6912
|
-
var common = "";
|
|
6913
|
-
var alias = "";
|
|
6914
7162
|
const plugin = (app) => {
|
|
6915
7163
|
Object.values(components).forEach((c) => {
|
|
6916
7164
|
app.component(c.name, c);
|
|
@@ -6922,4 +7170,4 @@ const install = (Vue) => {
|
|
|
6922
7170
|
var index = {
|
|
6923
7171
|
install
|
|
6924
7172
|
};
|
|
6925
|
-
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$
|
|
7173
|
+
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, ellipsis as DaoEllipsis, 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$a as Popover, Popper, progress as Progress, radio as Radio, radioGroup as RadioGroup, DaoSelect as Select, _switch as Switch, tabItem as TabItem, _sfc_main$3 as TabNav, table as Table, tabs as Tabs, _sfc_main$p as Tooltip, index as default };
|