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