@zl-ui-kit/components 0.12.0 → 0.14.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.
@@ -0,0 +1,8 @@
1
+ import o from "./index2.vue.mjs";
2
+ import './index.css';/* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0fadba95"]]);
5
+ export {
6
+ f as default
7
+ };
8
+ //# sourceMappingURL=index.vue.mjs.map
@@ -0,0 +1,91 @@
1
+ import { defineComponent as k, resolveComponent as c, openBlock as a, createBlock as u, withCtx as o, createElementBlock as v, Fragment as y, renderList as g, createSlots as $, renderSlot as l, createTextVNode as d, toDisplayString as f, createVNode as B } from "vue";
2
+ const F = /* @__PURE__ */ k({
3
+ name: "ZlStep",
4
+ __name: "index",
5
+ props: {
6
+ steps: { default: () => [] },
7
+ current: { default: 0 },
8
+ direction: { default: "horizontal" },
9
+ processStatus: { default: "process" },
10
+ finishStatus: { default: "finish" },
11
+ showDescription: { type: Boolean, default: !0 },
12
+ alignCenter: { type: Boolean, default: !0 },
13
+ space: {},
14
+ titleFontSize: {},
15
+ descriptionFontSize: {}
16
+ },
17
+ setup(t) {
18
+ const i = t;
19
+ function p(s, r) {
20
+ return s.status ? s.status : r < i.current ? i.finishStatus : r === i.current ? i.processStatus : "wait";
21
+ }
22
+ return (s, r) => {
23
+ const S = c("zl-icon"), z = c("el-step"), h = c("el-steps");
24
+ return a(), u(h, {
25
+ class: "zl-step",
26
+ active: t.current,
27
+ direction: t.direction,
28
+ "process-status": t.processStatus,
29
+ "finish-status": t.finishStatus,
30
+ "align-center": t.alignCenter,
31
+ space: t.space,
32
+ "title-font-size": t.titleFontSize,
33
+ "description-font-size": t.descriptionFontSize
34
+ }, {
35
+ default: o(() => [
36
+ (a(!0), v(y, null, g(t.steps, (e, n) => (a(), u(z, {
37
+ key: n,
38
+ title: e.title,
39
+ description: t.showDescription ? e.description : void 0,
40
+ status: p(e, n),
41
+ disabled: e.disabled
42
+ }, $({ _: 2 }, [
43
+ s.$slots.title ? {
44
+ name: "title",
45
+ fn: o(() => [
46
+ l(s.$slots, "title", {
47
+ item: e,
48
+ index: n
49
+ }, () => [
50
+ d(f(e.title), 1)
51
+ ], !0)
52
+ ]),
53
+ key: "0"
54
+ } : void 0,
55
+ s.$slots.description ? {
56
+ name: "description",
57
+ fn: o(() => [
58
+ l(s.$slots, "description", {
59
+ item: e,
60
+ index: n
61
+ }, () => [
62
+ d(f(e.description), 1)
63
+ ], !0)
64
+ ]),
65
+ key: "1"
66
+ } : void 0,
67
+ s.$slots.icon || e.icon ? {
68
+ name: "icon",
69
+ fn: o(() => [
70
+ l(s.$slots, "icon", {
71
+ item: e,
72
+ index: n
73
+ }, () => [
74
+ B(S, {
75
+ icon: e.icon
76
+ }, null, 8, ["icon"])
77
+ ], !0)
78
+ ]),
79
+ key: "2"
80
+ } : void 0
81
+ ]), 1032, ["title", "description", "status", "disabled"]))), 128))
82
+ ]),
83
+ _: 3
84
+ }, 8, ["active", "direction", "process-status", "finish-status", "align-center", "space", "title-font-size", "description-font-size"]);
85
+ };
86
+ }
87
+ });
88
+ export {
89
+ F as default
90
+ };
91
+ //# sourceMappingURL=index2.vue.mjs.map
@@ -1 +1 @@
1
- .zl-tree-select[data-v-ee40b8a7]{width:100%}.zl-tree-select__all[data-v-ee40b8a7]{padding:4px 0 8px}.zl-tree-select[data-v-ee40b8a7] .el-tree-select .el-tree-node__label{font-size:12px}
1
+ .zl-tree-select[data-v-e77adcc8]{width:100%}.zl-tree-select__all[data-v-e77adcc8]{padding:4px 0 8px}.zl-tree-select[data-v-e77adcc8] .el-tree-select .el-tree-node__label{font-size:12px}
@@ -1,7 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  /** 树数据 */
3
3
  originTreeData: any[];
