@vunk/plus 0.0.4 → 0.2.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 (46) hide show
  1. package/components/routes-menu-content/index.d.ts +4 -0
  2. package/components/routes-menu-content/index.mjs +305 -0
  3. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  4. package/components/routes-menu-content/src/index.vue.d.ts +350 -0
  5. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  6. package/components/routes-menu-content/src/item/core/index.vue.d.ts +185 -0
  7. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  8. package/components/routes-menu-content/src/item/index.vue.d.ts +316 -0
  9. package/components/routes-menu-content/src/types.d.ts +1 -0
  10. package/components/table-columns/index.d.ts +5 -0
  11. package/components/table-columns/index.mjs +138 -0
  12. package/components/table-columns/src/ctx.d.ts +66 -0
  13. package/components/table-columns/src/el-ctx.d.ts +63 -0
  14. package/components/table-columns/src/index.vue.d.ts +280 -0
  15. package/components/table-columns/src/types.d.ts +21 -0
  16. package/components/typing-markdown/src/index.vue.d.ts +2 -2
  17. package/fetch/PlusFetch/index.d.ts +14 -0
  18. package/fetch/PlusFetch/index.mjs +638 -0
  19. package/fetch/PlusFetch/types.d.ts +54 -0
  20. package/fetch/index.d.ts +1 -0
  21. package/fetch/index.mjs +5 -0
  22. package/package.json +15 -39
  23. package/api/index.d.ts +0 -0
  24. package/api/index.mjs +0 -1
  25. package/api/user/index.d.ts +0 -3
  26. package/api/user/index.mjs +0 -18
  27. package/api/user/types.d.ts +0 -5
  28. package/shared/chatgpt/index.d.ts +0 -1
  29. package/shared/chatgpt/index.mjs +0 -3
  30. package/shared/chatgpt/response/enum.d.ts +0 -6
  31. package/shared/chatgpt/response/index.d.ts +0 -6
  32. package/shared/chatgpt/response/index.mjs +0 -16
  33. package/shared/chatgpt/response/sse/index.d.ts +0 -2
  34. package/shared/chatgpt/response/sse/index.mjs +0 -1
  35. package/shared/chatgpt/response/sse/message/index.d.ts +0 -4
  36. package/shared/chatgpt/response/sse/message/index.mjs +0 -8
  37. package/shared/chatgpt/response/sse/message/types.d.ts +0 -15
  38. package/shared/chatgpt/response/sse/types.d.ts +0 -6
  39. package/shared/fetch/base/index.d.ts +0 -9
  40. package/shared/fetch/base/index.mjs +0 -17
  41. package/shared/fetch/ssr/index.d.ts +0 -3
  42. package/shared/fetch/ssr/index.mjs +0 -11
  43. package/stores/index.d.ts +0 -0
  44. package/stores/index.mjs +0 -1
  45. package/theme/index.d.ts +0 -0
  46. package/theme/index.mjs +0 -1
