@qynpm/ui 1.0.25 → 1.0.27
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/README.md +313 -27
- package/dist/index.cjs +10 -4
- package/dist/index.mjs +69 -42
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-alert/index.cjs +1 -0
- package/dist/qy-alert/index.mjs +7 -0
- package/dist/qy-avatar/index.cjs +1 -0
- package/dist/qy-avatar/index.mjs +7 -0
- package/dist/qy-badge/index.cjs +1 -0
- package/dist/qy-badge/index.mjs +7 -0
- package/dist/qy-button/index.cjs +1 -1
- package/dist/qy-button/index.mjs +1 -1
- package/dist/qy-card/index.cjs +1 -0
- package/dist/qy-card/index.mjs +7 -0
- package/dist/qy-cascader/index.cjs +1 -0
- package/dist/qy-cascader/index.mjs +7 -0
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +1 -1
- package/dist/qy-collapse/index.cjs +1 -0
- package/dist/qy-collapse/index.mjs +7 -0
- package/dist/qy-collapse-item/index.cjs +1 -0
- package/dist/qy-collapse-item/index.mjs +7 -0
- package/dist/qy-descriptions/index.cjs +1 -0
- package/dist/qy-descriptions/index.mjs +7 -0
- package/dist/qy-descriptions-item/index.cjs +1 -0
- package/dist/qy-descriptions-item/index.mjs +7 -0
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-divider/index.cjs +1 -0
- package/dist/qy-divider/index.mjs +7 -0
- package/dist/qy-dropdown/index.cjs +1 -1
- package/dist/qy-dropdown/index.mjs +1 -1
- package/dist/qy-empty/index.cjs +1 -0
- package/dist/qy-empty/index.mjs +7 -0
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +2 -2
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +1 -1
- package/dist/qy-input-number/index.mjs +3 -4
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +2 -2
- package/dist/qy-link/index.cjs +1 -0
- package/dist/qy-link/index.mjs +7 -0
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +1 -1
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +1 -1
- package/dist/qy-progress/index.cjs +1 -0
- package/dist/qy-progress/index.mjs +7 -0
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-scrollbar/index.cjs +1 -0
- package/dist/qy-scrollbar/index.mjs +7 -0
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-skeleton/index.cjs +1 -0
- package/dist/qy-skeleton/index.mjs +7 -0
- package/dist/qy-skeleton-item/index.cjs +1 -0
- package/dist/qy-skeleton-item/index.mjs +7 -0
- package/dist/qy-step/index.cjs +1 -0
- package/dist/qy-step/index.mjs +7 -0
- package/dist/qy-steps/index.cjs +1 -0
- package/dist/qy-steps/index.mjs +7 -0
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -0
- package/dist/qy-tab-pane/index.mjs +7 -0
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -0
- package/dist/qy-tabs/index.mjs +7 -0
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +1 -1
- package/dist/qy-tree/index.cjs +1 -0
- package/dist/qy-tree/index.mjs +7 -0
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +5 -4
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/shared/{index-9v7CIwzO.cjs → index-B9RYNZUh.cjs} +1 -1
- package/dist/shared/{index-B7uyWUhS.mjs → index-C7V-LeFg.mjs} +1 -1
- package/dist/shared/{index-Du2IqeCI.mjs → index-CYn7TvRx.mjs} +1 -1
- package/dist/shared/index-CnZNcnTs.cjs +1 -0
- package/dist/shared/{index-DmhpD4Cp.cjs → index-CpvFUems.cjs} +1 -1
- package/dist/shared/{index-C1YwUATr.cjs → index-DEkng5wh.cjs} +1 -1
- package/dist/shared/index-DHJf8Zto.mjs +377 -0
- package/dist/shared/index-DjyaOKUS.cjs +1 -0
- package/dist/shared/{index-DvQdcj7u.mjs → index-T9Om5Csd.mjs} +1197 -1134
- package/dist/shared/{index-DZroPZ8B.mjs → index-hEy-3mcr.mjs} +8 -8
- package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +47 -0
- package/dist/shared/index.vue_vue_type_script_lang-BGAdXWIL.mjs +78 -0
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-C4JHCuXz.mjs +54 -0
- package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +71 -0
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +77 -0
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-D7b9ABei.mjs +113 -0
- package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +35 -0
- package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +72 -0
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-DOOT2grg.mjs +54 -0
- package/dist/shared/index.vue_vue_type_script_lang-Dfq7D3mJ.mjs +18 -0
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-chBiq2cG.mjs +31 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +43 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +42 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +62 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CKZHI_y-.mjs → index.vue_vue_type_script_setup_true_lang-CUox3Lm-.mjs} +1 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CmQLfhRo.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-C3F8M9sD.cjs → index.vue_vue_type_script_setup_true_lang-DXGjuA2f.cjs} +1 -1
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-N12Nn2uu.mjs → index.vue_vue_type_script_setup_true_lang-DXtovY1E.mjs} +1 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +19 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DobP199g.mjs +63 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CsKjCWIN.cjs → index.vue_vue_type_script_setup_true_lang-kje3Rtlw.cjs} +1 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B-FeHatv.mjs +98 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +67 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Cb4yMk-r.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Cn3P9d4L.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CnL4aeg1.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DIMCVnQm.mjs +286 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DOfJV2oz.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DzfGx6ce.mjs +298 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-dLpQXf6x.mjs +87 -0
- package/index.d.ts +272 -24
- package/package.json +128 -2
- package/qy-alert/index.d.ts +64 -0
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-avatar/index.d.ts +67 -0
- package/qy-badge/index.d.ts +63 -0
- package/qy-card/index.d.ts +64 -0
- package/qy-cascader/index.d.ts +198 -0
- package/qy-collapse/index.d.ts +59 -0
- package/qy-collapse-item/index.d.ts +45 -0
- package/qy-descriptions/index.d.ts +47 -0
- package/qy-descriptions-item/index.d.ts +46 -0
- package/qy-divider/index.d.ts +53 -0
- package/qy-empty/index.d.ts +51 -0
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +20 -20
- package/qy-link/index.d.ts +69 -0
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-progress/index.d.ts +74 -0
- package/qy-scrollbar/index.d.ts +85 -0
- package/qy-skeleton/index.d.ts +54 -0
- package/qy-skeleton-item/index.d.ts +48 -0
- package/qy-step/index.d.ts +55 -0
- package/qy-steps/index.d.ts +62 -0
- package/qy-tab-pane/index.d.ts +40 -0
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tabs/index.d.ts +84 -0
- package/qy-tree/index.d.ts +132 -0
- package/qy-tree-select/index.d.ts +123 -5
- package/dist/shared/index-528z_q7d.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C-Pf9TJ0.mjs +0 -152
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DWS8bsiP.cjs +0 -1
- /package/dist/shared/{index-C1p86ezL.cjs → index-BDdhBEFr.cjs} +0 -0
- /package/dist/shared/{index-R5B1rjXo.mjs → index-BbDWedqW.mjs} +0 -0
- /package/dist/shared/{index-QQkDJv3q.cjs → index-BqV6vW9P.cjs} +0 -0
- /package/dist/shared/{index-DrJuMzr1.mjs → index-CUITnlPr.mjs} +0 -0
- /package/dist/shared/{index-CuusBxhR.cjs → index-DA3GVIZY.cjs} +0 -0
- /package/dist/shared/{index-BYLXkIxS.mjs → index-DEZF-Fkt.mjs} +0 -0
- /package/dist/shared/{index-ClUqUsAv.cjs → index-DIs6iPjF.cjs} +0 -0
- /package/dist/shared/{index-EGnVOaC9.cjs → index-DMiZy6gD.cjs} +0 -0
- /package/dist/shared/{index-Cl5cuyVG.mjs → index-DvA3Wy_F.mjs} +0 -0
- /package/dist/shared/{index-BcCZMWAj.cjs → index-PlyLRNmb.cjs} +0 -0
- /package/dist/shared/{index-zJN0M-bx.cjs → index-UGOgNLvm.cjs} +0 -0
- /package/dist/shared/{index-yf2Ijz_G.mjs → index-WP9Dbscv.mjs} +0 -0
- /package/dist/shared/{index-CbCpXtYr.mjs → index-YsBzyp9n.mjs} +0 -0
- /package/dist/shared/{index-BTPk2zzq.cjs → index-ceTTRCGJ.cjs} +0 -0
- /package/dist/shared/{index-C6jcSQSF.mjs → index-mTWXYnLm.mjs} +0 -0
- /package/dist/shared/{index-Cy_Glkc-.mjs → index-seQHtqdh.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BZQLyvw8.cjs → index.vue_vue_type_style_index_0_lang-C6urLjSf.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-ztD-It-2.mjs → index.vue_vue_type_style_index_0_lang-CVxWn-Vs.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs → index.vue_vue_type_style_index_0_lang-CWz689KH.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-D1kpIund.mjs} +0 -0
|
@@ -29,16 +29,16 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
29
29
|
})), S = a(() => ({
|
|
30
30
|
width: h(v.value.width),
|
|
31
31
|
height: h(v.value.height)
|
|
32
|
-
})),
|
|
32
|
+
})), k = a(() => e.placeholder || l.value), y = a(() => e.preview && !!f.value), B = a(() => (e.previewList.length ? e.previewList : [e.src]).map((r) => I(r)).filter(Boolean));
|
|
33
33
|
P(
|
|
34
34
|
() => [e.src, e.compressor],
|
|
35
|
-
|
|
35
|
+
E,
|
|
36
36
|
{
|
|
37
37
|
immediate: !0,
|
|
38
38
|
deep: !0
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
async function
|
|
41
|
+
async function E() {
|
|
42
42
|
const t = ++m;
|
|
43
43
|
if (o.value = "", l.value = !1, !!e.src)
|
|
44
44
|
try {
|
|
@@ -52,7 +52,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
52
52
|
l.value = !1, o.value = f.value;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function b(t) {
|
|
56
56
|
s("load", t);
|
|
57
57
|
}
|
|
58
58
|
function x(t) {
|
|
@@ -60,7 +60,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
60
60
|
}
|
|
61
61
|
function C() {
|
|
62
62
|
y.value && (O({
|
|
63
|
-
urlList:
|
|
63
|
+
urlList: B.value,
|
|
64
64
|
initialIndex: e.initialIndex
|
|
65
65
|
}), s("preview", f.value));
|
|
66
66
|
}
|
|
@@ -78,7 +78,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
78
78
|
src: o.value,
|
|
79
79
|
fit: d.fit,
|
|
80
80
|
lazy: d.lazy,
|
|
81
|
-
onLoad:
|
|
81
|
+
onLoad: b,
|
|
82
82
|
onError: x
|
|
83
83
|
}, {
|
|
84
84
|
placeholder: n(() => [
|
|
@@ -101,7 +101,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
101
101
|
], !0)
|
|
102
102
|
]),
|
|
103
103
|
_: 3
|
|
104
|
-
}, 8, ["src", "fit", "lazy"])) :
|
|
104
|
+
}, 8, ["src", "fit", "lazy"])) : k.value ? p(t.$slots, "empty", {}, () => [
|
|
105
105
|
c("div", A, [
|
|
106
106
|
u(i(w), { size: 20 }, {
|
|
107
107
|
default: n(() => [
|
|
@@ -113,7 +113,7 @@ const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-
|
|
|
113
113
|
], !0, 1) : j("", !0)
|
|
114
114
|
], 6));
|
|
115
115
|
}
|
|
116
|
-
}), W = /* @__PURE__ */ R(G, [["__scopeId", "data-v-
|
|
116
|
+
}), W = /* @__PURE__ */ R(G, [["__scopeId", "data-v-02c4930c"]]);
|
|
117
117
|
export {
|
|
118
118
|
W as I
|
|
119
119
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as a, computed as c, h as s } from "vue";
|
|
2
|
+
import { ElStep as o } from "element-plus";
|
|
3
|
+
const d = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t.startsWith("data-") || t.startsWith("aria-"), l = a({
|
|
4
|
+
name: "QyStep",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
title: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
description: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
icon: {
|
|
16
|
+
type: [String, Object],
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
status: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(t, { attrs: e, slots: i }) {
|
|
25
|
+
const n = c(
|
|
26
|
+
() => Object.fromEntries(Object.entries(e).filter(([r]) => d(r)))
|
|
27
|
+
);
|
|
28
|
+
return () => s(
|
|
29
|
+
o,
|
|
30
|
+
{
|
|
31
|
+
...n.value,
|
|
32
|
+
title: t.title,
|
|
33
|
+
description: t.description,
|
|
34
|
+
icon: t.icon,
|
|
35
|
+
status: t.status
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
...i.icon ? { icon: i.icon } : {},
|
|
39
|
+
...i.title ? { title: i.title } : {},
|
|
40
|
+
...i.description ? { description: i.description } : {}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
l as _
|
|
47
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as n, computed as o, h as d } from "vue";
|
|
2
|
+
import { ElProgress as s } from "element-plus";
|
|
3
|
+
const l = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), c = n({
|
|
4
|
+
name: "QyProgress",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
type: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "line"
|
|
10
|
+
},
|
|
11
|
+
percentage: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 0
|
|
14
|
+
},
|
|
15
|
+
status: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
indeterminate: Boolean,
|
|
20
|
+
duration: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 3
|
|
23
|
+
},
|
|
24
|
+
strokeWidth: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 6
|
|
27
|
+
},
|
|
28
|
+
strokeLinecap: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "round"
|
|
31
|
+
},
|
|
32
|
+
textInside: Boolean,
|
|
33
|
+
width: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: 126
|
|
36
|
+
},
|
|
37
|
+
showText: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !0
|
|
40
|
+
},
|
|
41
|
+
color: {
|
|
42
|
+
type: [String, Array, Function],
|
|
43
|
+
default: ""
|
|
44
|
+
},
|
|
45
|
+
striped: Boolean,
|
|
46
|
+
stripedFlow: Boolean,
|
|
47
|
+
format: Function
|
|
48
|
+
},
|
|
49
|
+
setup(t, { attrs: a, slots: e }) {
|
|
50
|
+
const r = o(
|
|
51
|
+
() => Object.fromEntries(Object.entries(a).filter(([i]) => l(i)))
|
|
52
|
+
);
|
|
53
|
+
return () => d(
|
|
54
|
+
s,
|
|
55
|
+
{
|
|
56
|
+
...r.value,
|
|
57
|
+
type: t.type,
|
|
58
|
+
percentage: t.percentage,
|
|
59
|
+
status: t.status,
|
|
60
|
+
indeterminate: t.indeterminate,
|
|
61
|
+
duration: t.duration,
|
|
62
|
+
strokeWidth: t.strokeWidth,
|
|
63
|
+
strokeLinecap: t.strokeLinecap,
|
|
64
|
+
textInside: t.textInside,
|
|
65
|
+
width: t.width,
|
|
66
|
+
showText: t.showText,
|
|
67
|
+
color: t.color,
|
|
68
|
+
striped: t.striped,
|
|
69
|
+
stripedFlow: t.stripedFlow,
|
|
70
|
+
format: t.format
|
|
71
|
+
},
|
|
72
|
+
e.default ? { default: e.default } : void 0
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
c as _
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),s=require("element-plus"),a=t=>t==="class"||t==="style"||t==="id"||t==="role"||t.startsWith("data-")||t.startsWith("aria-"),u=i.defineComponent({name:"QyStep",inheritAttrs:!1,props:{title:{type:String,default:""},description:{type:String,default:""},icon:{type:[String,Object],default:""},status:{type:String,default:""}},setup(t,{attrs:n,slots:e}){const r=i.computed(()=>Object.fromEntries(Object.entries(n).filter(([c])=>a(c))));return()=>i.h(s.ElStep,{...r.value,title:t.title,description:t.description,icon:t.icon,status:t.status},{...e.icon?{icon:e.icon}:{},...e.title?{title:e.title}:{},...e.description?{description:e.description}:{}})}});exports._sfc_main=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("element-plus"),m=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"),c=e.defineComponent({name:"QyEmpty",inheritAttrs:!1,props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},setup(t,{attrs:i,slots:s}){const r=e.computed(()=>Object.fromEntries(Object.entries(i).filter(([a])=>m(a))));return()=>e.h(n.ElEmpty,{...r.value,image:t.image,imageSize:t.imageSize,description:t.description},s)}});exports._sfc_main=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("element-plus"),s=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"),o=e.defineComponent({name:"QyProgress",inheritAttrs:!1,props:{type:{type:String,default:"line"},percentage:{type:Number,default:0},status:{type:String,default:""},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},striped:Boolean,stripedFlow:Boolean,format:Function},setup(t,{attrs:a,slots:i}){const r=e.computed(()=>Object.fromEntries(Object.entries(a).filter(([n])=>s(n))));return()=>e.h(d.ElProgress,{...r.value,type:t.type,percentage:t.percentage,status:t.status,indeterminate:t.indeterminate,duration:t.duration,strokeWidth:t.strokeWidth,strokeLinecap:t.strokeLinecap,textInside:t.textInside,width:t.width,showText:t.showText,color:t.color,striped:t.striped,stripedFlow:t.stripedFlow,format:t.format},i.default?{default:i.default}:void 0)}});exports._sfc_main=o;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent as i, computed as r, h as f } from "vue";
|
|
2
|
+
import { ElCard as n } from "element-plus";
|
|
3
|
+
const c = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t === "tabindex" || t.startsWith("data-") || t.startsWith("aria-"), h = ["header", "default", "footer"], b = i({
|
|
4
|
+
name: "QyCard",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
header: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
footer: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
shadow: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "always"
|
|
18
|
+
},
|
|
19
|
+
bodyStyle: [String, Object, Array],
|
|
20
|
+
headerClass: String,
|
|
21
|
+
bodyClass: String,
|
|
22
|
+
footerClass: String
|
|
23
|
+
},
|
|
24
|
+
emits: {
|
|
25
|
+
click: () => !0
|
|
26
|
+
},
|
|
27
|
+
setup(t, { attrs: s, slots: a, emit: o }) {
|
|
28
|
+
const l = r(
|
|
29
|
+
() => Object.fromEntries(Object.entries(s).filter(([e]) => c(e)))
|
|
30
|
+
), d = r(
|
|
31
|
+
() => Object.fromEntries(
|
|
32
|
+
h.filter((e) => a[e]).map((e) => [e, a[e]])
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
return () => f(
|
|
36
|
+
n,
|
|
37
|
+
{
|
|
38
|
+
...l.value,
|
|
39
|
+
header: t.header,
|
|
40
|
+
footer: t.footer,
|
|
41
|
+
shadow: t.shadow,
|
|
42
|
+
bodyStyle: t.bodyStyle,
|
|
43
|
+
headerClass: t.headerClass,
|
|
44
|
+
bodyClass: t.bodyClass,
|
|
45
|
+
footerClass: t.footerClass,
|
|
46
|
+
onClick: (e) => o("click", e)
|
|
47
|
+
},
|
|
48
|
+
d.value
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
b as _
|
|
54
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as c, computed as i, h as a } from "vue";
|
|
2
|
+
import { ElAlert as f } from "element-plus";
|
|
3
|
+
const d = ["primary", "success", "warning", "info", "error"], u = ["light", "dark"], m = {
|
|
4
|
+
title: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: ""
|
|
7
|
+
},
|
|
8
|
+
description: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: ""
|
|
11
|
+
},
|
|
12
|
+
type: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "info",
|
|
15
|
+
validator: (t) => d.includes(t)
|
|
16
|
+
},
|
|
17
|
+
closable: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
closeText: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
showIcon: Boolean,
|
|
26
|
+
center: Boolean,
|
|
27
|
+
effect: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "light",
|
|
30
|
+
validator: (t) => u.includes(t)
|
|
31
|
+
}
|
|
32
|
+
}, g = c({
|
|
33
|
+
name: "QyAlert",
|
|
34
|
+
inheritAttrs: !1,
|
|
35
|
+
props: m,
|
|
36
|
+
emits: {
|
|
37
|
+
close: () => !0
|
|
38
|
+
},
|
|
39
|
+
setup(t, { attrs: o, slots: l, emit: r }) {
|
|
40
|
+
const n = i(
|
|
41
|
+
() => Object.fromEntries(
|
|
42
|
+
Object.entries(o).filter(
|
|
43
|
+
([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e.startsWith("data-") || e.startsWith("aria-")
|
|
44
|
+
)
|
|
45
|
+
)
|
|
46
|
+
), s = i(
|
|
47
|
+
() => Object.fromEntries(
|
|
48
|
+
["icon", "title", "default"].filter((e) => l[e]).map((e) => [e, l[e]])
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
return () => a(
|
|
52
|
+
f,
|
|
53
|
+
{
|
|
54
|
+
...n.value,
|
|
55
|
+
title: t.title,
|
|
56
|
+
description: t.description,
|
|
57
|
+
type: t.type,
|
|
58
|
+
closable: t.closable,
|
|
59
|
+
closeText: t.closeText,
|
|
60
|
+
showIcon: t.showIcon,
|
|
61
|
+
center: t.center,
|
|
62
|
+
effect: t.effect,
|
|
63
|
+
onClose: () => r("close")
|
|
64
|
+
},
|
|
65
|
+
s.value
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
g as _
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),s=require("element-plus"),o=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"),f={label:["label"],span:["span"],rowspan:["rowspan"],width:["width"],minWidth:["minWidth","min-width"],labelWidth:["labelWidth","label-width"],align:["align"],labelAlign:["labelAlign","label-align"],className:["className","class-name"],labelClassName:["labelClassName","label-class-name"]};function c(t){return typeof t.type=="object"&&t.type!==null&&t.type.name==="QyDescriptionsItem"}function m(t){const e={};return Object.entries(f).forEach(([a,l])=>{const n=l.find(u=>(t==null?void 0:t[u])!==void 0);n&&(e[a]=t==null?void 0:t[n])}),e.span??(e.span=1),e.rowspan??(e.rowspan=1),e}function d(t){if(t&&typeof t=="object"&&!Array.isArray(t)){const e={};return typeof t.default=="function"&&(e.default=t.default),typeof t.label=="function"&&(e.label=t.label),e}if(t!=null)return{default:()=>t}}function r(t){const e=[];return t.forEach(a=>{if(Array.isArray(a)){e.push(...r(a));return}if(!i.isVNode(a)){e.push(a);return}if(c(a)){e.push(i.h(s.ElDescriptionsItem,{...m(a.props),key:a.key??void 0},d(a.children)));return}if(a.type===i.Fragment&&Array.isArray(a.children)){e.push(i.h(i.Fragment,{key:a.key??void 0},r(a.children)));return}e.push(a)}),e}const b=i.defineComponent({name:"QyDescriptions",inheritAttrs:!1,props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},size:{type:String,default:"",validator:t=>["","large","default","small"].includes(t)},title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],required:!1}},setup(t,{attrs:e,slots:a}){const l=i.computed(()=>Object.fromEntries(Object.entries(e).filter(([n])=>o(n))));return()=>i.h(s.ElDescriptions,{...l.value,class:["qy-descriptions",l.value.class],border:t.border,column:t.column,direction:t.direction,size:t.size,title:t.title,extra:t.extra,labelWidth:t.labelWidth},{default:()=>{var n;return r(((n=a.default)==null?void 0:n.call(a))??[])},title:a.title,extra:a.extra})}});exports._sfc_main=b;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent as S, computed as d, h as a, isVNode as g, Fragment as o } from "vue";
|
|
2
|
+
import { ElSteps as y, ElStep as b } from "element-plus";
|
|
3
|
+
const u = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), h = (t) => t === "title" || t === "description" || t === "icon" || t === "status" || u(t), v = S({
|
|
4
|
+
name: "QySteps",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
space: {
|
|
8
|
+
type: [Number, String],
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
active: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 0
|
|
14
|
+
},
|
|
15
|
+
direction: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "horizontal"
|
|
18
|
+
},
|
|
19
|
+
alignCenter: Boolean,
|
|
20
|
+
simple: Boolean,
|
|
21
|
+
finishStatus: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "finish"
|
|
24
|
+
},
|
|
25
|
+
processStatus: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "process"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: {
|
|
31
|
+
change: (t, n) => Number.isFinite(t) && Number.isFinite(n)
|
|
32
|
+
},
|
|
33
|
+
setup(t, { attrs: n, emit: f, slots: i }) {
|
|
34
|
+
const p = d(
|
|
35
|
+
() => Object.fromEntries(Object.entries(n).filter(([r]) => u(r)))
|
|
36
|
+
);
|
|
37
|
+
function c(r) {
|
|
38
|
+
return typeof r.type == "object" && r.type !== null && r.type.name === "QyStep";
|
|
39
|
+
}
|
|
40
|
+
function s(r) {
|
|
41
|
+
return r.map((e) => {
|
|
42
|
+
if (!g(e)) return e;
|
|
43
|
+
if (c(e)) {
|
|
44
|
+
const m = Object.fromEntries(
|
|
45
|
+
Object.entries(e.props ?? {}).filter(([l]) => h(l))
|
|
46
|
+
);
|
|
47
|
+
return a(b, {
|
|
48
|
+
...m,
|
|
49
|
+
key: e.key ?? void 0
|
|
50
|
+
}, e.children);
|
|
51
|
+
}
|
|
52
|
+
return e.type === o && Array.isArray(e.children) ? a(o, { key: e.key ?? void 0 }, s(e.children)) : e;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return () => a(
|
|
56
|
+
y,
|
|
57
|
+
{
|
|
58
|
+
...p.value,
|
|
59
|
+
space: t.space,
|
|
60
|
+
active: t.active,
|
|
61
|
+
direction: t.direction,
|
|
62
|
+
alignCenter: t.alignCenter,
|
|
63
|
+
simple: t.simple,
|
|
64
|
+
finishStatus: t.finishStatus,
|
|
65
|
+
processStatus: t.processStatus,
|
|
66
|
+
onChange: (r, e) => f("change", r, e)
|
|
67
|
+
},
|
|
68
|
+
i.default ? { default: () => {
|
|
69
|
+
var r;
|
|
70
|
+
return s(((r = i.default) == null ? void 0 : r.call(i)) ?? []);
|
|
71
|
+
} } : void 0
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
v as _
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue"),o=require("element-plus"),a=["primary","success","warning","info","error"],f=["light","dark"],u={title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info",validator:e=>a.includes(e)},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:e=>f.includes(e)}},d=l.defineComponent({name:"QyAlert",inheritAttrs:!1,props:u,emits:{close:()=>!0},setup(e,{attrs:n,slots:i,emit:s}){const c=l.computed(()=>Object.fromEntries(Object.entries(n).filter(([t])=>t==="class"||t==="style"||t==="id"||t==="role"||t.startsWith("data-")||t.startsWith("aria-")))),r=l.computed(()=>Object.fromEntries(["icon","title","default"].filter(t=>i[t]).map(t=>[t,i[t]])));return()=>l.h(o.ElAlert,{...c.value,title:e.title,description:e.description,type:e.type,closable:e.closable,closeText:e.closeText,showIcon:e.showIcon,center:e.center,effect:e.effect,onClose:()=>s("close")},r.value)}});exports._sfc_main=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),i=require("element-plus"),n=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t==="tabindex"||t.startsWith("data-")||t.startsWith("aria-"),c=["header","default","footer"],f=a.defineComponent({name:"QyCard",inheritAttrs:!1,props:{header:{type:String,default:""},footer:{type:String,default:""},shadow:{type:String,default:"always"},bodyStyle:[String,Object,Array],headerClass:String,bodyClass:String,footerClass:String},emits:{click:()=>!0},setup(t,{attrs:s,slots:r,emit:o}){const l=a.computed(()=>Object.fromEntries(Object.entries(s).filter(([e])=>n(e)))),d=a.computed(()=>Object.fromEntries(c.filter(e=>r[e]).map(e=>[e,r[e]])));return()=>a.h(i.ElCard,{...l.value,header:t.header,footer:t.footer,shadow:t.shadow,bodyStyle:t.bodyStyle,headerClass:t.headerClass,bodyClass:t.bodyClass,footerClass:t.footerClass,onClick:e=>o("click",e)},d.value)}});exports._sfc_main=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),u=require("element-plus"),c=e=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"),S=e=>e==="title"||e==="description"||e==="icon"||e==="status"||c(e),d=i.defineComponent({name:"QySteps",inheritAttrs:!1,props:{space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},emits:{change:(e,s)=>Number.isFinite(e)&&Number.isFinite(s)},setup(e,{attrs:s,emit:f,slots:r}){const o=i.computed(()=>Object.fromEntries(Object.entries(s).filter(([n])=>c(n))));function p(n){return typeof n.type=="object"&&n.type!==null&&n.type.name==="QyStep"}function a(n){return n.map(t=>{if(!i.isVNode(t))return t;if(p(t)){const l=Object.fromEntries(Object.entries(t.props??{}).filter(([m])=>S(m)));return i.h(u.ElStep,{...l,key:t.key??void 0},t.children)}return t.type===i.Fragment&&Array.isArray(t.children)?i.h(i.Fragment,{key:t.key??void 0},a(t.children)):t})}return()=>i.h(u.ElSteps,{...o.value,space:e.space,active:e.active,direction:e.direction,alignCenter:e.alignCenter,simple:e.simple,finishStatus:e.finishStatus,processStatus:e.processStatus,onChange:(n,t)=>f("change",n,t)},r.default?{default:()=>{var n;return a(((n=r.default)==null?void 0:n.call(r))??[])}}:void 0)}});exports._sfc_main=d;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent as o, computed as f, h as l, isVNode as m, Fragment as s } from "vue";
|
|
2
|
+
import { ElDescriptions as c, ElDescriptionsItem as d } from "element-plus";
|
|
3
|
+
const b = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), y = {
|
|
4
|
+
label: ["label"],
|
|
5
|
+
span: ["span"],
|
|
6
|
+
rowspan: ["rowspan"],
|
|
7
|
+
width: ["width"],
|
|
8
|
+
minWidth: ["minWidth", "min-width"],
|
|
9
|
+
labelWidth: ["labelWidth", "label-width"],
|
|
10
|
+
align: ["align"],
|
|
11
|
+
labelAlign: ["labelAlign", "label-align"],
|
|
12
|
+
className: ["className", "class-name"],
|
|
13
|
+
labelClassName: ["labelClassName", "label-class-name"]
|
|
14
|
+
};
|
|
15
|
+
function g(t) {
|
|
16
|
+
return typeof t.type == "object" && t.type !== null && t.type.name === "QyDescriptionsItem";
|
|
17
|
+
}
|
|
18
|
+
function p(t) {
|
|
19
|
+
const e = {};
|
|
20
|
+
return Object.entries(y).forEach(([a, n]) => {
|
|
21
|
+
const i = n.find((u) => (t == null ? void 0 : t[u]) !== void 0);
|
|
22
|
+
i && (e[a] = t == null ? void 0 : t[i]);
|
|
23
|
+
}), e.span ?? (e.span = 1), e.rowspan ?? (e.rowspan = 1), e;
|
|
24
|
+
}
|
|
25
|
+
function A(t) {
|
|
26
|
+
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
27
|
+
const e = {};
|
|
28
|
+
return typeof t.default == "function" && (e.default = t.default), typeof t.label == "function" && (e.label = t.label), e;
|
|
29
|
+
}
|
|
30
|
+
if (t != null)
|
|
31
|
+
return { default: () => t };
|
|
32
|
+
}
|
|
33
|
+
function r(t) {
|
|
34
|
+
const e = [];
|
|
35
|
+
return t.forEach((a) => {
|
|
36
|
+
if (Array.isArray(a)) {
|
|
37
|
+
e.push(...r(a));
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (!m(a)) {
|
|
41
|
+
e.push(a);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (g(a)) {
|
|
45
|
+
e.push(l(
|
|
46
|
+
d,
|
|
47
|
+
{ ...p(a.props), key: a.key ?? void 0 },
|
|
48
|
+
A(a.children)
|
|
49
|
+
));
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (a.type === s && Array.isArray(a.children)) {
|
|
53
|
+
e.push(l(
|
|
54
|
+
s,
|
|
55
|
+
{ key: a.key ?? void 0 },
|
|
56
|
+
r(a.children)
|
|
57
|
+
));
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
e.push(a);
|
|
61
|
+
}), e;
|
|
62
|
+
}
|
|
63
|
+
const v = o({
|
|
64
|
+
name: "QyDescriptions",
|
|
65
|
+
inheritAttrs: !1,
|
|
66
|
+
props: {
|
|
67
|
+
border: { type: Boolean, default: !1 },
|
|
68
|
+
column: { type: Number, default: 3 },
|
|
69
|
+
direction: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "horizontal",
|
|
72
|
+
validator: (t) => ["horizontal", "vertical"].includes(t)
|
|
73
|
+
},
|
|
74
|
+
size: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: "",
|
|
77
|
+
validator: (t) => ["", "large", "default", "small"].includes(t)
|
|
78
|
+
},
|
|
79
|
+
title: { type: String, default: "" },
|
|
80
|
+
extra: { type: String, default: "" },
|
|
81
|
+
labelWidth: { type: [String, Number], required: !1 }
|
|
82
|
+
},
|
|
83
|
+
setup(t, { attrs: e, slots: a }) {
|
|
84
|
+
const n = f(
|
|
85
|
+
() => Object.fromEntries(Object.entries(e).filter(([i]) => b(i)))
|
|
86
|
+
);
|
|
87
|
+
return () => l(
|
|
88
|
+
c,
|
|
89
|
+
{
|
|
90
|
+
...n.value,
|
|
91
|
+
class: ["qy-descriptions", n.value.class],
|
|
92
|
+
border: t.border,
|
|
93
|
+
column: t.column,
|
|
94
|
+
direction: t.direction,
|
|
95
|
+
size: t.size,
|
|
96
|
+
title: t.title,
|
|
97
|
+
extra: t.extra,
|
|
98
|
+
labelWidth: t.labelWidth
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
default: () => {
|
|
102
|
+
var i;
|
|
103
|
+
return r(((i = a.default) == null ? void 0 : i.call(a)) ?? []);
|
|
104
|
+
},
|
|
105
|
+
title: a.title,
|
|
106
|
+
extra: a.extra
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
v as _
|
|
113
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as s, computed as m, h as n } from "vue";
|
|
2
|
+
import { ElEmpty as o } from "element-plus";
|
|
3
|
+
const c = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), l = s({
|
|
4
|
+
name: "QyEmpty",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
image: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
imageSize: Number,
|
|
12
|
+
description: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(t, { attrs: e, slots: i }) {
|
|
18
|
+
const r = m(
|
|
19
|
+
() => Object.fromEntries(Object.entries(e).filter(([a]) => c(a)))
|
|
20
|
+
);
|
|
21
|
+
return () => n(
|
|
22
|
+
o,
|
|
23
|
+
{
|
|
24
|
+
...r.value,
|
|
25
|
+
image: t.image,
|
|
26
|
+
imageSize: t.imageSize,
|
|
27
|
+
description: t.description
|
|
28
|
+
},
|
|
29
|
+
i
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
l as _
|
|
35
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as f, useAttrs as c, useSlots as u, ref as g, computed as r, h as m, mergeProps as b } from "vue";
|
|
2
|
+
import { ElBadge as h } from "element-plus";
|
|
3
|
+
const B = f({
|
|
4
|
+
name: "QyBadge",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
value: {
|
|
8
|
+
type: [String, Number],
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
max: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 99
|
|
14
|
+
},
|
|
15
|
+
isDot: Boolean,
|
|
16
|
+
hidden: Boolean,
|
|
17
|
+
type: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "danger"
|
|
20
|
+
},
|
|
21
|
+
showZero: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !0
|
|
24
|
+
},
|
|
25
|
+
color: String,
|
|
26
|
+
badgeStyle: [String, Boolean, Object, Array],
|
|
27
|
+
offset: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => [0, 0]
|
|
30
|
+
},
|
|
31
|
+
badgeClass: String
|
|
32
|
+
},
|
|
33
|
+
setup(e, { expose: s }) {
|
|
34
|
+
const l = c(), a = u(), o = g(), d = r(
|
|
35
|
+
() => Object.fromEntries(
|
|
36
|
+
Object.entries(l).filter(
|
|
37
|
+
([t]) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-")
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
), i = r(() => {
|
|
41
|
+
var t;
|
|
42
|
+
return ((t = o.value) == null ? void 0 : t.content) ?? "";
|
|
43
|
+
});
|
|
44
|
+
return s({ content: i }), () => m(
|
|
45
|
+
h,
|
|
46
|
+
b(d.value, {
|
|
47
|
+
ref: o,
|
|
48
|
+
class: "qy-badge",
|
|
49
|
+
value: e.value,
|
|
50
|
+
max: e.max,
|
|
51
|
+
isDot: e.isDot,
|
|
52
|
+
hidden: e.hidden,
|
|
53
|
+
type: e.type,
|
|
54
|
+
showZero: e.showZero,
|
|
55
|
+
color: e.color,
|
|
56
|
+
badgeStyle: e.badgeStyle,
|
|
57
|
+
offset: e.offset,
|
|
58
|
+
badgeClass: e.badgeClass
|
|
59
|
+
}),
|
|
60
|
+
{
|
|
61
|
+
default: a.default,
|
|
62
|
+
...a.content ? { content: ({ value: t }) => {
|
|
63
|
+
var n;
|
|
64
|
+
return (n = a.content) == null ? void 0 : n.call(a, { value: t });
|
|
65
|
+
} } : {}
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
B as _
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=e.defineComponent({name:"QyTabPane",inheritAttrs:!1,props:{label:{type:String,default:""},name:{type:[String,Number],required:!1},closable:{type:Boolean,required:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},setup(){return()=>null}});exports._sfc_main=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),c=require("element-plus"),u=a.defineComponent({name:"QyBadge",inheritAttrs:!1,props:{value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:[String,Boolean,Object,Array],offset:{type:Array,default:()=>[0,0]},badgeClass:String},setup(t,{expose:l}){const r=a.useAttrs(),n=a.useSlots(),s=a.ref(),d=a.computed(()=>Object.fromEntries(Object.entries(r).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),i=a.computed(()=>{var e;return((e=s.value)==null?void 0:e.content)??""});return l({content:i}),()=>a.h(c.ElBadge,a.mergeProps(d.value,{ref:s,class:"qy-badge",value:t.value,max:t.max,isDot:t.isDot,hidden:t.hidden,type:t.type,showZero:t.showZero,color:t.color,badgeStyle:t.badgeStyle,offset:t.offset,badgeClass:t.badgeClass}),{default:n.default,...n.content?{content:({value:e})=>{var o;return(o=n.content)==null?void 0:o.call(n,{value:e})}}:{}})}});exports._sfc_main=u;
|