4
- /** "全部"节点名(启用全选控制条) */
4
+ /** "全部"节点名(启用全选控制条,仅多选模式生效) */
5
5
  allName?: string;
6
6
  /** 返回 {label, value} 对象数组(缺省返回键值数组) */
7
7
  labelInValue?: boolean;
@@ -11,8 +11,21 @@ type __VLS_Props = {
11
11
  title?: string;
12
12
  children?: string;
13
13
  };
14
- /** 父子不关联 */
14
+ /** 父子不关联(true 时取消级联:勾选/单选互不影响) */
15
15
  treeCheckStrictly?: boolean;
16
+ /** 是否多选(默认 true);true 时节点前渲染复选框并父子级联,false 时仅叶子节点可单选 */
17
+ multiple?: boolean;
18
+ /**
19
+ * 动态控制不可选项:
20
+ * - 布尔值:整体禁用下拉控件
21
+ * - 键数组:禁用这些 key 对应的节点
22
+ * - 函数:`(data) => boolean` 返回 true 的节点禁用
23
+ */
24
+ disabled?: boolean | Array<string | number> | ((data: any) => boolean);
25
+ /** 选中后是否在输入框 / 标签里显示完整父级路径(默认 true,体现级联关系) */
26
+ showPath?: boolean;
27
+ /** 路径分隔符(showPath 生效时用) */
28
+ pathSeparator?: string;
16
29
  };
17
30
  type __VLS_PublicProps = {
18
31
  modelValue?: any;
@@ -22,6 +35,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
22
35
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
36
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
24
37
  }>, {
38
+ multiple: boolean;
39
+ disabled: boolean | Array<string | number> | ((data: any) => boolean);
25
40
  fieldNames: {
26
41
  key?: string;
27
42
  title?: string;
@@ -29,6 +44,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
29
44
  };
30
45
  labelInValue: boolean;
31
46
  treeCheckStrictly: boolean;
32
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
47
+ showPath: boolean;
48
+ pathSeparator: string;
49
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
50
+ treeSelectRef: unknown;
51
+ }, any>;
33
52
  export default _default;
34
53
  //# sourceMappingURL=index.vue.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import e from "./index2.vue.mjs";