@@ -0,0 +1,4 @@
1
+ import VkRoutesMenuContent from './src/index.vue';
2
+ export * as __VkRoutesMenuContent from './src/types';
3
+ export { VkRoutesMenuContent, };
4
+ export default VkRoutesMenuContent;
@@ -0,0 +1,305 @@
1
+ import { defineComponent, computed, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, mergeProps, normalizeProps, guardReactiveProps, createCommentVNode, renderList, createVNode } from 'vue';
2
+ import { resolveFullPath } from '@vunk/shared/string/url';
3
+ import { ElSubMenu, ElMenuItem } from 'element-plus';
4
+ import { bindPropsFactory } from '@vunk/core/shared/utils-vue';
5
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
6
+
7
+ const props$2 = {
8
+ data: {
9
+ type: Array,
10
+ default: () => []
11
+ },
12
+ popperClass: {
13
+ type: String,
14
+ default: "vk-routes-menu-content-popper"
15
+ },
16
+ basePath: {
17
+ type: String,
18
+ default: ""
19
+ }
20
+ };
21
+ const emits = {};
22
+
23
+ const props$1 = {
24
+ data: {
25
+ type: Object,
26
+ default: () => ({})
27
+ },
28
+ popperClass: {
29
+ type: String,
30
+ default: ""
31
+ },
32
+ basePath: {
33
+ type: String,
34
+ default: ""
35
+ }
36
+ };
37
+ const createBindProps = bindPropsFactory(props$1);
38
+
39
+ var _sfc_main$2 = defineComponent({
40
+ components: {
41
+ ElSubMenu,
42
+ ElMenuItem
43
+ },
44
+ props: props$1,
45
+ setup(props2) {
46
+ const hasChildren = computed(() => {
47
+ let flag = false;
48
+ if (props2.data.children) {
49
+ flag = props2.data.children.some((item) => {
50
+ return item.meta?.display != 0 && item.meta?.hidden !== true;
51
+ });
52
+ }
53
+ return flag;
54
+ });
55
+ const subMenuIndex = computed(() => {
56
+ const meta = props2.data.meta;
57
+ return meta?.subMenuIndex ? meta.subMenuIndex : resolveFullPath(props2.data.path, props2.basePath);
58
+ });
59
+ return {
60
+ resolveFullPath,
61
+ hasChildren,
62
+ subMenuIndex
63
+ };
64
+ }
65
+ });
66
+
67
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
68
+ const _component_ElSubMenu = resolveComponent("ElSubMenu");
69
+ const _component_ElMenuItem = resolveComponent("ElMenuItem");
70
+ return _ctx.hasChildren ? (openBlock(), createBlock(_component_ElSubMenu, {
71
+ key: 0,
72
+ index: _ctx.subMenuIndex,
73
+ "popper-class": _ctx.popperClass
74
+ }, {
75
+ title: withCtx(() => [
76
+ renderSlot(_ctx.$slots, "menuTitle", {
77
+ data: _ctx.data,
78
+ href: _ctx.resolveFullPath(_ctx.data.path, _ctx.basePath),
79
+ basePath: _ctx.basePath
80
+ })
81
+ ]),
82
+ default: withCtx(() => [
83
+ renderSlot(_ctx.$slots, "default")
84
+ ]),
85
+ _: 3
86
+ /* FORWARDED */
87
+ }, 8, ["index", "popper-class"])) : (openBlock(), createBlock(_component_ElMenuItem, {
88
+ key: 1,
89
+ index: _ctx.resolveFullPath(_ctx.data.path, _ctx.basePath)
90
+ }, {
91
+ title: withCtx(() => [
92
+ renderSlot(_ctx.$slots, "itemTitle", {
93
+ data: _ctx.data,
94
+ href: _ctx.resolveFullPath(_ctx.data.path, _ctx.basePath),
95
+ basePath: _ctx.basePath
96
+ })
97
+ ]),
98
+ default: withCtx(() => [
99
+ renderSlot(_ctx.$slots, "item", {
100
+ data: _ctx.data,
101
+ href: _ctx.resolveFullPath(_ctx.data.path, _ctx.basePath),
102
+ basePath: _ctx.basePath
103
+ })
104
+ ]),
105
+ _: 3
106
+ /* FORWARDED */
107
+ }, 8, ["index"]));
108
+ }
109
+ var CoreVue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/routes-menu-content/src/item/core/index.vue"]]);
110
+
111
+ const props = {
112
+ ...props$1
113
+ };
114
+
115
+ const skipRender = Symbol("skipRender");
116
+ var _sfc_main$1 = defineComponent({
117
+ components: {
118
+ CoreVue
119
+ },
120
+ props,
121
+ setup(props2) {
122
+ const bindProps = createBindProps(props2);
123
+ const onlyData = computed(() => {
124
+ return getOnly(props2.data);
125
+ });
126
+ function getOnly(data, merge = {}) {
127
+ const children = data.children;
128
+ const paths = merge.paths || [data.path];
129
+ if (data.meta?.alwaysShow) return;
130
+ if (children) {
131
+ const showChildren = children.filter((item) => item.meta?.display != 0 && item.meta?.hidden !== true);
132
+ if (showChildren.length === 1) {
133
+ const one = showChildren[0];
134
+ paths.push(one.path);
135
+ one[skipRender] = true;
136
+ if (one.children?.length) {
137
+ const oneShowChildren = one.children.filter((item) => item.meta?.display != 0 && item.meta?.hidden !== true);
138
+ if (oneShowChildren.length) {
139
+ return getOnly(one, { paths });
140
+ }
141
+ }
142
+ return {
143
+ ...one,
144
+ meta: {
145
+ ...data.meta ?? {},
146
+ ...one.meta ?? {}
147
+ },
148
+ _paths: paths,
149
+ path: paths.reduce((prev, next) => {
150
+ if (!prev) {
151
+ return next;
152
+ }
153
+ if (next.startsWith("/")) {
154
+ return next;
155
+ } else {
156
+ return prev + "/" + next;
157
+ }
158
+ }, "")
159
+ };
160
+ }
161
+ }
162
+ }
163
+ return {
164
+ skipRender,
165
+ onlyData,
166
+ bindProps
167
+ };
168
+ }
169
+ });
170
+
171
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
172
+ const _component_CoreVue = resolveComponent("CoreVue");
173
+ return _ctx.data.meta?.display != 0 && _ctx.data.meta?.hidden !== true ? (openBlock(), createElementBlock(
174
+ Fragment,
175
+ { key: 0 },
176
+ [
177
+ !_ctx.data[_ctx.skipRender] ? (openBlock(), createElementBlock(
178
+ Fragment,
179
+ { key: 0 },
180
+ [
181
+ _ctx.onlyData ? (openBlock(), createBlock(_component_CoreVue, mergeProps({ key: 0 }, _ctx.bindProps, { data: _ctx.onlyData }), {
182
+ item: withCtx((e) => [
183
+ renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(e)))
184
+ ]),
185
+ menuTitle: withCtx((e) => [
186
+ renderSlot(_ctx.$slots, "menuTitle", normalizeProps(guardReactiveProps(e)))
187
+ ]),
188
+ itemTitle: withCtx((e) => [
189
+ renderSlot(_ctx.$slots, "itemTitle", normalizeProps(guardReactiveProps(e)))
190
+ ]),
191
+ default: withCtx(() => [
192
+ renderSlot(_ctx.$slots, "default")
193
+ ]),
194
+ _: 3
195
+ /* FORWARDED */
196
+ }, 16, ["data"])) : (openBlock(), createBlock(
197
+ _component_CoreVue,
198
+ normalizeProps(mergeProps({ key: 1 }, _ctx.bindProps)),
199
+ {
200
+ item: withCtx((e) => [
201
+ renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(e)))
202
+ ]),
203
+ menuTitle: withCtx((e) => [
204
+ renderSlot(_ctx.$slots, "menuTitle", normalizeProps(guardReactiveProps(e)))
205
+ ]),
206
+ itemTitle: withCtx((e) => [
207
+ renderSlot(_ctx.$slots, "itemTitle", normalizeProps(guardReactiveProps(e)))
208
+ ]),
209
+ default: withCtx(() => [
210
+ renderSlot(_ctx.$slots, "default")
211
+ ]),
212
+ _: 3
213
+ /* FORWARDED */
214
+ },
215
+ 16
216
+ /* FULL_PROPS */
217
+ ))
218
+ ],
219
+ 64
220
+ /* STABLE_FRAGMENT */
221
+ )) : renderSlot(_ctx.$slots, "default", { key: 1 })
222
+ ],
223
+ 64
224
+ /* STABLE_FRAGMENT */
225
+ )) : createCommentVNode("v-if", true);
226
+ }
227
+ var ItemVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/routes-menu-content/src/item/index.vue"]]);
228
+
229
+ var _sfc_main = defineComponent({
230
+ name: "VkRoutesMenuContent",
231
+ components: {
232
+ ItemVue
233
+ },
234
+ props: props$2,
235
+ emits,
236
+ setup() {
237
+ return {
238
+ resolveFullPath
239
+ };
240
+ }
241
+ });
242
+
243
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
244
+ const _component_VkRoutesMenuContent = resolveComponent("VkRoutesMenuContent");
245
+ const _component_ItemVue = resolveComponent("ItemVue");
246
+ return openBlock(true), createElementBlock(
247
+ Fragment,
248
+ null,
249
+ renderList(_ctx.data, (item) => {
250
+ return openBlock(), createBlock(_component_ItemVue, {
251
+ key: item.name || item.path,
252
+ data: item,
253
+ "popper-class": _ctx.popperClass,
254
+ "base-path": _ctx.basePath
255
+ }, {
256
+ item: withCtx((e) => [
257
+ renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, e))
258
+ ]),
259
+ menuTitle: withCtx((e) => [
260
+ renderSlot(_ctx.$slots, "menuTitle", mergeProps({ ref_for: true }, e))
261
+ ]),
262
+ itemTitle: withCtx((e) => [
263
+ renderSlot(_ctx.$slots, "itemTitle", mergeProps({ ref_for: true }, e))
264
+ ]),
265
+ default: withCtx(() => [
266
+ createVNode(_component_VkRoutesMenuContent, {
267
+ data: item.children,
268
+ "popper-class": _ctx.popperClass,
269
+ "base-path": _ctx.resolveFullPath(item.path, _ctx.basePath)
270
+ }, {
271
+ item: withCtx((e) => [
272
+ renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, e))
273
+ ]),
274
+ menuTitle: withCtx((e) => [
275
+ renderSlot(_ctx.$slots, "menuTitle", mergeProps({ ref_for: true }, e))
276
+ ]),
277
+ itemTitle: withCtx((e) => [
278
+ renderSlot(_ctx.$slots, "itemTitle", mergeProps({ ref_for: true }, e))
279
+ ]),
280
+ _: 2
281
+ /* DYNAMIC */
282
+ }, 1032, ["data", "popper-class", "base-path"])
283
+ ]),
284
+ _: 2
285
+ /* DYNAMIC */
286
+ }, 1032, ["data", "popper-class", "base-path"]);
287
+ }),
288
+ 128
289
+ /* KEYED_FRAGMENT */
290
+ );
291
+ }
292
+ var VkRoutesMenuContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/routes-menu-content/src/index.vue"]]);
293
+
294
+ var types = /*#__PURE__*/Object.freeze({
295
+ __proto__: null
296
+ });
297
+
298
+ VkRoutesMenuContent.install = (app) => {
299
+ app.component(
300
+ VkRoutesMenuContent.name || "VkRoutesMenuContent",
301
+ VkRoutesMenuContent
302
+ );
303
+ };
304
+
305
+ export { VkRoutesMenuContent, types as __VkRoutesMenuContent, VkRoutesMenuContent as default };
@@ -0,0 +1,17 @@
1
+ import { PropType } from 'vue';
2
+ import type { RouteRecordRaw } from 'vue-router';
3
+ export declare const props: {
4
+ data: {
5
+ type: PropType<RouteRecordRaw[]>;
6
+ default: () => any[];
7
+ };
8
+ popperClass: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ basePath: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ };
17
+ export declare const emits: {};
@@ -0,0 +1,350 @@
1
+ import { resolveFullPath } from '@vunk/shared/string/url';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ data: {
4
+ type: import("vue").PropType<import("vue-router").RouteRecordRaw[]>;
5
+ default: () => any[];
6
+ };
7
+ popperClass: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ basePath: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>, {
16
+ resolveFullPath: typeof resolveFullPath;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ data: {
19
+ type: import("vue").PropType<import("vue-router").RouteRecordRaw[]>;
20
+ default: () => any[];
21
+ };
22
+ popperClass: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ basePath: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ }>> & Readonly<{}>, {
31
+ data: import("vue-router").RouteRecordRaw[];
32
+ popperClass: string;
33
+ basePath: string;
34
+ }, {}, {
35
+ ItemVue: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
36
+ data: {
37
+ type: import("vue").PropType<import("vue-router").RouteRecordRaw>;
38
+ default: () => {};
39
+ };
40
+ popperClass: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ basePath: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ }>, {
49
+ skipRender: symbol;
50
+ onlyData: import("vue").ComputedRef<{
51
+ meta: {
52
+ [x: string]: unknown;
53
+ [x: number]: unknown;
54
+ [x: symbol]: unknown;
55
+ };
56
+ _paths: string[];
57
+ path: string;
58
+ component: import("vue-router").RouteComponent | (() => Promise<import("vue-router").RouteComponent>);
59
+ components?: never;
60
+ children?: never;
61
+ redirect?: never;
62
+ props?: import("vue-router")._RouteRecordProps<string | symbol>;
63
+ alias?: string | string[];
64
+ name?: import("vue-router").RouteRecordName;
65
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
66
+ end?: boolean;
67
+ sensitive?: boolean;
68
+ strict?: boolean;
69
+ } | {
70
+ meta: {
71
+ [x: string]: unknown;
72
+ [x: number]: unknown;
73
+ [x: symbol]: unknown;
74
+ };
75
+ _paths: string[];
76
+ path: string;
77
+ component?: import("vue-router").RouteComponent | (() => Promise<import("vue-router").RouteComponent>);
78
+ components?: never;
79
+ children: import("vue-router").RouteRecordRaw[];
80
+ props?: import("vue-router")._RouteRecordProps<string | symbol>;
81
+ redirect?: import("vue-router").RouteRecordRedirectOption;
82
+ alias?: string | string[];
83
+ name?: import("vue-router").RouteRecordName;
84
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
85
+ end?: boolean;
86
+ sensitive?: boolean;
87
+ strict?: boolean;
88
+ } | {
89
+ meta: {
90
+ [x: string]: unknown;
91
+ [x: number]: unknown;
92
+ [x: symbol]: unknown;
93
+ };
94
+ _paths: string[];
95
+ path: string;
96
+ components: Record<string, import("vue-router").RouteComponent | (() => Promise<import("vue-router").RouteComponent>)>;
97
+ component?: never;
98
+ children?: never;
99
+ redirect?: never;
100
+ props?: boolean | Record<string, import("vue-router")._RouteRecordProps<string | symbol>>;
101
+ alias?: string | string[];
102
+ name?: import("vue-router").RouteRecordName;
103
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
104
+ end?: boolean;
105
+ sensitive?: boolean;
106
+ strict?: boolean;
107
+ } | {
108
+ meta: {
109
+ [x: string]: unknown;
110
+ [x: number]: unknown;
111
+ [x: symbol]: unknown;
112
+ };
113
+ _paths: string[];
114
+ path: string;
115
+ components?: Record<string, import("vue-router").RouteComponent | (() => Promise<import("vue-router").RouteComponent>)>;
116
+ component?: never;
117
+ children: import("vue-router").RouteRecordRaw[];
118
+ props?: boolean | Record<string, import("vue-router")._RouteRecordProps<string | symbol>>;
119
+ redirect?: import("vue-router").RouteRecordRedirectOption;
120
+ alias?: string | string[];
121
+ name?: import("vue-router").RouteRecordName;
122
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
123
+ end?: boolean;
124
+ sensitive?: boolean;
125
+ strict?: boolean;
126
+ } | {
127
+ meta: {
128
+ [x: string]: unknown;
129
+ [x: number]: unknown;
130
+ [x: symbol]: unknown;
131
+ };
132
+ _paths: string[];
133
+ path: string;
134
+ redirect: import("vue-router").RouteRecordRedirectOption;
135
+ component?: never;
136
+ components?: never;
137
+ props?: never;
138
+ alias?: string | string[];
139
+ name?: import("vue-router").RouteRecordName;
140
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
141
+ children?: import("vue-router").RouteRecordRaw[];
142
+ end?: boolean;
143
+ sensitive?: boolean;
144
+ strict?: boolean;
145
+ }>;
146
+ bindProps: import("vue").ComputedRef<{}>;
147
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
148
+ data: {
149
+ type: import("vue").PropType<import("vue-router").RouteRecordRaw>;
150
+ default: () => {};
151
+ };
152
+ popperClass: {
153
+ type: StringConstructor;
154
+ default: string;
155
+ };
156
+ basePath: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
160
+ }>> & Readonly<{}>, {
161
+ data: import("vue-router").RouteRecordRaw;
162
+ popperClass: string;
163
+ basePath: string;
164
+ }, {}, {
165
+ CoreVue: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
166
+ data: {
167
+ type: import("vue").PropType<import("vue-router").RouteRecordRaw>;
168
+ default: () => {};
169
+ };
170
+ popperClass: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ basePath: {
175
+ type: StringConstructor;
176
+ default: string;
177
+ };
178
+ }>, {
179
+ resolveFullPath: typeof resolveFullPath;
180
+ hasChildren: import("vue").ComputedRef<boolean>;
181
+ subMenuIndex: import("vue").ComputedRef<string>;
182
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
183
+ data: {
184
+ type: import("vue").PropType<import("vue-router").RouteRecordRaw>;
185
+ default: () => {};
186
+ };
187
+ popperClass: {
188
+ type: StringConstructor;
189
+ default: string;
190
+ };
191
+ basePath: {
192
+ type: StringConstructor;
193
+ default: string;
194
+ };
195
+ }>> & Readonly<{}>, {
196
+ data: import("vue-router").RouteRecordRaw;
197
+ popperClass: string;
198
+ basePath: string;
199
+ }, {}, {
200
+ ElSubMenu: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
201
+ readonly index: {
202
+ readonly type: import("vue").PropType<string>;
203
+ readonly required: true;
204
+ readonly validator: (val: unknown) => boolean;
205
+ __epPropKey: true;
206
+ };
207
+ readonly showTimeout: NumberConstructor;
208
+ readonly hideTimeout: NumberConstructor;
209
+ readonly popperClass: StringConstructor;
210
+ readonly disabled: BooleanConstructor;
211
+ readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
212
+ readonly popperOffset: NumberConstructor;
213
+ readonly expandCloseIcon: {
214
+ readonly type: import("vue").PropType<unknown>;
215
+ readonly required: false;
216
+ readonly validator: (val: unknown) => boolean;
217
+ __epPropKey: true;
218
+ };
219
+ readonly expandOpenIcon: {
220
+ readonly type: import("vue").PropType<unknown>;
221
+ readonly required: false;
222
+ readonly validator: (val: unknown) => boolean;
223
+ __epPropKey: true;
224
+ };
225
+ readonly collapseCloseIcon: {
226
+ readonly type: import("vue").PropType<unknown>;
227
+ readonly required: false;
228
+ readonly validator: (val: unknown) => boolean;
229
+ __epPropKey: true;
230
+ };
231
+ readonly collapseOpenIcon: {
232
+ readonly type: import("vue").PropType<unknown>;
233
+ readonly required: false;
234
+ readonly validator: (val: unknown) => boolean;
235
+ __epPropKey: true;
236
+ };
237
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
238
+ [key: string]: any;
239
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
240
+ readonly index: {
241
+ readonly type: import("vue").PropType<string>;
242
+ readonly required: true;
243
+ readonly validator: (val: unknown) => boolean;
244
+ __epPropKey: true;
245
+ };
246
+ readonly showTimeout: NumberConstructor;
247
+ readonly hideTimeout: NumberConstructor;
248
+ readonly popperClass: StringConstructor;
249
+ readonly disabled: BooleanConstructor;
250
+ readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
251
+ readonly popperOffset: NumberConstructor;
252
+ readonly expandCloseIcon: {
253
+ readonly type: import("vue").PropType<unknown>;
254
+ readonly required: false;
255
+ readonly validator: (val: unknown) => boolean;
256
+ __epPropKey: true;
257
+ };
258
+ readonly expandOpenIcon: {
259
+ readonly type: import("vue").PropType<unknown>;
260
+ readonly required: false;
261
+ readonly validator: (val: unknown) => boolean;
262
+ __epPropKey: true;
263
+ };
264
+ readonly collapseCloseIcon: {
265
+ readonly type: import("vue").PropType<unknown>;
266
+ readonly required: false;
267
+ readonly validator: (val: unknown) => boolean;
268
+ __epPropKey: true;
269
+ };
270
+ readonly collapseOpenIcon: {
271
+ readonly type: import("vue").PropType<unknown>;
272
+ readonly required: false;
273
+ readonly validator: (val: unknown) => boolean;
274
+ __epPropKey: true;
275
+ };
276
+ }>>, {
277
+ readonly teleported: import("element-plus").ButtonType<BooleanConstructor, unknown, unknown>;
278
+ readonly disabled: boolean;
279
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
280
+ ElMenuItem: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
281
+ readonly index: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, null, boolean>;
282
+ readonly route: {
283
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (() => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | ((new (...args: any[]) => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (() => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric))[], unknown, unknown>>;
284
+ readonly required: false;
285
+ readonly validator: (val: unknown) => boolean;
286
+ __epPropKey: true;
287
+ };
288
+ readonly disabled: BooleanConstructor;
289
+ }, {
290
+ parentMenu: import("vue").ComputedRef<import("vue").ComponentInternalInstance>;
291
+ rootMenu: import("element-plus").MenuProvider;
292
+ active: import("vue").ComputedRef<boolean>;
293
+ nsMenu: {
294
+ namespace: import("vue").ComputedRef<string>;
295
+ b: (blockSuffix?: string) => string;
296
+ e: (element?: string) => string;
297
+ m: (modifier?: string) => string;
298
+ be: (blockSuffix?: string, element?: string) => string;
299
+ em: (element?: string, modifier?: string) => string;
300
+ bm: (blockSuffix?: string, modifier?: string) => string;
301
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
302
+ is: {
303
+ (name: string, state: boolean): string;
304
+ (name: string): string;
305
+ };
306
+ cssVar: (object: Record<string, string>) => Record<string, string>;
307
+ cssVarName: (name: string) => string;
308
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
309
+ cssVarBlockName: (name: string) => string;
310
+ };
311
+ nsMenuItem: {
312
+ namespace: import("vue").ComputedRef<string>;
313
+ b: (blockSuffix?: string) => string;
314
+ e: (element?: string) => string;
315
+ m: (modifier?: string) => string;
316
+ be: (blockSuffix?: string, element?: string) => string;
317
+ em: (element?: string, modifier?: string) => string;
318
+ bm: (blockSuffix?: string, modifier?: string) => string;
319
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
320
+ is: {
321
+ (name: string, state: boolean): string;
322
+ (name: string): string;
323
+ };
324
+ cssVar: (object: Record<string, string>) => Record<string, string>;
325
+ cssVarName: (name: string) => string;
326
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
327
+ cssVarBlockName: (name: string) => string;
328
+ };
329
+ handleClick: () => void;
330
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
331
+ click: (item: import("element-plus").MenuItemRegistered) => boolean;
332
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
333
+ readonly index: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, null, boolean>;
334
+ readonly route: {
335
+ readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (() => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | ((new (...args: any[]) => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (() => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric))[], unknown, unknown>>;
336
+ readonly required: false;
337
+ readonly validator: (val: unknown) => boolean;
338
+ __epPropKey: true;
339
+ };
340
+ readonly disabled: BooleanConstructor;
341
+ }>> & {
342
+ onClick?: (item: import("element-plus").MenuItemRegistered) => any;
343
+ }, {
344
+ readonly disabled: boolean;
345
+ readonly index: string;
346
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
347
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
348
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
349
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
350
+ export default _default;