@dao-style/core 0.4.1 → 0.5.0
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/form/error-text.vue.d.ts +13 -0
- package/dist/components/form/form-item.vue.d.ts +6 -6
- package/dist/components/form/form.vue.d.ts +1 -1
- package/dist/components/form/helper-text.vue.d.ts +13 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/type.d.ts +28 -1
- package/dist/components/input/input.vue.d.ts +6 -5
- package/dist/components/input/props.d.ts +2 -1
- package/dist/components/message/message.vue.d.ts +1 -1
- package/dist/dao-style.es.js +209 -161
- package/dist/dao-style.umd.js +1 -1
- package/dist/font/DaoCloudIconFont/DaoCloudIconFont.woff2 +0 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/volar.d.ts +2 -0
package/dist/dao-style.es.js
CHANGED
|
@@ -28,7 +28,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
28
28
|
}
|
|
29
29
|
return sfc;
|
|
30
30
|
};
|
|
31
|
-
const _sfc_main$
|
|
31
|
+
const _sfc_main$T = defineComponent({
|
|
32
32
|
name: "DaoActionIcon",
|
|
33
33
|
props: {
|
|
34
34
|
name: {
|
|
@@ -61,8 +61,8 @@ const _sfc_main$R = defineComponent({
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
const _hoisted_1$
|
|
65
|
-
function _sfc_render$
|
|
64
|
+
const _hoisted_1$D = ["disabled"];
|
|
65
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
66
|
return openBlock(), createElementBlock("button", {
|
|
67
67
|
class: normalizeClass([
|
|
68
68
|
"dao-action-icon",
|
|
@@ -78,9 +78,9 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78
78
|
class: normalizeClass(["dao-action-icon__iconfont", _ctx.name])
|
|
79
79
|
}, null, 2)) : createCommentVNode("", true)
|
|
80
80
|
])
|
|
81
|
-
], 10, _hoisted_1$
|
|
81
|
+
], 10, _hoisted_1$D);
|
|
82
82
|
}
|
|
83
|
-
var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
83
|
+
var DaoActionIcon = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$P]]);
|
|
84
84
|
const BUTTON_TYPES = ["primary", "secondary", "tertiary", "ghost", "danger"];
|
|
85
85
|
var buttonProps = {
|
|
86
86
|
type: {
|
|
@@ -119,7 +119,7 @@ var buttonProps = {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
var icon_scss_vue_type_style_index_0_src_lang = "";
|
|
122
|
-
const _sfc_main$
|
|
122
|
+
const _sfc_main$S = defineComponent({
|
|
123
123
|
name: "DaoIcon",
|
|
124
124
|
props: {
|
|
125
125
|
name: {
|
|
@@ -132,28 +132,28 @@ const _sfc_main$Q = defineComponent({
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
-
const _hoisted_1$
|
|
135
|
+
const _hoisted_1$C = {
|
|
136
136
|
key: 1,
|
|
137
137
|
class: "dao-icon dao-svg-icon"
|
|
138
138
|
};
|
|
139
139
|
const _hoisted_2$q = ["xlink:href"];
|
|
140
|
-
function _sfc_render$
|
|
140
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
141
141
|
return _ctx.useFont ? (openBlock(), createElementBlock("i", {
|
|
142
142
|
key: 0,
|
|
143
143
|
class: normalizeClass(["dao-icon dao-iconfont", _ctx.name])
|
|
144
|
-
}, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$
|
|
144
|
+
}, null, 2)) : (openBlock(), createElementBlock("svg", _hoisted_1$C, [
|
|
145
145
|
createElementVNode("use", {
|
|
146
146
|
"xlink:href": `#${_ctx.name}`
|
|
147
147
|
}, null, 8, _hoisted_2$q)
|
|
148
148
|
]));
|
|
149
149
|
}
|
|
150
|
-
var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
150
|
+
var DaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$O]]);
|
|
151
151
|
var button_vue_vue_type_style_index_0_lang = "";
|
|
152
152
|
const NO_ICON = Symbol(0);
|
|
153
153
|
const RIGHT_ICON = Symbol(1);
|
|
154
154
|
const LEFT_ICON = Symbol(2);
|
|
155
155
|
const BOTH_ICON = Symbol(3);
|
|
156
|
-
const _sfc_main$
|
|
156
|
+
const _sfc_main$R = defineComponent({
|
|
157
157
|
name: "DaoButton",
|
|
158
158
|
components: {
|
|
159
159
|
DaoIcon
|
|
@@ -244,12 +244,12 @@ const _sfc_main$P = defineComponent({
|
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
const _hoisted_1$
|
|
247
|
+
const _hoisted_1$B = ["disabled"];
|
|
248
248
|
const _hoisted_2$p = {
|
|
249
249
|
key: 1,
|
|
250
250
|
class: "dao-btn__text"
|
|
251
251
|
};
|
|
252
|
-
function _sfc_render$
|
|
252
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
253
253
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
254
254
|
return openBlock(), createElementBlock("button", {
|
|
255
255
|
class: normalizeClass(_ctx.classList),
|
|
@@ -273,9 +273,9 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
273
273
|
name: _ctx.realIconRight
|
|
274
274
|
}, null, 8, ["class", "use-font", "name"])) : createCommentVNode("", true)
|
|
275
275
|
], 64))
|
|
276
|
-
], 10, _hoisted_1$
|
|
276
|
+
], 10, _hoisted_1$B);
|
|
277
277
|
}
|
|
278
|
-
var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
278
|
+
var DaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$N]]);
|
|
279
279
|
const textButtonType = ["default", "action", "link", "custom"];
|
|
280
280
|
var TextButtonProps = {
|
|
281
281
|
tag: {
|
|
@@ -290,7 +290,7 @@ var TextButtonProps = {
|
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
var textButton_vue_vue_type_style_index_0_lang = "";
|
|
293
|
-
const _sfc_main$
|
|
293
|
+
const _sfc_main$Q = defineComponent({
|
|
294
294
|
name: "DaoTextButton",
|
|
295
295
|
components: {
|
|
296
296
|
DaoIcon
|
|
@@ -360,11 +360,11 @@ const BatchBarProps = {
|
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
var batchBar_vue_vue_type_style_index_0_lang = "";
|
|
363
|
-
const _sfc_main$
|
|
363
|
+
const _sfc_main$P = defineComponent({
|
|
364
364
|
name: "DaoBatchBar",
|
|
365
365
|
components: {
|
|
366
366
|
DaoButton,
|
|
367
|
-
DaoTextButton: _sfc_main$
|
|
367
|
+
DaoTextButton: _sfc_main$Q
|
|
368
368
|
},
|
|
369
369
|
props: BatchBarProps,
|
|
370
370
|
emits: ["delete", "deselect"],
|
|
@@ -397,17 +397,17 @@ const _sfc_main$N = defineComponent({
|
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
|
-
const _hoisted_1$
|
|
400
|
+
const _hoisted_1$A = {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "dao-batch-bar"
|
|
403
403
|
};
|
|
404
404
|
const _hoisted_2$o = { class: "dao-batch-bar__text" };
|
|
405
405
|
const _hoisted_3$f = { class: "dao-batch-bar__text--select" };
|
|
406
406
|
const _hoisted_4$c = { class: "dao-batch-bar__action" };
|
|
407
|
-
function _sfc_render$
|
|
407
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
408
408
|
const _component_dao_text_button = resolveComponent("dao-text-button");
|
|
409
409
|
const _component_dao_button = resolveComponent("dao-button");
|
|
410
|
-
return _ctx.showSelf ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
410
|
+
return _ctx.showSelf ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
411
411
|
createElementVNode("div", _hoisted_2$o, [
|
|
412
412
|
createElementVNode("span", _hoisted_3$f, toDisplayString(_ctx.text.selected), 1),
|
|
413
413
|
createVNode(_component_dao_text_button, {
|
|
@@ -435,20 +435,20 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
435
435
|
])
|
|
436
436
|
])) : createCommentVNode("", true);
|
|
437
437
|
}
|
|
438
|
-
var DaoBatchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
438
|
+
var DaoBatchBar = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$M]]);
|
|
439
439
|
var buttonGroup_vue_vue_type_style_index_0_lang = "";
|
|
440
|
-
const _sfc_main$
|
|
440
|
+
const _sfc_main$O = defineComponent({
|
|
441
441
|
name: "DaoButtonGroup"
|
|
442
442
|
});
|
|
443
|
-
const _hoisted_1$
|
|
444
|
-
function _sfc_render$
|
|
445
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
443
|
+
const _hoisted_1$z = { class: "dao-btn-group" };
|
|
444
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
445
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
446
446
|
renderSlot(_ctx.$slots, "default")
|
|
447
447
|
]);
|
|
448
448
|
}
|
|
449
|
-
var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
449
|
+
var buttonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$L]]);
|
|
450
450
|
var card_scss_vue_type_style_index_0_src_lang = "";
|
|
451
|
-
const _sfc_main$
|
|
451
|
+
const _sfc_main$N = defineComponent({
|
|
452
452
|
name: "DaoCard",
|
|
453
453
|
components: {
|
|
454
454
|
DaoIcon
|
|
@@ -476,7 +476,7 @@ const _sfc_main$L = defineComponent({
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
|
-
const _hoisted_1$
|
|
479
|
+
const _hoisted_1$y = {
|
|
480
480
|
key: 0,
|
|
481
481
|
class: "dao-card-header"
|
|
482
482
|
};
|
|
@@ -486,12 +486,12 @@ const _hoisted_2$n = {
|
|
|
486
486
|
};
|
|
487
487
|
const _hoisted_3$e = { class: "dao-card-header-item dao-card-header-title" };
|
|
488
488
|
const _hoisted_4$b = { class: "dao-card-header-item dao-card-header-action" };
|
|
489
|
-
function _sfc_render$
|
|
489
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
490
490
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
491
491
|
return openBlock(), createElementBlock("div", {
|
|
492
492
|
class: normalizeClass(["dao-card", `dao-card--${_ctx.type}`])
|
|
493
493
|
}, [
|
|
494
|
-
_ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
494
|
+
_ctx.type !== "headless" ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
495
495
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
496
496
|
renderSlot(_ctx.$slots, "header-prefix"),
|
|
497
497
|
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
|
|
@@ -531,18 +531,18 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
531
531
|
], 2)
|
|
532
532
|
], 2);
|
|
533
533
|
}
|
|
534
|
-
var card = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
534
|
+
var card = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$K]]);
|
|
535
535
|
var cardItem_scss_vue_type_style_index_0_src_lang = "";
|
|
536
|
-
const _sfc_main$
|
|
536
|
+
const _sfc_main$M = defineComponent({
|
|
537
537
|
name: "DaoCardItem"
|
|
538
538
|
});
|
|
539
|
-
const _hoisted_1$
|
|
540
|
-
function _sfc_render$
|
|
541
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
539
|
+
const _hoisted_1$x = { class: "dao-card-item" };
|
|
540
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
541
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
542
542
|
renderSlot(_ctx.$slots, "default")
|
|
543
543
|
]);
|
|
544
544
|
}
|
|
545
|
-
var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
545
|
+
var cardItem = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$J]]);
|
|
546
546
|
function isNullish(val) {
|
|
547
547
|
return val === null || val === void 0;
|
|
548
548
|
}
|
|
@@ -585,7 +585,7 @@ function getUnrefItem(set, item) {
|
|
|
585
585
|
index: index2
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
const _sfc_main$
|
|
588
|
+
const _sfc_main$L = defineComponent({
|
|
589
589
|
name: "DaoCheckbox",
|
|
590
590
|
props: {
|
|
591
591
|
modelValue: {
|
|
@@ -725,7 +725,7 @@ const _sfc_main$J = defineComponent({
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
});
|
|
728
|
-
const _hoisted_1$
|
|
728
|
+
const _hoisted_1$w = ["disabled", "indeterminate", "checked"];
|
|
729
729
|
const _hoisted_2$m = /* @__PURE__ */ createElementVNode("span", { class: "dao-checkbox-inner" }, null, -1);
|
|
730
730
|
const _hoisted_3$d = {
|
|
731
731
|
key: 0,
|
|
@@ -739,7 +739,7 @@ const _hoisted_5$8 = {
|
|
|
739
739
|
key: 1,
|
|
740
740
|
class: "dao-checkbox__label-helper"
|
|
741
741
|
};
|
|
742
|
-
function _sfc_render$
|
|
742
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
743
743
|
return openBlock(), createElementBlock("label", {
|
|
744
744
|
class: normalizeClass(_ctx.wrapClasses)
|
|
745
745
|
}, [
|
|
@@ -754,7 +754,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
754
754
|
}, _ctx.$attrs, {
|
|
755
755
|
checked: _ctx.currentChecked,
|
|
756
756
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args))
|
|
757
|
-
}), null, 16, _hoisted_1$
|
|
757
|
+
}), null, 16, _hoisted_1$w),
|
|
758
758
|
_hoisted_2$m
|
|
759
759
|
], 2),
|
|
760
760
|
_ctx.hasLabel ? (openBlock(), createElementBlock("span", _hoisted_3$d, [
|
|
@@ -769,9 +769,9 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
769
769
|
])) : createCommentVNode("", true)
|
|
770
770
|
], 2);
|
|
771
771
|
}
|
|
772
|
-
var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
772
|
+
var DaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$I]]);
|
|
773
773
|
var checkboxGroup_vue_vue_type_style_index_0_lang = "";
|
|
774
|
-
const _sfc_main$
|
|
774
|
+
const _sfc_main$K = defineComponent({
|
|
775
775
|
name: "DaoCheckboxGroup",
|
|
776
776
|
props: {
|
|
777
777
|
modelValue: {
|
|
@@ -805,14 +805,14 @@ const _sfc_main$I = defineComponent({
|
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
807
|
});
|
|
808
|
-
function _sfc_render$
|
|
808
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
809
809
|
return openBlock(), createElementBlock("div", {
|
|
810
810
|
class: normalizeClass(_ctx.checkboxGroupClasses)
|
|
811
811
|
}, [
|
|
812
812
|
renderSlot(_ctx.$slots, "default")
|
|
813
813
|
], 2);
|
|
814
814
|
}
|
|
815
|
-
var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
815
|
+
var checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$H]]);
|
|
816
816
|
var top = "top";
|
|
817
817
|
var bottom = "bottom";
|
|
818
818
|
var right = "right";
|
|
@@ -2011,7 +2011,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
|
|
|
2011
2011
|
var createPopper = /* @__PURE__ */ popperGenerator({
|
|
2012
2012
|
defaultModifiers
|
|
2013
2013
|
});
|
|
2014
|
-
const _sfc_main$
|
|
2014
|
+
const _sfc_main$J = defineComponent({
|
|
2015
2015
|
name: "PopperContent",
|
|
2016
2016
|
props: {
|
|
2017
2017
|
popperId: {
|
|
@@ -2059,7 +2059,7 @@ const _sfc_main$H = defineComponent({
|
|
|
2059
2059
|
};
|
|
2060
2060
|
}
|
|
2061
2061
|
});
|
|
2062
|
-
const _hoisted_1$
|
|
2062
|
+
const _hoisted_1$v = ["id", "aria-hidden", "tabindex"];
|
|
2063
2063
|
const _hoisted_2$l = {
|
|
2064
2064
|
ref: "arrow",
|
|
2065
2065
|
class: "dao-popper-arrow"
|
|
@@ -2081,7 +2081,7 @@ const _hoisted_3$c = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
2081
2081
|
const _hoisted_4$9 = [
|
|
2082
2082
|
_hoisted_3$c
|
|
2083
2083
|
];
|
|
2084
|
-
function _sfc_render$
|
|
2084
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2085
2085
|
return openBlock(), createElementBlock("div", {
|
|
2086
2086
|
id: _ctx.popperId,
|
|
2087
2087
|
ref: "popover",
|
|
@@ -2103,9 +2103,9 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2103
2103
|
withDirectives(createElementVNode("div", _hoisted_2$l, _hoisted_4$9, 512), [
|
|
2104
2104
|
[vShow, _ctx.visibleArrow]
|
|
2105
2105
|
])
|
|
2106
|
-
], 42, _hoisted_1$
|
|
2106
|
+
], 42, _hoisted_1$v);
|
|
2107
2107
|
}
|
|
2108
|
-
var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2108
|
+
var PopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$G]]);
|
|
2109
2109
|
var PopperProps = {
|
|
2110
2110
|
modelValue: {
|
|
2111
2111
|
type: Boolean,
|
|
@@ -2211,7 +2211,7 @@ function getActualRoot(app) {
|
|
|
2211
2211
|
}
|
|
2212
2212
|
return internalRoot;
|
|
2213
2213
|
}
|
|
2214
|
-
const _sfc_main$
|
|
2214
|
+
const _sfc_main$I = defineComponent({
|
|
2215
2215
|
name: "DaoPopper",
|
|
2216
2216
|
components: {
|
|
2217
2217
|
PopperContent
|
|
@@ -2582,7 +2582,7 @@ const _sfc_main$G = defineComponent({
|
|
|
2582
2582
|
};
|
|
2583
2583
|
}
|
|
2584
2584
|
});
|
|
2585
|
-
function _sfc_render$
|
|
2585
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2586
2586
|
const _component_popper_content = resolveComponent("popper-content");
|
|
2587
2587
|
return openBlock(), createElementBlock("div", {
|
|
2588
2588
|
ref: "reference",
|
|
@@ -2624,7 +2624,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2624
2624
|
], 8, ["to", "disabled"]))
|
|
2625
2625
|
], 2);
|
|
2626
2626
|
}
|
|
2627
|
-
var DaoPopper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2627
|
+
var DaoPopper = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$F]]);
|
|
2628
2628
|
var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
|
|
2629
2629
|
offset: {
|
|
2630
2630
|
type: [Number, String],
|
|
@@ -2632,13 +2632,13 @@ var tooltipProps = __spreadProps(__spreadValues({}, PopperProps), {
|
|
|
2632
2632
|
}
|
|
2633
2633
|
});
|
|
2634
2634
|
var tooltip_scss_vue_type_style_index_0_src_lang = "";
|
|
2635
|
-
const _sfc_main$
|
|
2635
|
+
const _sfc_main$H = defineComponent(__spreadProps(__spreadValues({}, DaoPopper), {
|
|
2636
2636
|
name: "DaoTooltip",
|
|
2637
2637
|
props: tooltipProps,
|
|
2638
2638
|
daoPopperTheme: "dao-tooltip"
|
|
2639
2639
|
}));
|
|
2640
2640
|
var popover_scss_vue_type_style_index_0_src_lang = "";
|
|
2641
|
-
const _sfc_main$
|
|
2641
|
+
const _sfc_main$G = defineComponent(__spreadProps(__spreadValues({}, DaoPopper), {
|
|
2642
2642
|
name: "DaoPopover",
|
|
2643
2643
|
props: PopperProps,
|
|
2644
2644
|
daoPopperTheme: "dao-popover"
|
|
@@ -2708,17 +2708,17 @@ const ellipsisProps = {
|
|
|
2708
2708
|
}
|
|
2709
2709
|
};
|
|
2710
2710
|
var ellipsis_vue_vue_type_style_index_0_lang = "";
|
|
2711
|
-
const _sfc_main$
|
|
2711
|
+
const _sfc_main$F = defineComponent({
|
|
2712
2712
|
name: "DaoEllipsis",
|
|
2713
2713
|
components: {
|
|
2714
|
-
Tooltip: _sfc_main$
|
|
2715
|
-
Popover: _sfc_main$
|
|
2714
|
+
Tooltip: _sfc_main$H,
|
|
2715
|
+
Popover: _sfc_main$G
|
|
2716
2716
|
},
|
|
2717
2717
|
props: ellipsisProps,
|
|
2718
2718
|
setup(props) {
|
|
2719
2719
|
const disabled = ref(true);
|
|
2720
2720
|
const tooltipRef = ref();
|
|
2721
|
-
const ComponentType = computed(() => props.type === "tooltip" ? _sfc_main$
|
|
2721
|
+
const ComponentType = computed(() => props.type === "tooltip" ? _sfc_main$H : _sfc_main$G);
|
|
2722
2722
|
const isOpen = computed(() => {
|
|
2723
2723
|
var _a2, _b2, _c, _d;
|
|
2724
2724
|
return (_d = (_c = (_b2 = (_a2 = tooltipRef.value) == null ? void 0 : _a2.$) == null ? void 0 : _b2.ctx) == null ? void 0 : _c.isOpen) != null ? _d : false;
|
|
@@ -2760,13 +2760,13 @@ const _sfc_main$D = defineComponent({
|
|
|
2760
2760
|
tooltipRef,
|
|
2761
2761
|
isOpen,
|
|
2762
2762
|
isEllipsis,
|
|
2763
|
-
Tooltip: _sfc_main$
|
|
2763
|
+
Tooltip: _sfc_main$H,
|
|
2764
2764
|
ComponentType
|
|
2765
2765
|
};
|
|
2766
2766
|
}
|
|
2767
2767
|
});
|
|
2768
|
-
const _hoisted_1$
|
|
2769
|
-
function _sfc_render$
|
|
2768
|
+
const _hoisted_1$u = { key: 1 };
|
|
2769
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2770
2770
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.ComponentType), {
|
|
2771
2771
|
ref: "ComponentRef",
|
|
2772
2772
|
disabled: _ctx.disabled,
|
|
@@ -2798,13 +2798,13 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2798
2798
|
key: 0,
|
|
2799
2799
|
show: _ctx.isOpen,
|
|
2800
2800
|
ellipsis: _ctx.isEllipsis
|
|
2801
|
-
}) : _ctx.content ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2801
|
+
}) : _ctx.content ? (openBlock(), createElementBlock("span", _hoisted_1$u, toDisplayString(_ctx.content), 1)) : renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
2802
2802
|
])
|
|
2803
2803
|
} : void 0
|
|
2804
2804
|
]), 1032, ["disabled", "placement", "offset", "class", "append-to", "delay", "popper-class", "width"]);
|
|
2805
2805
|
}
|
|
2806
|
-
var DaoEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2807
|
-
const _sfc_main$
|
|
2806
|
+
var DaoEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$E]]);
|
|
2807
|
+
const _sfc_main$E = defineComponent({
|
|
2808
2808
|
name: "DaoDialogHeader",
|
|
2809
2809
|
components: {
|
|
2810
2810
|
DaoActionIcon,
|
|
@@ -2828,12 +2828,12 @@ const _sfc_main$C = defineComponent({
|
|
|
2828
2828
|
};
|
|
2829
2829
|
}
|
|
2830
2830
|
});
|
|
2831
|
-
const _hoisted_1$
|
|
2831
|
+
const _hoisted_1$t = { class: "dao-dialog__header" };
|
|
2832
2832
|
const _hoisted_2$k = { class: "dao-dialog__header--title" };
|
|
2833
|
-
function _sfc_render$
|
|
2833
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2834
2834
|
const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
|
|
2835
2835
|
const _component_dao_action_icon = resolveComponent("dao-action-icon");
|
|
2836
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2836
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
2837
2837
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2838
2838
|
createElementVNode("span", _hoisted_2$k, [
|
|
2839
2839
|
renderSlot(_ctx.$slots, "before-title"),
|
|
@@ -2856,8 +2856,8 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2856
2856
|
])
|
|
2857
2857
|
]);
|
|
2858
2858
|
}
|
|
2859
|
-
var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2860
|
-
const _sfc_main$
|
|
2859
|
+
var DialogHeader = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$D]]);
|
|
2860
|
+
const _sfc_main$D = defineComponent({
|
|
2861
2861
|
name: "DaoDialogFooter",
|
|
2862
2862
|
components: {
|
|
2863
2863
|
DaoButton
|
|
@@ -2897,10 +2897,10 @@ const _sfc_main$B = defineComponent({
|
|
|
2897
2897
|
};
|
|
2898
2898
|
}
|
|
2899
2899
|
});
|
|
2900
|
-
const _hoisted_1$
|
|
2901
|
-
function _sfc_render$
|
|
2900
|
+
const _hoisted_1$s = { class: "dao-dialog__footer" };
|
|
2901
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2902
2902
|
const _component_dao_button = resolveComponent("dao-button");
|
|
2903
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2903
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
2904
2904
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2905
2905
|
createVNode(_component_dao_button, {
|
|
2906
2906
|
type: "ghost",
|
|
@@ -2926,14 +2926,14 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2926
2926
|
])
|
|
2927
2927
|
]);
|
|
2928
2928
|
}
|
|
2929
|
-
var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2929
|
+
var DialogFooter = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$C]]);
|
|
2930
2930
|
var dialog_scss_vue_type_style_index_0_src_lang = "";
|
|
2931
2931
|
const DIALOG_NUM_ATTR = "dao-dialog__num";
|
|
2932
2932
|
const DIALOG_MINIMUM_PADDING = "20px";
|
|
2933
2933
|
const DIALOG_DEFAULT_PADDING_TOP = "100px";
|
|
2934
2934
|
const DIALOG_DEFAULT_PADDING_BOTTOM = "20px";
|
|
2935
2935
|
const KEYBOARD_EVENT_NAME$1 = "keydown";
|
|
2936
|
-
const _sfc_main$
|
|
2936
|
+
const _sfc_main$C = defineComponent({
|
|
2937
2937
|
name: "DaoDialog",
|
|
2938
2938
|
components: {
|
|
2939
2939
|
DialogHeader,
|
|
@@ -3129,8 +3129,8 @@ const _sfc_main$A = defineComponent({
|
|
|
3129
3129
|
};
|
|
3130
3130
|
}
|
|
3131
3131
|
});
|
|
3132
|
-
const _hoisted_1$
|
|
3133
|
-
function _sfc_render$
|
|
3132
|
+
const _hoisted_1$r = { class: "dao-dialog__body" };
|
|
3133
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3134
3134
|
const _component_dialog_header = resolveComponent("dialog-header");
|
|
3135
3135
|
const _component_dialog_footer = resolveComponent("dialog-footer");
|
|
3136
3136
|
return openBlock(), createBlock(Transition, {
|
|
@@ -3174,7 +3174,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3174
3174
|
]),
|
|
3175
3175
|
_: 3
|
|
3176
3176
|
}, 8, ["title", "show-close", "onClose"])) : createCommentVNode("", true),
|
|
3177
|
-
createElementVNode("div", _hoisted_1$
|
|
3177
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
3178
3178
|
renderSlot(_ctx.$slots, "default")
|
|
3179
3179
|
]),
|
|
3180
3180
|
_ctx.footer ? (openBlock(), createBlock(_component_dialog_footer, {
|
|
@@ -3197,7 +3197,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3197
3197
|
_: 3
|
|
3198
3198
|
}, 8, ["onBeforeEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"]);
|
|
3199
3199
|
}
|
|
3200
|
-
var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3200
|
+
var dialog = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$B]]);
|
|
3201
3201
|
const drawerProps = {
|
|
3202
3202
|
modelValue: {
|
|
3203
3203
|
type: Boolean,
|
|
@@ -3268,7 +3268,7 @@ const trapTabKey = (e, firstTab, lastTab) => {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
var drawer_vue_vue_type_style_index_0_lang = "";
|
|
3270
3270
|
const KEYBOARD_EVENT_NAME = "keydown";
|
|
3271
|
-
const _sfc_main$
|
|
3271
|
+
const _sfc_main$B = defineComponent({
|
|
3272
3272
|
name: "DaoDrawer",
|
|
3273
3273
|
components: {
|
|
3274
3274
|
DaoButton,
|
|
@@ -3385,7 +3385,7 @@ const _sfc_main$z = defineComponent({
|
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
3387
|
});
|
|
3388
|
-
const _hoisted_1$
|
|
3388
|
+
const _hoisted_1$q = { class: "dao-drawer__content" };
|
|
3389
3389
|
const _hoisted_2$j = {
|
|
3390
3390
|
key: 0,
|
|
3391
3391
|
class: "dao-drawer__header"
|
|
@@ -3397,7 +3397,7 @@ const _hoisted_5$7 = {
|
|
|
3397
3397
|
class: "dao-drawer__footer"
|
|
3398
3398
|
};
|
|
3399
3399
|
const _hoisted_6$5 = { class: "dao-drawer__footer-group" };
|
|
3400
|
-
function _sfc_render$
|
|
3400
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3401
3401
|
const _component_dao_action_icon = resolveComponent("dao-action-icon");
|
|
3402
3402
|
const _component_dao_button = resolveComponent("dao-button");
|
|
3403
3403
|
return openBlock(), createElementBlock("div", null, [
|
|
@@ -3429,7 +3429,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3429
3429
|
withDirectives(createElementVNode("div", {
|
|
3430
3430
|
class: normalizeClass(_ctx.contentClassList)
|
|
3431
3431
|
}, [
|
|
3432
|
-
createElementVNode("div", _hoisted_1$
|
|
3432
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
3433
3433
|
!_ctx.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
|
|
3434
3434
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
3435
3435
|
createElementVNode("div", _hoisted_3$b, [
|
|
@@ -3481,8 +3481,8 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3481
3481
|
], 34)
|
|
3482
3482
|
]);
|
|
3483
3483
|
}
|
|
3484
|
-
var drawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3485
|
-
const _sfc_main$
|
|
3484
|
+
var drawer = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$A]]);
|
|
3485
|
+
const _sfc_main$A = defineComponent({
|
|
3486
3486
|
name: "DaoDropdown",
|
|
3487
3487
|
components: {
|
|
3488
3488
|
DaoPopper
|
|
@@ -3538,8 +3538,8 @@ const _sfc_main$y = defineComponent({
|
|
|
3538
3538
|
};
|
|
3539
3539
|
}
|
|
3540
3540
|
});
|
|
3541
|
-
const _hoisted_1$
|
|
3542
|
-
function _sfc_render$
|
|
3541
|
+
const _hoisted_1$p = { tabindex: "0" };
|
|
3542
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3543
3543
|
const _component_dao_popper = resolveComponent("dao-popper");
|
|
3544
3544
|
return openBlock(), createBlock(_component_dao_popper, {
|
|
3545
3545
|
ref: "popper",
|
|
@@ -3556,27 +3556,27 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3556
3556
|
renderSlot(_ctx.$slots, "menu")
|
|
3557
3557
|
]),
|
|
3558
3558
|
default: withCtx(() => [
|
|
3559
|
-
createElementVNode("div", _hoisted_1$
|
|
3559
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
3560
3560
|
renderSlot(_ctx.$slots, "default")
|
|
3561
3561
|
])
|
|
3562
3562
|
]),
|
|
3563
3563
|
_: 3
|
|
3564
3564
|
}, 8, ["placement", "append-to", "trigger", "offset", "model-value"]);
|
|
3565
3565
|
}
|
|
3566
|
-
var DaoDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3566
|
+
var DaoDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$z]]);
|
|
3567
3567
|
var dropdownMenu_vue_vue_type_style_index_0_lang = "";
|
|
3568
|
-
const _sfc_main$
|
|
3568
|
+
const _sfc_main$z = defineComponent({
|
|
3569
3569
|
name: "DaoDropdownMenu"
|
|
3570
3570
|
});
|
|
3571
|
-
const _hoisted_1$
|
|
3572
|
-
function _sfc_render$
|
|
3573
|
-
return openBlock(), createElementBlock("ul", _hoisted_1$
|
|
3571
|
+
const _hoisted_1$o = { class: "dao-dropdown-menu" };
|
|
3572
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3573
|
+
return openBlock(), createElementBlock("ul", _hoisted_1$o, [
|
|
3574
3574
|
renderSlot(_ctx.$slots, "default")
|
|
3575
3575
|
]);
|
|
3576
3576
|
}
|
|
3577
|
-
var DaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3577
|
+
var DaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$y]]);
|
|
3578
3578
|
var dropdownItem_vue_vue_type_style_index_0_lang = "";
|
|
3579
|
-
const _sfc_main$
|
|
3579
|
+
const _sfc_main$y = defineComponent({
|
|
3580
3580
|
name: "DaoDropdownItem",
|
|
3581
3581
|
props: {
|
|
3582
3582
|
type: {
|
|
@@ -3625,12 +3625,12 @@ const _sfc_main$w = defineComponent({
|
|
|
3625
3625
|
};
|
|
3626
3626
|
}
|
|
3627
3627
|
});
|
|
3628
|
-
function _sfc_render$
|
|
3628
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3629
3629
|
return openBlock(), createElementBlock("li", mergeProps({ class: _ctx.classList }, _ctx.itemAttrs), [
|
|
3630
3630
|
_ctx.type !== "divider" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
|
|
3631
3631
|
], 16);
|
|
3632
3632
|
}
|
|
3633
|
-
var DaoDropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3633
|
+
var DaoDropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$x]]);
|
|
3634
3634
|
const expansionProps = {
|
|
3635
3635
|
modelValue: {
|
|
3636
3636
|
type: [String, Symbol, Array]
|
|
@@ -3659,7 +3659,7 @@ const expansionItemProps = {
|
|
|
3659
3659
|
}
|
|
3660
3660
|
};
|
|
3661
3661
|
var expansion_vue_vue_type_style_index_0_lang = "";
|
|
3662
|
-
const _sfc_main$
|
|
3662
|
+
const _sfc_main$x = defineComponent({
|
|
3663
3663
|
name: "DaoExpansion",
|
|
3664
3664
|
props: expansionProps,
|
|
3665
3665
|
emits: ["update:modelValue", "change"],
|
|
@@ -3751,16 +3751,16 @@ const _sfc_main$v = defineComponent({
|
|
|
3751
3751
|
};
|
|
3752
3752
|
}
|
|
3753
3753
|
});
|
|
3754
|
-
function _sfc_render$
|
|
3754
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3755
3755
|
return openBlock(), createElementBlock("div", {
|
|
3756
3756
|
class: normalizeClass(_ctx.classList)
|
|
3757
3757
|
}, [
|
|
3758
3758
|
renderSlot(_ctx.$slots, "default")
|
|
3759
3759
|
], 2);
|
|
3760
3760
|
}
|
|
3761
|
-
var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3761
|
+
var expansion = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$w]]);
|
|
3762
3762
|
var expansionItem_vue_vue_type_style_index_0_lang = "";
|
|
3763
|
-
const _sfc_main$
|
|
3763
|
+
const _sfc_main$w = defineComponent({
|
|
3764
3764
|
name: "DaoExpansionItem",
|
|
3765
3765
|
components: {
|
|
3766
3766
|
DaoIcon,
|
|
@@ -3841,7 +3841,7 @@ const _sfc_main$u = defineComponent({
|
|
|
3841
3841
|
};
|
|
3842
3842
|
}
|
|
3843
3843
|
});
|
|
3844
|
-
const _hoisted_1$
|
|
3844
|
+
const _hoisted_1$n = {
|
|
3845
3845
|
key: 0,
|
|
3846
3846
|
class: "dao-expansion-item-header-handler"
|
|
3847
3847
|
};
|
|
@@ -3864,7 +3864,7 @@ const _hoisted_6$4 = {
|
|
|
3864
3864
|
};
|
|
3865
3865
|
const _hoisted_7$2 = { class: "dao-expansion-item-content-container" };
|
|
3866
3866
|
const _hoisted_8$1 = { class: "dao-expansion-item-content" };
|
|
3867
|
-
function _sfc_render$
|
|
3867
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3868
3868
|
const _component_dao_icon = resolveComponent("dao-icon");
|
|
3869
3869
|
const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
|
|
3870
3870
|
return openBlock(), createElementBlock("div", {
|
|
@@ -3878,7 +3878,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3878
3878
|
class: "dao-expansion-item-header",
|
|
3879
3879
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onItemClick && _ctx.onItemClick(...args))
|
|
3880
3880
|
}, [
|
|
3881
|
-
_ctx.$slots.handler ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3881
|
+
_ctx.$slots.handler ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
3882
3882
|
renderSlot(_ctx.$slots, "handler")
|
|
3883
3883
|
])) : createCommentVNode("", true),
|
|
3884
3884
|
!_ctx.$slots.trigger ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
@@ -3943,7 +3943,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3943
3943
|
}, 8, ["onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
|
|
3944
3944
|
], 2);
|
|
3945
3945
|
}
|
|
3946
|
-
var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3946
|
+
var expansionItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$v]]);
|
|
3947
3947
|
const formType = ["horizontal", "vertical"];
|
|
3948
3948
|
const formClassNames = {
|
|
3949
3949
|
text: {
|
|
@@ -3970,8 +3970,34 @@ const formProps = {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
};
|
|
3972
3972
|
const formKey = Symbol("formKey");
|
|
3973
|
+
const formItemProps = {
|
|
3974
|
+
label: {
|
|
3975
|
+
type: String,
|
|
3976
|
+
default: ""
|
|
3977
|
+
},
|
|
3978
|
+
required: {
|
|
3979
|
+
type: Boolean,
|
|
3980
|
+
default: false
|
|
3981
|
+
},
|
|
3982
|
+
paddingTop: {
|
|
3983
|
+
type: [Number, String],
|
|
3984
|
+
default: 0
|
|
3985
|
+
},
|
|
3986
|
+
paddingBottom: {
|
|
3987
|
+
type: [Number, String],
|
|
3988
|
+
default: 20
|
|
3989
|
+
},
|
|
3990
|
+
labelWidth: {
|
|
3991
|
+
type: String,
|
|
3992
|
+
default: ""
|
|
3993
|
+
},
|
|
3994
|
+
iconMessage: {
|
|
3995
|
+
type: String,
|
|
3996
|
+
default: ""
|
|
3997
|
+
}
|
|
3998
|
+
};
|
|
3973
3999
|
var form_vue_vue_type_style_index_0_lang = "";
|
|
3974
|
-
const _sfc_main$
|
|
4000
|
+
const _sfc_main$v = defineComponent({
|
|
3975
4001
|
name: "DaoForm",
|
|
3976
4002
|
props: formProps,
|
|
3977
4003
|
setup(props) {
|
|
@@ -3985,7 +4011,7 @@ const _sfc_main$t = defineComponent({
|
|
|
3985
4011
|
};
|
|
3986
4012
|
}
|
|
3987
4013
|
});
|
|
3988
|
-
function _sfc_render$
|
|
4014
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3989
4015
|
return openBlock(), createElementBlock("div", {
|
|
3990
4016
|
class: normalizeClass([
|
|
3991
4017
|
"dao-form",
|
|
@@ -3995,40 +4021,15 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3995
4021
|
renderSlot(_ctx.$slots, "default", { classNames: _ctx.formClassNames })
|
|
3996
4022
|
], 2);
|
|
3997
4023
|
}
|
|
3998
|
-
var form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4024
|
+
var form = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$u]]);
|
|
3999
4025
|
var formItem_vue_vue_type_style_index_0_lang = "";
|
|
4000
|
-
const _sfc_main$
|
|
4026
|
+
const _sfc_main$u = defineComponent({
|
|
4001
4027
|
name: "DaoFormItem",
|
|
4002
4028
|
components: {
|
|
4003
|
-
DaoTooltip: _sfc_main$
|
|
4029
|
+
DaoTooltip: _sfc_main$H,
|
|
4004
4030
|
DaoEllipsis
|
|
4005
4031
|
},
|
|
4006
|
-
props:
|
|
4007
|
-
label: {
|
|
4008
|
-
type: String,
|
|
4009
|
-
default: ""
|
|
4010
|
-
},
|
|
4011
|
-
required: {
|
|
4012
|
-
type: Boolean,
|
|
4013
|
-
default: false
|
|
4014
|
-
},
|
|
4015
|
-
paddingTop: {
|
|
4016
|
-
type: [Number, String],
|
|
4017
|
-
default: 0
|
|
4018
|
-
},
|
|
4019
|
-
paddingBottom: {
|
|
4020
|
-
type: [Number, String],
|
|
4021
|
-
default: 20
|
|
4022
|
-
},
|
|
4023
|
-
labelWidth: {
|
|
4024
|
-
type: String,
|
|
4025
|
-
default: ""
|
|
4026
|
-
},
|
|
4027
|
-
iconMessage: {
|
|
4028
|
-
type: String,
|
|
4029
|
-
default: ""
|
|
4030
|
-
}
|
|
4031
|
-
},
|
|
4032
|
+
props: formItemProps,
|
|
4032
4033
|
setup(props, { slots }) {
|
|
4033
4034
|
const {
|
|
4034
4035
|
labelWidth,
|
|
@@ -4058,9 +4059,9 @@ const _sfc_main$s = defineComponent({
|
|
|
4058
4059
|
};
|
|
4059
4060
|
}
|
|
4060
4061
|
});
|
|
4061
|
-
const _hoisted_1$
|
|
4062
|
+
const _hoisted_1$m = { class: "dao-form-item__label-icon-wrapper" };
|
|
4062
4063
|
const _hoisted_2$h = /* @__PURE__ */ createElementVNode("i", { class: "dao-form-item__label-icon icon-unknow" }, null, -1);
|
|
4063
|
-
function _sfc_render$
|
|
4064
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4064
4065
|
const _component_dao_ellipsis = resolveComponent("dao-ellipsis");
|
|
4065
4066
|
const _component_dao_tooltip = resolveComponent("dao-tooltip");
|
|
4066
4067
|
return openBlock(), createElementBlock("div", {
|
|
@@ -4072,7 +4073,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4072
4073
|
style: normalizeStyle(_ctx.labelStyle)
|
|
4073
4074
|
}, [
|
|
4074
4075
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
4075
|
-
createElementVNode("div", _hoisted_1$
|
|
4076
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
4076
4077
|
createVNode(_component_dao_ellipsis, { class: "dao-form-item__label-icon-label" }, {
|
|
4077
4078
|
default: withCtx(() => [
|
|
4078
4079
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
@@ -4100,9 +4101,9 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4100
4101
|
], 4)
|
|
4101
4102
|
], 2);
|
|
4102
4103
|
}
|
|
4103
|
-
var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4104
|
+
var formItem = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$t]]);
|
|
4104
4105
|
var formGroup_vue_vue_type_style_index_0_lang = "";
|
|
4105
|
-
const _sfc_main$
|
|
4106
|
+
const _sfc_main$t = defineComponent({
|
|
4106
4107
|
name: "DaoFormGroup",
|
|
4107
4108
|
props: {
|
|
4108
4109
|
title: {
|
|
@@ -4111,10 +4112,10 @@ const _sfc_main$r = defineComponent({
|
|
|
4111
4112
|
}
|
|
4112
4113
|
}
|
|
4113
4114
|
});
|
|
4114
|
-
const _hoisted_1$
|
|
4115
|
+
const _hoisted_1$l = { class: "dao-form-group" };
|
|
4115
4116
|
const _hoisted_2$g = { class: "dao-form-group__title" };
|
|
4116
|
-
function _sfc_render$
|
|
4117
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4117
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4118
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
4118
4119
|
createElementVNode("div", _hoisted_2$g, [
|
|
4119
4120
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
4120
4121
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
@@ -4123,7 +4124,45 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4123
4124
|
renderSlot(_ctx.$slots, "default")
|
|
4124
4125
|
]);
|
|
4125
4126
|
}
|
|
4126
|
-
var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4127
|
+
var formGroup = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$s]]);
|
|
4128
|
+
var errorText_vue_vue_type_style_index_0_lang = "";
|
|
4129
|
+
const _sfc_main$s = defineComponent({
|
|
4130
|
+
name: "DaoErrorText",
|
|
4131
|
+
props: {
|
|
4132
|
+
content: {
|
|
4133
|
+
type: String,
|
|
4134
|
+
default: ""
|
|
4135
|
+
}
|
|
4136
|
+
}
|
|
4137
|
+
});
|
|
4138
|
+
const _hoisted_1$k = { class: "dao-error-text" };
|
|
4139
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4140
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
4141
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4142
|
+
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
4143
|
+
])
|
|
4144
|
+
]);
|
|
4145
|
+
}
|
|
4146
|
+
var errorText = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$r]]);
|
|
4147
|
+
var helperText_vue_vue_type_style_index_0_lang = "";
|
|
4148
|
+
const _sfc_main$r = defineComponent({
|
|
4149
|
+
name: "DaoHelperText",
|
|
4150
|
+
props: {
|
|
4151
|
+
content: {
|
|
4152
|
+
type: String,
|
|
4153
|
+
default: ""
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
});
|
|
4157
|
+
const _hoisted_1$j = { class: "dao-helper-text" };
|
|
4158
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4159
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
4160
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4161
|
+
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
4162
|
+
])
|
|
4163
|
+
]);
|
|
4164
|
+
}
|
|
4165
|
+
var helperText = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$q]]);
|
|
4127
4166
|
const headerProps = {
|
|
4128
4167
|
type: {
|
|
4129
4168
|
type: String,
|
|
@@ -4469,13 +4508,19 @@ const _sfc_main$n = defineComponent({
|
|
|
4469
4508
|
const minVal = parseFloat(attrs.min);
|
|
4470
4509
|
isIncreaseDisabled.value = inputVal >= maxVal;
|
|
4471
4510
|
isDecreaseDisabled.value = inputVal <= minVal;
|
|
4511
|
+
if (!Number.isNaN(inputVal)) {
|
|
4512
|
+
currentValue.value = inputVal;
|
|
4513
|
+
} else {
|
|
4514
|
+
currentValue.value = void 0;
|
|
4515
|
+
}
|
|
4516
|
+
return;
|
|
4472
4517
|
}
|
|
4473
4518
|
currentValue.value = val;
|
|
4474
4519
|
};
|
|
4475
4520
|
const updateModel = (val) => {
|
|
4476
|
-
emit("update:modelValue", val);
|
|
4477
4521
|
setCurrentValue(val);
|
|
4478
|
-
emit("
|
|
4522
|
+
emit("update:modelValue", currentValue.value);
|
|
4523
|
+
emit("change", currentValue.value);
|
|
4479
4524
|
};
|
|
4480
4525
|
const resetCurrentVal = () => {
|
|
4481
4526
|
var _a2;
|
|
@@ -4547,14 +4592,14 @@ const _sfc_main$n = defineComponent({
|
|
|
4547
4592
|
const events = {
|
|
4548
4593
|
onInput(event) {
|
|
4549
4594
|
const { value: v } = event.target;
|
|
4550
|
-
emit("update:modelValue", v);
|
|
4551
|
-
emit("input", v);
|
|
4552
4595
|
setCurrentValue(v);
|
|
4596
|
+
emit("update:modelValue", currentValue.value);
|
|
4597
|
+
emit("input", currentValue.value);
|
|
4553
4598
|
},
|
|
4554
4599
|
onChange(event) {
|
|
4555
4600
|
const { value: v } = event.target;
|
|
4556
4601
|
setCurrentValue(v);
|
|
4557
|
-
emit("change",
|
|
4602
|
+
emit("change", currentValue.value);
|
|
4558
4603
|
},
|
|
4559
4604
|
onBlur(event) {
|
|
4560
4605
|
isFocus.value = false;
|
|
@@ -4675,7 +4720,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4675
4720
|
withDirectives(createElementVNode("i", {
|
|
4676
4721
|
class: normalizeClass([_ctx.statusClasses, "dao-input-status-icon"])
|
|
4677
4722
|
}, null, 2), [
|
|
4678
|
-
[vShow, ["error", "success", "loading"].includes(_ctx.status)]
|
|
4723
|
+
[vShow, ["error", "success", "loading"].includes(_ctx.status) && _ctx.type === "text"]
|
|
4679
4724
|
]),
|
|
4680
4725
|
_ctx.slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
|
|
4681
4726
|
renderSlot(_ctx.$slots, "suffix")
|
|
@@ -4714,7 +4759,7 @@ const _sfc_main$m = defineComponent({
|
|
|
4714
4759
|
name: "DaoMessage",
|
|
4715
4760
|
props: MessageProps,
|
|
4716
4761
|
emits: ["update:modelValue", "change", "beforeClose", "closed", "beforeShow", "show"],
|
|
4717
|
-
setup(props, { emit }) {
|
|
4762
|
+
setup(props, { emit, slots }) {
|
|
4718
4763
|
const typeClass = computed(() => `dao-message--${props.type}`);
|
|
4719
4764
|
const _isMessageShow = ref(true);
|
|
4720
4765
|
const isMessageShow = computed(() => {
|
|
@@ -4750,7 +4795,7 @@ const _sfc_main$m = defineComponent({
|
|
|
4750
4795
|
onMounted(() => {
|
|
4751
4796
|
isMessageMounted = true;
|
|
4752
4797
|
});
|
|
4753
|
-
const onlyContent = computed(() => !props.title && props.content);
|
|
4798
|
+
const onlyContent = computed(() => !props.title && !slots.title && (props.content || slots.default));
|
|
4754
4799
|
return {
|
|
4755
4800
|
typeClass,
|
|
4756
4801
|
closeMessage,
|
|
@@ -8052,8 +8097,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8052
8097
|
}, [
|
|
8053
8098
|
_ctx.$slots.filter ? {
|
|
8054
8099
|
name: "filter",
|
|
8055
|
-
fn: withCtx(() => [
|
|
8056
|
-
renderSlot(_ctx.$slots, "filter")
|
|
8100
|
+
fn: withCtx(({ classNames }) => [
|
|
8101
|
+
renderSlot(_ctx.$slots, "filter", { classNames })
|
|
8057
8102
|
])
|
|
8058
8103
|
} : void 0,
|
|
8059
8104
|
_ctx.$slots.action ? {
|
|
@@ -8608,7 +8653,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
8608
8653
|
DaoCheckbox,
|
|
8609
8654
|
DaoInput,
|
|
8610
8655
|
DaoActionIcon,
|
|
8611
|
-
DaoTextButton: _sfc_main$
|
|
8656
|
+
DaoTextButton: _sfc_main$Q,
|
|
8612
8657
|
DaoEllipsis
|
|
8613
8658
|
},
|
|
8614
8659
|
props: transferPanelProp,
|
|
@@ -8834,7 +8879,7 @@ const _sfc_main = defineComponent({
|
|
|
8834
8879
|
name: "DaoTransfer",
|
|
8835
8880
|
components: {
|
|
8836
8881
|
transferPanel,
|
|
8837
|
-
DaoTextButton: _sfc_main$
|
|
8882
|
+
DaoTextButton: _sfc_main$Q
|
|
8838
8883
|
},
|
|
8839
8884
|
props: transferProps,
|
|
8840
8885
|
emits: ["update:modelValue", "add", "clear", "change", "refresh", "checkAll"],
|
|
@@ -9096,9 +9141,12 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
9096
9141
|
Form: form,
|
|
9097
9142
|
FormItem: formItem,
|
|
9098
9143
|
FormGroup: formGroup,
|
|
9144
|
+
ErrorText: errorText,
|
|
9145
|
+
HelperText: helperText,
|
|
9099
9146
|
formClassNames,
|
|
9100
9147
|
formProps,
|
|
9101
9148
|
formKey,
|
|
9149
|
+
formItemProps,
|
|
9102
9150
|
Header: header,
|
|
9103
9151
|
Breadcrumb: breadcrumb,
|
|
9104
9152
|
BreadcrumbItem: DaoBreadcrumbItem,
|
|
@@ -9110,7 +9158,7 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
9110
9158
|
NavItem: navItem,
|
|
9111
9159
|
NavSub: navSub,
|
|
9112
9160
|
Pagination: DaoPagination,
|
|
9113
|
-
Popover: _sfc_main$
|
|
9161
|
+
Popover: _sfc_main$G,
|
|
9114
9162
|
Popper: DaoPopper,
|
|
9115
9163
|
Progress: progress,
|
|
9116
9164
|
Radio: radio,
|
|
@@ -9124,8 +9172,8 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
9124
9172
|
TabItem: tabItem,
|
|
9125
9173
|
Tag: DaoTag,
|
|
9126
9174
|
Toolbar: DaoToolbar,
|
|
9127
|
-
Tooltip: _sfc_main$
|
|
9128
|
-
TextButton: _sfc_main$
|
|
9175
|
+
Tooltip: _sfc_main$H,
|
|
9176
|
+
TextButton: _sfc_main$Q,
|
|
9129
9177
|
DaoEllipsis,
|
|
9130
9178
|
Transfer: transfer,
|
|
9131
9179
|
TransferPanel: transferPanel
|
|
@@ -9253,4 +9301,4 @@ var index = {
|
|
|
9253
9301
|
install,
|
|
9254
9302
|
locale
|
|
9255
9303
|
};
|
|
9256
|
-
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, DaoBatchBar, DaoEllipsis, dialog as Dialog, DialogFooter, DialogHeader, drawer as Drawer, DaoDropdown as Dropdown, DaoDropdownItem as DropdownItem, DaoDropdownMenu as DropdownMenu, expansion as Expansion, expansionItem as ExpansionItem, form as Form, formGroup as FormGroup, formItem as FormItem, header as Header, DaoIcon as Icon, DaoInput as Input, message as Message, nav as Nav, navHead as NavHead, navItem as NavItem, navSub as NavSub, DaoOption as Option, DaoPagination as Pagination, _sfc_main$
|
|
9304
|
+
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, DaoBatchBar, DaoEllipsis, dialog as Dialog, DialogFooter, DialogHeader, drawer as Drawer, DaoDropdown as Dropdown, DaoDropdownItem as DropdownItem, DaoDropdownMenu as DropdownMenu, errorText as ErrorText, expansion as Expansion, expansionItem as ExpansionItem, form as Form, formGroup as FormGroup, formItem as FormItem, header as Header, helperText as HelperText, 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$G as Popover, DaoPopper as Popper, progress as Progress, radio as Radio, radioGroup as RadioGroup, DaoSelect as Select, _switch as Switch, tabItem as TabItem, _sfc_main$4 as TabNav, table as Table, tabs as Tabs, DaoTag as Tag, _sfc_main$Q as TextButton, DaoToolbar as Toolbar, _sfc_main$H as Tooltip, transfer as Transfer, transferPanel as TransferPanel, index as default, formClassNames, formItemProps, formKey, formProps };
|