2
2
  import './index.css';/* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ee40b8a7"]]);
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e77adcc8"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
8
8
  //# sourceMappingURL=index.vue.mjs.map
@@ -1,75 +1,136 @@
1
- import { defineComponent as _, useModel as b, computed as a, resolveComponent as p, openBlock as y, createElementBlock as g, createVNode as k, withCtx as C, createTextVNode as x, toDisplayString as A, createCommentVNode as T, mergeProps as B, mergeModels as D } from "vue";
2
- const I = { class: "zl-tree-select" }, S = {
1
+ import { defineComponent as R, useModel as H, ref as L, computed as a, resolveComponent as C, openBlock as w, createElementBlock as B, createVNode as x, withCtx as D, createTextVNode as K, toDisplayString as T, createCommentVNode as O, mergeProps as U, mergeModels as Z } from "vue";
2
+ const _ = { class: "zl-tree-select" }, j = {
3
3
  key: 0,
4
4
  class: "zl-tree-select__all"
5
- }, M = /* @__PURE__ */ _({
5
+ }, G = /* @__PURE__ */ R({
6
6
  name: "ZlTreeSelect",
7
7
  inheritAttrs: !1,
8
8
  __name: "index",
9
- props: /* @__PURE__ */ D({
9
+ props: /* @__PURE__ */ Z({
10
10
  originTreeData: {},
11
11
  allName: {},
12
12
  labelInValue: { type: Boolean, default: !1 },
13
13
  fieldNames: { default: () => ({ key: "key", title: "title", children: "children" }) },
14
- treeCheckStrictly: { type: Boolean, default: !1 }
14
+ treeCheckStrictly: { type: Boolean, default: !1 },
15
+ multiple: { type: Boolean, default: !0 },
16
+ disabled: { type: [Boolean, Array, Function], default: void 0 },
17
+ showPath: { type: Boolean, default: !0 },
18
+ pathSeparator: { default: " / " }
15
19
  }, {
16
20
  modelValue: {},
17
21
  modelModifiers: {}
18
22
  }),
19
23
  emits: ["update:modelValue"],
20
24
  setup(n) {
21
- const t = n, r = b(n, "modelValue"), i = a(() => t.fieldNames.key ?? "key"), m = a(() => t.fieldNames.title ?? "title"), v = a(() => t.fieldNames.children ?? "children"), N = a(() => ({
22
- label: m.value,
23
- children: v.value
24
- })), u = a(() => {
25
- const e = [], l = (s) => {
26
- s.forEach((o) => {
27
- e.push(o);
28
- const d = o[v.value];
29
- Array.isArray(d) && d.length > 0 && l(d);
25
+ const t = n, u = H(n, "modelValue"), k = L(), i = a(() => t.fieldNames.key ?? "key"), c = a(() => t.fieldNames.title ?? "title"), f = a(() => t.fieldNames.children ?? "children");
26
+ function b(e) {
27
+ const l = e?.[f.value];
28
+ return !Array.isArray(l) || l.length === 0;
29
+ }
30
+ const I = a(() => typeof t.disabled == "boolean" ? t.disabled : void 0);
31
+ function F(e) {
32
+ if (!t.multiple && !b(e)) return !0;
33
+ const l = t.disabled;
34
+ return Array.isArray(l) ? l.includes(e[i.value]) : typeof l == "function" ? !!l(e) : !1;
35
+ }
36
+ const M = a(() => {
37
+ const e = /* @__PURE__ */ new Map(), l = t.pathSeparator, r = (s, o) => {
38
+ (s || []).forEach((y) => {
39
+ const N = String(y[c.value] ?? ""), V = o ? `${o}${l}${N}` : N;
40
+ e.set(y[i.value], V);
41
+ const p = y[f.value];
42
+ Array.isArray(p) && p.length > 0 && r(p, V);
43
+ });
44
+ };
45
+ return r(t.originTreeData, ""), e;
46
+ }), P = a(() => ({
47
+ children: f.value,
48
+ label: (e) => t.showPath ? M.value.get(e[i.value]) ?? e[c.value] : e[c.value],
49
+ disabled: (e) => F(e)
50
+ })), m = a(() => {
51
+ const e = [], l = (r) => {
52
+ r.forEach((s) => {
53
+ e.push(s);
54
+ const o = s[f.value];
55
+ Array.isArray(o) && o.length > 0 && l(o);
30
56
  });
31
57
  };
32
58
  return l(t.originTreeData), e;
33
- }), c = a(() => t.labelInValue ? (r.value ?? []).map((e) => e?.value) : r.value ?? []), h = a(() => c.value.length > 0 && c.value.length === u.value.length);
34
- function f(e) {
35
- t.labelInValue ? r.value = e.map((l) => ({
36
- label: u.value.find((o) => o[i.value] === l)?.[m.value],
37
- value: l
38
- })) : r.value = e;
59
+ }), g = a(() => m.value.filter(b).map((e) => e[i.value])), h = a(
60
+ () => t.multiple && !t.treeCheckStrictly ? g.value : m.value.map((e) => e[i.value])
61
+ ), d = a(() => {
62
+ const e = u.value, l = (r) => t.labelInValue ? r?.value : r;
63
+ return Array.isArray(e) ? e.map(l) : e == null || e === "" ? [] : [l(e)];
64
+ }), $ = a(() => {
65
+ if (!t.multiple) return d.value[0];
66
+ if (t.treeCheckStrictly) return d.value;
67
+ const e = new Set(g.value);
68
+ return d.value.filter((l) => e.has(l));
69
+ }), A = a(() => {
70
+ const e = new Set(d.value);
71
+ return h.value.length > 0 && h.value.every((l) => e.has(l));
72
+ });
73
+ function S(e) {
74
+ return m.value.find((l) => l[i.value] === e)?.[c.value];
75
+ }
76
+ function v(e) {
77
+ t.labelInValue ? u.value = e.map((l) => ({ label: S(l), value: l })) : u.value = e;
78
+ }
79
+ function E(e) {
80
+ if (t.multiple) {
81
+ const l = Array.isArray(e) ? e : e == null ? [] : [e];
82
+ if (t.treeCheckStrictly)
83
+ v(l);
84
+ else {
85
+ const r = k.value?.getHalfCheckedKeys?.() ?? [];
86
+ v([...l, ...r]);
87
+ }
88
+ return;
89
+ }
90
+ e == null || e === "" ? u.value = null : t.labelInValue ? u.value = { label: S(e), value: e } : u.value = e;
39
91
  }
40
- function V(e) {
41
- e ? f(u.value.map((l) => l[i.value])) : r.value = t.labelInValue ? [] : [];
92
+ function z(e) {
93
+ e ? v(h.value) : u.value = [];
42
94
  }
43
95
  return (e, l) => {
44
- const s = p("el-checkbox"), o = p("el-tree-select");
45
- return y(), g("div", I, [
46
- n.allName ? (y(), g("div", S, [
47
- k(s, {
48
- "model-value": h.value,
49
- indeterminate: c.value.length > 0 && !h.value,
50
- onChange: V
96
+ const r = C("el-checkbox"), s = C("el-tree-select");
97
+ return w(), B("div", _, [
98
+ n.allName && n.multiple ? (w(), B("div", j, [
99
+ x(r, {
100
+ "model-value": A.value,
101
+ indeterminate: d.value.length > 0 && !A.value,
102
+ onChange: z
51
103
  }, {
52
- default: C(() => [
53
- x(A(n.allName), 1)
104
+ default: D(() => [
105
+ K(T(n.allName), 1)
54
106
  ]),
55
107
  _: 1
56
108
  }, 8, ["model-value", "indeterminate"])
57
- ])) : T("", !0),
58
- k(o, B({
59
- "model-value": c.value,
60
- multiple: "",
61
- "collapse-tags": "",
62
- "collapse-tags-tooltip": "",
109
+ ])) : O("", !0),
110
+ x(s, U({
111
+ ref_key: "treeSelectRef",
112
+ ref: k,
113
+ "model-value": $.value,
114
+ multiple: n.multiple,
115
+ "show-checkbox": n.multiple,
116
+ "collapse-tags": n.multiple,
117
+ "collapse-tags-tooltip": n.multiple,
63
118
  "check-strictly": n.treeCheckStrictly,
119
+ disabled: I.value,
64
120
  data: n.originTreeData,
65
- props: N.value,
121
+ props: P.value,
66
122
  "node-key": i.value
67
- }, e.$attrs, { "onUpdate:modelValue": f }), null, 16, ["model-value", "check-strictly", "data", "props", "node-key"])
123
+ }, e.$attrs, { "onUpdate:modelValue": E }), {
124
+ default: D(({ data: o }) => [
125
+ K(T(o[c.value]), 1)
126
+ ]),
127
+ _: 1
128
+ }, 16, ["model-value", "multiple", "show-checkbox", "collapse-tags", "collapse-tags-tooltip", "check-strictly", "disabled", "data", "props", "node-key"])
68
129
  ]);
69
130
  };
70
131
  }
71
132
  });
72
133
  export {
73
- M as default
134
+ G as default
74
135
  };
75
136
  //# sourceMappingURL=index2.vue.mjs.map
package/dist/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export { default as ZlIconHover } from './components/ZlIconHover/index.vue';
35
35
  export { default as ZlIconLabel } from './components/ZlIconLabel/index.vue';
36
36
  export { default as ZlCornerTag } from './components/ZlTag/ZlCornerTag.vue';
37
37
  export { default as ZlLayoutSwitch } from './components/ZlLayoutSwitch/index.vue';
38
- export { default as ZlPageHeader } from './components/ZlPageHeader/index.vue';
38
+ export { default as ZlPageContainer } from './components/ZlPageContainer/index.vue';
39
39
  export { default as ZlPagination } from './components/ZlPagination/index.vue';
40
40
  export { default as ZlPermission } from './components/ZlPermission/index.vue';
41
41
  export { default as ZlPopconfirm } from './components/ZlPopconfirm/index.vue';
@@ -45,6 +45,7 @@ export { default as ZlSearchTable } from './components/ZlSearchTable/index.vue';
45
45
  export { default as ZlSection } from './components/ZlSection/index.vue';
46
46
  export { default as ZlSorter } from './components/ZlSorter/index.vue';
47
47
  export { default as ZlSorterList } from './components/ZlSorter/ZlSorterList.vue';
48
+ export { default as ZlStep } from './components/ZlStep/index.vue';
48
49
  export { default as ZlSwitch } from './components/ZlSwitch/index.vue';
49
50
  export { default as ZlTable } from './components/ZlTable/index.vue';
50
51
  export { default as ZlTabs } from './components/ZlTabs/index.vue';
@@ -59,6 +60,7 @@ export { usePagination } from './components/ZlPagination/usePagination';
59
60
  export { useTablePagination } from './components/ZlTable/useTablePagination';
60
61
  export { usePermission, usePermissionProvider } from './components/ZlPermission/usePermission';
61
62
  export type { MenuItem } from './components/ZlAppMenu/AppMenu.vue';
63
+ export type { StepItem } from './components/ZlStep/index.vue';
62
64
  export type { ActionItem, FormItem, SearchItem, TableColumn } from './types';
63
65
  export type { IGridItem } from './components/ZlGrid/types';
64
66
  export type { IComponent, IComponentSlot, VForSlot, VModelSlot, ComponentOrSlot, } from './components/ZlDynamicComponent/types';
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import i from "./components/ZlAction/index.vue.mjs";
2
- import a from "./components/ZlAction/List.vue.mjs";
2
+ import t from "./components/ZlAction/List.vue.mjs";
3
3
  import './components/ZlTree/index.css';import './components/ZlTag/index.css';import './components/ZlTabs/index.css';import './components/ZlTable/index.css';import './components/ZlSwitch/index.css';import './components/ZlSection/index.css';import './components/ZlSearchTable/index.css';import './components/ZlSearch/index.css';import './components/ZlRadioTag/index.css';import './components/ZlPopconfirm/index.css';import './components/ZlPdfViewer/index.css';import './components/ZlLogin/index.css';import './components/ZlIconLabel/index.css';import './components/ZlGrid/index.css';import './components/ZlForm/index.css';import './components/ZlDrawer/index.css';import './components/ZlDialog/index.css';import './components/ZlDescription/index.css';import './components/ZlTag/ZlCornerTag.css';import './components/ZlCheckboxTag/index.css';import './components/ZlCard/index.css';import './components/ZlCardPage/index.css';import './components/ZlAppSlogan/index.css';import './components/ZlAppMenu/AppMenu.css';import './components/ZlAction/List.css';/* empty css */
4
- import t from "./components/ZlAddSub/index.vue.mjs";
4
+ import a from "./components/ZlAddSub/index.vue.mjs";
5
5
  import l from "./components/ZlAppLayout/index.vue.mjs";
6
6
  import p from "./components/ZlAppMenu/AppMenu.vue.mjs";
7
7
  /* empty css */
@@ -25,13 +25,13 @@ import T from "./components/ZlDescription/index.vue.mjs";
25
25
  import u from "./components/ZlDialog/index.vue.mjs";
26
26
  /* empty css */
27
27
  import P from "./components/ZlDictTag/index.vue.mjs";
28
- import b from "./components/ZlDrawer/index.vue.mjs";
28
+ import C from "./components/ZlDrawer/index.vue.mjs";
29
29
  /* empty css */
30
- import h from "./components/ZlDynamicComponent/index.vue.mjs";
31
- import A from "./components/ZlEmpty/index.vue.mjs";
32
- import C from "./components/ZlForm/index.vue.mjs";
30
+ import S from "./components/ZlDynamicComponent/index.vue.mjs";
31
+ import b from "./components/ZlEmpty/index.vue.mjs";
32
+ import h from "./components/ZlForm/index.vue.mjs";
33
33
  /* empty css */
34
- import S from "./components/ZlForm/ZlFormChild.vue.mjs";
34
+ import A from "./components/ZlForm/ZlFormChild.vue.mjs";
35
35
  import x from "./components/ZlGrid/ZlGridItem.vue.mjs";
36
36
  import I from "./components/ZlGrid/index.vue.mjs";
37
37
  /* empty css */
@@ -45,11 +45,11 @@ import F from "./components/ZlLayoutSwitch/index.vue.mjs";
45
45
  import G from "./components/ZlLogin/index.vue.mjs";
46
46
  /* empty css */
47
47
  import M from "./components/ZlLogin/components/LoginForm.vue.mjs";
48
- import k from "./components/ZlPageHeader/index.vue.mjs";
48
+ import k from "./components/ZlPageContainer/index.vue.mjs";
49
49
  import z from "./components/ZlPagination/index.vue.mjs";
50
- import H from "./components/ZlPdfViewer/index.vue.mjs";
50
+ import E from "./components/ZlPdfViewer/index.vue.mjs";
51
51
  /* empty css */
52
- import E from "./components/ZlPermission/index.vue.mjs";
52
+ import H from "./components/ZlPermission/index.vue.mjs";
53
53
  import j from "./components/ZlPopconfirm/index.vue.mjs";
54
54
  /* empty css */
55
55
  import R from "./components/ZlRadioTag/index.vue.mjs";
@@ -62,32 +62,33 @@ import O from "./components/ZlSection/index.vue.mjs";
62
62
  /* empty css */
63
63
  import U from "./components/ZlSorter/index.vue.mjs";
64
64
  import B from "./components/ZlSorter/ZlSorterList.vue.mjs";
65
- import J from "./components/ZlSwitch/index.vue.mjs";
65
+ import J from "./components/ZlStep/index.vue.mjs";
66
+ import K from "./components/ZlSwitch/index.vue.mjs";
66
67
  /* empty css */
67
- import K from "./components/ZlTable/index.vue.mjs";
68
+ import N from "./components/ZlTable/index.vue.mjs";
68
69
  /* empty css */
69
- import N from "./components/ZlTabs/index.vue.mjs";
70
+ import Q from "./components/ZlTabs/index.vue.mjs";
70
71
  /* empty css */
71
- import Q from "./components/ZlTag/index.vue.mjs";
72
+ import W from "./components/ZlTag/index.vue.mjs";
72
73
  /* empty css */
73
- import W from "./components/ZlText/index.vue.mjs";
74
- import X from "./components/ZlTitle/index.vue.mjs";
75
- import Y from "./components/ZlTree/index.vue.mjs";
74
+ import X from "./components/ZlText/index.vue.mjs";
75
+ import Y from "./components/ZlTitle/index.vue.mjs";
76
+ import oo from "./components/ZlTree/index.vue.mjs";
76
77
  /* empty css */
77
- import oo from "./components/ZlTreeSelect/index.vue.mjs";
78
- import ro from "./components/ZlUpload/index.vue.mjs";
79
- import { presetIconifyIcon as yr } from "./components/ZlIcon/presetIconifyIcon.mjs";
80
- import { usePagination as Gr } from "./components/ZlPagination/usePagination.mjs";
81
- import { useTablePagination as kr } from "./components/ZlTable/useTablePagination.mjs";
82
- import { usePermission as Hr, usePermissionProvider as Er } from "./components/ZlPermission/usePermission.mjs";
83
- import { createZlI18n as Rr } from "./locales/createZlI18n.mjs";
84
- import { default as qr } from "./locales/en.mjs";
85
- import { zlMessages as Ur } from "./locales/messages.mjs";
86
- import { default as Jr } from "./locales/zh-cn.mjs";
87
- const mo = {
78
+ import ro from "./components/ZlTreeSelect/index.vue.mjs";
79
+ import mo from "./components/ZlUpload/index.vue.mjs";
80
+ import { presetIconifyIcon as Gr } from "./components/ZlIcon/presetIconifyIcon.mjs";
81
+ import { usePagination as kr } from "./components/ZlPagination/usePagination.mjs";
82
+ import { useTablePagination as Er } from "./components/ZlTable/useTablePagination.mjs";
83
+ import { usePermission as jr, usePermissionProvider as Rr } from "./components/ZlPermission/usePermission.mjs";
84
+ import { createZlI18n as qr } from "./locales/createZlI18n.mjs";
85
+ import { default as Ur } from "./locales/en.mjs";
86
+ import { zlMessages as Jr } from "./locales/messages.mjs";
87
+ import { default as Nr } from "./locales/zh-cn.mjs";
88
+ const io = {
88
89
  ZlAction: i,
89
- ZlActionList: a,
90
- ZlAddSub: t,
90
+ ZlActionList: t,
91
+ ZlAddSub: a,
91
92
  ZlAppLayout: l,
92
93
  ZlAppMenu: p,
93
94
  ZlAppSlogan: f,
@@ -102,11 +103,11 @@ const mo = {
102
103
  ZlDescription: T,
103
104
  ZlDialog: u,
104
105
  ZlDictTag: P,
105
- ZlDrawer: b,
106
- ZlDynamicComponent: h,
107
- ZlEmpty: A,
108
- ZlForm: C,
109
- ZlFormChild: S,
106
+ ZlDrawer: C,
107
+ ZlDynamicComponent: S,
108
+ ZlEmpty: b,
109
+ ZlForm: h,
110
+ ZlFormChild: A,
110
111
  ZlGridItem: x,
111
112
  ZlGrid: I,
112
113
  ZlHorizontalTable: L,
@@ -118,10 +119,10 @@ const mo = {
118
119
  ZlLayoutSwitch: F,
119
120
  ZlLogin: G,
120
121
  ZlLoginForm: M,
121
- ZlPageHeader: k,
122
+ ZlPageContainer: k,
122
123
  ZlPagination: z,
123
- ZlPdfViewer: H,
124
- ZlPermission: E,
124
+ ZlPdfViewer: E,
125
+ ZlPermission: H,
125
126
  ZlPopconfirm: j,
126
127
  ZlRadioTag: R,
127
128
  ZlSearch: V,
@@ -129,26 +130,27 @@ const mo = {
129
130
  ZlSection: O,
130
131
  ZlSorter: U,
131
132
  ZlSorterList: B,
132
- ZlSwitch: J,
133
- ZlTable: K,
134
- ZlTabs: N,
135
- ZlTag: Q,
136
- ZlText: W,
137
- ZlTitle: X,
138
- ZlUpload: ro,
139
- ZlTree: Y,
140
- ZlTreeSelect: oo
133
+ ZlStep: J,
134
+ ZlSwitch: K,
135
+ ZlTable: N,
136
+ ZlTabs: Q,
137
+ ZlTag: W,
138
+ ZlText: X,
139
+ ZlTitle: Y,
140
+ ZlUpload: mo,
141
+ ZlTree: oo,
142
+ ZlTreeSelect: ro
141
143
  };
142
- function io(o) {
143
- Object.entries(mo).forEach(([r, m]) => {
144
+ function to(o) {
145
+ Object.entries(io).forEach(([r, m]) => {
144
146
  o.component(r, m);
145
147
  });
146
148
  }
147
- const Dr = { install: io };
149
+ const wr = { install: to };
148
150
  export {
149
151
  i as ZlAction,
150
- a as ZlActionList,
151
- t as ZlAddSub,
152
+ t as ZlActionList,
153
+ a as ZlAddSub,
152
154
  l as ZlAppLayout,
153
155
  p as ZlAppMenu,
154
156
  f as ZlAppSlogan,
@@ -164,11 +166,11 @@ export {
164
166
  T as ZlDescription,
165
167
  u as ZlDialog,
166
168
  P as ZlDictTag,
167
- b as ZlDrawer,
168
- h as ZlDynamicComponent,
169
- A as ZlEmpty,
170
- C as ZlForm,
171
- S as ZlFormChild,
169
+ C as ZlDrawer,
170
+ S as ZlDynamicComponent,
171
+ b as ZlEmpty,
172
+ h as ZlForm,
173
+ A as ZlFormChild,
172
174
  I as ZlGrid,
173
175
  x as ZlGridItem,
174
176
  L as ZlHorizontalTable,
@@ -179,10 +181,10 @@ export {
179
181
  F as ZlLayoutSwitch,
180
182
  G as ZlLogin,
181
183
  M as ZlLoginForm,
182
- k as ZlPageHeader,
184
+ k as ZlPageContainer,
183
185
  z as ZlPagination,
184
- H as ZlPdfViewer,
185
- E as ZlPermission,
186
+ E as ZlPdfViewer,
187
+ H as ZlPermission,
186
188
  j as ZlPopconfirm,
187
189
  R as ZlRadioTag,
188
190
  V as ZlSearch,
@@ -190,25 +192,26 @@ export {
190
192
  O as ZlSection,
191
193
  U as ZlSorter,
192
194
  B as ZlSorterList,
193
- J as ZlSwitch,
194
- K as ZlTable,
195
- N as ZlTabs,
196
- Q as ZlTag,
197
- W as ZlText,
198
- X as ZlTitle,
199
- Y as ZlTree,
200
- oo as ZlTreeSelect,
201
- ro as ZlUpload,
202
- Rr as createZlI18n,
203
- Dr as default,
204
- io as install,
205
- yr as presetIconifyIcon,
206
- Gr as usePagination,
207
- Hr as usePermission,
208
- Er as usePermissionProvider,
209
- kr as useTablePagination,
210
- qr as zlEnMessages,
211
- Ur as zlMessages,
212
- Jr as zlZhMessages
195
+ J as ZlStep,
196
+ K as ZlSwitch,
197
+ N as ZlTable,
198
+ Q as ZlTabs,
199
+ W as ZlTag,
200
+ X as ZlText,
201
+ Y as ZlTitle,
202
+ oo as ZlTree,
203
+ ro as ZlTreeSelect,
204
+ mo as ZlUpload,
205
+ qr as createZlI18n,
206
+ wr as default,
207
+ to as install,
208
+ Gr as presetIconifyIcon,
209
+ kr as usePagination,
210
+ jr as usePermission,
211
+ Rr as usePermissionProvider,
212
+ Er as useTablePagination,
213
+ Ur as zlEnMessages,
214
+ Jr as zlMessages,
215
+ Nr as zlZhMessages
213
216
  };
214
217
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zl-ui-kit/components",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "description": "ZL UI 业务组件库(Element Plus 体系,Zl 前缀)——首批:Icon/AutoTooltip/Tag/CornerTag/Text/Title/Copy/Empty/Pagination/DictTag",
6
6
  "license": "MIT",
@@ -39,9 +39,9 @@
39
39
  "file-type": "^20.4.1",
40
40
  "dt-sql-parser": "^4.3.1",
41
41
  "sql-formatter": "^15.4.2",
42
- "@zl-ui-kit/composables": "0.12.0",
43
- "@zl-ui-kit/icons": "0.12.0",
44
- "@zl-ui-kit/utils": "0.12.0"
42
+ "@zl-ui-kit/composables": "0.14.0",
43
+ "@zl-ui-kit/utils": "0.14.0",
44
+ "@zl-ui-kit/icons": "0.14.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@vueuse/core": "^12.3.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
@@ -98,10 +98,10 @@
98
98
  "@vue-office/pdf": "^2.0.10",
99
99
  "@vue-office/pptx": "1.0.1",
100
100
  "echarts": "^5.6.0",
101
+ "@zl-ui-kit/theme": "0.14.0",
101
102
  "@jichuang/vite-config": "1.0.0",
102
- "@jichuang/tsconfig": "1.0.0",
103
103
  "@jichuang/eslint-config": "1.0.0",
104
- "@zl-ui-kit/theme": "0.12.0"
104
+ "@jichuang/tsconfig": "1.0.0"
105
105
  },
106
106
  "repository": {
107
107
  "type": "git",