@zl-ui-kit/components 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +206 -90
- package/dist/components/ZlButton/index.vue.d.ts +64 -0
- package/dist/components/ZlButton/index.vue.mjs +44 -0
- package/dist/components/ZlButton/index2.vue.mjs +5 -0
- 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 +12 -12
- 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 +109 -0
- package/dist/components/ZlDevMenu/index3.vue.mjs +6 -0
- package/dist/components/ZlDevMenu/types.d.ts +8 -0
- package/dist/components/ZlDialog/index.vue.mjs +17 -17
- package/dist/components/ZlDrawer/index.vue.mjs +23 -23
- package/dist/components/ZlMenu/index.vue.d.ts +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +148 -145
- package/package.json +6 -6
- 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
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import i from "./components/ZlAction/index.vue.mjs";
|
|
2
|
-
import
|
|
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/
|
|
4
|
-
import
|
|
2
|
+
import t from "./components/ZlAction/List.vue.mjs";
|
|
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/ZlMenu/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/ZlDevMenu/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/ZlBreadcrumb/index.css';import './components/ZlAppSlogan/index.css';import './components/ZlAction/List.css';/* empty css */
|
|
4
|
+
import a from "./components/ZlAddSub/index.vue.mjs";
|
|
5
5
|
import l from "./components/ZlAppLayout/index.vue.mjs";
|
|
6
|
-
import p from "./components/
|
|
6
|
+
import p from "./components/ZlAppSlogan/index.vue.mjs";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import f from "./components/
|
|
9
|
-
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import e from "./components/ZlAvatar/Group.vue.mjs";
|
|
13
|
-
import Z from "./components/ZlBreadcrumb/index.vue.mjs";
|
|
8
|
+
import f from "./components/ZlAutoTooltip/index.vue.mjs";
|
|
9
|
+
import s from "./components/ZlAvatar/index.vue.mjs";
|
|
10
|
+
import n from "./components/ZlAvatar/Group.vue.mjs";
|
|
11
|
+
import e from "./components/ZlBreadcrumb/index.vue.mjs";
|
|
14
12
|
/* empty css */
|
|
13
|
+
import Z from "./components/ZlButton/index.vue.mjs";
|
|
15
14
|
import c from "./components/ZlCardPage/index.vue.mjs";
|
|
16
15
|
/* empty css */
|
|
17
16
|
import _ from "./components/ZlCard/index.vue.mjs";
|
|
@@ -24,148 +23,151 @@ import g from "./components/ZlTag/ZlCornerTag.vue.mjs";
|
|
|
24
23
|
import T from "./components/ZlCopy/index.vue.mjs";
|
|
25
24
|
import u from "./components/ZlDescription/index.vue.mjs";
|
|
26
25
|
/* empty css */
|
|
27
|
-
import b from "./components/
|
|
26
|
+
import b from "./components/ZlDevMenu/index.vue.mjs";
|
|
27
|
+
/* empty css */
|
|
28
|
+
import P from "./components/ZlDialog/index.vue.mjs";
|
|
28
29
|
/* empty css */
|
|
29
|
-
import
|
|
30
|
-
import
|
|
30
|
+
import C from "./components/ZlDictTag/index.vue.mjs";
|
|
31
|
+
import S from "./components/ZlDrawer/index.vue.mjs";
|
|
31
32
|
/* empty css */
|
|
32
|
-
import
|
|
33
|
-
import
|
|
33
|
+
import h from "./components/ZlDynamicComponent/index.vue.mjs";
|
|
34
|
+
import x from "./components/ZlEmpty/index.vue.mjs";
|
|
34
35
|
import A from "./components/ZlForm/index.vue.mjs";
|
|
35
36
|
/* empty css */
|
|
36
|
-
import
|
|
37
|
+
import D from "./components/ZlForm/ZlFormChild.vue.mjs";
|
|
37
38
|
import I from "./components/ZlGrid/ZlGridItem.vue.mjs";
|
|
38
39
|
import L from "./components/ZlGrid/index.vue.mjs";
|
|
39
40
|
/* empty css */
|
|
40
|
-
import
|
|
41
|
+
import v from "./components/ZlHorizontalTable/index.vue.mjs";
|
|
41
42
|
import y from "./components/ZlIcon/index.vue.mjs";
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
43
|
+
import w from "./components/ZlI18nProvider/index.vue.mjs";
|
|
44
|
+
import M from "./components/ZlIconHover/index.vue.mjs";
|
|
45
|
+
import z from "./components/ZlIconLabel/index.vue.mjs";
|
|
45
46
|
/* empty css */
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
47
|
+
import F from "./components/ZlLayoutSwitch/index.vue.mjs";
|
|
48
|
+
import G from "./components/ZlLoading/index.vue.mjs";
|
|
49
|
+
import k from "./components/ZlLogin/index.vue.mjs";
|
|
49
50
|
/* empty css */
|
|
50
|
-
import
|
|
51
|
+
import B from "./components/ZlLogin/components/LoginForm.vue.mjs";
|
|
51
52
|
import E from "./components/ZlMenu/index.vue.mjs";
|
|
52
53
|
/* empty css */
|
|
53
54
|
import H from "./components/ZlPageContainer/index.vue.mjs";
|
|
54
55
|
import j from "./components/ZlPagination/index.vue.mjs";
|
|
55
|
-
import
|
|
56
|
+
import R from "./components/ZlPdfViewer/index.vue.mjs";
|
|
56
57
|
/* empty css */
|
|
57
|
-
import
|
|
58
|
-
import
|
|
58
|
+
import V from "./components/ZlPermission/index.vue.mjs";
|
|
59
|
+
import q from "./components/ZlPopconfirm/index.vue.mjs";
|
|
59
60
|
/* empty css */
|
|
60
|
-
import
|
|
61
|
+
import O from "./components/ZlRadioTag/index.vue.mjs";
|
|
61
62
|
/* empty css */
|
|
62
|
-
import
|
|
63
|
+
import U from "./components/ZlSearch/index.vue.mjs";
|
|
63
64
|
/* empty css */
|
|
64
|
-
import
|
|
65
|
+
import J from "./components/ZlSearchTable/index.vue.mjs";
|
|
65
66
|
/* empty css */
|
|
66
|
-
import
|
|
67
|
+
import K from "./components/ZlSection/index.vue.mjs";
|
|
67
68
|
/* empty css */
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
69
|
+
import N from "./components/ZlSorter/index.vue.mjs";
|
|
70
|
+
import Q from "./components/ZlSorter/ZlSorterList.vue.mjs";
|
|
71
|
+
import W from "./components/ZlStep/index.vue.mjs";
|
|
72
|
+
import X from "./components/ZlSwitch/index.vue.mjs";
|
|
72
73
|
/* empty css */
|
|
73
|
-
import
|
|
74
|
+
import Y from "./components/ZlTable/index.vue.mjs";
|
|
74
75
|
/* empty css */
|
|
75
|
-
import
|
|
76
|
+
import oo from "./components/ZlTabs/index.vue.mjs";
|
|
76
77
|
/* empty css */
|
|
77
|
-
import
|
|
78
|
+
import ro from "./components/ZlTag/index.vue.mjs";
|
|
78
79
|
/* empty css */
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
80
|
+
import mo from "./components/ZlText/index.vue.mjs";
|
|
81
|
+
import io from "./components/ZlTitle/index.vue.mjs";
|
|
82
|
+
import to from "./components/ZlTree/index.vue.mjs";
|
|
82
83
|
/* empty css */
|
|
83
84
|
import ao from "./components/ZlTreeSelect/index.vue.mjs";
|
|
84
|
-
import
|
|
85
|
-
import { presetIconifyIcon as
|
|
86
|
-
import { usePagination as
|
|
87
|
-
import { useTablePagination as
|
|
88
|
-
import { usePermission as
|
|
89
|
-
import { createZlI18n as
|
|
90
|
-
import { default as
|
|
91
|
-
import { zlMessages as
|
|
92
|
-
import { default as
|
|
93
|
-
const
|
|
85
|
+
import lo from "./components/ZlUpload/index.vue.mjs";
|
|
86
|
+
import { presetIconifyIcon as qr } from "./components/ZlIcon/presetIconifyIcon.mjs";
|
|
87
|
+
import { usePagination as Ur } from "./components/ZlPagination/usePagination.mjs";
|
|
88
|
+
import { useTablePagination as Kr } from "./components/ZlTable/useTablePagination.mjs";
|
|
89
|
+
import { usePermission as Qr, usePermissionProvider as Wr } from "./components/ZlPermission/usePermission.mjs";
|
|
90
|
+
import { createZlI18n as Yr } from "./locales/createZlI18n.mjs";
|
|
91
|
+
import { default as rm } from "./locales/en.mjs";
|
|
92
|
+
import { zlMessages as im } from "./locales/messages.mjs";
|
|
93
|
+
import { default as am } from "./locales/zh-cn.mjs";
|
|
94
|
+
const po = {
|
|
94
95
|
ZlAction: i,
|
|
95
|
-
ZlActionList:
|
|
96
|
-
ZlAddSub:
|
|
96
|
+
ZlActionList: t,
|
|
97
|
+
ZlAddSub: a,
|
|
97
98
|
ZlAppLayout: l,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
ZlAppSlogan: p,
|
|
100
|
+
ZlAutoTooltip: f,
|
|
101
|
+
ZlAvatar: s,
|
|
102
|
+
ZlAvatarGroup: n,
|
|
103
|
+
ZlBreadcrumb: e,
|
|
104
|
+
ZlButton: Z,
|
|
104
105
|
ZlCardPage: c,
|
|
105
106
|
ZlCard: _,
|
|
106
107
|
ZlCheckAll: $,
|
|
107
108
|
ZlCheckboxTag: d,
|
|
108
109
|
ZlCopy: T,
|
|
109
110
|
ZlDescription: u,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
ZlDevMenu: b,
|
|
112
|
+
ZlDialog: P,
|
|
113
|
+
ZlDictTag: C,
|
|
114
|
+
ZlDrawer: S,
|
|
115
|
+
ZlDynamicComponent: h,
|
|
116
|
+
ZlEmpty: x,
|
|
115
117
|
ZlForm: A,
|
|
116
|
-
ZlFormChild:
|
|
118
|
+
ZlFormChild: D,
|
|
117
119
|
ZlGridItem: I,
|
|
118
120
|
ZlGrid: L,
|
|
119
|
-
ZlHorizontalTable:
|
|
121
|
+
ZlHorizontalTable: v,
|
|
120
122
|
ZlIcon: y,
|
|
121
|
-
ZlI18nProvider:
|
|
122
|
-
ZlIconHover:
|
|
123
|
-
ZlIconLabel:
|
|
123
|
+
ZlI18nProvider: w,
|
|
124
|
+
ZlIconHover: M,
|
|
125
|
+
ZlIconLabel: z,
|
|
124
126
|
ZlCornerTag: g,
|
|
125
|
-
ZlLayoutSwitch:
|
|
126
|
-
ZlLoading:
|
|
127
|
-
ZlLogin:
|
|
128
|
-
ZlLoginForm:
|
|
127
|
+
ZlLayoutSwitch: F,
|
|
128
|
+
ZlLoading: G,
|
|
129
|
+
ZlLogin: k,
|
|
130
|
+
ZlLoginForm: B,
|
|
129
131
|
ZlMenu: E,
|
|
130
132
|
ZlPageContainer: H,
|
|
131
133
|
ZlPagination: j,
|
|
132
|
-
ZlPdfViewer:
|
|
133
|
-
ZlPermission:
|
|
134
|
-
ZlPopconfirm:
|
|
135
|
-
ZlRadioTag:
|
|
136
|
-
ZlSearch:
|
|
137
|
-
ZlSearchTable:
|
|
138
|
-
ZlSection:
|
|
139
|
-
ZlSorter:
|
|
140
|
-
ZlSorterList:
|
|
141
|
-
ZlStep:
|
|
142
|
-
ZlSwitch:
|
|
143
|
-
ZlTable:
|
|
144
|
-
ZlTabs:
|
|
145
|
-
ZlTag:
|
|
146
|
-
ZlText:
|
|
147
|
-
ZlTitle:
|
|
148
|
-
ZlUpload:
|
|
149
|
-
ZlTree:
|
|
134
|
+
ZlPdfViewer: R,
|
|
135
|
+
ZlPermission: V,
|
|
136
|
+
ZlPopconfirm: q,
|
|
137
|
+
ZlRadioTag: O,
|
|
138
|
+
ZlSearch: U,
|
|
139
|
+
ZlSearchTable: J,
|
|
140
|
+
ZlSection: K,
|
|
141
|
+
ZlSorter: N,
|
|
142
|
+
ZlSorterList: Q,
|
|
143
|
+
ZlStep: W,
|
|
144
|
+
ZlSwitch: X,
|
|
145
|
+
ZlTable: Y,
|
|
146
|
+
ZlTabs: oo,
|
|
147
|
+
ZlTag: ro,
|
|
148
|
+
ZlText: mo,
|
|
149
|
+
ZlTitle: io,
|
|
150
|
+
ZlUpload: lo,
|
|
151
|
+
ZlTree: to,
|
|
150
152
|
ZlTreeSelect: ao
|
|
151
153
|
};
|
|
152
|
-
function
|
|
153
|
-
Object.entries(
|
|
154
|
+
function fo(o) {
|
|
155
|
+
Object.entries(po).forEach(([r, m]) => {
|
|
154
156
|
o.component(r, m);
|
|
155
157
|
});
|
|
156
158
|
}
|
|
157
|
-
const
|
|
159
|
+
const jr = { install: fo };
|
|
158
160
|
export {
|
|
159
161
|
i as ZlAction,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
t as ZlActionList,
|
|
163
|
+
a as ZlAddSub,
|
|
162
164
|
l as ZlAppLayout,
|
|
163
|
-
p as
|
|
164
|
-
f as
|
|
165
|
-
s as
|
|
166
|
-
n as
|
|
167
|
-
e as
|
|
168
|
-
Z as
|
|
165
|
+
p as ZlAppSlogan,
|
|
166
|
+
f as ZlAutoTooltip,
|
|
167
|
+
s as ZlAvatar,
|
|
168
|
+
n as ZlAvatarGroup,
|
|
169
|
+
e as ZlBreadcrumb,
|
|
170
|
+
Z as ZlButton,
|
|
169
171
|
_ as ZlCard,
|
|
170
172
|
c as ZlCardPage,
|
|
171
173
|
$ as ZlCheckAll,
|
|
@@ -173,56 +175,57 @@ export {
|
|
|
173
175
|
T as ZlCopy,
|
|
174
176
|
g as ZlCornerTag,
|
|
175
177
|
u as ZlDescription,
|
|
176
|
-
b as
|
|
177
|
-
P as
|
|
178
|
-
C as
|
|
179
|
-
S as
|
|
180
|
-
h as
|
|
178
|
+
b as ZlDevMenu,
|
|
179
|
+
P as ZlDialog,
|
|
180
|
+
C as ZlDictTag,
|
|
181
|
+
S as ZlDrawer,
|
|
182
|
+
h as ZlDynamicComponent,
|
|
183
|
+
x as ZlEmpty,
|
|
181
184
|
A as ZlForm,
|
|
182
|
-
|
|
185
|
+
D as ZlFormChild,
|
|
183
186
|
L as ZlGrid,
|
|
184
187
|
I as ZlGridItem,
|
|
185
|
-
|
|
186
|
-
|
|
188
|
+
v as ZlHorizontalTable,
|
|
189
|
+
w as ZlI18nProvider,
|
|
187
190
|
y as ZlIcon,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
M as ZlIconHover,
|
|
192
|
+
z as ZlIconLabel,
|
|
193
|
+
F as ZlLayoutSwitch,
|
|
194
|
+
G as ZlLoading,
|
|
195
|
+
k as ZlLogin,
|
|
196
|
+
B as ZlLoginForm,
|
|
194
197
|
E as ZlMenu,
|
|
195
198
|
H as ZlPageContainer,
|
|
196
199
|
j as ZlPagination,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
200
|
+
R as ZlPdfViewer,
|
|
201
|
+
V as ZlPermission,
|
|
202
|
+
q as ZlPopconfirm,
|
|
203
|
+
O as ZlRadioTag,
|
|
204
|
+
U as ZlSearch,
|
|
205
|
+
J as ZlSearchTable,
|
|
206
|
+
K as ZlSection,
|
|
207
|
+
N as ZlSorter,
|
|
208
|
+
Q as ZlSorterList,
|
|
209
|
+
W as ZlStep,
|
|
210
|
+
X as ZlSwitch,
|
|
211
|
+
Y as ZlTable,
|
|
212
|
+
oo as ZlTabs,
|
|
213
|
+
ro as ZlTag,
|
|
214
|
+
mo as ZlText,
|
|
215
|
+
io as ZlTitle,
|
|
216
|
+
to as ZlTree,
|
|
214
217
|
ao as ZlTreeSelect,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
218
|
+
lo as ZlUpload,
|
|
219
|
+
Yr as createZlI18n,
|
|
220
|
+
jr as default,
|
|
221
|
+
fo as install,
|
|
222
|
+
qr as presetIconifyIcon,
|
|
223
|
+
Ur as usePagination,
|
|
224
|
+
Qr as usePermission,
|
|
225
|
+
Wr as usePermissionProvider,
|
|
226
|
+
Kr as useTablePagination,
|
|
227
|
+
rm as zlEnMessages,
|
|
228
|
+
im as zlMessages,
|
|
229
|
+
am as zlZhMessages
|
|
227
230
|
};
|
|
228
231
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zl-ui-kit/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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.
|
|
43
|
-
"@zl-ui-kit/
|
|
44
|
-
"@zl-ui-kit/
|
|
42
|
+
"@zl-ui-kit/composables": "0.22.0",
|
|
43
|
+
"@zl-ui-kit/utils": "0.22.0",
|
|
44
|
+
"@zl-ui-kit/icons": "0.22.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@vueuse/core": "^12.3.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"@vue-office/pptx": "1.0.1",
|
|
101
101
|
"echarts": "^5.6.0",
|
|
102
102
|
"@jichuang/tsconfig": "1.0.0",
|
|
103
|
-
"@jichuang/eslint-config": "1.0.0",
|
|
104
103
|
"@jichuang/vite-config": "1.0.0",
|
|
105
|
-
"@
|
|
104
|
+
"@jichuang/eslint-config": "1.0.0",
|
|
105
|
+
"@zl-ui-kit/theme": "0.22.0"
|
|
106
106
|
},
|
|
107
107
|
"repository": {
|
|
108
108
|
"type": "git",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface MenuItem {
|
|
2
|
-
/** 唯一键 */
|
|
3
|
-
name: string;
|
|
4
|
-
title: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
children?: MenuItem[];
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}
|
|
9
|
-
type __VLS_Props = {
|
|
10
|
-
/** 菜单是否收起为图标,侧栏折叠时用 */
|
|
11
|
-
collapsed?: boolean;
|
|
12
|
-
/** el-menu 模式:vertical / horizontal */
|
|
13
|
-
layout?: 'vertical' | 'horizontal';
|
|
14
|
-
/** 菜单树数据,递归渲染为多级菜单项 */
|
|
15
|
-
menus?: MenuItem[];
|
|
16
|
-
};
|
|
17
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
-
"menu-item-click": (menu: MenuItem) => any;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
-
"onMenu-item-click"?: ((menu: MenuItem) => any) | undefined;
|
|
21
|
-
}>, {
|
|
22
|
-
layout: "vertical" | "horizontal";
|
|
23
|
-
collapsed: boolean;
|
|
24
|
-
menus: MenuItem[];
|
|
25
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
export default _default;
|
|
27
|
-
//# sourceMappingURL=AppMenu.vue.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, resolveComponent as s, openBlock as n, createBlock as l, withCtx as i, createElementBlock as r, Fragment as p, renderList as f } from "vue";
|
|
2
|
-
import d from "./AppMenuItem.vue.mjs";
|
|
3
|
-
const B = /* @__PURE__ */ u({
|
|
4
|
-
name: "ZlAppMenu",
|
|
5
|
-
__name: "AppMenu",
|
|
6
|
-
props: {
|
|
7
|
-
collapsed: { type: Boolean, default: !1 },
|
|
8
|
-
layout: { default: "vertical" },
|
|
9
|
-
menus: { default: () => [] }
|
|
10
|
-
},
|
|
11
|
-
emits: ["menu-item-click"],
|
|
12
|
-
setup(e, { emit: o }) {
|
|
13
|
-
const m = o;
|
|
14
|
-
return (k, _) => {
|
|
15
|
-
const a = s("el-menu");
|
|
16
|
-
return n(), l(a, {
|
|
17
|
-
class: "zl-menu",
|
|
18
|
-
collapse: e.collapsed,
|
|
19
|
-
mode: e.layout,
|
|
20
|
-
"collapse-transition": !1
|
|
21
|
-
}, {
|
|
22
|
-
default: i(() => [
|
|
23
|
-
(n(!0), r(p, null, f(e.menus, (t) => (n(), l(d, {
|
|
24
|
-
key: t.name,
|
|
25
|
-
menu: t,
|
|
26
|
-
onMenuItemClick: (c) => m("menu-item-click", c)
|
|
27
|
-
}, null, 8, ["menu", "onMenuItemClick"]))), 128))
|
|
28
|
-
]),
|
|
29
|
-
_: 1
|
|
30
|
-
}, 8, ["collapse", "mode"]);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
B as default
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=AppMenu.vue.mjs.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from './AppMenu.vue';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
menu: MenuItem;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
"menu-item-click": (menu: MenuItem) => any;
|
|
7
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
"onMenu-item-click"?: ((menu: MenuItem) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=AppMenuItem.vue.d.ts.map
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, resolveComponent as i, openBlock as n, createBlock as t, withCtx as m, createElementBlock as M, Fragment as p, renderList as A, createCommentVNode as r, createElementVNode as g, toDisplayString as a, createTextVNode as h } from "vue";
|
|
2
|
-
import d from "../ZlIcon/index.vue.mjs";
|
|
3
|
-
const V = /* @__PURE__ */ I({
|
|
4
|
-
name: "ZlAppMenuItem",
|
|
5
|
-
__name: "AppMenuItem",
|
|
6
|
-
props: {
|
|
7
|
-
menu: {}
|
|
8
|
-
},
|
|
9
|
-
emits: ["menu-item-click"],
|
|
10
|
-
setup(e, { emit: k }) {
|
|
11
|
-
const f = e, s = k;
|
|
12
|
-
function l(c = f.menu) {
|
|
13
|
-
s("menu-item-click", c);
|
|
14
|
-
}
|
|
15
|
-
return (c, o) => {
|
|
16
|
-
const x = i("AppMenuItem", !0), y = i("el-sub-menu"), C = i("el-menu-item");
|
|
17
|
-
return e.menu.children?.length ? (n(), t(y, {
|
|
18
|
-
key: 0,
|
|
19
|
-
index: e.menu.name
|
|
20
|
-
}, {
|
|
21
|
-
title: m(() => [
|
|
22
|
-
e.menu.icon ? (n(), t(d, {
|
|
23
|
-
key: 0,
|
|
24
|
-
icon: e.menu.icon
|
|
25
|
-
}, null, 8, ["icon"])) : r("", !0),
|
|
26
|
-
g("span", null, a(e.menu.title), 1)
|
|
27
|
-
]),
|
|
28
|
-
default: m(() => [
|
|
29
|
-
(n(!0), M(p, null, A(e.menu.children, (u) => (n(), t(x, {
|
|
30
|
-
key: u.name,
|
|
31
|
-
menu: u,
|
|
32
|
-
onMenuItemClick: l
|
|
33
|
-
}, null, 8, ["menu"]))), 128))
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
}, 8, ["index"])) : (n(), t(C, {
|
|
37
|
-
key: 1,
|
|
38
|
-
index: e.menu.name,
|
|
39
|
-
onClick: o[0] || (o[0] = (u) => l())
|
|
40
|
-
}, {
|
|
41
|
-
title: m(() => [
|
|
42
|
-
h(a(e.menu.title), 1)
|
|
43
|
-
]),
|
|
44
|
-
default: m(() => [
|
|
45
|
-
e.menu.icon ? (n(), t(d, {
|
|
46
|
-
key: 0,
|
|
47
|
-
icon: e.menu.icon
|
|
48
|
-
}, null, 8, ["icon"])) : r("", !0)
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["index"]));
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
V as default
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=AppMenuItem.vue.mjs.map
|