@dao-style/core 0.0.1-beta.15 → 0.0.1-beta.18
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 +2 -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 +8 -2
- package/dist/components/table/table.vue.d.ts +16 -7
- package/dist/components/transfer/components/link.vue.d.ts +35 -0
- package/dist/components/transfer/index.d.ts +2 -0
- package/dist/components/transfer/props.d.ts +83 -0
- package/dist/components/transfer/test/transfer.spec.d.ts +1 -0
- package/dist/components/transfer/transfer-panel.vue.d.ts +92 -0
- package/dist/components/transfer/transfer.vue.d.ts +90 -0
- package/dist/dao-style.es.js +1292 -459
- 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/dist/{components/checkbox/test/utils.d.ts → utils/test/checkbox.d.ts} +0 -0
- package/package.json +2 -1
- package/volar.d.ts +3 -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$M = 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$A = ["disabled"];
|
|
60
|
+
function _sfc_render$J(_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$A);
|
|
72
73
|
}
|
|
73
|
-
var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
74
|
+
var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$J]]);
|
|
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$L = 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$z = {
|
|
126
127
|
key: 1,
|
|
127
128
|
class: "dao-icon dao-svg-icon"
|
|
128
129
|
};
|
|
129
|
-
const _hoisted_2$
|
|
130
|
-
function _sfc_render$
|
|
130
|
+
const _hoisted_2$n = ["xlink:href"];
|
|
131
|
+
function _sfc_render$I(_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$z, [
|
|
135
136
|
createElementVNode("use", {
|
|
136
137
|
"xlink:href": `#${_ctx.name}`
|
|
137
|
-
}, null, 8, _hoisted_2$
|
|
138
|
+
}, null, 8, _hoisted_2$n)
|
|
138
139
|
]));
|
|
139
140
|
}
|
|
140
|
-
var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
141
|
+
var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$I]]);
|
|
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$K = 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_2$
|
|
238
|
+
const _hoisted_1$y = ["disabled"];
|
|
239
|
+
const _hoisted_2$m = {
|
|
239
240
|
key: 1,
|
|
240
241
|
class: "dao-btn__text"
|
|
241
242
|
};
|
|
242
|
-
function _sfc_render$
|
|
243
|
+
function _sfc_render$H(_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),
|
|
@@ -253,7 +254,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
253
254
|
"use-font": _ctx.isIconLeftFont,
|
|
254
255
|
name: _ctx.realIconLeft
|
|
255
256
|
}, null, 8, ["class", "use-font", "name"])) : createCommentVNode("", true),
|
|
256
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
257
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$m, [
|
|
257
258
|
renderSlot(_ctx.$slots, "default")
|
|
258
259
|
])) : createCommentVNode("", true),
|
|
259
260
|
_ctx.realIconRight ? (openBlock(), createBlock(_component_dao_icon, {
|
|
@@ -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$y);
|
|
267
268
|
}
|
|
268
|
-
var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
269
|
+
var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$H]]);
|
|
269
270
|
var buttonGroup_vue_vue_type_style_index_0_lang = "";
|
|
270
|
-
const _sfc_main$
|
|
271
|
+
const _sfc_main$J = 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$x = { class: "dao-btn-group" };
|
|
275
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
276
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
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$J, [["render", _sfc_render$G]]);
|
|
280
281
|
var card_scss_vue_type_style_index_0_src_lang = "";
|
|
281
|
-
const _sfc_main$
|
|
282
|
+
const _sfc_main$I = defineComponent({
|
|
282
283
|
name: "DaoCard",
|
|
283
284
|
components: {
|
|
284
285
|
DaoIcon
|
|
@@ -306,25 +307,25 @@ const _sfc_main$E = defineComponent({
|
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
309
|
});
|
|
309
|
-
const _hoisted_1$
|
|
310
|
+
const _hoisted_1$w = {
|
|
310
311
|
key: 0,
|
|
311
312
|
class: "dao-card-header"
|
|
312
313
|
};
|
|
313
|
-
const _hoisted_2$
|
|
314
|
+
const _hoisted_2$l = {
|
|
314
315
|
key: 0,
|
|
315
316
|
class: "dao-card-header-item"
|
|
316
317
|
};
|
|
317
|
-
const _hoisted_3$
|
|
318
|
+
const _hoisted_3$e = { 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$F(_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$w, [
|
|
325
326
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
326
327
|
renderSlot(_ctx.$slots, "header-prefix"),
|
|
327
|
-
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
328
|
+
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$l, [
|
|
328
329
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
329
330
|
_ctx.icon ? (openBlock(), createBlock(_component_dao_icon, {
|
|
330
331
|
key: 0,
|
|
@@ -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$e, [
|
|
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$I, [["render", _sfc_render$F]]);
|
|
365
366
|
var cardItem_scss_vue_type_style_index_0_src_lang = "";
|
|
366
|
-
const _sfc_main$
|
|
367
|
+
const _sfc_main$H = 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$v = { class: "dao-card-item" };
|
|
371
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
372
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
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$H, [["render", _sfc_render$E]]);
|
|
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$G = 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_2$
|
|
561
|
-
const _hoisted_3$
|
|
560
|
+
const _hoisted_1$u = ["disabled", "indeterminate", "checked"];
|
|
561
|
+
const _hoisted_2$k = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
|
|
562
|
+
const _hoisted_3$d = {
|
|
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$D(_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
|
-
_hoisted_2$
|
|
589
|
+
}), null, 16, _hoisted_1$u),
|
|
590
|
+
_hoisted_2$k
|
|
590
591
|
], 2),
|
|
591
|
-
_ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
592
|
+
_ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$d, [
|
|
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$G, [["render", _sfc_render$D]]);
|
|
604
605
|
var checkboxGroup_vue_vue_type_style_index_0_lang = "";
|
|
605
|
-
const _sfc_main$
|
|
606
|
+
const _sfc_main$F = 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$C(_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$F, [["render", _sfc_render$C]]);
|
|
648
|
+
const _sfc_main$E = 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$t = { class: "dao-dialog__header" };
|
|
672
|
+
function _sfc_render$B(_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$t, [
|
|
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$E, [["render", _sfc_render$B]]);
|
|
692
|
+
const _sfc_main$D = 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$s = { class: "dao-dialog__footer" };
|
|
729
|
+
function _sfc_render$A(_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$s, [
|
|
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$D, [["render", _sfc_render$A]]);
|
|
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$C = 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$r = { class: "dao-dialog__body" };
|
|
946
|
+
function _sfc_render$z(_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$r, [
|
|
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$C, [["render", _sfc_render$z]]);
|
|
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$B = 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$
|
|
1173
|
-
const _hoisted_2$
|
|
1181
|
+
const _hoisted_1$q = { class: "dao-drawer__content" };
|
|
1182
|
+
const _hoisted_2$j = {
|
|
1174
1183
|
key: 0,
|
|
1175
1184
|
class: "dao-drawer__header"
|
|
1176
1185
|
};
|
|
1177
|
-
const _hoisted_3$
|
|
1186
|
+
const _hoisted_3$c = { 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$y(_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$
|
|
1217
|
-
!_ctx.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1225
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
1226
|
+
!_ctx.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
|
|
1218
1227
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1219
|
-
createElementVNode("div", _hoisted_3$
|
|
1228
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
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$B, [["render", _sfc_render$y]]);
|
|
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$A = 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$
|
|
2515
|
-
const _hoisted_2$
|
|
2523
|
+
const _hoisted_1$p = ["id", "aria-hidden", "tabindex"];
|
|
2524
|
+
const _hoisted_2$i = {
|
|
2516
2525
|
ref: "arrow",
|
|
2517
2526
|
class: "dao-popper-arrow"
|
|
2518
2527
|
};
|
|
2519
|
-
const _hoisted_3$
|
|
2528
|
+
const _hoisted_3$b = /* @__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$b
|
|
2535
2544
|
];
|
|
2536
|
-
function _sfc_render$
|
|
2545
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2537
2546
|
return openBlock(), createElementBlock("div", {
|
|
2538
2547
|
id: _ctx.popperId,
|
|
2539
2548
|
ref: "popover",
|
|
@@ -2552,12 +2561,12 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2552
2561
|
}, [
|
|
2553
2562
|
renderSlot(_ctx.$slots, "default")
|
|
2554
2563
|
], 4),
|
|
2555
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
2564
|
+
withDirectives(createElementVNode("div", _hoisted_2$i, _hoisted_4$7, 512), [
|
|
2556
2565
|
[vShow, _ctx.visibleArrow]
|
|
2557
2566
|
])
|
|
2558
|
-
], 42, _hoisted_1$
|
|
2567
|
+
], 42, _hoisted_1$p);
|
|
2559
2568
|
}
|
|
2560
|
-
var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2569
|
+
var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$x]]);
|
|
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],
|
|
@@ -2663,7 +2672,7 @@ function getActualRoot(app) {
|
|
|
2663
2672
|
}
|
|
2664
2673
|
return internalRoot;
|
|
2665
2674
|
}
|
|
2666
|
-
const _sfc_main$
|
|
2675
|
+
const _sfc_main$z = defineComponent({
|
|
2667
2676
|
name: "DaoPopper",
|
|
2668
2677
|
components: {
|
|
2669
2678
|
PopperContent
|
|
@@ -3034,7 +3043,7 @@ const _sfc_main$v = defineComponent({
|
|
|
3034
3043
|
};
|
|
3035
3044
|
}
|
|
3036
3045
|
});
|
|
3037
|
-
function _sfc_render$
|
|
3046
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3038
3047
|
const _component_popper_content = resolveComponent("popper-content");
|
|
3039
3048
|
return openBlock(), createElementBlock("div", {
|
|
3040
3049
|
ref: "reference",
|
|
@@ -3076,8 +3085,8 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3076
3085
|
], 8, ["to", "disabled"]))
|
|
3077
3086
|
], 2);
|
|
3078
3087
|
}
|
|
3079
|
-
var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3080
|
-
const _sfc_main$
|
|
3088
|
+
var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$w]]);
|
|
3089
|
+
const _sfc_main$y = defineComponent({
|
|
3081
3090
|
name: "DaoDropdown",
|
|
3082
3091
|
components: {
|
|
3083
3092
|
DaoPopper: Popper
|
|
@@ -3095,7 +3104,7 @@ const _sfc_main$u = defineComponent({
|
|
|
3095
3104
|
placement: {
|
|
3096
3105
|
type: String,
|
|
3097
3106
|
default: "bottom",
|
|
3098
|
-
validator: (value) => placements$
|
|
3107
|
+
validator: (value) => placements$2.includes(value)
|
|
3099
3108
|
},
|
|
3100
3109
|
offset: {
|
|
3101
3110
|
type: Number,
|
|
@@ -3133,8 +3142,8 @@ const _sfc_main$u = defineComponent({
|
|
|
3133
3142
|
};
|
|
3134
3143
|
}
|
|
3135
3144
|
});
|
|
3136
|
-
const _hoisted_1$
|
|
3137
|
-
function _sfc_render$
|
|
3145
|
+
const _hoisted_1$o = { tabindex: "0" };
|
|
3146
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3138
3147
|
const _component_dao_popper = resolveComponent("dao-popper");
|
|
3139
3148
|
return openBlock(), createBlock(_component_dao_popper, {
|
|
3140
3149
|
ref: "popper",
|
|
@@ -3151,27 +3160,27 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3151
3160
|
renderSlot(_ctx.$slots, "menu")
|
|
3152
3161
|
]),
|
|
3153
3162
|
default: withCtx(() => [
|
|
3154
|
-
createElementVNode("div", _hoisted_1$
|
|
3163
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
3155
3164
|
renderSlot(_ctx.$slots, "default")
|
|
3156
3165
|
])
|
|
3157
3166
|
]),
|
|
3158
3167
|
_: 3
|
|
3159
3168
|
}, 8, ["placement", "append-to", "trigger", "offset", "model-value"]);
|
|
3160
3169
|
}
|
|
3161
|
-
var
|
|
3170
|
+
var DaoDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$v]]);
|
|
3162
3171
|
var dropdownMenu_vue_vue_type_style_index_0_lang = "";
|
|
3163
|
-
const _sfc_main$
|
|
3172
|
+
const _sfc_main$x = defineComponent({
|
|
3164
3173
|
name: "DaoDropdownMenu"
|
|
3165
3174
|
});
|
|
3166
|
-
const _hoisted_1$
|
|
3167
|
-
function _sfc_render$
|
|
3168
|
-
return openBlock(), createElementBlock("ul", _hoisted_1$
|
|
3175
|
+
const _hoisted_1$n = { class: "dao-dropdown-menu" };
|
|
3176
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3177
|
+
return openBlock(), createElementBlock("ul", _hoisted_1$n, [
|
|
3169
3178
|
renderSlot(_ctx.$slots, "default")
|
|
3170
3179
|
]);
|
|
3171
3180
|
}
|
|
3172
|
-
var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3181
|
+
var dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$u]]);
|
|
3173
3182
|
var dropdownItem_vue_vue_type_style_index_0_lang = "";
|
|
3174
|
-
const _sfc_main$
|
|
3183
|
+
const _sfc_main$w = defineComponent({
|
|
3175
3184
|
name: "DaoDropdownItem",
|
|
3176
3185
|
props: {
|
|
3177
3186
|
type: {
|
|
@@ -3220,12 +3229,12 @@ const _sfc_main$s = defineComponent({
|
|
|
3220
3229
|
};
|
|
3221
3230
|
}
|
|
3222
3231
|
});
|
|
3223
|
-
function _sfc_render$
|
|
3232
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3224
3233
|
return openBlock(), createElementBlock("li", mergeProps({ class: _ctx.classList }, _ctx.itemAttrs), [
|
|
3225
3234
|
_ctx.type !== "divider" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
|
|
3226
3235
|
], 16);
|
|
3227
3236
|
}
|
|
3228
|
-
var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3237
|
+
var dropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$t]]);
|
|
3229
3238
|
const expansionProps = {
|
|
3230
3239
|
modelValue: {
|
|
3231
3240
|
type: [String, Symbol, Array]
|
|
@@ -3250,7 +3259,7 @@ const expansionItemProps = {
|
|
|
3250
3259
|
}
|
|
3251
3260
|
};
|
|
3252
3261
|
var expansion_vue_vue_type_style_index_0_lang = "";
|
|
3253
|
-
const _sfc_main$
|
|
3262
|
+
const _sfc_main$v = defineComponent({
|
|
3254
3263
|
name: "DaoExpansion",
|
|
3255
3264
|
props: expansionProps,
|
|
3256
3265
|
emits: ["update:modelValue", "change"],
|
|
@@ -3320,15 +3329,15 @@ const _sfc_main$r = defineComponent({
|
|
|
3320
3329
|
};
|
|
3321
3330
|
}
|
|
3322
3331
|
});
|
|
3323
|
-
const _hoisted_1$
|
|
3324
|
-
function _sfc_render$
|
|
3325
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3332
|
+
const _hoisted_1$m = { class: "dao-expansion" };
|
|
3333
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3334
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
3326
3335
|
renderSlot(_ctx.$slots, "default")
|
|
3327
3336
|
]);
|
|
3328
3337
|
}
|
|
3329
|
-
var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3338
|
+
var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$s]]);
|
|
3330
3339
|
var expansionItem_vue_vue_type_style_index_0_lang = "";
|
|
3331
|
-
const _sfc_main$
|
|
3340
|
+
const _sfc_main$u = defineComponent({
|
|
3332
3341
|
name: "DaoExpansionItem",
|
|
3333
3342
|
components: {
|
|
3334
3343
|
DaoIcon
|
|
@@ -3403,13 +3412,13 @@ const _sfc_main$q = defineComponent({
|
|
|
3403
3412
|
};
|
|
3404
3413
|
}
|
|
3405
3414
|
});
|
|
3406
|
-
const _hoisted_1$
|
|
3407
|
-
const _hoisted_2$
|
|
3408
|
-
const _hoisted_3$
|
|
3415
|
+
const _hoisted_1$l = { class: "dao-expansion-item-icon-container" };
|
|
3416
|
+
const _hoisted_2$h = { class: "dao-expansion-item-title-container" };
|
|
3417
|
+
const _hoisted_3$a = { class: "dao-expansion-item-title dao-exp-ellipsis" };
|
|
3409
3418
|
const _hoisted_4$6 = { class: "dao-expansion-item-description dao-exp-ellipsis" };
|
|
3410
3419
|
const _hoisted_5$5 = { class: "dao-expansion-item-content-container" };
|
|
3411
3420
|
const _hoisted_6$3 = { class: "dao-expansion-item-content" };
|
|
3412
|
-
function _sfc_render$
|
|
3421
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3413
3422
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
3414
3423
|
return openBlock(), createElementBlock("div", {
|
|
3415
3424
|
class: normalizeClass(["dao-expansion-item", {
|
|
@@ -3420,15 +3429,15 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3420
3429
|
class: "dao-expansion-item-header",
|
|
3421
3430
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onItemClick && _ctx.onItemClick(...args))
|
|
3422
3431
|
}, [
|
|
3423
|
-
createElementVNode("div", _hoisted_1$
|
|
3432
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
3424
3433
|
createVNode(_component_dao_icon, {
|
|
3425
3434
|
name: "icon-dropdown-line",
|
|
3426
3435
|
class: "dao-expansion-item-icon",
|
|
3427
3436
|
"use-font": ""
|
|
3428
3437
|
})
|
|
3429
3438
|
]),
|
|
3430
|
-
createElementVNode("div", _hoisted_2$
|
|
3431
|
-
createElementVNode("div", _hoisted_3$
|
|
3439
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
3440
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
3432
3441
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3433
3442
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
3434
3443
|
])
|
|
@@ -3470,9 +3479,9 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3470
3479
|
}, 8, ["onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
|
|
3471
3480
|
], 2);
|
|
3472
3481
|
}
|
|
3473
|
-
var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3482
|
+
var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$r]]);
|
|
3474
3483
|
var form_vue_vue_type_style_index_0_lang = "";
|
|
3475
|
-
const _sfc_main$
|
|
3484
|
+
const _sfc_main$t = defineComponent({
|
|
3476
3485
|
name: "DaoForm",
|
|
3477
3486
|
props: {
|
|
3478
3487
|
type: {
|
|
@@ -3490,7 +3499,7 @@ const _sfc_main$p = defineComponent({
|
|
|
3490
3499
|
provide(formLabelWidthKey, labelWidth.value);
|
|
3491
3500
|
}
|
|
3492
3501
|
});
|
|
3493
|
-
function _sfc_render$
|
|
3502
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3494
3503
|
return openBlock(), createElementBlock("div", {
|
|
3495
3504
|
class: normalizeClass([
|
|
3496
3505
|
"dao-form",
|
|
@@ -3512,7 +3521,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3512
3521
|
} })
|
|
3513
3522
|
], 2);
|
|
3514
3523
|
}
|
|
3515
|
-
var form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3524
|
+
var form = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
|
|
3516
3525
|
var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
|
|
3517
3526
|
offset: {
|
|
3518
3527
|
type: [Number, String],
|
|
@@ -3520,16 +3529,16 @@ var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
|
|
|
3520
3529
|
}
|
|
3521
3530
|
});
|
|
3522
3531
|
var tooltip_scss_vue_type_style_index_0_src_lang = "";
|
|
3523
|
-
const _sfc_main$
|
|
3532
|
+
const _sfc_main$s = defineComponent(__spreadProps(__spreadValues({}, Popper), {
|
|
3524
3533
|
name: "DaoTooltip",
|
|
3525
3534
|
props: tooltipProps,
|
|
3526
3535
|
daoPopperTheme: "dao-tooltip"
|
|
3527
3536
|
}));
|
|
3528
3537
|
var formItem_vue_vue_type_style_index_0_lang = "";
|
|
3529
|
-
const _sfc_main$
|
|
3538
|
+
const _sfc_main$r = defineComponent({
|
|
3530
3539
|
name: "DaoFormItem",
|
|
3531
3540
|
components: {
|
|
3532
|
-
DaoTooltip: _sfc_main$
|
|
3541
|
+
DaoTooltip: _sfc_main$s
|
|
3533
3542
|
},
|
|
3534
3543
|
props: {
|
|
3535
3544
|
label: {
|
|
@@ -3578,13 +3587,13 @@ const _sfc_main$n = defineComponent({
|
|
|
3578
3587
|
};
|
|
3579
3588
|
}
|
|
3580
3589
|
});
|
|
3581
|
-
const _hoisted_1$
|
|
3590
|
+
const _hoisted_1$k = {
|
|
3582
3591
|
key: 0,
|
|
3583
3592
|
class: "dao-form-item__label-icon-wrapper"
|
|
3584
3593
|
};
|
|
3585
|
-
const _hoisted_2$
|
|
3586
|
-
const _hoisted_3$
|
|
3587
|
-
function _sfc_render$
|
|
3594
|
+
const _hoisted_2$g = { class: "dao-form-item__label-icon-label" };
|
|
3595
|
+
const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
|
|
3596
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3588
3597
|
const _component_dao_tooltip = resolveComponent("dao-tooltip");
|
|
3589
3598
|
return openBlock(), createElementBlock("div", {
|
|
3590
3599
|
class: normalizeClass(["dao-form-item", { "is-required": _ctx.required }])
|
|
@@ -3595,14 +3604,14 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3595
3604
|
}, [
|
|
3596
3605
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
3597
3606
|
createTextVNode(toDisplayString(!_ctx.iconMessage ? _ctx.label : ""), 1),
|
|
3598
|
-
!!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3599
|
-
createElementVNode("span", _hoisted_2$
|
|
3607
|
+
!!_ctx.iconMessage ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
3608
|
+
createElementVNode("span", _hoisted_2$g, toDisplayString(_ctx.label), 1),
|
|
3600
3609
|
createVNode(_component_dao_tooltip, {
|
|
3601
3610
|
content: _ctx.iconMessage,
|
|
3602
3611
|
placement: "top"
|
|
3603
3612
|
}, {
|
|
3604
3613
|
default: withCtx(() => [
|
|
3605
|
-
_hoisted_3$
|
|
3614
|
+
_hoisted_3$9
|
|
3606
3615
|
]),
|
|
3607
3616
|
_: 1
|
|
3608
3617
|
}, 8, ["content"])
|
|
@@ -3617,9 +3626,9 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3617
3626
|
], 4)
|
|
3618
3627
|
], 2);
|
|
3619
3628
|
}
|
|
3620
|
-
var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3629
|
+
var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p]]);
|
|
3621
3630
|
var formGroup_vue_vue_type_style_index_0_lang = "";
|
|
3622
|
-
const _sfc_main$
|
|
3631
|
+
const _sfc_main$q = defineComponent({
|
|
3623
3632
|
name: "DaoFormGroup",
|
|
3624
3633
|
props: {
|
|
3625
3634
|
title: {
|
|
@@ -3628,11 +3637,11 @@ const _sfc_main$m = defineComponent({
|
|
|
3628
3637
|
}
|
|
3629
3638
|
}
|
|
3630
3639
|
});
|
|
3631
|
-
const _hoisted_1$
|
|
3632
|
-
const _hoisted_2$
|
|
3633
|
-
function _sfc_render$
|
|
3634
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3635
|
-
createElementVNode("div", _hoisted_2$
|
|
3640
|
+
const _hoisted_1$j = { class: "dao-form-group" };
|
|
3641
|
+
const _hoisted_2$f = { class: "dao-form-group__title" };
|
|
3642
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3643
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
3644
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
3636
3645
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3637
3646
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
3638
3647
|
])
|
|
@@ -3640,7 +3649,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3640
3649
|
renderSlot(_ctx.$slots, "default")
|
|
3641
3650
|
]);
|
|
3642
3651
|
}
|
|
3643
|
-
var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3652
|
+
var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$o]]);
|
|
3644
3653
|
const headerProps = {
|
|
3645
3654
|
type: {
|
|
3646
3655
|
type: String,
|
|
@@ -3652,7 +3661,7 @@ const headerProps = {
|
|
|
3652
3661
|
}
|
|
3653
3662
|
};
|
|
3654
3663
|
var header_vue_vue_type_style_index_0_lang = "";
|
|
3655
|
-
const _sfc_main$
|
|
3664
|
+
const _sfc_main$p = defineComponent({
|
|
3656
3665
|
name: "DaoHeader",
|
|
3657
3666
|
props: headerProps,
|
|
3658
3667
|
setup(props, { slots }) {
|
|
@@ -3666,11 +3675,11 @@ const _sfc_main$l = defineComponent({
|
|
|
3666
3675
|
};
|
|
3667
3676
|
}
|
|
3668
3677
|
});
|
|
3669
|
-
function _sfc_render$
|
|
3678
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3670
3679
|
return openBlock(), createElementBlock("div", {
|
|
3671
3680
|
ref: "header",
|
|
3672
3681
|
"aria-label": "Header",
|
|
3673
|
-
class: normalizeClass(_ctx.ns)
|
|
3682
|
+
class: normalizeClass([_ctx.ns, `${_ctx.ns}--${_ctx.type}`])
|
|
3674
3683
|
}, [
|
|
3675
3684
|
createElementVNode("div", {
|
|
3676
3685
|
class: normalizeClass(_ctx.ns + "__left-container")
|
|
@@ -3698,7 +3707,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3698
3707
|
], 2)) : createCommentVNode("", true)
|
|
3699
3708
|
], 2);
|
|
3700
3709
|
}
|
|
3701
|
-
var header = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3710
|
+
var header = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$n]]);
|
|
3702
3711
|
const breadcrumbProps = {
|
|
3703
3712
|
type: {
|
|
3704
3713
|
type: String,
|
|
@@ -3731,7 +3740,7 @@ const breadcrumbItemProps = {
|
|
|
3731
3740
|
type: [String, Object]
|
|
3732
3741
|
}
|
|
3733
3742
|
};
|
|
3734
|
-
const _sfc_main$
|
|
3743
|
+
const _sfc_main$o = defineComponent({
|
|
3735
3744
|
name: "DaoBreadcrumbItem",
|
|
3736
3745
|
props: breadcrumbItemProps,
|
|
3737
3746
|
setup(props) {
|
|
@@ -3753,7 +3762,7 @@ const _sfc_main$k = defineComponent({
|
|
|
3753
3762
|
};
|
|
3754
3763
|
}
|
|
3755
3764
|
});
|
|
3756
|
-
function _sfc_render$
|
|
3765
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3757
3766
|
return openBlock(), createElementBlock("span", {
|
|
3758
3767
|
class: normalizeClass(_ctx.ns + "__item")
|
|
3759
3768
|
}, [
|
|
@@ -3785,9 +3794,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3785
3794
|
}, toDisplayString(_ctx.separator), 3)
|
|
3786
3795
|
], 2);
|
|
3787
3796
|
}
|
|
3788
|
-
var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3797
|
+
var DaoBreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m]]);
|
|
3789
3798
|
var breadcrumb_vue_vue_type_style_index_0_lang = "";
|
|
3790
|
-
const _sfc_main$
|
|
3799
|
+
const _sfc_main$n = defineComponent({
|
|
3791
3800
|
name: "DaoBreadcrumb",
|
|
3792
3801
|
components: {
|
|
3793
3802
|
DaoIcon,
|
|
@@ -3802,7 +3811,7 @@ const _sfc_main$j = defineComponent({
|
|
|
3802
3811
|
};
|
|
3803
3812
|
}
|
|
3804
3813
|
});
|
|
3805
|
-
function _sfc_render$
|
|
3814
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3806
3815
|
var _a2;
|
|
3807
3816
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
3808
3817
|
const _component_dao_breadcrumb_item = resolveComponent("dao-breadcrumb-item");
|
|
@@ -3834,7 +3843,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3834
3843
|
renderSlot(_ctx.$slots, "default")
|
|
3835
3844
|
], 2);
|
|
3836
3845
|
}
|
|
3837
|
-
var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3846
|
+
var breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l]]);
|
|
3838
3847
|
if (typeof window !== "undefined") {
|
|
3839
3848
|
let loadSvg = function() {
|
|
3840
3849
|
var body = document.body;
|
|
@@ -3901,7 +3910,7 @@ var inputProps = {
|
|
|
3901
3910
|
}
|
|
3902
3911
|
};
|
|
3903
3912
|
var input_vue_vue_type_style_index_0_lang = "";
|
|
3904
|
-
const _sfc_main$
|
|
3913
|
+
const _sfc_main$m = defineComponent({
|
|
3905
3914
|
name: "DaoInput",
|
|
3906
3915
|
components: {
|
|
3907
3916
|
DaoIcon
|
|
@@ -3929,7 +3938,7 @@ const _sfc_main$i = defineComponent({
|
|
|
3929
3938
|
} = toRefs(props);
|
|
3930
3939
|
const currentValue = ref(modelValue.value);
|
|
3931
3940
|
const isFocus = ref(false);
|
|
3932
|
-
const
|
|
3941
|
+
const input = ref(null);
|
|
3933
3942
|
const isIncreaseDisabled = ref(false);
|
|
3934
3943
|
const isDecreaseDisabled = ref(false);
|
|
3935
3944
|
const isChangingNumber = ref(false);
|
|
@@ -4001,7 +4010,7 @@ const _sfc_main$i = defineComponent({
|
|
|
4001
4010
|
}
|
|
4002
4011
|
updateModel("");
|
|
4003
4012
|
emit("after-reset");
|
|
4004
|
-
(_a2 =
|
|
4013
|
+
(_a2 = input.value) == null ? void 0 : _a2.focus();
|
|
4005
4014
|
};
|
|
4006
4015
|
const getInputRealNumber = (val, fixedPointNum) => parseFloat(val.toFixed(fixedPointNum));
|
|
4007
4016
|
const changeNumberValue = (changeType) => {
|
|
@@ -4034,7 +4043,7 @@ const _sfc_main$i = defineComponent({
|
|
|
4034
4043
|
setValue = minimum;
|
|
4035
4044
|
}
|
|
4036
4045
|
updateModel(getInputRealNumber(setValue, stepPointNum));
|
|
4037
|
-
(_a2 =
|
|
4046
|
+
(_a2 = input.value) == null ? void 0 : _a2.focus();
|
|
4038
4047
|
if (!counterTimeout && !counterInterval) {
|
|
4039
4048
|
counterTimeout = window.setTimeout(() => {
|
|
4040
4049
|
counterInterval = window.setInterval(() => changeNumberValue(changeType), 100);
|
|
@@ -4057,7 +4066,7 @@ const _sfc_main$i = defineComponent({
|
|
|
4057
4066
|
counterInterval = null;
|
|
4058
4067
|
isChangingNumber.value = false;
|
|
4059
4068
|
if (onEvents) {
|
|
4060
|
-
(_a2 =
|
|
4069
|
+
(_a2 = input.value) == null ? void 0 : _a2.focus();
|
|
4061
4070
|
}
|
|
4062
4071
|
};
|
|
4063
4072
|
const inputAttrs = computed(() => {
|
|
@@ -4094,7 +4103,7 @@ const _sfc_main$i = defineComponent({
|
|
|
4094
4103
|
return {
|
|
4095
4104
|
currentValue,
|
|
4096
4105
|
isFocus,
|
|
4097
|
-
input
|
|
4106
|
+
input,
|
|
4098
4107
|
clearable,
|
|
4099
4108
|
wrapClasses,
|
|
4100
4109
|
inputClasses,
|
|
@@ -4112,15 +4121,15 @@ const _sfc_main$i = defineComponent({
|
|
|
4112
4121
|
};
|
|
4113
4122
|
}
|
|
4114
4123
|
});
|
|
4115
|
-
const _hoisted_1$
|
|
4124
|
+
const _hoisted_1$i = {
|
|
4116
4125
|
key: 0,
|
|
4117
4126
|
class: "dao-input-prepend"
|
|
4118
4127
|
};
|
|
4119
|
-
const _hoisted_2$
|
|
4128
|
+
const _hoisted_2$e = {
|
|
4120
4129
|
key: 0,
|
|
4121
4130
|
class: "dao-input-prefix"
|
|
4122
4131
|
};
|
|
4123
|
-
const _hoisted_3$
|
|
4132
|
+
const _hoisted_3$8 = ["type", "disabled", "value"];
|
|
4124
4133
|
const _hoisted_4$5 = {
|
|
4125
4134
|
key: 4,
|
|
4126
4135
|
class: "dao-input-suffix"
|
|
@@ -4129,18 +4138,18 @@ const _hoisted_5$4 = {
|
|
|
4129
4138
|
key: 0,
|
|
4130
4139
|
class: "dao-input-append"
|
|
4131
4140
|
};
|
|
4132
|
-
function _sfc_render$
|
|
4141
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4133
4142
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
4134
4143
|
return openBlock(), createElementBlock("div", {
|
|
4135
4144
|
class: normalizeClass(_ctx.wrapClasses)
|
|
4136
4145
|
}, [
|
|
4137
4146
|
renderSlot(_ctx.$slots, "prepend", {}, () => [
|
|
4138
|
-
_ctx.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4147
|
+
_ctx.prepend ? (openBlock(), createElementBlock("div", _hoisted_1$i, toDisplayString(_ctx.prepend), 1)) : createCommentVNode("", true)
|
|
4139
4148
|
]),
|
|
4140
4149
|
createElementVNode("div", {
|
|
4141
4150
|
class: normalizeClass(["dao-input-inner", { "dao-input__changing-number": _ctx.isChangingNumber }])
|
|
4142
4151
|
}, [
|
|
4143
|
-
_ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4152
|
+
_ctx.slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
|
|
4144
4153
|
renderSlot(_ctx.$slots, "prefix")
|
|
4145
4154
|
])) : createCommentVNode("", true),
|
|
4146
4155
|
_ctx.type === "search" ? (openBlock(), createElementBlock("i", {
|
|
@@ -4155,7 +4164,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4155
4164
|
disabled: _ctx.disabled,
|
|
4156
4165
|
value: _ctx.currentValue,
|
|
4157
4166
|
onKeyup: _cache[0] || (_cache[0] = withKeys((...args) => _ctx.resetCurrentVal && _ctx.resetCurrentVal(...args), ["esc"]))
|
|
4158
|
-
}), null, 16, _hoisted_3$
|
|
4167
|
+
}), null, 16, _hoisted_3$8),
|
|
4159
4168
|
_ctx.type === "number" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
4160
4169
|
createElementVNode("i", {
|
|
4161
4170
|
class: normalizeClass([
|
|
@@ -4203,7 +4212,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4203
4212
|
])
|
|
4204
4213
|
], 2);
|
|
4205
4214
|
}
|
|
4206
|
-
var
|
|
4215
|
+
var DaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k]]);
|
|
4207
4216
|
var MessageProps = {
|
|
4208
4217
|
modelValue: {
|
|
4209
4218
|
type: Boolean,
|
|
@@ -4227,7 +4236,7 @@ var MessageProps = {
|
|
|
4227
4236
|
}
|
|
4228
4237
|
};
|
|
4229
4238
|
var message_vue_vue_type_style_index_0_lang = "";
|
|
4230
|
-
const _sfc_main$
|
|
4239
|
+
const _sfc_main$l = defineComponent({
|
|
4231
4240
|
name: "DaoMessage",
|
|
4232
4241
|
props: MessageProps,
|
|
4233
4242
|
emits: ["update:modelValue", "change", "beforeClose", "closed", "beforeShow", "show"],
|
|
@@ -4274,9 +4283,9 @@ const _sfc_main$h = defineComponent({
|
|
|
4274
4283
|
};
|
|
4275
4284
|
}
|
|
4276
4285
|
});
|
|
4277
|
-
const _hoisted_1$
|
|
4278
|
-
const _hoisted_2$
|
|
4279
|
-
const _hoisted_3$
|
|
4286
|
+
const _hoisted_1$h = { class: "dao-message-icon" };
|
|
4287
|
+
const _hoisted_2$d = { class: "dao-message-section" };
|
|
4288
|
+
const _hoisted_3$7 = {
|
|
4280
4289
|
key: 0,
|
|
4281
4290
|
class: "dao-message-title"
|
|
4282
4291
|
};
|
|
@@ -4284,7 +4293,7 @@ const _hoisted_4$4 = {
|
|
|
4284
4293
|
key: 0,
|
|
4285
4294
|
class: "dao-message-content"
|
|
4286
4295
|
};
|
|
4287
|
-
function _sfc_render$
|
|
4296
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4288
4297
|
return _ctx.isMessageShow ? (openBlock(), createElementBlock("div", {
|
|
4289
4298
|
key: 0,
|
|
4290
4299
|
class: normalizeClass(["dao-message-outer", _ctx.typeClass]),
|
|
@@ -4295,17 +4304,17 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4295
4304
|
createElementVNode("div", {
|
|
4296
4305
|
class: normalizeClass(["dao-message-inner", { "dao-message-inner-without-close": !_ctx.isCloseShow }])
|
|
4297
4306
|
}, [
|
|
4298
|
-
createElementVNode("div", _hoisted_1$
|
|
4307
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
4299
4308
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4300
4309
|
createElementVNode("i", {
|
|
4301
4310
|
class: normalizeClass(`icon-sys-${_ctx.type} dao-message-icon-general dao-message-icon-${_ctx.type}`)
|
|
4302
4311
|
}, null, 2)
|
|
4303
4312
|
])
|
|
4304
4313
|
]),
|
|
4305
|
-
createElementVNode("div", _hoisted_2$
|
|
4314
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
4306
4315
|
renderSlot(_ctx.$slots, "section", {}, () => [
|
|
4307
4316
|
renderSlot(_ctx.$slots, "title", { className: "dao-message-title" }, () => [
|
|
4308
|
-
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4317
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
|
|
4309
4318
|
]),
|
|
4310
4319
|
renderSlot(_ctx.$slots, "default", { className: "dao-message-content" }, () => [
|
|
4311
4320
|
_ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$4, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
@@ -4321,7 +4330,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4321
4330
|
])
|
|
4322
4331
|
], 34)) : createCommentVNode("", true);
|
|
4323
4332
|
}
|
|
4324
|
-
var message = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4333
|
+
var message = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]);
|
|
4325
4334
|
const NAV_TYPES = ["2rd", "3rd"];
|
|
4326
4335
|
const navProps = {
|
|
4327
4336
|
accordion: {
|
|
@@ -4417,7 +4426,7 @@ const navItemProps = {
|
|
|
4417
4426
|
}
|
|
4418
4427
|
};
|
|
4419
4428
|
var nav_vue_vue_type_style_index_0_lang = "";
|
|
4420
|
-
const _sfc_main$
|
|
4429
|
+
const _sfc_main$k = defineComponent({
|
|
4421
4430
|
name: "DaoNav",
|
|
4422
4431
|
props: navProps,
|
|
4423
4432
|
emits: ["back", "select", "toggle"],
|
|
@@ -4491,18 +4500,18 @@ const _sfc_main$g = defineComponent({
|
|
|
4491
4500
|
});
|
|
4492
4501
|
}
|
|
4493
4502
|
});
|
|
4494
|
-
const _hoisted_1$
|
|
4495
|
-
const _hoisted_2$
|
|
4496
|
-
function _sfc_render$
|
|
4497
|
-
return openBlock(), createElementBlock("nav", _hoisted_1$
|
|
4503
|
+
const _hoisted_1$g = { class: "dao-nav-bar" };
|
|
4504
|
+
const _hoisted_2$c = { class: "dao-nav" };
|
|
4505
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4506
|
+
return openBlock(), createElementBlock("nav", _hoisted_1$g, [
|
|
4498
4507
|
renderSlot(_ctx.$slots, "header"),
|
|
4499
|
-
createElementVNode("ul", _hoisted_2$
|
|
4508
|
+
createElementVNode("ul", _hoisted_2$c, [
|
|
4500
4509
|
renderSlot(_ctx.$slots, "default")
|
|
4501
4510
|
])
|
|
4502
4511
|
]);
|
|
4503
4512
|
}
|
|
4504
|
-
var nav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4505
|
-
const _sfc_main$
|
|
4513
|
+
var nav = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i]]);
|
|
4514
|
+
const _sfc_main$j = defineComponent({
|
|
4506
4515
|
name: "DaoNavHead",
|
|
4507
4516
|
components: {
|
|
4508
4517
|
DaoIcon
|
|
@@ -4537,8 +4546,8 @@ const _sfc_main$f = defineComponent({
|
|
|
4537
4546
|
};
|
|
4538
4547
|
}
|
|
4539
4548
|
});
|
|
4540
|
-
const _hoisted_1$
|
|
4541
|
-
function _sfc_render$
|
|
4549
|
+
const _hoisted_1$f = { class: "dao-nav__head-text dao-nav-text" };
|
|
4550
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4542
4551
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
4543
4552
|
return openBlock(), createElementBlock("li", {
|
|
4544
4553
|
class: normalizeClass(_ctx.classHeadList)
|
|
@@ -4553,12 +4562,12 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4553
4562
|
onClick: _ctx.handleClickBack,
|
|
4554
4563
|
onKeyup: withKeys(withModifiers(_ctx.handleClickBack, ["stop"]), ["esc"])
|
|
4555
4564
|
}, null, 8, ["name", "use-font", "onClick", "onKeyup"])) : createCommentVNode("", true),
|
|
4556
|
-
createElementVNode("span", _hoisted_1$
|
|
4565
|
+
createElementVNode("span", _hoisted_1$f, toDisplayString(_ctx.title), 1)
|
|
4557
4566
|
])
|
|
4558
4567
|
], 2);
|
|
4559
4568
|
}
|
|
4560
|
-
var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4561
|
-
const _sfc_main$
|
|
4569
|
+
var navHead = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h]]);
|
|
4570
|
+
const _sfc_main$i = defineComponent({
|
|
4562
4571
|
name: "DaoNavItem",
|
|
4563
4572
|
components: {
|
|
4564
4573
|
DaoIcon
|
|
@@ -4639,9 +4648,9 @@ const _sfc_main$e = defineComponent({
|
|
|
4639
4648
|
};
|
|
4640
4649
|
}
|
|
4641
4650
|
});
|
|
4642
|
-
const _hoisted_1$
|
|
4643
|
-
const _hoisted_2$
|
|
4644
|
-
function _sfc_render$
|
|
4651
|
+
const _hoisted_1$e = { class: "dao-nav-slot" };
|
|
4652
|
+
const _hoisted_2$b = { class: "dao-nav__item-text dao-nav-text" };
|
|
4653
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4645
4654
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
4646
4655
|
return openBlock(), createElementBlock("li", {
|
|
4647
4656
|
class: normalizeClass(_ctx.classItemList)
|
|
@@ -4652,7 +4661,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4652
4661
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
4653
4662
|
onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
|
|
4654
4663
|
}, [
|
|
4655
|
-
createElementVNode("div", _hoisted_1$
|
|
4664
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
4656
4665
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4657
4666
|
_ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
|
|
4658
4667
|
key: 0,
|
|
@@ -4660,14 +4669,14 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4660
4669
|
name: _ctx.icon,
|
|
4661
4670
|
"use-font": _ctx.useFont
|
|
4662
4671
|
}, null, 8, ["name", "use-font"])) : createCommentVNode("", true),
|
|
4663
|
-
createElementVNode("span", _hoisted_2$
|
|
4672
|
+
createElementVNode("span", _hoisted_2$b, toDisplayString(_ctx.title), 1)
|
|
4664
4673
|
])
|
|
4665
4674
|
])
|
|
4666
4675
|
], 34)
|
|
4667
4676
|
], 2);
|
|
4668
4677
|
}
|
|
4669
|
-
var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4670
|
-
const _sfc_main$
|
|
4678
|
+
var navItem = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g]]);
|
|
4679
|
+
const _sfc_main$h = defineComponent({
|
|
4671
4680
|
name: "DaoNavSub",
|
|
4672
4681
|
components: {
|
|
4673
4682
|
DaoIcon
|
|
@@ -4789,16 +4798,16 @@ const _sfc_main$d = defineComponent({
|
|
|
4789
4798
|
};
|
|
4790
4799
|
}
|
|
4791
4800
|
});
|
|
4792
|
-
const _hoisted_1$
|
|
4793
|
-
const _hoisted_2$
|
|
4794
|
-
const _hoisted_3$
|
|
4801
|
+
const _hoisted_1$d = { class: "dao-nav-slot" };
|
|
4802
|
+
const _hoisted_2$a = { class: "dao-nav__sub-text dao-nav-text" };
|
|
4803
|
+
const _hoisted_3$6 = {
|
|
4795
4804
|
key: 0,
|
|
4796
4805
|
class: "icon-dropdown-line dao-nav__sub__icon-fold"
|
|
4797
4806
|
};
|
|
4798
4807
|
const _hoisted_4$3 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
|
|
4799
4808
|
const _hoisted_5$3 = { class: "dao-nav dao-nav-inner" };
|
|
4800
4809
|
const _hoisted_6$2 = /* @__PURE__ */ createElementVNode("span", { class: "dao-nav__sub-gap" }, null, -1);
|
|
4801
|
-
function _sfc_render$
|
|
4810
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4802
4811
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
4803
4812
|
return openBlock(), createElementBlock("li", {
|
|
4804
4813
|
class: normalizeClass(_ctx.classSubList)
|
|
@@ -4809,7 +4818,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4809
4818
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
4810
4819
|
onKeyup: _cache[1] || (_cache[1] = withKeys((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["enter"]))
|
|
4811
4820
|
}, [
|
|
4812
|
-
createElementVNode("div", _hoisted_1$
|
|
4821
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
4813
4822
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
4814
4823
|
_ctx.showIcon ? (openBlock(), createBlock(_component_dao_icon, {
|
|
4815
4824
|
key: 0,
|
|
@@ -4817,10 +4826,10 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4817
4826
|
name: _ctx.icon,
|
|
4818
4827
|
"use-font": _ctx.useFont
|
|
4819
4828
|
}, null, 8, ["name", "use-font"])) : createCommentVNode("", true),
|
|
4820
|
-
createElementVNode("span", _hoisted_2$
|
|
4829
|
+
createElementVNode("span", _hoisted_2$a, toDisplayString(_ctx.title), 1)
|
|
4821
4830
|
])
|
|
4822
4831
|
]),
|
|
4823
|
-
_ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$
|
|
4832
|
+
_ctx.fold ? (openBlock(), createElementBlock("i", _hoisted_3$6)) : createCommentVNode("", true)
|
|
4824
4833
|
], 34),
|
|
4825
4834
|
createVNode(Transition, { name: "dao-nav" }, {
|
|
4826
4835
|
default: withCtx(() => [
|
|
@@ -4838,7 +4847,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4838
4847
|
})
|
|
4839
4848
|
], 2);
|
|
4840
4849
|
}
|
|
4841
|
-
var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4850
|
+
var navSub = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$f]]);
|
|
4842
4851
|
const paginationProps = {
|
|
4843
4852
|
pageSize: {
|
|
4844
4853
|
type: Number,
|
|
@@ -4966,8 +4975,45 @@ _global[globalKey] = _global[globalKey] || {};
|
|
|
4966
4975
|
_global[globalKey];
|
|
4967
4976
|
var _a, _b;
|
|
4968
4977
|
isClient && (window == null ? void 0 : window.navigator) && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.platform) && /iP(ad|hone|od)/.test((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.platform);
|
|
4978
|
+
function useVModel(props, key, emit, options = {}) {
|
|
4979
|
+
var _a2;
|
|
4980
|
+
const {
|
|
4981
|
+
passive: passive2 = false,
|
|
4982
|
+
eventName,
|
|
4983
|
+
deep = false
|
|
4984
|
+
} = options;
|
|
4985
|
+
const vm = getCurrentInstance();
|
|
4986
|
+
const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a2 = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a2.bind(vm));
|
|
4987
|
+
let event = eventName;
|
|
4988
|
+
if (!key) {
|
|
4989
|
+
{
|
|
4990
|
+
key = "modelValue";
|
|
4991
|
+
}
|
|
4992
|
+
}
|
|
4993
|
+
event = eventName || event || `update:${key}`;
|
|
4994
|
+
if (passive2) {
|
|
4995
|
+
const proxy = ref(props[key]);
|
|
4996
|
+
watch(() => props[key], (v) => proxy.value = v);
|
|
4997
|
+
watch(proxy, (v) => {
|
|
4998
|
+
if (v !== props[key] || deep)
|
|
4999
|
+
_emit(event, v);
|
|
5000
|
+
}, {
|
|
5001
|
+
deep
|
|
5002
|
+
});
|
|
5003
|
+
return proxy;
|
|
5004
|
+
} else {
|
|
5005
|
+
return computed({
|
|
5006
|
+
get() {
|
|
5007
|
+
return props[key];
|
|
5008
|
+
},
|
|
5009
|
+
set(value) {
|
|
5010
|
+
_emit(event, value);
|
|
5011
|
+
}
|
|
5012
|
+
});
|
|
5013
|
+
}
|
|
5014
|
+
}
|
|
4969
5015
|
var select_vue_vue_type_style_index_0_lang = "";
|
|
4970
|
-
const _sfc_main$
|
|
5016
|
+
const _sfc_main$g = defineComponent({
|
|
4971
5017
|
name: "DaoSelect",
|
|
4972
5018
|
components: {
|
|
4973
5019
|
DaoPopper: Popper
|
|
@@ -4975,7 +5021,7 @@ const _sfc_main$c = defineComponent({
|
|
|
4975
5021
|
directives: {},
|
|
4976
5022
|
props: {
|
|
4977
5023
|
modelValue: {
|
|
4978
|
-
type: [String, Number, Boolean],
|
|
5024
|
+
type: [String, Number, Boolean, Array],
|
|
4979
5025
|
default: void 0
|
|
4980
5026
|
},
|
|
4981
5027
|
placeholder: {
|
|
@@ -5010,6 +5056,10 @@ const _sfc_main$c = defineComponent({
|
|
|
5010
5056
|
appendTo: {
|
|
5011
5057
|
type: [String, Boolean, Object],
|
|
5012
5058
|
default: "root"
|
|
5059
|
+
},
|
|
5060
|
+
multiple: {
|
|
5061
|
+
type: Boolean,
|
|
5062
|
+
default: false
|
|
5013
5063
|
}
|
|
5014
5064
|
},
|
|
5015
5065
|
emits: ["update:modelValue", "change", "search-change", "close", "open"],
|
|
@@ -5019,12 +5069,13 @@ const _sfc_main$c = defineComponent({
|
|
|
5019
5069
|
disabled,
|
|
5020
5070
|
size,
|
|
5021
5071
|
menuClass,
|
|
5022
|
-
search
|
|
5072
|
+
search,
|
|
5073
|
+
multiple
|
|
5023
5074
|
} = toRefs(props);
|
|
5024
5075
|
const state = reactive({
|
|
5025
5076
|
optionFocusIndex: -1,
|
|
5026
5077
|
visible: false,
|
|
5027
|
-
selectedOption:
|
|
5078
|
+
selectedOption: [],
|
|
5028
5079
|
options: [],
|
|
5029
5080
|
searchText: ""
|
|
5030
5081
|
});
|
|
@@ -5064,7 +5115,7 @@ const _sfc_main$c = defineComponent({
|
|
|
5064
5115
|
});
|
|
5065
5116
|
const isSelected = computed(() => {
|
|
5066
5117
|
var _a2;
|
|
5067
|
-
return
|
|
5118
|
+
return !!((_a2 = state.selectedOption) == null ? void 0 : _a2.length);
|
|
5068
5119
|
});
|
|
5069
5120
|
const isNoResult = computed(() => {
|
|
5070
5121
|
const unrefSearch = unref(search);
|
|
@@ -5095,32 +5146,61 @@ const _sfc_main$c = defineComponent({
|
|
|
5095
5146
|
(_a2 = searchInput.value) == null ? void 0 : _a2.focus();
|
|
5096
5147
|
};
|
|
5097
5148
|
const onSelect = (option) => {
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5149
|
+
if (!multiple.value) {
|
|
5150
|
+
const unrefPopper = unref(popper2);
|
|
5151
|
+
state.selectedOption = [option];
|
|
5152
|
+
onSearchClear();
|
|
5153
|
+
emit("update:modelValue", option.value);
|
|
5154
|
+
emit("change", option.value);
|
|
5155
|
+
unrefPopper == null ? void 0 : unrefPopper.hide();
|
|
5156
|
+
return;
|
|
5157
|
+
}
|
|
5158
|
+
const index2 = state.selectedOption.indexOf(option);
|
|
5159
|
+
if (index2 > -1) {
|
|
5160
|
+
state.selectedOption.splice(index2, 1);
|
|
5161
|
+
} else {
|
|
5162
|
+
state.selectedOption.push(option);
|
|
5163
|
+
}
|
|
5164
|
+
const values = state.selectedOption.map((i) => i.value);
|
|
5165
|
+
emit("update:modelValue", values);
|
|
5166
|
+
emit("change", values);
|
|
5104
5167
|
};
|
|
5105
5168
|
const checkUpdatedOption = () => {
|
|
5106
|
-
var _a2;
|
|
5107
5169
|
const unrefModelValue = unref(modelValue);
|
|
5108
|
-
if (
|
|
5170
|
+
if (isNullish(unrefModelValue)) {
|
|
5171
|
+
state.selectedOption = [];
|
|
5172
|
+
return;
|
|
5173
|
+
}
|
|
5174
|
+
if (!multiple.value && !Array.isArray(unrefModelValue)) {
|
|
5109
5175
|
const target = state.options.find((o) => o.value === unrefModelValue);
|
|
5110
|
-
|
|
5176
|
+
if (target) {
|
|
5177
|
+
state.selectedOption = [target];
|
|
5178
|
+
} else {
|
|
5179
|
+
state.selectedOption = [];
|
|
5180
|
+
}
|
|
5181
|
+
} else if (multiple.value && Array.isArray(unrefModelValue)) {
|
|
5182
|
+
state.selectedOption = state.options.filter((o) => unrefModelValue == null ? void 0 : unrefModelValue.includes(o.value));
|
|
5111
5183
|
}
|
|
5112
5184
|
};
|
|
5113
5185
|
const checkNewOption = (option) => {
|
|
5114
|
-
var _a2;
|
|
5115
5186
|
const unrefModelValue = unref(modelValue);
|
|
5116
|
-
if (
|
|
5117
|
-
|
|
5187
|
+
if (isNullish(unrefModelValue)) {
|
|
5188
|
+
return;
|
|
5189
|
+
}
|
|
5190
|
+
if (!multiple.value && !Array.isArray(unrefModelValue)) {
|
|
5191
|
+
if (option.value === unrefModelValue) {
|
|
5192
|
+
state.selectedOption = [option];
|
|
5193
|
+
}
|
|
5194
|
+
} else if (multiple.value && Array.isArray(unrefModelValue)) {
|
|
5195
|
+
if (unrefModelValue.includes(option.value)) {
|
|
5196
|
+
state.selectedOption.push(option);
|
|
5197
|
+
}
|
|
5118
5198
|
}
|
|
5119
5199
|
};
|
|
5120
5200
|
const checkRemovedOption = (option) => {
|
|
5121
|
-
|
|
5122
|
-
if (
|
|
5123
|
-
state.selectedOption
|
|
5201
|
+
const index2 = state.selectedOption.findIndex((o) => o.value === option.value);
|
|
5202
|
+
if (index2 > -1) {
|
|
5203
|
+
state.selectedOption.splice(index2, 1);
|
|
5124
5204
|
}
|
|
5125
5205
|
};
|
|
5126
5206
|
const filterFn = (keyword, value, option) => {
|
|
@@ -5159,8 +5239,10 @@ const _sfc_main$c = defineComponent({
|
|
|
5159
5239
|
const bindTriggerEleOutsideClick = {
|
|
5160
5240
|
cleanup: void 0,
|
|
5161
5241
|
visible() {
|
|
5162
|
-
|
|
5163
|
-
|
|
5242
|
+
var _a2;
|
|
5243
|
+
const el = (_a2 = popper2.value) == null ? void 0 : _a2.popper.$el;
|
|
5244
|
+
if (!this.cleanup && el) {
|
|
5245
|
+
this.cleanup = onClickOutside(el, () => {
|
|
5164
5246
|
state.visible = false;
|
|
5165
5247
|
}, {
|
|
5166
5248
|
ignore: [triggerRef]
|
|
@@ -5188,13 +5270,14 @@ const _sfc_main$c = defineComponent({
|
|
|
5188
5270
|
}
|
|
5189
5271
|
};
|
|
5190
5272
|
watch(() => state.visible, (visible) => {
|
|
5273
|
+
var _a2;
|
|
5191
5274
|
if (visible) {
|
|
5192
5275
|
bindTriggerEleOutsideClick.visible();
|
|
5193
5276
|
bindPopperTrigger.visible();
|
|
5194
|
-
state.optionFocusIndex = (state == null ? void 0 : state.selectedOption) ? state == null ? void 0 : state.options.indexOf(state.selectedOption) : -1;
|
|
5277
|
+
state.optionFocusIndex = (state == null ? void 0 : state.selectedOption) ? state == null ? void 0 : state.options.indexOf((_a2 = state.selectedOption) == null ? void 0 : _a2[0]) : -1;
|
|
5195
5278
|
setTimeout(() => {
|
|
5196
|
-
var
|
|
5197
|
-
(
|
|
5279
|
+
var _a3;
|
|
5280
|
+
(_a3 = searchInput.value) == null ? void 0 : _a3.focus();
|
|
5198
5281
|
}, 0);
|
|
5199
5282
|
} else {
|
|
5200
5283
|
bindTriggerEleOutsideClick.invisible();
|
|
@@ -5274,9 +5357,9 @@ const _sfc_main$c = defineComponent({
|
|
|
5274
5357
|
};
|
|
5275
5358
|
}
|
|
5276
5359
|
});
|
|
5277
|
-
const _hoisted_1$
|
|
5278
|
-
const _hoisted_2$
|
|
5279
|
-
const _hoisted_3$
|
|
5360
|
+
const _hoisted_1$c = { class: "dao-selection-text" };
|
|
5361
|
+
const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("i", { class: "icon-dropdown-line dao-selection-icon" }, null, -1);
|
|
5362
|
+
const _hoisted_3$5 = {
|
|
5280
5363
|
key: 0,
|
|
5281
5364
|
class: "dao-selection-search"
|
|
5282
5365
|
};
|
|
@@ -5287,12 +5370,12 @@ const _hoisted_7$1 = {
|
|
|
5287
5370
|
key: "dao-option-placeholder",
|
|
5288
5371
|
class: "dao-option-placeholder"
|
|
5289
5372
|
};
|
|
5290
|
-
function _sfc_render$
|
|
5373
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5291
5374
|
const _component_dao_popper = resolveComponent("dao-popper");
|
|
5292
5375
|
return openBlock(), createBlock(_component_dao_popper, {
|
|
5293
5376
|
ref: "popper",
|
|
5294
5377
|
modelValue: _ctx.state.visible,
|
|
5295
|
-
"onUpdate:modelValue": _cache[
|
|
5378
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => _ctx.state.visible = $event),
|
|
5296
5379
|
delay: 0,
|
|
5297
5380
|
disabled: _ctx.disabled,
|
|
5298
5381
|
offset: _ctx.popperOffset,
|
|
@@ -5304,25 +5387,25 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5304
5387
|
transition: "dao-select",
|
|
5305
5388
|
trigger: "manual",
|
|
5306
5389
|
placement: "bottom",
|
|
5307
|
-
onHide: _cache[
|
|
5308
|
-
onShow: _cache[
|
|
5390
|
+
onHide: _cache[15] || (_cache[15] = ($event) => _ctx.$emit("close")),
|
|
5391
|
+
onShow: _cache[16] || (_cache[16] = ($event) => _ctx.$emit("open"))
|
|
5309
5392
|
}, {
|
|
5310
5393
|
content: withCtx(() => [
|
|
5311
5394
|
renderSlot(_ctx.$slots, "optionsHeader", {}, () => [
|
|
5312
|
-
_ctx.search ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5395
|
+
_ctx.search ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
5313
5396
|
withDirectives(createElementVNode("input", {
|
|
5314
5397
|
ref: "searchInput",
|
|
5315
|
-
"onUpdate:modelValue": _cache[
|
|
5398
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.state.searchText = $event),
|
|
5316
5399
|
placeholder: _ctx.searchPlaceholder,
|
|
5317
5400
|
class: "dao-selection-search-input",
|
|
5318
5401
|
type: "search",
|
|
5319
|
-
onInput: _cache[
|
|
5402
|
+
onInput: _cache[7] || (_cache[7] = (...args) => _ctx.onSearchTextChange && _ctx.onSearchTextChange(...args)),
|
|
5320
5403
|
onKeydown: [
|
|
5321
|
-
_cache[
|
|
5322
|
-
_cache[
|
|
5323
|
-
_cache[
|
|
5324
|
-
_cache[
|
|
5325
|
-
_cache[
|
|
5404
|
+
_cache[8] || (_cache[8] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop", "prevent"]), ["tab"])),
|
|
5405
|
+
_cache[9] || (_cache[9] = withKeys((...args) => _ctx.handleEvent.searchInput.keydownEsc && _ctx.handleEvent.searchInput.keydownEsc(...args), ["esc"])),
|
|
5406
|
+
_cache[10] || (_cache[10] = withKeys(withModifiers((...args) => _ctx.handleEvent.searchInput.keydownEnter && _ctx.handleEvent.searchInput.keydownEnter(...args), ["stop", "prevent"]), ["enter"])),
|
|
5407
|
+
_cache[11] || (_cache[11] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
|
|
5408
|
+
_cache[12] || (_cache[12] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"]))
|
|
5326
5409
|
]
|
|
5327
5410
|
}, null, 40, _hoisted_4$2), [
|
|
5328
5411
|
[vModelText, _ctx.state.searchText]
|
|
@@ -5330,7 +5413,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5330
5413
|
_hoisted_5$2,
|
|
5331
5414
|
withDirectives(createElementVNode("i", {
|
|
5332
5415
|
class: "icon-sys-error dao-selection-search-clear-icon",
|
|
5333
|
-
onClick: _cache[
|
|
5416
|
+
onClick: _cache[13] || (_cache[13] = withModifiers((...args) => _ctx.onSearchClear && _ctx.onSearchClear(...args), ["stop", "prevent"]))
|
|
5334
5417
|
}, null, 512), [
|
|
5335
5418
|
[vShow, _ctx.state.searchText]
|
|
5336
5419
|
])
|
|
@@ -5342,28 +5425,37 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5342
5425
|
])
|
|
5343
5426
|
]),
|
|
5344
5427
|
default: withCtx(() => {
|
|
5345
|
-
var _a2, _b2;
|
|
5428
|
+
var _a2, _b2, _c, _d, _e;
|
|
5346
5429
|
return [
|
|
5347
5430
|
createElementVNode("button", {
|
|
5348
5431
|
ref: "triggerRef",
|
|
5349
5432
|
class: "dao-selection",
|
|
5350
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleTargetTrigger && _ctx.handleTargetTrigger(...args)),
|
|
5351
5433
|
onKeydown: [
|
|
5352
|
-
_cache[
|
|
5353
|
-
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop"
|
|
5354
|
-
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.
|
|
5355
|
-
_cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.navigateOptions("
|
|
5356
|
-
|
|
5434
|
+
_cache[0] || (_cache[0] = withKeys(withModifiers((...args) => _ctx.handleTargetTrigger && _ctx.handleTargetTrigger(...args), ["prevent"]), ["enter"])),
|
|
5435
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop"]), ["tab"])),
|
|
5436
|
+
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.state.visible = false, ["stop", "prevent"]), ["esc"])),
|
|
5437
|
+
_cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
|
|
5438
|
+
_cache[5] || (_cache[5] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"]))
|
|
5439
|
+
],
|
|
5440
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.state.visible = !_ctx.state.visible)
|
|
5357
5441
|
}, [
|
|
5358
|
-
withDirectives(createElementVNode("span", _hoisted_1$
|
|
5359
|
-
renderSlot(_ctx.$slots, "selected", {
|
|
5360
|
-
|
|
5442
|
+
withDirectives(createElementVNode("span", _hoisted_1$c, [
|
|
5443
|
+
_ctx.multiple ? renderSlot(_ctx.$slots, "selected", {
|
|
5444
|
+
key: 0,
|
|
5445
|
+
selectedLabel: _ctx.state.selectedOption.map((o) => o.label),
|
|
5361
5446
|
selectedOption: _ctx.state.selectedOption,
|
|
5362
|
-
selectedValue:
|
|
5447
|
+
selectedValue: _ctx.state.selectedOption.map((o) => o.value)
|
|
5448
|
+
}, () => [
|
|
5449
|
+
createTextVNode(toDisplayString(_ctx.state.selectedOption.map((i) => i.labelValue).join(", ")), 1)
|
|
5450
|
+
]) : renderSlot(_ctx.$slots, "selected", {
|
|
5451
|
+
key: 1,
|
|
5452
|
+
selectedLabel: (_b2 = (_a2 = _ctx.state.selectedOption) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.label,
|
|
5453
|
+
selectedOption: (_c = _ctx.state.selectedOption) == null ? void 0 : _c[0],
|
|
5454
|
+
selectedValue: (_e = (_d = _ctx.state.selectedOption) == null ? void 0 : _d[0]) == null ? void 0 : _e.value
|
|
5363
5455
|
}, () => {
|
|
5364
|
-
var _a3;
|
|
5456
|
+
var _a3, _b3;
|
|
5365
5457
|
return [
|
|
5366
|
-
createTextVNode(toDisplayString((_a3 = _ctx.state.selectedOption) == null ? void 0 : _a3.labelValue), 1)
|
|
5458
|
+
createTextVNode(toDisplayString((_b3 = (_a3 = _ctx.state.selectedOption) == null ? void 0 : _a3[0]) == null ? void 0 : _b3.labelValue), 1)
|
|
5367
5459
|
];
|
|
5368
5460
|
})
|
|
5369
5461
|
], 512), [
|
|
@@ -5372,16 +5464,16 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5372
5464
|
withDirectives(createElementVNode("span", { class: "dao-selection-text--placeholder" }, toDisplayString(_ctx.placeholder), 513), [
|
|
5373
5465
|
[vShow, !_ctx.isSelected]
|
|
5374
5466
|
]),
|
|
5375
|
-
_hoisted_2$
|
|
5467
|
+
_hoisted_2$9
|
|
5376
5468
|
], 544)
|
|
5377
5469
|
];
|
|
5378
5470
|
}),
|
|
5379
5471
|
_: 3
|
|
5380
5472
|
}, 8, ["modelValue", "disabled", "offset", "popper-class", "popper-options", "class", "append-to"]);
|
|
5381
5473
|
}
|
|
5382
|
-
var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5474
|
+
var DaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$e]]);
|
|
5383
5475
|
var option_vue_vue_type_style_index_0_lang = "";
|
|
5384
|
-
const _sfc_main$
|
|
5476
|
+
const _sfc_main$f = defineComponent({
|
|
5385
5477
|
name: "DaoOption",
|
|
5386
5478
|
props: {
|
|
5387
5479
|
value: {
|
|
@@ -5423,7 +5515,7 @@ const _sfc_main$b = defineComponent({
|
|
|
5423
5515
|
const visible = computed(() => instance.visible);
|
|
5424
5516
|
const isSelected = computed(() => {
|
|
5425
5517
|
var _a2;
|
|
5426
|
-
return ((_a2 = selectState == null ? void 0 : selectState.selectedOption) == null ? void 0 : _a2.
|
|
5518
|
+
return !!((_a2 = selectState == null ? void 0 : selectState.selectedOption) == null ? void 0 : _a2.find((option) => option.value === instance.value));
|
|
5427
5519
|
});
|
|
5428
5520
|
const isFocus = computed(() => {
|
|
5429
5521
|
var _a2, _b2;
|
|
@@ -5463,12 +5555,12 @@ const _sfc_main$b = defineComponent({
|
|
|
5463
5555
|
};
|
|
5464
5556
|
}
|
|
5465
5557
|
});
|
|
5466
|
-
const _hoisted_1$
|
|
5467
|
-
const _hoisted_2$
|
|
5558
|
+
const _hoisted_1$b = ["title"];
|
|
5559
|
+
const _hoisted_2$8 = {
|
|
5468
5560
|
key: 0,
|
|
5469
5561
|
class: "icon-checked dao-option-checkmark"
|
|
5470
5562
|
};
|
|
5471
|
-
function _sfc_render$
|
|
5563
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5472
5564
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
5473
5565
|
ref: "optionRef",
|
|
5474
5566
|
class: normalizeClass([
|
|
@@ -5487,16 +5579,16 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5487
5579
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5488
5580
|
createTextVNode(toDisplayString(_ctx.labelValue), 1)
|
|
5489
5581
|
])
|
|
5490
|
-
], 8, _hoisted_1$
|
|
5491
|
-
_ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$
|
|
5582
|
+
], 8, _hoisted_1$b),
|
|
5583
|
+
_ctx.isSelected ? (openBlock(), createElementBlock("i", _hoisted_2$8)) : createCommentVNode("", true)
|
|
5492
5584
|
], 2)), [
|
|
5493
5585
|
[vShow, _ctx.visible]
|
|
5494
5586
|
]);
|
|
5495
5587
|
}
|
|
5496
|
-
var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5588
|
+
var DaoOption = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$d]]);
|
|
5497
5589
|
var pagination_vue_vue_type_style_index_0_lang = "";
|
|
5498
5590
|
const numberAscSort = (a, b) => a - b;
|
|
5499
|
-
const _sfc_main$
|
|
5591
|
+
const _sfc_main$e = defineComponent({
|
|
5500
5592
|
name: "DaoPagination",
|
|
5501
5593
|
components: {
|
|
5502
5594
|
DaoSelect,
|
|
@@ -5600,9 +5692,9 @@ const _sfc_main$a = defineComponent({
|
|
|
5600
5692
|
};
|
|
5601
5693
|
}
|
|
5602
5694
|
});
|
|
5603
|
-
const _hoisted_1$
|
|
5604
|
-
const _hoisted_2$
|
|
5605
|
-
function _sfc_render$
|
|
5695
|
+
const _hoisted_1$a = ["disabled"];
|
|
5696
|
+
const _hoisted_2$7 = { class: "dao-pagination__pager-total" };
|
|
5697
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5606
5698
|
const _component_dao_option = resolveComponent("dao-option");
|
|
5607
5699
|
const _component_dao_select = resolveComponent("dao-select");
|
|
5608
5700
|
return _ctx.computedLayout.show ? (openBlock(), createElementBlock("div", {
|
|
@@ -5629,10 +5721,10 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5629
5721
|
disabled: _ctx.totalPage <= 1,
|
|
5630
5722
|
onKeydown: _cache[2] || (_cache[2] = withKeys((...args) => _ctx.targetPage && _ctx.targetPage(...args), ["enter"])),
|
|
5631
5723
|
onInput: _cache[3] || (_cache[3] = (...args) => _ctx.currentShowPageFormat && _ctx.currentShowPageFormat(...args))
|
|
5632
|
-
}, null, 40, _hoisted_1$
|
|
5724
|
+
}, null, 40, _hoisted_1$a), [
|
|
5633
5725
|
[vModelText, _ctx.currentShowPage]
|
|
5634
5726
|
]),
|
|
5635
|
-
createElementVNode("span", _hoisted_2$
|
|
5727
|
+
createElementVNode("span", _hoisted_2$7, " / " + toDisplayString(_ctx.totalPage), 1),
|
|
5636
5728
|
createElementVNode("i", {
|
|
5637
5729
|
class: normalizeClass([
|
|
5638
5730
|
"icon-arrow-next",
|
|
@@ -5663,15 +5755,15 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5663
5755
|
}, 8, ["class", "model-value", "style", "onChange"])
|
|
5664
5756
|
], 2)) : createCommentVNode("", true);
|
|
5665
5757
|
}
|
|
5666
|
-
var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5758
|
+
var DaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$c]]);
|
|
5667
5759
|
var popover_scss_vue_type_style_index_0_src_lang = "";
|
|
5668
|
-
const _sfc_main$
|
|
5760
|
+
const _sfc_main$d = defineComponent(__spreadProps(__spreadValues({}, Popper), {
|
|
5669
5761
|
name: "DaoPopover",
|
|
5670
5762
|
props: PopperProps,
|
|
5671
5763
|
daoPopperTheme: "dao-popover"
|
|
5672
5764
|
}));
|
|
5673
5765
|
var progress_vue_vue_type_style_index_0_lang = "";
|
|
5674
|
-
const _sfc_main$
|
|
5766
|
+
const _sfc_main$c = defineComponent({
|
|
5675
5767
|
name: "DaoProgress",
|
|
5676
5768
|
props: {
|
|
5677
5769
|
value: {
|
|
@@ -5720,17 +5812,17 @@ const _sfc_main$8 = defineComponent({
|
|
|
5720
5812
|
};
|
|
5721
5813
|
}
|
|
5722
5814
|
});
|
|
5723
|
-
const _hoisted_1$
|
|
5724
|
-
const _hoisted_2$
|
|
5815
|
+
const _hoisted_1$9 = { class: "dao-progress" };
|
|
5816
|
+
const _hoisted_2$6 = {
|
|
5725
5817
|
key: 1,
|
|
5726
5818
|
class: "dao-progress__stacked"
|
|
5727
5819
|
};
|
|
5728
|
-
const _hoisted_3$
|
|
5820
|
+
const _hoisted_3$4 = {
|
|
5729
5821
|
key: 0,
|
|
5730
5822
|
class: "dao-progress__text"
|
|
5731
5823
|
};
|
|
5732
|
-
function _sfc_render$
|
|
5733
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5824
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5825
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
5734
5826
|
createElementVNode("div", {
|
|
5735
5827
|
class: "dao-progress__inner",
|
|
5736
5828
|
style: normalizeStyle({ background: _ctx.bgColor })
|
|
@@ -5739,7 +5831,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5739
5831
|
key: 0,
|
|
5740
5832
|
class: "dao-progress__bar",
|
|
5741
5833
|
style: normalizeStyle({ width: `${_ctx.value}%`, background: _ctx.stackedBgColor })
|
|
5742
|
-
}, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5834
|
+
}, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
5743
5835
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.stackedStyles, (stackedStyle, idx) => {
|
|
5744
5836
|
return openBlock(), createElementBlock("div", {
|
|
5745
5837
|
key: idx,
|
|
@@ -5749,14 +5841,14 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5749
5841
|
}), 128))
|
|
5750
5842
|
]))
|
|
5751
5843
|
], 4),
|
|
5752
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5844
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
|
|
5753
5845
|
renderSlot(_ctx.$slots, "default")
|
|
5754
5846
|
])) : createCommentVNode("", true)
|
|
5755
5847
|
]);
|
|
5756
5848
|
}
|
|
5757
|
-
var progress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5849
|
+
var progress = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]]);
|
|
5758
5850
|
var radio_vue_vue_type_style_index_0_lang = "";
|
|
5759
|
-
const _sfc_main$
|
|
5851
|
+
const _sfc_main$b = defineComponent({
|
|
5760
5852
|
name: "DaoRadio",
|
|
5761
5853
|
props: {
|
|
5762
5854
|
modelValue: {
|
|
@@ -5826,9 +5918,9 @@ const _sfc_main$7 = defineComponent({
|
|
|
5826
5918
|
};
|
|
5827
5919
|
}
|
|
5828
5920
|
});
|
|
5829
|
-
const _hoisted_1$
|
|
5830
|
-
const _hoisted_2$
|
|
5831
|
-
const _hoisted_3$
|
|
5921
|
+
const _hoisted_1$8 = ["disabled", "name", "checked"];
|
|
5922
|
+
const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("span", { class: "dao-radio-inner" }, null, -1);
|
|
5923
|
+
const _hoisted_3$3 = {
|
|
5832
5924
|
key: 0,
|
|
5833
5925
|
class: "dao-radio__label-wrapper"
|
|
5834
5926
|
};
|
|
@@ -5840,7 +5932,7 @@ const _hoisted_5$1 = {
|
|
|
5840
5932
|
key: 1,
|
|
5841
5933
|
class: "dao-radio__help"
|
|
5842
5934
|
};
|
|
5843
|
-
function _sfc_render$
|
|
5935
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5844
5936
|
return openBlock(), createElementBlock("label", {
|
|
5845
5937
|
class: normalizeClass(_ctx.wrapClasses)
|
|
5846
5938
|
}, [
|
|
@@ -5854,10 +5946,10 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5854
5946
|
name: _ctx.name,
|
|
5855
5947
|
checked: _ctx.currentValue,
|
|
5856
5948
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
|
|
5857
|
-
}, null, 40, _hoisted_1$
|
|
5858
|
-
_hoisted_2$
|
|
5949
|
+
}, null, 40, _hoisted_1$8),
|
|
5950
|
+
_hoisted_2$5
|
|
5859
5951
|
], 2),
|
|
5860
|
-
_ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5952
|
+
_ctx.$slots.default || _ctx.label || _ctx.$slots.helper ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
5861
5953
|
_ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
5862
5954
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5863
5955
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
@@ -5869,9 +5961,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5869
5961
|
])) : createCommentVNode("", true)
|
|
5870
5962
|
], 2);
|
|
5871
5963
|
}
|
|
5872
|
-
var radio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5964
|
+
var radio = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]);
|
|
5873
5965
|
var radioGroup_vue_vue_type_style_index_0_lang = "";
|
|
5874
|
-
const _sfc_main$
|
|
5966
|
+
const _sfc_main$a = defineComponent({
|
|
5875
5967
|
name: "DaoRadioGroup",
|
|
5876
5968
|
props: {
|
|
5877
5969
|
modelValue: {
|
|
@@ -5905,16 +5997,16 @@ const _sfc_main$6 = defineComponent({
|
|
|
5905
5997
|
};
|
|
5906
5998
|
}
|
|
5907
5999
|
});
|
|
5908
|
-
function _sfc_render$
|
|
6000
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5909
6001
|
return openBlock(), createElementBlock("div", {
|
|
5910
6002
|
class: normalizeClass(_ctx.radioGroupClasses)
|
|
5911
6003
|
}, [
|
|
5912
6004
|
renderSlot(_ctx.$slots, "default")
|
|
5913
6005
|
], 2);
|
|
5914
6006
|
}
|
|
5915
|
-
var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6007
|
+
var radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]);
|
|
5916
6008
|
var switch_vue_vue_type_style_index_0_lang = "";
|
|
5917
|
-
const _sfc_main$
|
|
6009
|
+
const _sfc_main$9 = defineComponent({
|
|
5918
6010
|
name: "DaoSwitch",
|
|
5919
6011
|
props: {
|
|
5920
6012
|
modelValue: {
|
|
@@ -5969,12 +6061,12 @@ const _sfc_main$5 = defineComponent({
|
|
|
5969
6061
|
};
|
|
5970
6062
|
}
|
|
5971
6063
|
});
|
|
5972
|
-
const _hoisted_1$
|
|
5973
|
-
const _hoisted_2$
|
|
6064
|
+
const _hoisted_1$7 = ["value", "name", "disabled"];
|
|
6065
|
+
const _hoisted_2$4 = {
|
|
5974
6066
|
key: 0,
|
|
5975
6067
|
class: "dao-switch__label"
|
|
5976
6068
|
};
|
|
5977
|
-
function _sfc_render$
|
|
6069
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5978
6070
|
return openBlock(), createElementBlock("div", {
|
|
5979
6071
|
class: normalizeClass(["dao-switch", { "dao-switch--disabled": _ctx.disabled, "dao-switch--size-sm": _ctx.size === "sm" }]),
|
|
5980
6072
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
|
|
@@ -5985,16 +6077,16 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5985
6077
|
value: _ctx.currentValue,
|
|
5986
6078
|
name: _ctx.name,
|
|
5987
6079
|
disabled: _ctx.disabled
|
|
5988
|
-
}, null, 8, _hoisted_1$
|
|
6080
|
+
}, null, 8, _hoisted_1$7),
|
|
5989
6081
|
createElementVNode("span", {
|
|
5990
6082
|
class: normalizeClass(["dao-switch__pill", { "dao-switch-checked": _ctx.currentValue }])
|
|
5991
6083
|
}, null, 2),
|
|
5992
|
-
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
6084
|
+
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(_ctx.currentValue ? _ctx.textOn : _ctx.textOff), 1)) : createCommentVNode("", true)
|
|
5993
6085
|
], 2);
|
|
5994
6086
|
}
|
|
5995
|
-
var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6087
|
+
var _switch = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]);
|
|
5996
6088
|
var resizer_vue_vue_type_style_index_0_lang = "";
|
|
5997
|
-
const _sfc_main$
|
|
6089
|
+
const _sfc_main$8 = defineComponent({
|
|
5998
6090
|
name: "DaoResizer",
|
|
5999
6091
|
props: {
|
|
6000
6092
|
column: {
|
|
@@ -6041,9 +6133,9 @@ const _sfc_main$4 = defineComponent({
|
|
|
6041
6133
|
};
|
|
6042
6134
|
}
|
|
6043
6135
|
});
|
|
6044
|
-
const _hoisted_1$
|
|
6045
|
-
function _sfc_render$
|
|
6046
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
6136
|
+
const _hoisted_1$6 = { class: "dao-table-resizer-separator" };
|
|
6137
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6138
|
+
return openBlock(), createElementBlock("span", _hoisted_1$6, [
|
|
6047
6139
|
!_ctx.disabled ? (openBlock(), createElementBlock("span", {
|
|
6048
6140
|
key: 0,
|
|
6049
6141
|
class: "dao-table-resizer-handle",
|
|
@@ -6053,7 +6145,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6053
6145
|
}, null, 32)) : createCommentVNode("", true)
|
|
6054
6146
|
]);
|
|
6055
6147
|
}
|
|
6056
|
-
var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6148
|
+
var DaoResizer = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]);
|
|
6057
6149
|
const tableProps = {
|
|
6058
6150
|
id: {
|
|
6059
6151
|
type: String,
|
|
@@ -6072,9 +6164,13 @@ const tableProps = {
|
|
|
6072
6164
|
default: true
|
|
6073
6165
|
},
|
|
6074
6166
|
selectable: {
|
|
6075
|
-
type: Boolean,
|
|
6167
|
+
type: [Function, Boolean],
|
|
6076
6168
|
default: false
|
|
6077
6169
|
},
|
|
6170
|
+
selectedRows: {
|
|
6171
|
+
type: Array,
|
|
6172
|
+
default: () => []
|
|
6173
|
+
},
|
|
6078
6174
|
expandable: {
|
|
6079
6175
|
type: Boolean,
|
|
6080
6176
|
default: false
|
|
@@ -6136,16 +6232,20 @@ const defaultColumnConfig = {
|
|
|
6136
6232
|
hidable: true,
|
|
6137
6233
|
defaultHide: false
|
|
6138
6234
|
};
|
|
6139
|
-
const
|
|
6235
|
+
const defaultSelectableFn = () => true;
|
|
6236
|
+
const _sfc_main$7 = defineComponent({
|
|
6140
6237
|
name: "DaoTable",
|
|
6141
6238
|
components: {
|
|
6142
6239
|
DaoResizer,
|
|
6143
6240
|
DaoPagination,
|
|
6144
|
-
DaoCheckbox
|
|
6241
|
+
DaoCheckbox,
|
|
6242
|
+
DaoButton,
|
|
6243
|
+
DaoDropdown
|
|
6145
6244
|
},
|
|
6146
6245
|
props: tableProps,
|
|
6147
6246
|
emits: [
|
|
6148
6247
|
"select",
|
|
6248
|
+
"update:selectedRows",
|
|
6149
6249
|
"sortChange",
|
|
6150
6250
|
"hideColumn",
|
|
6151
6251
|
"afterResize",
|
|
@@ -6163,51 +6263,137 @@ const _sfc_main$3 = defineComponent({
|
|
|
6163
6263
|
const tableSetting = reactive({});
|
|
6164
6264
|
const sort = reactive(props.sort);
|
|
6165
6265
|
const expandRows = reactive([]);
|
|
6166
|
-
const selectedRows = reactive(new Set());
|
|
6167
|
-
const expandedRows = reactive(new WeakSet());
|
|
6168
|
-
const columnRefs = reactive({});
|
|
6169
|
-
const columns = reactive([]);
|
|
6170
|
-
const currentPage = computed({
|
|
6171
|
-
get() {
|
|
6172
|
-
return props.currentPage;
|
|
6173
|
-
},
|
|
6174
|
-
set(value) {
|
|
6175
|
-
emit("update:current-page", value);
|
|
6176
|
-
}
|
|
6177
|
-
});
|
|
6178
|
-
const pageSize = computed({
|
|
6179
|
-
get() {
|
|
6180
|
-
return props.pageSize;
|
|
6181
|
-
},
|
|
6182
|
-
set(value) {
|
|
6183
|
-
emit("update:page-size", value);
|
|
6184
|
-
}
|
|
6185
|
-
});
|
|
6186
|
-
const tableScroll = ref();
|
|
6187
6266
|
const global2 = reactive({
|
|
6188
6267
|
checked: false,
|
|
6189
6268
|
indeterminate: false
|
|
6190
6269
|
});
|
|
6191
|
-
const
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
const
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6270
|
+
const selectedRowsModel = useVModel(props, "selectedRows", emit);
|
|
6271
|
+
const selectedRowsSet = reactive(new Set());
|
|
6272
|
+
const isRowSelected = (row) => selectedRowsSet.has(row);
|
|
6273
|
+
const selectableFn = computed(() => typeof props.selectable === "function" ? props.selectable : defaultSelectableFn);
|
|
6274
|
+
const selectableRows = computed(() => {
|
|
6275
|
+
var _a2;
|
|
6276
|
+
const selectableRowsSet = new Set();
|
|
6277
|
+
(_a2 = props.data) == null ? void 0 : _a2.forEach((item, index2) => {
|
|
6278
|
+
if (selectableFn.value(item, index2)) {
|
|
6279
|
+
selectableRowsSet.add(item);
|
|
6280
|
+
}
|
|
6281
|
+
});
|
|
6282
|
+
return selectableRowsSet;
|
|
6283
|
+
});
|
|
6284
|
+
const toggleSelected = (row) => {
|
|
6285
|
+
if (selectedRowsSet.has(row)) {
|
|
6286
|
+
selectedRowsSet.delete(row);
|
|
6287
|
+
} else {
|
|
6288
|
+
selectedRowsSet.add(row);
|
|
6208
6289
|
}
|
|
6290
|
+
emit("select", Array.from(selectedRowsSet));
|
|
6209
6291
|
};
|
|
6210
|
-
|
|
6292
|
+
const clearSelection = () => {
|
|
6293
|
+
selectedRowsSet.forEach((item) => {
|
|
6294
|
+
if (selectableRows.value.has(item)) {
|
|
6295
|
+
selectedRowsSet.delete(item);
|
|
6296
|
+
}
|
|
6297
|
+
});
|
|
6298
|
+
};
|
|
6299
|
+
const selectedAll = () => {
|
|
6300
|
+
props.data.forEach((item) => {
|
|
6301
|
+
if (selectableRows.value.has(item)) {
|
|
6302
|
+
selectedRowsSet.add(item);
|
|
6303
|
+
}
|
|
6304
|
+
});
|
|
6305
|
+
};
|
|
6306
|
+
const toggleSelectedAll = () => {
|
|
6307
|
+
if (!global2.checked || global2.indeterminate) {
|
|
6308
|
+
selectedAll();
|
|
6309
|
+
} else {
|
|
6310
|
+
clearSelection();
|
|
6311
|
+
}
|
|
6312
|
+
emit("select", Array.from(selectedRowsSet));
|
|
6313
|
+
};
|
|
6314
|
+
watchEffect(() => {
|
|
6315
|
+
let have = 0;
|
|
6316
|
+
let notHave = 0;
|
|
6317
|
+
for (let i = 0; i < props.data.length; i += 1) {
|
|
6318
|
+
const item = props.data[i];
|
|
6319
|
+
if (selectedRowsSet.has(item)) {
|
|
6320
|
+
have += 1;
|
|
6321
|
+
} else if (selectableRows.value.has(item)) {
|
|
6322
|
+
notHave += 1;
|
|
6323
|
+
}
|
|
6324
|
+
if (have && notHave) {
|
|
6325
|
+
break;
|
|
6326
|
+
}
|
|
6327
|
+
}
|
|
6328
|
+
if (have && notHave) {
|
|
6329
|
+
global2.checked = false;
|
|
6330
|
+
global2.indeterminate = true;
|
|
6331
|
+
} else if (have) {
|
|
6332
|
+
global2.checked = true;
|
|
6333
|
+
global2.indeterminate = false;
|
|
6334
|
+
} else {
|
|
6335
|
+
global2.checked = false;
|
|
6336
|
+
global2.indeterminate = false;
|
|
6337
|
+
}
|
|
6338
|
+
selectedRowsModel.value = Array.from(selectedRowsSet);
|
|
6339
|
+
});
|
|
6340
|
+
const handleSelectedRows = () => {
|
|
6341
|
+
const nowValue = selectedRowsModel.value;
|
|
6342
|
+
const { data } = props;
|
|
6343
|
+
const { length } = data;
|
|
6344
|
+
selectedRowsSet.clear();
|
|
6345
|
+
if (nowValue.length && length) {
|
|
6346
|
+
for (let index2 = 0; index2 < length; index2 += 1) {
|
|
6347
|
+
const row = data[index2];
|
|
6348
|
+
if (nowValue.includes(row)) {
|
|
6349
|
+
selectedRowsSet.add(row);
|
|
6350
|
+
}
|
|
6351
|
+
}
|
|
6352
|
+
}
|
|
6353
|
+
};
|
|
6354
|
+
watch(() => [props.data, selectedRowsModel.value], handleSelectedRows, {
|
|
6355
|
+
immediate: true
|
|
6356
|
+
});
|
|
6357
|
+
const expandedRows = reactive(new WeakSet());
|
|
6358
|
+
const columnRefs = reactive({});
|
|
6359
|
+
const columns = reactive([]);
|
|
6360
|
+
const currentPage = computed({
|
|
6361
|
+
get() {
|
|
6362
|
+
return props.currentPage;
|
|
6363
|
+
},
|
|
6364
|
+
set(value) {
|
|
6365
|
+
emit("update:current-page", value);
|
|
6366
|
+
}
|
|
6367
|
+
});
|
|
6368
|
+
const pageSize = computed({
|
|
6369
|
+
get() {
|
|
6370
|
+
return props.pageSize;
|
|
6371
|
+
},
|
|
6372
|
+
set(value) {
|
|
6373
|
+
emit("update:page-size", value);
|
|
6374
|
+
}
|
|
6375
|
+
});
|
|
6376
|
+
const tableScroll = ref();
|
|
6377
|
+
const setColumnRef = (columnId, el) => {
|
|
6378
|
+
columnRefs[columnId] = el;
|
|
6379
|
+
};
|
|
6380
|
+
const getTableSetting = () => {
|
|
6381
|
+
const setting = localStorage.getItem(tableId.value) || "";
|
|
6382
|
+
try {
|
|
6383
|
+
return JSON.parse(setting);
|
|
6384
|
+
} catch (e) {
|
|
6385
|
+
console.warn("JSON parse error", setting);
|
|
6386
|
+
return null;
|
|
6387
|
+
}
|
|
6388
|
+
};
|
|
6389
|
+
const setTableSetting = (setting) => {
|
|
6390
|
+
try {
|
|
6391
|
+
localStorage.setItem(tableId.value, JSON.stringify(setting));
|
|
6392
|
+
} catch (e) {
|
|
6393
|
+
console.error("JSON stringify error", setting);
|
|
6394
|
+
}
|
|
6395
|
+
};
|
|
6396
|
+
watch(tableSetting, (val) => {
|
|
6211
6397
|
setTableSetting(val);
|
|
6212
6398
|
});
|
|
6213
6399
|
function formatDefaultTableSetting(tempColumns) {
|
|
@@ -6291,7 +6477,6 @@ const _sfc_main$3 = defineComponent({
|
|
|
6291
6477
|
return "";
|
|
6292
6478
|
};
|
|
6293
6479
|
const isRowExpanded = (row) => expandRows.includes(row);
|
|
6294
|
-
const isRowSelected = (row) => selectedRows.has(row);
|
|
6295
6480
|
const toggleExpand = (row, rowIndex) => {
|
|
6296
6481
|
expandedRows.add(row);
|
|
6297
6482
|
const index2 = expandRows.indexOf(row);
|
|
@@ -6303,26 +6488,6 @@ const _sfc_main$3 = defineComponent({
|
|
|
6303
6488
|
emit("expandToggle", row, rowIndex, true);
|
|
6304
6489
|
}
|
|
6305
6490
|
};
|
|
6306
|
-
const toggleSelected = (row) => {
|
|
6307
|
-
if (selectedRows.has(row)) {
|
|
6308
|
-
selectedRows.delete(row);
|
|
6309
|
-
emit("select", Array.from(selectedRows));
|
|
6310
|
-
} else {
|
|
6311
|
-
selectedRows.add(row);
|
|
6312
|
-
emit("select", Array.from(selectedRows));
|
|
6313
|
-
}
|
|
6314
|
-
};
|
|
6315
|
-
const toggleSelectedAll = () => {
|
|
6316
|
-
if (global2.checked) {
|
|
6317
|
-
selectedRows.clear();
|
|
6318
|
-
emit("select", []);
|
|
6319
|
-
} else {
|
|
6320
|
-
props.data.forEach((item) => {
|
|
6321
|
-
selectedRows.add(item);
|
|
6322
|
-
});
|
|
6323
|
-
emit("select", Array.from(selectedRows));
|
|
6324
|
-
}
|
|
6325
|
-
};
|
|
6326
6491
|
const fixedColumnWidth = () => {
|
|
6327
6492
|
columns.forEach((column) => {
|
|
6328
6493
|
tableSetting[column.id].width = `${columnRefs[column.id].clientWidth}px`;
|
|
@@ -6334,9 +6499,6 @@ const _sfc_main$3 = defineComponent({
|
|
|
6334
6499
|
const clearExpansion = () => {
|
|
6335
6500
|
expandRows.length = 0;
|
|
6336
6501
|
};
|
|
6337
|
-
const clearSelection = () => {
|
|
6338
|
-
selectedRows.clear();
|
|
6339
|
-
};
|
|
6340
6502
|
const clearState = () => {
|
|
6341
6503
|
clearExpansion();
|
|
6342
6504
|
clearSelection();
|
|
@@ -6344,31 +6506,6 @@ const _sfc_main$3 = defineComponent({
|
|
|
6344
6506
|
watch(() => props.columns, () => {
|
|
6345
6507
|
init();
|
|
6346
6508
|
}, { deep: true, immediate: true });
|
|
6347
|
-
watchEffect(() => {
|
|
6348
|
-
let have = 0;
|
|
6349
|
-
let notHave = 0;
|
|
6350
|
-
for (let i = 0; i < props.data.length; i += 1) {
|
|
6351
|
-
const item = props.data[i];
|
|
6352
|
-
if (selectedRows.has(item)) {
|
|
6353
|
-
have += 1;
|
|
6354
|
-
} else {
|
|
6355
|
-
notHave += 1;
|
|
6356
|
-
}
|
|
6357
|
-
if (have && notHave) {
|
|
6358
|
-
break;
|
|
6359
|
-
}
|
|
6360
|
-
}
|
|
6361
|
-
if (have && notHave) {
|
|
6362
|
-
global2.checked = false;
|
|
6363
|
-
global2.indeterminate = true;
|
|
6364
|
-
} else if (have) {
|
|
6365
|
-
global2.checked = true;
|
|
6366
|
-
global2.indeterminate = false;
|
|
6367
|
-
} else {
|
|
6368
|
-
global2.checked = false;
|
|
6369
|
-
global2.indeterminate = false;
|
|
6370
|
-
}
|
|
6371
|
-
});
|
|
6372
6509
|
const isEllipsis = () => {
|
|
6373
6510
|
if (!tableScroll.value) {
|
|
6374
6511
|
return false;
|
|
@@ -6405,10 +6542,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
6405
6542
|
sort,
|
|
6406
6543
|
thClass,
|
|
6407
6544
|
isRowExpanded,
|
|
6408
|
-
isRowSelected,
|
|
6409
6545
|
toggleExpand,
|
|
6410
|
-
toggleSelected,
|
|
6411
|
-
toggleSelectedAll,
|
|
6412
6546
|
setColumnRef,
|
|
6413
6547
|
fixedColumnWidth,
|
|
6414
6548
|
updateColumnWidth,
|
|
@@ -6419,16 +6553,20 @@ const _sfc_main$3 = defineComponent({
|
|
|
6419
6553
|
tableScroll,
|
|
6420
6554
|
expandedRows,
|
|
6421
6555
|
onRowClick,
|
|
6422
|
-
isEmpty
|
|
6556
|
+
isEmpty,
|
|
6557
|
+
selectableRows,
|
|
6558
|
+
isRowSelected,
|
|
6559
|
+
toggleSelected,
|
|
6560
|
+
toggleSelectedAll
|
|
6423
6561
|
};
|
|
6424
6562
|
}
|
|
6425
6563
|
});
|
|
6426
|
-
const _hoisted_1$
|
|
6427
|
-
const _hoisted_2$
|
|
6564
|
+
const _hoisted_1$5 = { class: "dao-table" };
|
|
6565
|
+
const _hoisted_2$3 = {
|
|
6428
6566
|
key: 0,
|
|
6429
6567
|
class: "dao-table-thead"
|
|
6430
6568
|
};
|
|
6431
|
-
const _hoisted_3 = { class: "dao-table-tr" };
|
|
6569
|
+
const _hoisted_3$2 = { class: "dao-table-tr" };
|
|
6432
6570
|
const _hoisted_4 = {
|
|
6433
6571
|
key: 0,
|
|
6434
6572
|
class: "dao-table-th"
|
|
@@ -6459,9 +6597,11 @@ const _hoisted_14 = {
|
|
|
6459
6597
|
class: "dao-table__empty-block"
|
|
6460
6598
|
};
|
|
6461
6599
|
const _hoisted_15 = { class: "dao-table-pagination" };
|
|
6462
|
-
function _sfc_render$
|
|
6600
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6463
6601
|
const _component_dao_checkbox = resolveComponent("dao-checkbox");
|
|
6464
6602
|
const _component_dao_resizer = resolveComponent("dao-resizer");
|
|
6603
|
+
const _component_dao_button = resolveComponent("dao-button");
|
|
6604
|
+
const _component_dao_dropdown = resolveComponent("dao-dropdown");
|
|
6465
6605
|
const _component_dao_pagination = resolveComponent("dao-pagination");
|
|
6466
6606
|
return openBlock(), createElementBlock("div", {
|
|
6467
6607
|
class: normalizeClass(["dao-table-container", { "dao-table-container--with-shadow": !_ctx.noShadow }])
|
|
@@ -6470,9 +6610,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6470
6610
|
ref: "tableScroll",
|
|
6471
6611
|
class: normalizeClass(["dao-table-scroll", _ctx.tableWrapperClasses])
|
|
6472
6612
|
}, [
|
|
6473
|
-
createElementVNode("table", _hoisted_1$
|
|
6474
|
-
_ctx.showHeader ? (openBlock(), createElementBlock("thead", _hoisted_2$
|
|
6475
|
-
createElementVNode("tr", _hoisted_3, [
|
|
6613
|
+
createElementVNode("table", _hoisted_1$5, [
|
|
6614
|
+
_ctx.showHeader ? (openBlock(), createElementBlock("thead", _hoisted_2$3, [
|
|
6615
|
+
createElementVNode("tr", _hoisted_3$2, [
|
|
6476
6616
|
_ctx.selectable ? (openBlock(), createElementBlock("th", _hoisted_4, [
|
|
6477
6617
|
createVNode(_component_dao_checkbox, {
|
|
6478
6618
|
checked: _ctx.global.checked,
|
|
@@ -6521,9 +6661,10 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6521
6661
|
}, [
|
|
6522
6662
|
_ctx.selectable ? (openBlock(), createElementBlock("td", _hoisted_10, [
|
|
6523
6663
|
createVNode(_component_dao_checkbox, {
|
|
6664
|
+
disabled: !_ctx.selectableRows.has(row),
|
|
6524
6665
|
checked: _ctx.isRowSelected(row),
|
|
6525
6666
|
onChange: ($event) => _ctx.toggleSelected(row)
|
|
6526
|
-
}, null, 8, ["checked", "onChange"])
|
|
6667
|
+
}, null, 8, ["disabled", "checked", "onChange"])
|
|
6527
6668
|
])) : createCommentVNode("", true),
|
|
6528
6669
|
_ctx.expandable ? (openBlock(), createElementBlock("td", _hoisted_11, [
|
|
6529
6670
|
createElementVNode("i", {
|
|
@@ -6537,7 +6678,31 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6537
6678
|
class: "dao-table-td",
|
|
6538
6679
|
style: normalizeStyle(_ctx.columnStyle(column.id))
|
|
6539
6680
|
}, [
|
|
6540
|
-
renderSlot(_ctx.$slots, `td-${column.id}`, {
|
|
6681
|
+
column.id === "action" ? renderSlot(_ctx.$slots, `td-${column.id}`, {
|
|
6682
|
+
key: 0,
|
|
6683
|
+
value: row[column.id],
|
|
6684
|
+
row,
|
|
6685
|
+
rowIndex: index2
|
|
6686
|
+
}, () => [
|
|
6687
|
+
createVNode(_component_dao_dropdown, { placement: "bottom-end" }, {
|
|
6688
|
+
menu: withCtx(() => [
|
|
6689
|
+
renderSlot(_ctx.$slots, `td-${column.id}-menu`, {
|
|
6690
|
+
value: row[column.id],
|
|
6691
|
+
row,
|
|
6692
|
+
rowIndex: index2
|
|
6693
|
+
})
|
|
6694
|
+
]),
|
|
6695
|
+
default: withCtx(() => [
|
|
6696
|
+
createVNode(_component_dao_button, {
|
|
6697
|
+
size: "sm",
|
|
6698
|
+
"icon-left": "icon_more",
|
|
6699
|
+
type: "secondary"
|
|
6700
|
+
})
|
|
6701
|
+
]),
|
|
6702
|
+
_: 2
|
|
6703
|
+
}, 1024)
|
|
6704
|
+
]) : renderSlot(_ctx.$slots, `td-${column.id}`, {
|
|
6705
|
+
key: 1,
|
|
6541
6706
|
value: row[column.id],
|
|
6542
6707
|
row,
|
|
6543
6708
|
rowIndex: index2
|
|
@@ -6604,9 +6769,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6604
6769
|
])
|
|
6605
6770
|
], 2);
|
|
6606
6771
|
}
|
|
6607
|
-
var table = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6772
|
+
var table = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]);
|
|
6608
6773
|
var tabNav_scss_vue_type_style_index_0_src_lang = "";
|
|
6609
|
-
const _sfc_main$
|
|
6774
|
+
const _sfc_main$6 = defineComponent({
|
|
6610
6775
|
name: "DaoTabNav",
|
|
6611
6776
|
props: {
|
|
6612
6777
|
type: {
|
|
@@ -6657,7 +6822,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
6657
6822
|
const activeLineStyle = ref({});
|
|
6658
6823
|
setActiveLineStyle = () => {
|
|
6659
6824
|
const tab = unref(activeTab);
|
|
6660
|
-
if (tab && tab.offsetWidth && tab.offsetLeft) {
|
|
6825
|
+
if (tab && tab.offsetWidth && tab.offsetLeft !== void 0) {
|
|
6661
6826
|
activeLineStyle.value = {
|
|
6662
6827
|
"--active-line-width": `${tab.offsetWidth || 0}px`,
|
|
6663
6828
|
"--active-line-left": `${tab.offsetLeft || 0}px`
|
|
@@ -6705,12 +6870,12 @@ const _sfc_main$2 = defineComponent({
|
|
|
6705
6870
|
const isActive = tab.value === props.currentTab;
|
|
6706
6871
|
const hasHoverLine = isLine.value && !tab.disabled;
|
|
6707
6872
|
const hasActiveLine = isLine.value && isActive;
|
|
6708
|
-
return h("
|
|
6873
|
+
return h("div", {
|
|
6709
6874
|
class: {
|
|
6710
|
-
"dao-
|
|
6711
|
-
"dao-
|
|
6712
|
-
"dao-
|
|
6713
|
-
"dao-
|
|
6875
|
+
"dao-tabs__nav-item": true,
|
|
6876
|
+
"dao-tabs__nav-item--active": isActive,
|
|
6877
|
+
"dao-tabs__nav-item--custom": isNotString,
|
|
6878
|
+
"dao-tabs__nav-item--disabled": tab.disabled
|
|
6714
6879
|
},
|
|
6715
6880
|
ref: hasActiveLine ? activeTab : void 0,
|
|
6716
6881
|
key: index2,
|
|
@@ -6719,21 +6884,24 @@ const _sfc_main$2 = defineComponent({
|
|
|
6719
6884
|
onMouseleave: hasHoverLine ? onMouseleave : void 0
|
|
6720
6885
|
}, [isNotString ? label() : label]);
|
|
6721
6886
|
}));
|
|
6722
|
-
return () => h("
|
|
6887
|
+
return () => h("div", {
|
|
6723
6888
|
class: [
|
|
6724
|
-
"dao-
|
|
6725
|
-
|
|
6889
|
+
"dao-tabs__nav__scroll"
|
|
6890
|
+
]
|
|
6891
|
+
}, h("div", {
|
|
6892
|
+
class: [
|
|
6893
|
+
"dao-tabs__nav"
|
|
6726
6894
|
],
|
|
6727
6895
|
style: lineStyle == null ? void 0 : lineStyle.value,
|
|
6728
6896
|
ref: tabNav
|
|
6729
|
-
}, tabsLi.value);
|
|
6897
|
+
}, tabsLi.value));
|
|
6730
6898
|
}
|
|
6731
6899
|
});
|
|
6732
6900
|
var tabs_scss_vue_type_style_index_0_src_lang = "";
|
|
6733
|
-
const _sfc_main$
|
|
6901
|
+
const _sfc_main$5 = defineComponent({
|
|
6734
6902
|
name: "DaoTabs",
|
|
6735
6903
|
components: {
|
|
6736
|
-
TabNav: _sfc_main$
|
|
6904
|
+
TabNav: _sfc_main$6
|
|
6737
6905
|
},
|
|
6738
6906
|
props: {
|
|
6739
6907
|
type: {
|
|
@@ -6802,30 +6970,44 @@ const _sfc_main$1 = defineComponent({
|
|
|
6802
6970
|
};
|
|
6803
6971
|
}
|
|
6804
6972
|
});
|
|
6805
|
-
const _hoisted_1 = { class: "dao-
|
|
6806
|
-
const _hoisted_2 = {
|
|
6973
|
+
const _hoisted_1$4 = { class: "dao-tabs__nav__warp" };
|
|
6974
|
+
const _hoisted_2$2 = {
|
|
6975
|
+
key: 0,
|
|
6976
|
+
class: "dao-tabs__action"
|
|
6977
|
+
};
|
|
6978
|
+
const _hoisted_3$1 = {
|
|
6807
6979
|
ref: "tabBody",
|
|
6808
|
-
class: "dao-
|
|
6980
|
+
class: "dao-tabs__body"
|
|
6809
6981
|
};
|
|
6810
|
-
function _sfc_render$
|
|
6982
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6811
6983
|
const _component_tab_nav = resolveComponent("tab-nav");
|
|
6812
|
-
return openBlock(), createElementBlock("div",
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
class: normalizeClass(
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6984
|
+
return openBlock(), createElementBlock("div", {
|
|
6985
|
+
class: normalizeClass(["dao-tabs", ["dao-tabs--" + _ctx.type, _ctx.direction === "right" ? "dao-tabs--right" : ""]])
|
|
6986
|
+
}, [
|
|
6987
|
+
createElementVNode("div", {
|
|
6988
|
+
class: normalizeClass(["dao-tabs__header", "dao-tabs__header--" + _ctx.type])
|
|
6989
|
+
}, [
|
|
6990
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
6991
|
+
createVNode(_component_tab_nav, {
|
|
6992
|
+
type: _ctx.type,
|
|
6993
|
+
"tab-list": _ctx.tabList,
|
|
6994
|
+
"current-tab": _ctx.modelValue,
|
|
6995
|
+
onUpdateValue: _ctx.updateValue,
|
|
6996
|
+
onClick: _ctx.onClick
|
|
6997
|
+
}, null, 8, ["type", "tab-list", "current-tab", "onUpdateValue", "onClick"])
|
|
6998
|
+
]),
|
|
6999
|
+
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
7000
|
+
renderSlot(_ctx.$slots, "action")
|
|
7001
|
+
])) : createCommentVNode("", true)
|
|
7002
|
+
], 2),
|
|
7003
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
6822
7004
|
renderSlot(_ctx.$slots, "default")
|
|
6823
7005
|
], 512)
|
|
6824
|
-
]);
|
|
7006
|
+
], 2);
|
|
6825
7007
|
}
|
|
6826
|
-
var tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7008
|
+
var tabs = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
6827
7009
|
var tabItem_scss_vue_type_style_index_0_src_lang = "";
|
|
6828
|
-
const _sfc_main = defineComponent({
|
|
7010
|
+
const _sfc_main$4 = defineComponent({
|
|
6829
7011
|
name: "DaoTabItem",
|
|
6830
7012
|
props: {
|
|
6831
7013
|
label: {
|
|
@@ -6855,7 +7037,7 @@ const _sfc_main = defineComponent({
|
|
|
6855
7037
|
};
|
|
6856
7038
|
}
|
|
6857
7039
|
});
|
|
6858
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7040
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6859
7041
|
return openBlock(), createElementBlock("div", {
|
|
6860
7042
|
ref: "tabItem",
|
|
6861
7043
|
class: normalizeClass(["dao-tab-item", {
|
|
@@ -6865,7 +7047,657 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6865
7047
|
renderSlot(_ctx.$slots, "default")
|
|
6866
7048
|
], 2);
|
|
6867
7049
|
}
|
|
6868
|
-
var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
7050
|
+
var tabItem = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
7051
|
+
const placements = [
|
|
7052
|
+
"auto",
|
|
7053
|
+
"auto-start",
|
|
7054
|
+
"auto-end",
|
|
7055
|
+
"top",
|
|
7056
|
+
"top-start",
|
|
7057
|
+
"top-end",
|
|
7058
|
+
"right",
|
|
7059
|
+
"right-start",
|
|
7060
|
+
"right-end",
|
|
7061
|
+
"bottom",
|
|
7062
|
+
"bottom-start",
|
|
7063
|
+
"bottom-end",
|
|
7064
|
+
"left",
|
|
7065
|
+
"left-start",
|
|
7066
|
+
"left-end"
|
|
7067
|
+
];
|
|
7068
|
+
const ellipsisProps = {
|
|
7069
|
+
type: {
|
|
7070
|
+
type: String,
|
|
7071
|
+
default: "tooltip"
|
|
7072
|
+
},
|
|
7073
|
+
manual: {
|
|
7074
|
+
type: Boolean,
|
|
7075
|
+
default: false
|
|
7076
|
+
},
|
|
7077
|
+
force: {
|
|
7078
|
+
type: Boolean,
|
|
7079
|
+
default: false
|
|
7080
|
+
},
|
|
7081
|
+
disabled: {
|
|
7082
|
+
type: Boolean,
|
|
7083
|
+
default: false
|
|
7084
|
+
},
|
|
7085
|
+
content: {
|
|
7086
|
+
type: String,
|
|
7087
|
+
default: ""
|
|
7088
|
+
},
|
|
7089
|
+
width: {
|
|
7090
|
+
type: Number,
|
|
7091
|
+
default: 200
|
|
7092
|
+
},
|
|
7093
|
+
ellipsisPlacement: {
|
|
7094
|
+
type: String,
|
|
7095
|
+
default: "bottom-start",
|
|
7096
|
+
validator: (value) => placements.includes(value)
|
|
7097
|
+
},
|
|
7098
|
+
appendTo: {
|
|
7099
|
+
type: [String, Boolean, Object],
|
|
7100
|
+
default: "root"
|
|
7101
|
+
},
|
|
7102
|
+
popperClass: {
|
|
7103
|
+
type: String,
|
|
7104
|
+
default: ""
|
|
7105
|
+
},
|
|
7106
|
+
offset: {
|
|
7107
|
+
type: [Number, String],
|
|
7108
|
+
default: 10
|
|
7109
|
+
},
|
|
7110
|
+
delay: {
|
|
7111
|
+
type: [Number, Object, String],
|
|
7112
|
+
default: () => ({ show: 0, hide: 100 })
|
|
7113
|
+
}
|
|
7114
|
+
};
|
|
7115
|
+
var ellipsis_vue_vue_type_style_index_0_lang = "";
|
|
7116
|
+
const _sfc_main$3 = defineComponent({
|
|
7117
|
+
name: "DaoEllipsis",
|
|
7118
|
+
components: {
|
|
7119
|
+
Tooltip: _sfc_main$s
|
|
7120
|
+
},
|
|
7121
|
+
props: ellipsisProps,
|
|
7122
|
+
setup(props) {
|
|
7123
|
+
const disabled = ref(true);
|
|
7124
|
+
const tooltipRef = ref();
|
|
7125
|
+
const ComponentType = computed(() => props.type === "tooltip" ? _sfc_main$s : _sfc_main$d);
|
|
7126
|
+
const isOpen = computed(() => {
|
|
7127
|
+
var _a2, _b2, _c, _d;
|
|
7128
|
+
return (_d = (_c = (_b2 = (_a2 = tooltipRef.value) == null ? void 0 : _a2.$) == null ? void 0 : _b2.ctx) == null ? void 0 : _c.isOpen) != null ? _d : false;
|
|
7129
|
+
});
|
|
7130
|
+
const isEllipsis = ref(false);
|
|
7131
|
+
const update = (ele) => {
|
|
7132
|
+
isEllipsis.value = ((ele == null ? void 0 : ele.offsetWidth) || 0) < ((ele == null ? void 0 : ele.scrollWidth) || 0);
|
|
7133
|
+
if (props.disabled) {
|
|
7134
|
+
disabled.value = true;
|
|
7135
|
+
return;
|
|
7136
|
+
}
|
|
7137
|
+
if (props.force) {
|
|
7138
|
+
disabled.value = false;
|
|
7139
|
+
return;
|
|
7140
|
+
}
|
|
7141
|
+
disabled.value = !isEllipsis.value;
|
|
7142
|
+
};
|
|
7143
|
+
function onMouseOver(e) {
|
|
7144
|
+
var _a2;
|
|
7145
|
+
let path = (_a2 = e == null ? void 0 : e.path) != null ? _a2 : [];
|
|
7146
|
+
if (e.composedPath) {
|
|
7147
|
+
path = e.composedPath();
|
|
7148
|
+
}
|
|
7149
|
+
const count = path.length;
|
|
7150
|
+
let index2 = 0;
|
|
7151
|
+
while (index2 < count) {
|
|
7152
|
+
const target = path[index2];
|
|
7153
|
+
if (target.scrollWidth) {
|
|
7154
|
+
update(target);
|
|
7155
|
+
break;
|
|
7156
|
+
}
|
|
7157
|
+
index2 += 1;
|
|
7158
|
+
}
|
|
7159
|
+
}
|
|
7160
|
+
return {
|
|
7161
|
+
ns: "dao-ellipsis",
|
|
7162
|
+
disabled,
|
|
7163
|
+
onMouseOver,
|
|
7164
|
+
tooltipRef,
|
|
7165
|
+
isOpen,
|
|
7166
|
+
isEllipsis,
|
|
7167
|
+
Tooltip: _sfc_main$s,
|
|
7168
|
+
ComponentType
|
|
7169
|
+
};
|
|
7170
|
+
}
|
|
7171
|
+
});
|
|
7172
|
+
const _hoisted_1$3 = { key: 1 };
|
|
7173
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7174
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.ComponentType), {
|
|
7175
|
+
ref: "ComponentRef",
|
|
7176
|
+
disabled: _ctx.disabled,
|
|
7177
|
+
"visible-arrow": false,
|
|
7178
|
+
placement: _ctx.ellipsisPlacement,
|
|
7179
|
+
offset: _ctx.offset,
|
|
7180
|
+
class: normalizeClass({ ns: _ctx.ns, [`${_ctx.ns}--auto-mode`]: !_ctx.manual }),
|
|
7181
|
+
"append-to": _ctx.appendTo,
|
|
7182
|
+
delay: _ctx.delay,
|
|
7183
|
+
"popper-class": [`${_ctx.ns}-popper`, _ctx.popperClass].join(" "),
|
|
7184
|
+
width: _ctx.width
|
|
7185
|
+
}, createSlots({
|
|
7186
|
+
default: withCtx(() => [
|
|
7187
|
+
createElementVNode("span", {
|
|
7188
|
+
class: normalizeClass([_ctx.ns + "__target", { "is-disabled": _ctx.disabled }]),
|
|
7189
|
+
onMouseover: _cache[0] || (_cache[0] = (...args) => _ctx.onMouseOver && _ctx.onMouseOver(...args))
|
|
7190
|
+
}, [
|
|
7191
|
+
renderSlot(_ctx.$slots, "default")
|
|
7192
|
+
], 34)
|
|
7193
|
+
]),
|
|
7194
|
+
_: 2
|
|
7195
|
+
}, [
|
|
7196
|
+
!_ctx.disabled ? {
|
|
7197
|
+
name: "content",
|
|
7198
|
+
fn: withCtx(() => [
|
|
7199
|
+
_ctx.$slots.content ? renderSlot(_ctx.$slots, "content", {
|
|
7200
|
+
key: 0,
|
|
7201
|
+
show: _ctx.isOpen,
|
|
7202
|
+
ellipsis: _ctx.isEllipsis
|
|
7203
|
+
}) : _ctx.content ? (openBlock(), createElementBlock("span", _hoisted_1$3, toDisplayString(_ctx.content), 1)) : renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
7204
|
+
])
|
|
7205
|
+
} : void 0
|
|
7206
|
+
]), 1032, ["disabled", "placement", "offset", "class", "append-to", "delay", "popper-class", "width"]);
|
|
7207
|
+
}
|
|
7208
|
+
var DaoEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
7209
|
+
const transferProps = {
|
|
7210
|
+
source: {
|
|
7211
|
+
type: Array,
|
|
7212
|
+
default: () => []
|
|
7213
|
+
},
|
|
7214
|
+
modelValue: {
|
|
7215
|
+
type: Array,
|
|
7216
|
+
default: () => []
|
|
7217
|
+
},
|
|
7218
|
+
disabledKeys: {
|
|
7219
|
+
type: Array,
|
|
7220
|
+
default: () => []
|
|
7221
|
+
},
|
|
7222
|
+
filterable: {
|
|
7223
|
+
type: Array,
|
|
7224
|
+
default: () => [false, false]
|
|
7225
|
+
},
|
|
7226
|
+
filterMethod: {
|
|
7227
|
+
type: Array,
|
|
7228
|
+
default: () => []
|
|
7229
|
+
},
|
|
7230
|
+
filterPlaceholder: {
|
|
7231
|
+
type: Array,
|
|
7232
|
+
default: () => []
|
|
7233
|
+
},
|
|
7234
|
+
hideDesc: {
|
|
7235
|
+
type: Boolean,
|
|
7236
|
+
default: false
|
|
7237
|
+
},
|
|
7238
|
+
props: {
|
|
7239
|
+
type: Object,
|
|
7240
|
+
default: () => ({})
|
|
7241
|
+
}
|
|
7242
|
+
};
|
|
7243
|
+
const panelType = ["source", "target"];
|
|
7244
|
+
const transferPanelProp = {
|
|
7245
|
+
type: {
|
|
7246
|
+
type: String,
|
|
7247
|
+
default: panelType[0]
|
|
7248
|
+
},
|
|
7249
|
+
data: {
|
|
7250
|
+
type: Array,
|
|
7251
|
+
default: () => []
|
|
7252
|
+
},
|
|
7253
|
+
checkedKeys: {
|
|
7254
|
+
type: Array,
|
|
7255
|
+
default: () => []
|
|
7256
|
+
},
|
|
7257
|
+
disabledKeys: transferProps.disabledKeys,
|
|
7258
|
+
filterable: {
|
|
7259
|
+
type: Boolean,
|
|
7260
|
+
default: false
|
|
7261
|
+
},
|
|
7262
|
+
filterMethod: {
|
|
7263
|
+
type: Function
|
|
7264
|
+
},
|
|
7265
|
+
filterPlaceholder: {
|
|
7266
|
+
type: String
|
|
7267
|
+
},
|
|
7268
|
+
hideDesc: transferProps.hideDesc,
|
|
7269
|
+
props: transferProps.props
|
|
7270
|
+
};
|
|
7271
|
+
var link_vue_vue_type_style_index_0_lang = "";
|
|
7272
|
+
const _sfc_main$2 = defineComponent({
|
|
7273
|
+
name: "Link",
|
|
7274
|
+
components: {
|
|
7275
|
+
DaoIcon
|
|
7276
|
+
},
|
|
7277
|
+
props: {
|
|
7278
|
+
type: {
|
|
7279
|
+
type: String,
|
|
7280
|
+
default: "default"
|
|
7281
|
+
},
|
|
7282
|
+
disabled: {
|
|
7283
|
+
type: Boolean,
|
|
7284
|
+
default: false
|
|
7285
|
+
},
|
|
7286
|
+
icon: {
|
|
7287
|
+
type: String,
|
|
7288
|
+
default: void 0
|
|
7289
|
+
}
|
|
7290
|
+
},
|
|
7291
|
+
emits: {
|
|
7292
|
+
click: (evt) => evt instanceof MouseEvent
|
|
7293
|
+
},
|
|
7294
|
+
setup(props, { emit }) {
|
|
7295
|
+
function handleClick(event) {
|
|
7296
|
+
if (!props.disabled) {
|
|
7297
|
+
emit("click", event);
|
|
7298
|
+
}
|
|
7299
|
+
}
|
|
7300
|
+
return {
|
|
7301
|
+
handleClick
|
|
7302
|
+
};
|
|
7303
|
+
}
|
|
7304
|
+
});
|
|
7305
|
+
const _hoisted_1$2 = {
|
|
7306
|
+
key: 1,
|
|
7307
|
+
class: "dao-link__inner"
|
|
7308
|
+
};
|
|
7309
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7310
|
+
const _component_dao_icon = resolveComponent("dao-icon");
|
|
7311
|
+
return openBlock(), createElementBlock("span", {
|
|
7312
|
+
class: normalizeClass(["dao-link", `dao-link--${_ctx.type}`, _ctx.disabled && "is-disabled"]),
|
|
7313
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
7314
|
+
}, [
|
|
7315
|
+
_ctx.icon ? (openBlock(), createBlock(_component_dao_icon, {
|
|
7316
|
+
key: 0,
|
|
7317
|
+
"use-font": "",
|
|
7318
|
+
class: "dao-action-icon__svg",
|
|
7319
|
+
name: _ctx.icon
|
|
7320
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
7321
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$2, [
|
|
7322
|
+
renderSlot(_ctx.$slots, "default")
|
|
7323
|
+
])) : createCommentVNode("", true)
|
|
7324
|
+
], 2);
|
|
7325
|
+
}
|
|
7326
|
+
var DaoLink = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
7327
|
+
const _sfc_main$1 = defineComponent({
|
|
7328
|
+
name: "DaoTransferPanel",
|
|
7329
|
+
components: {
|
|
7330
|
+
DaoCheckbox,
|
|
7331
|
+
DaoInput,
|
|
7332
|
+
DaoActionIcon,
|
|
7333
|
+
DaoLink,
|
|
7334
|
+
DaoEllipsis
|
|
7335
|
+
},
|
|
7336
|
+
props: transferPanelProp,
|
|
7337
|
+
emits: ["selectedChange", "refresh"],
|
|
7338
|
+
setup(props, { slots, emit }) {
|
|
7339
|
+
const query = ref("");
|
|
7340
|
+
const labelProp = computed(() => props.props.label || "label");
|
|
7341
|
+
const keyProp = computed(() => props.props.key || "key");
|
|
7342
|
+
const descProp = computed(() => props.props.desc || "desc");
|
|
7343
|
+
const isSource = computed(() => props.type === "source");
|
|
7344
|
+
const filteredData = computed(() => props.data.filter((item) => {
|
|
7345
|
+
if (!props.filterable) {
|
|
7346
|
+
return true;
|
|
7347
|
+
}
|
|
7348
|
+
if (typeof props.filterMethod === "function") {
|
|
7349
|
+
return props.filterMethod(query.value, item);
|
|
7350
|
+
}
|
|
7351
|
+
const label = item[labelProp.value] || item[keyProp.value];
|
|
7352
|
+
return String(label).toLowerCase().includes(query.value.toLowerCase());
|
|
7353
|
+
}));
|
|
7354
|
+
const hasNoMatch = computed(() => query.value.length > 0 && filteredData.value.length === 0);
|
|
7355
|
+
const isEmpty = computed(() => hasNoMatch.value || props.data.length === 0);
|
|
7356
|
+
const hasFooter = computed(() => {
|
|
7357
|
+
var _a2;
|
|
7358
|
+
return !!((_a2 = slots.footer) == null ? void 0 : _a2.call(slots));
|
|
7359
|
+
});
|
|
7360
|
+
function handleEvent(action, row) {
|
|
7361
|
+
let direction = "";
|
|
7362
|
+
const key = row[keyProp.value];
|
|
7363
|
+
const isDisabled = (props.disabledKeys || []).includes(key);
|
|
7364
|
+
const isChecked = (props.checkedKeys || []).includes(key);
|
|
7365
|
+
switch (action) {
|
|
7366
|
+
case "remove":
|
|
7367
|
+
direction = "left";
|
|
7368
|
+
break;
|
|
7369
|
+
case "check":
|
|
7370
|
+
direction = isChecked ? "left" : "right";
|
|
7371
|
+
break;
|
|
7372
|
+
}
|
|
7373
|
+
if (!isDisabled) {
|
|
7374
|
+
emit("selectedChange", { direction, row });
|
|
7375
|
+
}
|
|
7376
|
+
}
|
|
7377
|
+
return {
|
|
7378
|
+
ns: "dao-transfer-panel",
|
|
7379
|
+
query,
|
|
7380
|
+
labelProp,
|
|
7381
|
+
keyProp,
|
|
7382
|
+
descProp,
|
|
7383
|
+
filteredData,
|
|
7384
|
+
isSource,
|
|
7385
|
+
isEmpty,
|
|
7386
|
+
hasFooter,
|
|
7387
|
+
handleEvent
|
|
7388
|
+
};
|
|
7389
|
+
}
|
|
7390
|
+
});
|
|
7391
|
+
const _hoisted_1$1 = ["onClick"];
|
|
7392
|
+
const _hoisted_2$1 = /* @__PURE__ */ createTextVNode(" empty ");
|
|
7393
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7394
|
+
const _component_dao_input = resolveComponent("dao-input");
|
|
7395
|
+
const _component_dao_action_icon = resolveComponent("dao-action-icon");
|
|
7396
|
+
const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
|
|
7397
|
+
const _component_dao_checkbox = resolveComponent("dao-checkbox");
|
|
7398
|
+
const _component_dao_link = resolveComponent("dao-link");
|
|
7399
|
+
return openBlock(), createElementBlock("div", {
|
|
7400
|
+
class: normalizeClass([_ctx.ns, `${_ctx.ns}--${_ctx.type}`, _ctx.hideDesc && `${_ctx.ns}--desc-hide`])
|
|
7401
|
+
}, [
|
|
7402
|
+
createElementVNode("div", {
|
|
7403
|
+
class: normalizeClass(`${_ctx.ns}__header`)
|
|
7404
|
+
}, [
|
|
7405
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
7406
|
+
createElementVNode("div", {
|
|
7407
|
+
class: normalizeClass(`${_ctx.ns}__header-left`)
|
|
7408
|
+
}, [
|
|
7409
|
+
renderSlot(_ctx.$slots, "header-left")
|
|
7410
|
+
], 2),
|
|
7411
|
+
createElementVNode("div", {
|
|
7412
|
+
class: normalizeClass(`${_ctx.ns}__header-right`)
|
|
7413
|
+
}, [
|
|
7414
|
+
renderSlot(_ctx.$slots, "header-right")
|
|
7415
|
+
], 2)
|
|
7416
|
+
])
|
|
7417
|
+
], 2),
|
|
7418
|
+
createElementVNode("div", {
|
|
7419
|
+
class: normalizeClass(`${_ctx.ns}__toolbar`)
|
|
7420
|
+
}, [
|
|
7421
|
+
createElementVNode("div", {
|
|
7422
|
+
class: normalizeClass(`${_ctx.ns}__toolbar-left`)
|
|
7423
|
+
}, [
|
|
7424
|
+
_ctx.filterable ? (openBlock(), createBlock(_component_dao_input, {
|
|
7425
|
+
key: 0,
|
|
7426
|
+
modelValue: _ctx.query,
|
|
7427
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.query = $event),
|
|
7428
|
+
block: "",
|
|
7429
|
+
type: "search",
|
|
7430
|
+
placeholder: _ctx.filterPlaceholder,
|
|
7431
|
+
class: normalizeClass(`${_ctx.ns}__toolbar__search`)
|
|
7432
|
+
}, null, 8, ["modelValue", "placeholder", "class"])) : createCommentVNode("", true)
|
|
7433
|
+
], 2),
|
|
7434
|
+
_ctx.isSource ? (openBlock(), createElementBlock("div", {
|
|
7435
|
+
key: 0,
|
|
7436
|
+
class: normalizeClass(`${_ctx.ns}__toolbar-right`)
|
|
7437
|
+
}, [
|
|
7438
|
+
createVNode(_component_dao_action_icon, {
|
|
7439
|
+
name: "icon-refresh",
|
|
7440
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("refresh"))
|
|
7441
|
+
})
|
|
7442
|
+
], 2)) : createCommentVNode("", true)
|
|
7443
|
+
], 2),
|
|
7444
|
+
createElementVNode("div", {
|
|
7445
|
+
class: normalizeClass([`${_ctx.ns}__body`, _ctx.hasFooter && "is-with-footer"])
|
|
7446
|
+
}, [
|
|
7447
|
+
withDirectives(createElementVNode("div", {
|
|
7448
|
+
class: normalizeClass([`${_ctx.ns}__list`, _ctx.filterable && "is-filterable"])
|
|
7449
|
+
}, [
|
|
7450
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filteredData, (item) => {
|
|
7451
|
+
return openBlock(), createElementBlock("div", {
|
|
7452
|
+
key: _ctx.type + item[_ctx.keyProp],
|
|
7453
|
+
class: normalizeClass(`${_ctx.ns}__item`)
|
|
7454
|
+
}, [
|
|
7455
|
+
createVNode(_component_dao_checkbox, {
|
|
7456
|
+
id: _ctx.type + item[_ctx.keyProp],
|
|
7457
|
+
class: normalizeClass(_ctx.ns + "__content"),
|
|
7458
|
+
type: "checkbox",
|
|
7459
|
+
checked: _ctx.checkedKeys.includes(item[_ctx.keyProp]),
|
|
7460
|
+
disabled: _ctx.disabledKeys.includes(item[_ctx.keyProp]),
|
|
7461
|
+
onChange: ($event) => _ctx.handleEvent("check", item)
|
|
7462
|
+
}, createSlots({
|
|
7463
|
+
default: withCtx(() => [
|
|
7464
|
+
createVNode(_component_dao_ellipsis, null, {
|
|
7465
|
+
default: withCtx(() => [
|
|
7466
|
+
renderSlot(_ctx.$slots, "item", {
|
|
7467
|
+
row: item,
|
|
7468
|
+
role: _ctx.type
|
|
7469
|
+
}, () => [
|
|
7470
|
+
createTextVNode(toDisplayString(String(item[_ctx.labelProp])), 1)
|
|
7471
|
+
])
|
|
7472
|
+
]),
|
|
7473
|
+
_: 2
|
|
7474
|
+
}, 1024)
|
|
7475
|
+
]),
|
|
7476
|
+
_: 2
|
|
7477
|
+
}, [
|
|
7478
|
+
!_ctx.hideDesc && !_ctx.$slots.item ? {
|
|
7479
|
+
name: "helper",
|
|
7480
|
+
fn: withCtx(() => [
|
|
7481
|
+
createVNode(_component_dao_ellipsis, null, {
|
|
7482
|
+
default: withCtx(() => [
|
|
7483
|
+
createTextVNode(toDisplayString(String(item[_ctx.descProp])), 1)
|
|
7484
|
+
]),
|
|
7485
|
+
_: 2
|
|
7486
|
+
}, 1024)
|
|
7487
|
+
])
|
|
7488
|
+
} : void 0
|
|
7489
|
+
]), 1032, ["id", "class", "checked", "disabled", "onChange"]),
|
|
7490
|
+
!_ctx.isSource && !_ctx.disabledKeys.includes(item[_ctx.keyProp]) ? (openBlock(), createElementBlock("div", {
|
|
7491
|
+
key: 0,
|
|
7492
|
+
onClick: ($event) => _ctx.handleEvent("remove", item)
|
|
7493
|
+
}, [
|
|
7494
|
+
createVNode(_component_dao_link, {
|
|
7495
|
+
style: { fontSize: "16px" },
|
|
7496
|
+
icon: "icon-sys-error"
|
|
7497
|
+
})
|
|
7498
|
+
], 8, _hoisted_1$1)) : createCommentVNode("", true)
|
|
7499
|
+
], 2);
|
|
7500
|
+
}), 128))
|
|
7501
|
+
], 2), [
|
|
7502
|
+
[vShow, !_ctx.isEmpty]
|
|
7503
|
+
]),
|
|
7504
|
+
withDirectives(createElementVNode("div", {
|
|
7505
|
+
class: normalizeClass(`${_ctx.ns}__empty`)
|
|
7506
|
+
}, [
|
|
7507
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
7508
|
+
_hoisted_2$1
|
|
7509
|
+
])
|
|
7510
|
+
], 2), [
|
|
7511
|
+
[vShow, _ctx.isEmpty]
|
|
7512
|
+
])
|
|
7513
|
+
], 2),
|
|
7514
|
+
_ctx.hasFooter ? (openBlock(), createElementBlock("p", {
|
|
7515
|
+
key: 0,
|
|
7516
|
+
class: normalizeClass(`${_ctx.ns}__footer`)
|
|
7517
|
+
}, [
|
|
7518
|
+
renderSlot(_ctx.$slots, "footer")
|
|
7519
|
+
], 2)) : createCommentVNode("", true)
|
|
7520
|
+
], 2);
|
|
7521
|
+
}
|
|
7522
|
+
var transferPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
7523
|
+
var transfer_scss_vue_type_style_index_0_src_lang = "";
|
|
7524
|
+
const _sfc_main = defineComponent({
|
|
7525
|
+
name: "DaoTransfer",
|
|
7526
|
+
components: {
|
|
7527
|
+
transferPanel,
|
|
7528
|
+
DaoLink
|
|
7529
|
+
},
|
|
7530
|
+
props: transferProps,
|
|
7531
|
+
emits: ["update:modelValue", "add", "clear", "change", "refresh"],
|
|
7532
|
+
setup(props, { emit }) {
|
|
7533
|
+
const keyProp = computed(() => props.props.key || "key");
|
|
7534
|
+
const sourceData = computed(() => props.source || []);
|
|
7535
|
+
const selectedKeys = useVModel(props, "modelValue", emit, {
|
|
7536
|
+
passive: true
|
|
7537
|
+
});
|
|
7538
|
+
const targetData = computed(() => sourceData.value.filter((item) => selectedKeys.value.includes(item == null ? void 0 : item[keyProp.value])));
|
|
7539
|
+
const onAdd = () => {
|
|
7540
|
+
emit("add");
|
|
7541
|
+
};
|
|
7542
|
+
const onChange = ({
|
|
7543
|
+
direction,
|
|
7544
|
+
row
|
|
7545
|
+
}) => {
|
|
7546
|
+
const key = row[keyProp.value];
|
|
7547
|
+
const index2 = selectedKeys.value.indexOf(key);
|
|
7548
|
+
switch (direction) {
|
|
7549
|
+
case "left":
|
|
7550
|
+
if (index2 > -1) {
|
|
7551
|
+
selectedKeys.value.splice(index2, 1);
|
|
7552
|
+
}
|
|
7553
|
+
break;
|
|
7554
|
+
case "right":
|
|
7555
|
+
index2 > -1 || selectedKeys.value.push(key);
|
|
7556
|
+
break;
|
|
7557
|
+
default:
|
|
7558
|
+
console.warn(`${direction} callback is not defined`);
|
|
7559
|
+
break;
|
|
7560
|
+
}
|
|
7561
|
+
emit("change", { direction, rows: [row] });
|
|
7562
|
+
};
|
|
7563
|
+
const onClear = () => {
|
|
7564
|
+
const disabledKeys = props.disabledKeys || [];
|
|
7565
|
+
if (disabledKeys.length) {
|
|
7566
|
+
selectedKeys.value = selectedKeys.value.filter((key) => disabledKeys.includes(key));
|
|
7567
|
+
} else {
|
|
7568
|
+
selectedKeys.value = [];
|
|
7569
|
+
}
|
|
7570
|
+
emit("clear", selectedKeys.value);
|
|
7571
|
+
};
|
|
7572
|
+
return {
|
|
7573
|
+
sourceData,
|
|
7574
|
+
targetData,
|
|
7575
|
+
selectedKeys,
|
|
7576
|
+
onAdd,
|
|
7577
|
+
onChange,
|
|
7578
|
+
onClear
|
|
7579
|
+
};
|
|
7580
|
+
}
|
|
7581
|
+
});
|
|
7582
|
+
const _hoisted_1 = { class: "dao-transfer" };
|
|
7583
|
+
const _hoisted_2 = /* @__PURE__ */ createTextVNode(" + \u6DFB\u52A0 ");
|
|
7584
|
+
const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u6E05\u7A7A ");
|
|
7585
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7586
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h;
|
|
7587
|
+
const _component_dao_link = resolveComponent("dao-link");
|
|
7588
|
+
const _component_transfer_panel = resolveComponent("transfer-panel");
|
|
7589
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
7590
|
+
createVNode(_component_transfer_panel, {
|
|
7591
|
+
ref: "leftPanel",
|
|
7592
|
+
type: "source",
|
|
7593
|
+
"hide-desc": _ctx.hideDesc,
|
|
7594
|
+
data: _ctx.sourceData,
|
|
7595
|
+
"checked-keys": _ctx.selectedKeys,
|
|
7596
|
+
filterable: (_a2 = _ctx.filterable) == null ? void 0 : _a2[0],
|
|
7597
|
+
"filter-method": (_b2 = _ctx.filterMethod) == null ? void 0 : _b2[0],
|
|
7598
|
+
"filter-placeholder": (_c = _ctx.filterPlaceholder) == null ? void 0 : _c[0],
|
|
7599
|
+
"disabled-keys": _ctx.disabledKeys,
|
|
7600
|
+
props: _ctx.props,
|
|
7601
|
+
onSelectedChange: _ctx.onChange,
|
|
7602
|
+
onRefresh: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refresh"))
|
|
7603
|
+
}, createSlots({
|
|
7604
|
+
header: withCtx(() => [
|
|
7605
|
+
renderSlot(_ctx.$slots, "left-header")
|
|
7606
|
+
]),
|
|
7607
|
+
"header-left": withCtx(() => [
|
|
7608
|
+
renderSlot(_ctx.$slots, "left-header-left")
|
|
7609
|
+
]),
|
|
7610
|
+
"header-right": withCtx(() => [
|
|
7611
|
+
renderSlot(_ctx.$slots, "left-header-right", {}, () => [
|
|
7612
|
+
createVNode(_component_dao_link, {
|
|
7613
|
+
type: "primary",
|
|
7614
|
+
class: "dao-transfer__add",
|
|
7615
|
+
onClick: _ctx.onAdd
|
|
7616
|
+
}, {
|
|
7617
|
+
default: withCtx(() => [
|
|
7618
|
+
renderSlot(_ctx.$slots, "add", {}, () => [
|
|
7619
|
+
_hoisted_2
|
|
7620
|
+
])
|
|
7621
|
+
]),
|
|
7622
|
+
_: 3
|
|
7623
|
+
}, 8, ["onClick"])
|
|
7624
|
+
])
|
|
7625
|
+
]),
|
|
7626
|
+
_: 2
|
|
7627
|
+
}, [
|
|
7628
|
+
_ctx.$slots.item ? {
|
|
7629
|
+
name: "item",
|
|
7630
|
+
fn: withCtx(({ row, role }) => [
|
|
7631
|
+
renderSlot(_ctx.$slots, "item", {
|
|
7632
|
+
row,
|
|
7633
|
+
role
|
|
7634
|
+
})
|
|
7635
|
+
])
|
|
7636
|
+
} : void 0,
|
|
7637
|
+
((_d = _ctx.$slots) == null ? void 0 : _d["left-footer"]) ? {
|
|
7638
|
+
name: "footer",
|
|
7639
|
+
fn: withCtx(() => [
|
|
7640
|
+
renderSlot(_ctx.$slots, "left-footer")
|
|
7641
|
+
])
|
|
7642
|
+
} : void 0
|
|
7643
|
+
]), 1032, ["hide-desc", "data", "checked-keys", "filterable", "filter-method", "filter-placeholder", "disabled-keys", "props", "onSelectedChange"]),
|
|
7644
|
+
createVNode(_component_transfer_panel, {
|
|
7645
|
+
ref: "rightPanel",
|
|
7646
|
+
type: "target",
|
|
7647
|
+
"hide-desc": _ctx.hideDesc,
|
|
7648
|
+
data: _ctx.targetData,
|
|
7649
|
+
filterable: (_e = _ctx.filterable) == null ? void 0 : _e[1],
|
|
7650
|
+
"filter-method": (_f = _ctx.filterMethod) == null ? void 0 : _f[1],
|
|
7651
|
+
"filter-placeholder": (_g = _ctx.filterPlaceholder) == null ? void 0 : _g[1],
|
|
7652
|
+
"disabled-keys": _ctx.disabledKeys,
|
|
7653
|
+
props: _ctx.props,
|
|
7654
|
+
onSelectedChange: _ctx.onChange
|
|
7655
|
+
}, createSlots({
|
|
7656
|
+
header: withCtx(() => [
|
|
7657
|
+
renderSlot(_ctx.$slots, "right-header")
|
|
7658
|
+
]),
|
|
7659
|
+
"header-left": withCtx(() => [
|
|
7660
|
+
renderSlot(_ctx.$slots, "right-header-left")
|
|
7661
|
+
]),
|
|
7662
|
+
"header-right": withCtx(() => [
|
|
7663
|
+
renderSlot(_ctx.$slots, "right-header-right", {}, () => [
|
|
7664
|
+
renderSlot(_ctx.$slots, "header-right", {}, () => [
|
|
7665
|
+
createVNode(_component_dao_link, {
|
|
7666
|
+
class: "dao-transfer__clear",
|
|
7667
|
+
type: "primary",
|
|
7668
|
+
onClick: _ctx.onClear
|
|
7669
|
+
}, {
|
|
7670
|
+
default: withCtx(() => [
|
|
7671
|
+
renderSlot(_ctx.$slots, "clear", {}, () => [
|
|
7672
|
+
_hoisted_3
|
|
7673
|
+
])
|
|
7674
|
+
]),
|
|
7675
|
+
_: 3
|
|
7676
|
+
}, 8, ["onClick"])
|
|
7677
|
+
])
|
|
7678
|
+
])
|
|
7679
|
+
]),
|
|
7680
|
+
_: 2
|
|
7681
|
+
}, [
|
|
7682
|
+
_ctx.$slots.item ? {
|
|
7683
|
+
name: "item",
|
|
7684
|
+
fn: withCtx(({ row, role }) => [
|
|
7685
|
+
renderSlot(_ctx.$slots, "item", {
|
|
7686
|
+
row,
|
|
7687
|
+
role
|
|
7688
|
+
})
|
|
7689
|
+
])
|
|
7690
|
+
} : void 0,
|
|
7691
|
+
((_h = _ctx.$slots) == null ? void 0 : _h["right-footer"]) ? {
|
|
7692
|
+
name: "footer",
|
|
7693
|
+
fn: withCtx(() => [
|
|
7694
|
+
renderSlot(_ctx.$slots, "right-footer")
|
|
7695
|
+
])
|
|
7696
|
+
} : void 0
|
|
7697
|
+
]), 1032, ["hide-desc", "data", "filterable", "filter-method", "filter-placeholder", "disabled-keys", "props", "onSelectedChange"])
|
|
7698
|
+
]);
|
|
7699
|
+
}
|
|
7700
|
+
var transfer = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
6869
7701
|
var components = /* @__PURE__ */ Object.freeze({
|
|
6870
7702
|
__proto__: null,
|
|
6871
7703
|
[Symbol.toStringTag]: "Module",
|
|
@@ -6880,7 +7712,7 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
6880
7712
|
DialogFooter,
|
|
6881
7713
|
DialogHeader,
|
|
6882
7714
|
Drawer: drawer,
|
|
6883
|
-
Dropdown:
|
|
7715
|
+
Dropdown: DaoDropdown,
|
|
6884
7716
|
DropdownMenu: dropdownMenu,
|
|
6885
7717
|
DropdownItem: dropdownItem,
|
|
6886
7718
|
Expansion: expansion,
|
|
@@ -6892,14 +7724,14 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
6892
7724
|
Breadcrumb: breadcrumb,
|
|
6893
7725
|
BreadcrumbItem: DaoBreadcrumbItem,
|
|
6894
7726
|
Icon: DaoIcon,
|
|
6895
|
-
Input:
|
|
7727
|
+
Input: DaoInput,
|
|
6896
7728
|
Message: message,
|
|
6897
7729
|
Nav: nav,
|
|
6898
7730
|
NavHead: navHead,
|
|
6899
7731
|
NavItem: navItem,
|
|
6900
7732
|
NavSub: navSub,
|
|
6901
7733
|
Pagination: DaoPagination,
|
|
6902
|
-
Popover: _sfc_main$
|
|
7734
|
+
Popover: _sfc_main$d,
|
|
6903
7735
|
Popper,
|
|
6904
7736
|
Progress: progress,
|
|
6905
7737
|
Radio: radio,
|
|
@@ -6909,12 +7741,13 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
6909
7741
|
Switch: _switch,
|
|
6910
7742
|
Table: table,
|
|
6911
7743
|
Tabs: tabs,
|
|
6912
|
-
TabNav: _sfc_main$
|
|
7744
|
+
TabNav: _sfc_main$6,
|
|
6913
7745
|
TabItem: tabItem,
|
|
6914
|
-
Tooltip: _sfc_main$
|
|
7746
|
+
Tooltip: _sfc_main$s,
|
|
7747
|
+
DaoEllipsis,
|
|
7748
|
+
Transfer: transfer,
|
|
7749
|
+
TransferPanel: transferPanel
|
|
6915
7750
|
});
|
|
6916
|
-
var common = "";
|
|
6917
|
-
var alias = "";
|
|
6918
7751
|
const plugin = (app) => {
|
|
6919
7752
|
Object.values(components).forEach((c) => {
|
|
6920
7753
|
app.component(c.name, c);
|
|
@@ -6926,4 +7759,4 @@ const install = (Vue) => {
|
|
|
6926
7759
|
var index = {
|
|
6927
7760
|
install
|
|
6928
7761
|
};
|
|
6929
|
-
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,
|
|
7762
|
+
export { DaoActionIcon as ActionIcon, breadcrumb as Breadcrumb, DaoBreadcrumbItem as BreadcrumbItem, DaoButton as Button, buttonGroup as ButtonGroup, card as Card, cardItem as CardItem, DaoCheckbox as Checkbox, checkboxGroup as CheckboxGroup, DaoEllipsis, dialog as Dialog, DialogFooter, DialogHeader, drawer as Drawer, DaoDropdown as Dropdown, dropdownItem as DropdownItem, dropdownMenu as DropdownMenu, expansion as Expansion, expansionItem as ExpansionItem, form as Form, formGroup as FormGroup, formItem as FormItem, header as Header, DaoIcon as Icon, DaoInput as Input, message as Message, nav as Nav, navHead as NavHead, navItem as NavItem, navSub as NavSub, DaoOption as Option, DaoPagination as Pagination, _sfc_main$d as Popover, Popper, progress as Progress, radio as Radio, radioGroup as RadioGroup, DaoSelect as Select, _switch as Switch, tabItem as TabItem, _sfc_main$6 as TabNav, table as Table, tabs as Tabs, _sfc_main$s as Tooltip, transfer as Transfer, transferPanel as TransferPanel, index as default };
|