@zl-ui-kit/components 0.27.0 → 0.27.1
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 +11 -32
- package/dist/components/ZlAction/List.vue.mjs +49 -46
- package/dist/components/ZlAction/index.vue.d.ts +7 -1
- package/dist/components/ZlAction/index.vue.mjs +12 -8
- package/dist/components/ZlAction/types.d.ts +5 -2
- package/dist/components/ZlAppLayout/HeaderAside.css +1 -0
- package/dist/components/ZlAppLayout/HeaderAside.vue.d.ts +25 -0
- package/dist/components/ZlAppLayout/HeaderAside.vue.mjs +6 -0
- package/dist/components/ZlAppLayout/HeaderAside2.vue.mjs +65 -0
- package/dist/components/ZlAppLayout/Horizontal.css +1 -1
- package/dist/components/ZlAppLayout/Vertical.css +1 -1
- package/dist/components/ZlAppLayout/Vertical2.vue.mjs +39 -41
- package/dist/components/ZlAppLayout/index.vue.d.ts +50 -6
- package/dist/components/ZlAppLayout/index.vue.mjs +26 -8
- package/dist/components/ZlAppSlogan/index.css +1 -1
- package/dist/components/ZlAppSlogan/index.vue.d.ts +1 -1
- package/dist/components/ZlAppSlogan/index.vue.mjs +19 -12
- package/dist/components/ZlBreadcrumb/index.css +1 -0
- package/dist/components/ZlBreadcrumb/index.vue.d.ts +32 -0
- package/dist/components/ZlBreadcrumb/index.vue.mjs +58 -0
- package/dist/components/ZlBreadcrumb/index3.vue.mjs +6 -0
- package/dist/components/ZlBreadcrumb/types.d.ts +16 -0
- package/dist/components/ZlButton/index.vue.d.ts +81 -0
- package/dist/components/ZlButton/index.vue.mjs +60 -0
- package/dist/components/ZlButton/index2.vue.mjs +5 -0
- package/dist/components/ZlCardPage/index.vue.d.ts +41 -3
- package/dist/components/ZlCardPage/index.vue.mjs +68 -68
- package/dist/components/ZlCardPage/resolvePagination.d.ts +20 -0
- package/dist/components/ZlCardPage/resolvePagination.mjs +24 -0
- package/dist/components/ZlCheckboxTag/index.css +1 -1
- package/dist/components/ZlCheckboxTag/index.vue.d.ts +4 -4
- package/dist/components/ZlCheckboxTag/index.vue.mjs +34 -30
- package/dist/components/ZlCopy/copy.mjs +17 -7
- package/dist/components/ZlCopy/index.css +1 -1
- package/dist/components/ZlCopy/index.vue.mjs +2 -2
- package/dist/components/ZlCopy/index2.vue.mjs +34 -36
- package/dist/components/ZlDescription/index.css +1 -1
- package/dist/components/ZlDescription/index.vue.mjs +28 -24
- package/dist/components/ZlDevMenu/index.css +1 -0
- package/dist/components/ZlDevMenu/index.vue.d.ts +33 -0
- package/dist/components/ZlDevMenu/index.vue.mjs +110 -0
- package/dist/components/ZlDevMenu/index3.vue.mjs +6 -0
- package/dist/components/ZlDevMenu/types.d.ts +8 -0
- package/dist/components/ZlDialog/index.css +1 -1
- package/dist/components/ZlDialog/index.vue.d.ts +3 -0
- package/dist/components/ZlDialog/index.vue.mjs +39 -35
- package/dist/components/ZlDictTag/index.vue.d.ts +12 -3
- package/dist/components/ZlDictTag/index.vue.mjs +31 -26
- package/dist/components/ZlDrawer/index.css +1 -1
- package/dist/components/ZlDrawer/index.vue.d.ts +3 -0
- package/dist/components/ZlDrawer/index.vue.mjs +36 -32
- package/dist/components/ZlDynamicComponent/index.vue.d.ts +5 -3
- package/dist/components/ZlForm/index.css +1 -1
- package/dist/components/ZlForm/index.vue.d.ts +7 -0
- package/dist/components/ZlForm/index.vue.mjs +50 -47
- package/dist/components/ZlLayoutSwitch/index.css +1 -1
- package/dist/components/ZlLayoutSwitch/index.vue.d.ts +10 -0
- package/dist/components/ZlLayoutSwitch/index.vue.mjs +1 -1
- package/dist/components/ZlLayoutSwitch/index2.vue.mjs +27 -19
- package/dist/components/ZlLoading/index.css +1 -0
- package/dist/components/ZlLoading/index.vue.d.ts +27 -0
- package/dist/components/ZlLoading/index.vue.mjs +8 -0
- package/dist/components/ZlLoading/index2.vue.mjs +30 -0
- package/dist/components/ZlLogin/components/LoginForm.css +1 -1
- package/dist/components/ZlLogin/components/LoginForm.vue.mjs +1 -1
- package/dist/components/ZlLogin/components/LoginForm2.vue.mjs +26 -25
- package/dist/components/ZlMenu/MenuIcon.d.ts +17 -0
- package/dist/components/ZlMenu/MenuIcon.mjs +21 -0
- package/dist/components/ZlMenu/ZlMenuItem.vue.d.ts +7 -0
- package/dist/components/ZlMenu/ZlMenuItem.vue.mjs +53 -0
- package/dist/components/ZlMenu/ZlMenuItem2.vue.mjs +5 -0
- package/dist/components/ZlMenu/index.css +1 -0
- package/dist/components/ZlMenu/index.vue.d.ts +40 -0
- package/dist/components/ZlMenu/index.vue.mjs +60 -0
- package/dist/components/ZlMenu/index3.vue.mjs +6 -0
- package/dist/components/ZlMenu/types.d.ts +20 -0
- package/dist/components/ZlPageContainer/index.css +1 -1
- package/dist/components/ZlPageContainer/index.vue.mjs +1 -1
- package/dist/components/ZlPagination/index.css +1 -1
- package/dist/components/ZlPagination/index.vue.d.ts +21 -1
- package/dist/components/ZlPagination/index.vue.mjs +1 -1
- package/dist/components/ZlPagination/index2.vue.mjs +59 -33
- package/dist/components/ZlPagination/usePagination.d.ts +1 -0
- package/dist/components/ZlPagination/usePagination.mjs +51 -34
- package/dist/components/ZlPopconfirm/index.vue.mjs +25 -24
- package/dist/components/ZlSearch/index.vue.d.ts +25 -0
- package/dist/components/ZlSearch/index.vue.mjs +202 -205
- package/dist/components/ZlSearchTable/index.vue.d.ts +40 -2
- package/dist/components/ZlSearchTable/index.vue.mjs +59 -55
- package/dist/components/ZlTable/useTablePagination.d.ts +1 -0
- package/dist/components/ZlTable/useTablePagination.mjs +37 -23
- package/dist/components/ZlTabs/index.vue.d.ts +16 -3
- package/dist/components/ZlTag/ZlCornerTag.css +1 -1
- package/dist/components/ZlTag/ZlCornerTag.vue.d.ts +14 -1
- package/dist/components/ZlTag/ZlCornerTag.vue.mjs +25 -14
- package/dist/components/ZlTag/index.vue.mjs +4 -4
- package/dist/components/ZlUpload/index.css +1 -1
- package/dist/components/ZlUpload/index.vue.d.ts +44 -3
- package/dist/components/ZlUpload/index.vue.mjs +3 -3
- package/dist/components/ZlUpload/index2.vue.mjs +119 -79
- package/dist/index.d.ts +8 -2
- package/dist/index.mjs +183 -169
- package/dist/locales/en.mjs +2 -2
- package/dist/locales/zh-cn.mjs +3 -3
- package/package.json +6 -6
- package/dist/components/ZlAppMenu/AppMenu.css +0 -1
- package/dist/components/ZlAppMenu/AppMenu.vue.d.ts +0 -27
- package/dist/components/ZlAppMenu/AppMenu.vue.mjs +0 -37
- package/dist/components/ZlAppMenu/AppMenu3.vue.mjs +0 -6
- package/dist/components/ZlAppMenu/AppMenuItem.vue.d.ts +0 -11
- package/dist/components/ZlAppMenu/AppMenuItem.vue.mjs +0 -58
- package/dist/components/ZlAppMenu/AppMenuItem2.vue.mjs +0 -5
|
@@ -1,53 +1,79 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePagination as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as A, useAttrs as U, computed as t, ref as S, watch as N, resolveComponent as B, openBlock as T, createBlock as V, mergeProps as b, createSlots as j, withCtx as M, createElementVNode as r, renderSlot as R, createTextVNode as c, toDisplayString as v, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { normalizePaginationAttrs as D, usePagination as E } from "./usePagination.mjs";
|
|
3
|
+
const Z = { class: "el-pagination__total zl-pagination__total" }, q = { class: "zl-pagination__total-num" }, F = { class: "zl-pagination__total-num" }, J = /* @__PURE__ */ A({
|
|
4
4
|
name: "ZlPagination",
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
7
7
|
emits: ["change", "page-change", "page-size-change"],
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
), g = l(
|
|
12
|
-
|
|
8
|
+
setup(G, { emit: y }) {
|
|
9
|
+
const s = y, C = U(), n = t(() => D(C)), a = E(() => n.value), P = t(() => n.value.align ?? "right"), m = t(
|
|
10
|
+
() => a.value === !1 ? [] : String(a.value.layout ?? "").split(",").map((e) => e.trim()).filter(Boolean)
|
|
11
|
+
), f = t(() => !m.value.includes("jumper")), z = t(() => m.value.includes("total") && !f.value), k = t(() => n.value.totalUnit ?? "资源"), g = t(() => a.value === !1 ? 0 : Number(a.value.total ?? 0)), l = S(
|
|
12
|
+
n.value.pageNum ?? (a.value === !1 ? void 0 : a.value.currentPage) ?? 1
|
|
13
|
+
), o = S(
|
|
14
|
+
n.value.pageSize ?? (a.value === !1 ? void 0 : a.value.pageSize) ?? 30
|
|
13
15
|
);
|
|
14
|
-
|
|
15
|
-
() =>
|
|
16
|
+
N(
|
|
17
|
+
() => n.value.pageNum ?? n.value.currentPage,
|
|
16
18
|
(e) => {
|
|
17
|
-
e != null && (
|
|
19
|
+
e != null && (l.value = e);
|
|
18
20
|
}
|
|
19
|
-
),
|
|
20
|
-
() =>
|
|
21
|
+
), N(
|
|
22
|
+
() => n.value.pageSize,
|
|
21
23
|
(e) => {
|
|
22
|
-
e != null && (
|
|
24
|
+
e != null && (o.value = e);
|
|
23
25
|
}
|
|
24
26
|
);
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
+
function w(e) {
|
|
28
|
+
l.value = e, s("change", { pageNum: e, pageSize: o.value }), s("page-change", e);
|
|
27
29
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
+
function x(e) {
|
|
31
|
+
o.value = e, l.value = 1, s("change", { pageNum: 1, pageSize: e }), s("page-size-change", e);
|
|
30
32
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
const _ = t(() => {
|
|
34
|
+
const e = o.value || 1;
|
|
35
|
+
return Math.min(e, Math.max(g.value - (l.value - 1) * e, 0));
|
|
36
|
+
}), d = t(() => {
|
|
37
|
+
if (a.value === !1) return !1;
|
|
38
|
+
const { currentPage: e, pageSize: i, totalUnit: h, ...u } = a.value;
|
|
39
|
+
return delete u.align, z.value && typeof u.layout == "string" && (u.layout = u.layout.split(",").map((p) => p.trim()).map((p) => p === "total" ? "slot" : p).join(", ")), u;
|
|
35
40
|
});
|
|
36
|
-
return (e,
|
|
37
|
-
const
|
|
38
|
-
return
|
|
41
|
+
return (e, i) => {
|
|
42
|
+
const h = B("el-pagination");
|
|
43
|
+
return d.value !== !1 ? (T(), V(h, b({
|
|
39
44
|
key: 0,
|
|
40
|
-
class: ["zl-pagination", `zl-pagination--${
|
|
41
|
-
},
|
|
42
|
-
"current-page":
|
|
43
|
-
"page-size":
|
|
44
|
-
onCurrentChange:
|
|
45
|
-
onSizeChange:
|
|
46
|
-
}),
|
|
45
|
+
class: ["zl-pagination", [`zl-pagination--${P.value}`, f.value ? "zl-pagination--simple" : "zl-pagination--full"]]
|
|
46
|
+
}, d.value, {
|
|
47
|
+
"current-page": l.value,
|
|
48
|
+
"page-size": o.value,
|
|
49
|
+
onCurrentChange: w,
|
|
50
|
+
onSizeChange: x
|
|
51
|
+
}), j({ _: 2 }, [
|
|
52
|
+
z.value ? {
|
|
53
|
+
name: "default",
|
|
54
|
+
fn: M(() => [
|
|
55
|
+
r("span", Z, [
|
|
56
|
+
R(e.$slots, "total", {
|
|
57
|
+
total: g.value,
|
|
58
|
+
pageRows: _.value,
|
|
59
|
+
pageNum: l.value,
|
|
60
|
+
pageSize: o.value
|
|
61
|
+
}, () => [
|
|
62
|
+
i[0] || (i[0] = c(" 共 ", -1)),
|
|
63
|
+
r("span", q, v(g.value), 1),
|
|
64
|
+
c(" 条" + v(k.value) + ",当前筛选命中 ", 1),
|
|
65
|
+
r("span", F, v(_.value), 1),
|
|
66
|
+
i[1] || (i[1] = c(" 条,每页 ", -1))
|
|
67
|
+
], !0)
|
|
68
|
+
])
|
|
69
|
+
]),
|
|
70
|
+
key: "0"
|
|
71
|
+
} : void 0
|
|
72
|
+
]), 1040, ["class", "current-page", "page-size"])) : $("", !0);
|
|
47
73
|
};
|
|
48
74
|
}
|
|
49
75
|
});
|
|
50
76
|
export {
|
|
51
|
-
|
|
77
|
+
J as default
|
|
52
78
|
};
|
|
53
79
|
//# sourceMappingURL=index2.vue.mjs.map
|
|
@@ -23,6 +23,7 @@ export interface PaginationProps {
|
|
|
23
23
|
simple?: boolean;
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}
|
|
26
|
+
export declare function normalizePaginationAttrs(attrs: Record<string, any>): Record<string, any>;
|
|
26
27
|
export declare function usePagination(props: Ref<PaginationProps | false> | (() => PaginationProps | false)): import('vue').ComputedRef<false | {
|
|
27
28
|
layout: string;
|
|
28
29
|
currentPage: number;
|
|
@@ -1,47 +1,64 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { computed as V, toValue as k } from "vue";
|
|
2
|
+
const _ = [
|
|
3
|
+
"pageNum",
|
|
4
|
+
"pageSize",
|
|
5
|
+
"pageSizeOptions",
|
|
6
|
+
"totalVisible",
|
|
7
|
+
"pageSizeVisible",
|
|
8
|
+
"showTotal",
|
|
9
|
+
"showPageSize",
|
|
10
|
+
"currentPage",
|
|
11
|
+
"pageSizes",
|
|
12
|
+
"totalUnit"
|
|
13
|
+
], v = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
|
|
14
|
+
function K(e) {
|
|
15
|
+
const t = { ...e };
|
|
16
|
+
for (const o of _) {
|
|
17
|
+
const i = v(o);
|
|
18
|
+
i !== o && (t[o] === void 0 && e[i] !== void 0 && (t[o] = e[i]), delete t[i]);
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
}
|
|
22
|
+
function j(e) {
|
|
23
|
+
return V(() => {
|
|
24
|
+
const o = k(e);
|
|
5
25
|
if (o === !1)
|
|
6
26
|
return !1;
|
|
7
27
|
const {
|
|
8
28
|
// 对外名优先,EP 名回落:上层已归一化时只会有 EP 名
|
|
9
|
-
pageSizeOptions:
|
|
10
|
-
pageSizes:
|
|
11
|
-
pageSize:
|
|
12
|
-
pageNum:
|
|
13
|
-
currentPage:
|
|
14
|
-
layout:
|
|
15
|
-
size:
|
|
16
|
-
simple:
|
|
17
|
-
totalVisible:
|
|
18
|
-
pageSizeVisible:
|
|
29
|
+
pageSizeOptions: i,
|
|
30
|
+
pageSizes: r,
|
|
31
|
+
pageSize: s = 30,
|
|
32
|
+
pageNum: p,
|
|
33
|
+
currentPage: g,
|
|
34
|
+
layout: u,
|
|
35
|
+
size: c,
|
|
36
|
+
simple: l = !1,
|
|
37
|
+
totalVisible: f,
|
|
38
|
+
pageSizeVisible: z,
|
|
19
39
|
// 旧名回落:新名优先,两者都没给才用默认值
|
|
20
|
-
showTotal:
|
|
21
|
-
showPageSize:
|
|
22
|
-
...
|
|
23
|
-
} = o || {},
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"pager",
|
|
30
|
-
"next",
|
|
31
|
-
a ? "" : "jumper"
|
|
32
|
-
].filter(Boolean).join(", ");
|
|
40
|
+
showTotal: S,
|
|
41
|
+
showPageSize: m,
|
|
42
|
+
...b
|
|
43
|
+
} = o || {}, h = f ?? S ?? !0, n = l === !0 || l === "", a = (i ?? r ?? [10, 30, 50]).slice();
|
|
44
|
+
a.includes(s) || a.push(s);
|
|
45
|
+
const d = [
|
|
46
|
+
h ? "total" : "",
|
|
47
|
+
z ?? m ?? a.length > 0 ? "sizes" : ""
|
|
48
|
+
].filter(Boolean), P = ["prev", "pager", "next", n ? "" : "jumper"].filter(Boolean), w = u ?? [...d, ...n ? [] : ["->"], ...P].join(", ");
|
|
33
49
|
return {
|
|
34
50
|
// EP 2.7+ 官方推荐 size(原 arco simple/mini 语义映射为小尺寸)
|
|
35
|
-
size:
|
|
36
|
-
...
|
|
37
|
-
layout:
|
|
38
|
-
currentPage:
|
|
39
|
-
pageSize:
|
|
40
|
-
pageSizes:
|
|
51
|
+
size: c ?? (n ? "small" : "default"),
|
|
52
|
+
...b,
|
|
53
|
+
layout: w,
|
|
54
|
+
currentPage: p ?? g ?? 1,
|
|
55
|
+
pageSize: s,
|
|
56
|
+
pageSizes: a.sort((y, T) => y - T)
|
|
41
57
|
};
|
|
42
58
|
});
|
|
43
59
|
}
|
|
44
60
|
export {
|
|
45
|
-
|
|
61
|
+
K as normalizePaginationAttrs,
|
|
62
|
+
j as usePagination
|
|
46
63
|
};
|
|
47
64
|
//# sourceMappingURL=usePagination.mjs.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, computed as f, ref as B, resolveComponent as x, openBlock as d, createBlock as $, mergeProps as y, withCtx as t, createElementVNode as n, createVNode as r, createElementBlock as g, renderSlot as s, createTextVNode as c, toDisplayString as l, createCommentVNode as N } from "vue";
|
|
2
2
|
import { useZlT as V } from "@zl-ui-kit/composables";
|
|
3
|
+
import _ from "../ZlButton/index.vue.mjs";
|
|
3
4
|
import Z from "../ZlIcon/index.vue.mjs";
|
|
4
|
-
const
|
|
5
|
+
const w = { class: "zl-popconfirm-panel" }, E = { class: "zl-popconfirm-panel__main" }, P = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "zl-popconfirm-panel__title"
|
|
7
|
-
},
|
|
8
|
+
}, R = { class: "zl-popconfirm-panel__content" }, S = { class: "zl-popconfirm-panel__actions" }, q = /* @__PURE__ */ T({
|
|
8
9
|
name: "ZlPopconfirm",
|
|
9
10
|
inheritAttrs: !1,
|
|
10
11
|
__name: "index",
|
|
@@ -15,17 +16,17 @@ const b = { class: "zl-popconfirm-panel" }, w = { class: "zl-popconfirm-panel__m
|
|
|
15
16
|
cancelButtonText: {}
|
|
16
17
|
},
|
|
17
18
|
emits: ["confirm", "cancel"],
|
|
18
|
-
setup(o, { emit:
|
|
19
|
-
const a = o, { t:
|
|
20
|
-
function
|
|
21
|
-
i.value?.hide?.(),
|
|
19
|
+
setup(o, { emit: u }) {
|
|
20
|
+
const a = o, { t: m } = V(), v = f(() => a.confirmButtonText ?? m("zl.popconfirm.confirm", "确定")), z = f(() => a.cancelButtonText ?? m("zl.popconfirm.cancel", "取消")), i = B(null), p = u;
|
|
21
|
+
function h() {
|
|
22
|
+
i.value?.hide?.(), p("confirm");
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
i.value?.hide?.(),
|
|
24
|
+
function k() {
|
|
25
|
+
i.value?.hide?.(), p("cancel");
|
|
25
26
|
}
|
|
26
|
-
return (e,
|
|
27
|
-
const
|
|
28
|
-
return
|
|
27
|
+
return (e, A) => {
|
|
28
|
+
const C = x("el-popover");
|
|
29
|
+
return d(), $(C, y({
|
|
29
30
|
ref_key: "popoverRef",
|
|
30
31
|
ref: i,
|
|
31
32
|
class: "zl-popconfirm"
|
|
@@ -34,39 +35,39 @@ const b = { class: "zl-popconfirm-panel" }, w = { class: "zl-popconfirm-panel__m
|
|
|
34
35
|
s(e.$slots, "default")
|
|
35
36
|
]),
|
|
36
37
|
default: t(() => [
|
|
37
|
-
n("div",
|
|
38
|
+
n("div", w, [
|
|
38
39
|
r(Z, {
|
|
39
40
|
class: "zl-popconfirm-panel__icon",
|
|
40
41
|
icon: "zl:information-color"
|
|
41
42
|
}),
|
|
42
|
-
n("div",
|
|
43
|
-
e.$slots.title || o.title ? (
|
|
43
|
+
n("div", E, [
|
|
44
|
+
e.$slots.title || o.title ? (d(), g("div", P, [
|
|
44
45
|
s(e.$slots, "title", {}, () => [
|
|
45
46
|
c(l(o.title), 1)
|
|
46
47
|
])
|
|
47
48
|
])) : N("", !0),
|
|
48
|
-
n("div",
|
|
49
|
+
n("div", R, [
|
|
49
50
|
s(e.$slots, "content", {}, () => [
|
|
50
51
|
c(l(o.content), 1)
|
|
51
52
|
])
|
|
52
53
|
]),
|
|
53
|
-
n("div",
|
|
54
|
-
r(
|
|
54
|
+
n("div", S, [
|
|
55
|
+
r(_, {
|
|
55
56
|
size: "small",
|
|
56
|
-
onClick:
|
|
57
|
+
onClick: k
|
|
57
58
|
}, {
|
|
58
59
|
default: t(() => [
|
|
59
|
-
c(l(
|
|
60
|
+
c(l(z.value), 1)
|
|
60
61
|
]),
|
|
61
62
|
_: 1
|
|
62
63
|
}),
|
|
63
|
-
r(
|
|
64
|
+
r(_, {
|
|
64
65
|
size: "small",
|
|
65
66
|
type: "primary",
|
|
66
|
-
onClick:
|
|
67
|
+
onClick: h
|
|
67
68
|
}, {
|
|
68
69
|
default: t(() => [
|
|
69
|
-
c(l(
|
|
70
|
+
c(l(v.value), 1)
|
|
70
71
|
]),
|
|
71
72
|
_: 1
|
|
72
73
|
})
|
|
@@ -80,6 +81,6 @@ const b = { class: "zl-popconfirm-panel" }, w = { class: "zl-popconfirm-panel__m
|
|
|
80
81
|
}
|
|
81
82
|
});
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
q as default
|
|
84
85
|
};
|
|
85
86
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -14,6 +14,8 @@ type __VLS_Props = {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
/** 是否展示「筛选条件」标签行;不传时按「是否发生溢出」自动判定 */
|
|
16
16
|
labelsVisible?: boolean;
|
|
17
|
+
/** 表单项 label 为空时是否不渲染 label 占位,透传给 ZlForm 的 hideEmptyLabel */
|
|
18
|
+
hideEmptyLabel?: boolean;
|
|
17
19
|
/**
|
|
18
20
|
* 已废弃,请用 `labelsVisible`
|
|
19
21
|
*
|
|
@@ -36,6 +38,7 @@ declare function __VLS_template(): {
|
|
|
36
38
|
slot?: boolean;
|
|
37
39
|
slots?: Record<string, any>;
|
|
38
40
|
props: Record<string, any>;
|
|
41
|
+
hideLabel?: boolean;
|
|
39
42
|
};
|
|
40
43
|
}) => any>> & Partial<Record<string, (_: {
|
|
41
44
|
model: Record<string, any>;
|
|
@@ -48,6 +51,7 @@ declare function __VLS_template(): {
|
|
|
48
51
|
slot?: boolean;
|
|
49
52
|
slots?: Record<string, any>;
|
|
50
53
|
props: Record<string, any>;
|
|
54
|
+
hideLabel?: boolean;
|
|
51
55
|
};
|
|
52
56
|
}) => any>> & {
|
|
53
57
|
actions?(_: {}): any;
|
|
@@ -59,6 +63,7 @@ declare function __VLS_template(): {
|
|
|
59
63
|
$props: {
|
|
60
64
|
readonly items: import('../..').FormItem[];
|
|
61
65
|
readonly model?: Record<string, any> | undefined;
|
|
66
|
+
readonly hideEmptyLabel?: boolean | undefined;
|
|
62
67
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
63
68
|
$attrs: import('vue').Attrs;
|
|
64
69
|
$refs: {
|
|
@@ -77,6 +82,7 @@ declare function __VLS_template(): {
|
|
|
77
82
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
78
83
|
items: import('../..').FormItem[];
|
|
79
84
|
model?: Record<string, any>;
|
|
85
|
+
hideEmptyLabel?: boolean;
|
|
80
86
|
}> & Readonly<{}>, {
|
|
81
87
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
82
88
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -114,6 +120,7 @@ declare function __VLS_template(): {
|
|
|
114
120
|
}> & Omit<Readonly<{
|
|
115
121
|
items: import('../..').FormItem[];
|
|
116
122
|
model?: Record<string, any>;
|
|
123
|
+
hideEmptyLabel?: boolean;
|
|
117
124
|
}> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
|
|
118
125
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
119
126
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -136,6 +143,7 @@ declare function __VLS_template(): {
|
|
|
136
143
|
slot?: boolean;
|
|
137
144
|
slots?: Record<string, any>;
|
|
138
145
|
props: Record<string, any>;
|
|
146
|
+
hideLabel?: boolean;
|
|
139
147
|
};
|
|
140
148
|
}) => any>> & {
|
|
141
149
|
label?(_: {
|
|
@@ -149,6 +157,7 @@ declare function __VLS_template(): {
|
|
|
149
157
|
slot?: boolean;
|
|
150
158
|
slots?: Record<string, any>;
|
|
151
159
|
props: Record<string, any>;
|
|
160
|
+
hideLabel?: boolean;
|
|
152
161
|
};
|
|
153
162
|
}): any;
|
|
154
163
|
default?(_: {}): any;
|
|
@@ -160,6 +169,7 @@ declare function __VLS_template(): {
|
|
|
160
169
|
$props: {
|
|
161
170
|
readonly items: import('../..').FormItem[];
|
|
162
171
|
readonly model?: Record<string, any> | undefined;
|
|
172
|
+
readonly hideEmptyLabel?: boolean | undefined;
|
|
163
173
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
164
174
|
$attrs: import('vue').Attrs;
|
|
165
175
|
$refs: {
|
|
@@ -178,6 +188,7 @@ declare function __VLS_template(): {
|
|
|
178
188
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
179
189
|
items: import('../..').FormItem[];
|
|
180
190
|
model?: Record<string, any>;
|
|
191
|
+
hideEmptyLabel?: boolean;
|
|
181
192
|
}> & Readonly<{}>, {
|
|
182
193
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
183
194
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -215,6 +226,7 @@ declare function __VLS_template(): {
|
|
|
215
226
|
}> & Omit<Readonly<{
|
|
216
227
|
items: import('../..').FormItem[];
|
|
217
228
|
model?: Record<string, any>;
|
|
229
|
+
hideEmptyLabel?: boolean;
|
|
218
230
|
}> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
|
|
219
231
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
220
232
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -237,6 +249,7 @@ declare function __VLS_template(): {
|
|
|
237
249
|
slot?: boolean;
|
|
238
250
|
slots?: Record<string, any>;
|
|
239
251
|
props: Record<string, any>;
|
|
252
|
+
hideLabel?: boolean;
|
|
240
253
|
};
|
|
241
254
|
}) => any>> & {
|
|
242
255
|
label?(_: {
|
|
@@ -250,6 +263,7 @@ declare function __VLS_template(): {
|
|
|
250
263
|
slot?: boolean;
|
|
251
264
|
slots?: Record<string, any>;
|
|
252
265
|
props: Record<string, any>;
|
|
266
|
+
hideLabel?: boolean;
|
|
253
267
|
};
|
|
254
268
|
}): any;
|
|
255
269
|
default?(_: {}): any;
|
|
@@ -276,6 +290,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
276
290
|
disabled: boolean;
|
|
277
291
|
immediate: boolean;
|
|
278
292
|
items: SearchItem[];
|
|
293
|
+
hideEmptyLabel: boolean;
|
|
279
294
|
labelsVisible: boolean;
|
|
280
295
|
showLabels: boolean;
|
|
281
296
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -285,6 +300,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
285
300
|
$props: {
|
|
286
301
|
readonly items: import('../..').FormItem[];
|
|
287
302
|
readonly model?: Record<string, any> | undefined;
|
|
303
|
+
readonly hideEmptyLabel?: boolean | undefined;
|
|
288
304
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
289
305
|
$attrs: import('vue').Attrs;
|
|
290
306
|
$refs: {
|
|
@@ -303,6 +319,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
303
319
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
304
320
|
items: import('../..').FormItem[];
|
|
305
321
|
model?: Record<string, any>;
|
|
322
|
+
hideEmptyLabel?: boolean;
|
|
306
323
|
}> & Readonly<{}>, {
|
|
307
324
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
308
325
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -340,6 +357,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
340
357
|
}> & Omit<Readonly<{
|
|
341
358
|
items: import('../..').FormItem[];
|
|
342
359
|
model?: Record<string, any>;
|
|
360
|
+
hideEmptyLabel?: boolean;
|
|
343
361
|
}> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
|
|
344
362
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
345
363
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -362,6 +380,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
362
380
|
slot?: boolean;
|
|
363
381
|
slots?: Record<string, any>;
|
|
364
382
|
props: Record<string, any>;
|
|
383
|
+
hideLabel?: boolean;
|
|
365
384
|
};
|
|
366
385
|
}) => any>> & {
|
|
367
386
|
label?(_: {
|
|
@@ -375,6 +394,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
375
394
|
slot?: boolean;
|
|
376
395
|
slots?: Record<string, any>;
|
|
377
396
|
props: Record<string, any>;
|
|
397
|
+
hideLabel?: boolean;
|
|
378
398
|
};
|
|
379
399
|
}): any;
|
|
380
400
|
default?(_: {}): any;
|
|
@@ -386,6 +406,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
386
406
|
$props: {
|
|
387
407
|
readonly items: import('../..').FormItem[];
|
|
388
408
|
readonly model?: Record<string, any> | undefined;
|
|
409
|
+
readonly hideEmptyLabel?: boolean | undefined;
|
|
389
410
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
390
411
|
$attrs: import('vue').Attrs;
|
|
391
412
|
$refs: {
|
|
@@ -404,6 +425,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
404
425
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
405
426
|
items: import('../..').FormItem[];
|
|
406
427
|
model?: Record<string, any>;
|
|
428
|
+
hideEmptyLabel?: boolean;
|
|
407
429
|
}> & Readonly<{}>, {
|
|
408
430
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
409
431
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -441,6 +463,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
441
463
|
}> & Omit<Readonly<{
|
|
442
464
|
items: import('../..').FormItem[];
|
|
443
465
|
model?: Record<string, any>;
|
|
466
|
+
hideEmptyLabel?: boolean;
|
|
444
467
|
}> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
|
|
445
468
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
446
469
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -463,6 +486,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
463
486
|
slot?: boolean;
|
|
464
487
|
slots?: Record<string, any>;
|
|
465
488
|
props: Record<string, any>;
|
|
489
|
+
hideLabel?: boolean;
|
|
466
490
|
};
|
|
467
491
|
}) => any>> & {
|
|
468
492
|
label?(_: {
|
|
@@ -476,6 +500,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
476
500
|
slot?: boolean;
|
|
477
501
|
slots?: Record<string, any>;
|
|
478
502
|
props: Record<string, any>;
|
|
503
|
+
hideLabel?: boolean;
|
|
479
504
|
};
|
|
480
505
|
}): any;
|
|
481
506
|
default?(_: {}): any;
|