workdesktop-ai 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +11 -8
- package/dist/api-button/index.mjs +1 -1
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/checkbox-list/index.mjs +1 -1
- package/dist/chunks/{ApiButton.vue_vue_type_script_setup_true_lang-CH_B3jbO.mjs → ApiButton.vue_vue_type_script_setup_true_lang-3BjZSAPZ.mjs} +2 -2
- package/dist/chunks/{ApiButton.vue_vue_type_script_setup_true_lang-CH_B3jbO.mjs.map → ApiButton.vue_vue_type_script_setup_true_lang-3BjZSAPZ.mjs.map} +1 -1
- package/dist/chunks/{AutoComplete-6yrCFGZ5.mjs → AutoComplete-C6Nxatvt.mjs} +2 -2
- package/dist/chunks/{AutoComplete-6yrCFGZ5.mjs.map → AutoComplete-C6Nxatvt.mjs.map} +1 -1
- package/dist/chunks/{CheckboxList-ChmfF6zs.mjs → CheckboxList-5AEx33r5.mjs} +2 -2
- package/dist/chunks/{CheckboxList-ChmfF6zs.mjs.map → CheckboxList-5AEx33r5.mjs.map} +1 -1
- package/dist/chunks/{ConfirmButton.vue_vue_type_script_setup_true_lang-D9ZUQB7V.mjs → ConfirmButton.vue_vue_type_script_setup_true_lang-CXYH1Rlc.mjs} +2 -2
- package/dist/chunks/{ConfirmButton.vue_vue_type_script_setup_true_lang-D9ZUQB7V.mjs.map → ConfirmButton.vue_vue_type_script_setup_true_lang-CXYH1Rlc.mjs.map} +1 -1
- package/dist/chunks/{DataForm-Rsa1PT-X.mjs → DataForm-C6VLTSOm.mjs} +3 -3
- package/dist/chunks/{DataForm-Rsa1PT-X.mjs.map → DataForm-C6VLTSOm.mjs.map} +1 -1
- package/dist/chunks/{DataGrid-DzbJpT43.mjs → DataGrid-Dd7n5JM7.mjs} +3 -3
- package/dist/chunks/{DataGrid-DzbJpT43.mjs.map → DataGrid-Dd7n5JM7.mjs.map} +1 -1
- package/dist/chunks/{EditableGrid-C-0uy89H.mjs → EditableGrid-CDeeVkaX.mjs} +3 -3
- package/dist/chunks/{EditableGrid-C-0uy89H.mjs.map → EditableGrid-CDeeVkaX.mjs.map} +1 -1
- package/dist/chunks/{ImageUpload-CrDyIjWC.mjs → ImageUpload-CQA9XQ7Q.mjs} +2 -2
- package/dist/chunks/{ImageUpload-CrDyIjWC.mjs.map → ImageUpload-CQA9XQ7Q.mjs.map} +1 -1
- package/dist/chunks/Path-C_oyo6Dg.mjs +200 -0
- package/dist/chunks/Path-C_oyo6Dg.mjs.map +1 -0
- package/dist/chunks/{PromptButton.vue_vue_type_script_setup_true_lang-ClrF3C2w.mjs → PromptButton.vue_vue_type_script_setup_true_lang-oYaMH-CI.mjs} +2 -2
- package/dist/chunks/{PromptButton.vue_vue_type_script_setup_true_lang-ClrF3C2w.mjs.map → PromptButton.vue_vue_type_script_setup_true_lang-oYaMH-CI.mjs.map} +1 -1
- package/dist/chunks/{RadioList-BIwUZ6lm.mjs → RadioList-BUWcP_Pk.mjs} +2 -2
- package/dist/chunks/{RadioList-BIwUZ6lm.mjs.map → RadioList-BUWcP_Pk.mjs.map} +1 -1
- package/dist/chunks/{Requester.vue_vue_type_script_setup_true_lang-Bu10N1Hj.mjs → Requester.vue_vue_type_script_setup_true_lang-DkLqAjug.mjs} +2 -2
- package/dist/chunks/{Requester.vue_vue_type_script_setup_true_lang-Bu10N1Hj.mjs.map → Requester.vue_vue_type_script_setup_true_lang-DkLqAjug.mjs.map} +1 -1
- package/dist/chunks/{Select-DlJ9U0nE.mjs → Select-uvFy7_NU.mjs} +2 -2
- package/dist/chunks/{Select-DlJ9U0nE.mjs.map → Select-uvFy7_NU.mjs.map} +1 -1
- package/dist/chunks/Station-DLV19USa.mjs +780 -0
- package/dist/chunks/Station-DLV19USa.mjs.map +1 -0
- package/dist/chunks/{Switch.vue_vue_type_script_setup_true_lang-BxJdsReQ.mjs → Switch.vue_vue_type_script_setup_true_lang-DUhXAGs2.mjs} +2 -2
- package/dist/chunks/{Switch.vue_vue_type_script_setup_true_lang-BxJdsReQ.mjs.map → Switch.vue_vue_type_script_setup_true_lang-DUhXAGs2.mjs.map} +1 -1
- package/dist/chunks/{Upload.vue_vue_type_script_setup_true_lang-DORizGEF.mjs → Upload.vue_vue_type_script_setup_true_lang-CHGCjpKK.mjs} +2 -2
- package/dist/chunks/{Upload.vue_vue_type_script_setup_true_lang-DORizGEF.mjs.map → Upload.vue_vue_type_script_setup_true_lang-CHGCjpKK.mjs.map} +1 -1
- package/dist/chunks/{Viewer-DcMSN3_1.mjs → Viewer-CjLSQTrw.mjs} +2 -2
- package/dist/chunks/{Viewer-DcMSN3_1.mjs.map → Viewer-CjLSQTrw.mjs.map} +1 -1
- package/dist/chunks/{http-9ToPNkWJ.mjs → http-C06mNpwY.mjs} +1180 -1065
- package/dist/chunks/http-C06mNpwY.mjs.map +1 -0
- package/dist/chunks/station-linkage-D54-_iyL.mjs +77 -0
- package/dist/chunks/station-linkage-D54-_iyL.mjs.map +1 -0
- package/dist/chunks/{useApiAction-BetCGQrx.mjs → useApiAction-DxVQWWxv.mjs} +2 -2
- package/dist/chunks/{useApiAction-BetCGQrx.mjs.map → useApiAction-DxVQWWxv.mjs.map} +1 -1
- package/dist/chunks/{useColumnSettings-CnXeA0k7.mjs → useColumnSettings-BwG2V9xp.mjs} +2 -2
- package/dist/chunks/{useColumnSettings-CnXeA0k7.mjs.map → useColumnSettings-BwG2V9xp.mjs.map} +1 -1
- package/dist/chunks/{useOptionsLoader-BwRdHDPL.mjs → useOptionsLoader-DEVCYhrp.mjs} +2 -2
- package/dist/chunks/{useOptionsLoader-BwRdHDPL.mjs.map → useOptionsLoader-DEVCYhrp.mjs.map} +1 -1
- package/dist/confirm-button/index.mjs +1 -1
- package/dist/data-form/index.mjs +1 -1
- package/dist/data-form/style.css +1 -1
- package/dist/data-grid/index.mjs +1 -1
- package/dist/editable-grid/index.mjs +1 -1
- package/dist/image-upload/index.mjs +1 -1
- package/dist/index.esm.js +86 -80
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +124 -21
- package/dist/index.umd.js.map +1 -1
- package/dist/path/index.mjs +7 -0
- package/dist/path/index.mjs.map +1 -0
- package/dist/path/style.css +1 -0
- package/dist/prompt-button/index.mjs +1 -1
- package/dist/radio-list/index.mjs +1 -1
- package/dist/requester/index.mjs +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/station/index.mjs +1 -1
- package/dist/station/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/switch/index.mjs +1 -1
- package/dist/upload/index.mjs +1 -1
- package/dist/viewer/index.mjs +1 -1
- package/llms.txt +69 -9
- package/package.json +6 -1
- package/dist/chunks/Station-CrMTjqfa.mjs +0 -796
- package/dist/chunks/Station-CrMTjqfa.mjs.map +0 -1
- package/dist/chunks/http-9ToPNkWJ.mjs.map +0 -1
- package/dist/types/src/components/buttons/ApiButton.vue.d.ts +0 -134
- package/dist/types/src/components/buttons/ConfirmButton.vue.d.ts +0 -169
- package/dist/types/src/components/buttons/DialogButton.vue.d.ts +0 -167
- package/dist/types/src/components/buttons/DrawerButton.vue.d.ts +0 -186
- package/dist/types/src/components/buttons/PopconfirmButton.vue.d.ts +0 -317
- package/dist/types/src/components/buttons/PromptButton.vue.d.ts +0 -180
- package/dist/types/src/components/buttons/RouteButton.vue.d.ts +0 -122
- package/dist/types/src/components/buttons/TipsButton.vue.d.ts +0 -66
- package/dist/types/src/components/buttons/useApiAction.d.ts +0 -20
- package/dist/types/src/components/common/props.d.ts +0 -122
- package/dist/types/src/components/containers/Drawer.vue.d.ts +0 -172
- package/dist/types/src/components/containers/Iframe.vue.d.ts +0 -81
- package/dist/types/src/components/containers/containerContext.d.ts +0 -15
- package/dist/types/src/components/containers/useContainerController.d.ts +0 -24
- package/dist/types/src/components/containers/useIframeContainer.d.ts +0 -20
- package/dist/types/src/components/core/Requester.vue.d.ts +0 -41
- package/dist/types/src/components/data/datagrid/DataGrid.vue.d.ts +0 -542
- package/dist/types/src/components/data/datagrid/useColumnSettings.d.ts +0 -62
- package/dist/types/src/components/data/editable-grid/EditableGrid.vue.d.ts +0 -586
- package/dist/types/src/components/data/viewer/Viewer.vue.d.ts +0 -187
- package/dist/types/src/components/form/FormItem.vue.d.ts +0 -62
- package/dist/types/src/components/form/SearchItem.vue.d.ts +0 -62
- package/dist/types/src/components/form/SearchPanel.vue.d.ts +0 -167
- package/dist/types/src/components/form/data-form/DataForm.vue.d.ts +0 -311
- package/dist/types/src/components/index.d.ts +0 -31
- package/dist/types/src/components/inputs/AutoComplete.vue.d.ts +0 -166
- package/dist/types/src/components/inputs/CheckboxList.vue.d.ts +0 -166
- package/dist/types/src/components/inputs/RadioList.vue.d.ts +0 -166
- package/dist/types/src/components/inputs/Select.vue.d.ts +0 -176
- package/dist/types/src/components/inputs/Switch.vue.d.ts +0 -116
- package/dist/types/src/components/inputs/useOptionsLoader.d.ts +0 -32
- package/dist/types/src/components/layout/Station.vue.d.ts +0 -302
- package/dist/types/src/components/layout/StationMenuNode.vue.d.ts +0 -20
- package/dist/types/src/components/layout/types.d.ts +0 -54
- package/dist/types/src/components/styles/Panel.vue.d.ts +0 -94
- package/dist/types/src/components/styles/Tips.vue.d.ts +0 -60
- package/dist/types/src/components/upload/ImageUpload.vue.d.ts +0 -176
- package/dist/types/src/components/upload/Upload.vue.d.ts +0 -235
- package/dist/types/src/entries/api-button.d.ts +0 -9
- package/dist/types/src/entries/auto-complete.d.ts +0 -9
- package/dist/types/src/entries/checkbox-list.d.ts +0 -9
- package/dist/types/src/entries/components-map.d.ts +0 -8
- package/dist/types/src/entries/confirm-button.d.ts +0 -9
- package/dist/types/src/entries/data-form.d.ts +0 -9
- package/dist/types/src/entries/data-grid.d.ts +0 -9
- package/dist/types/src/entries/dialog-button.d.ts +0 -9
- package/dist/types/src/entries/drawer-button.d.ts +0 -9
- package/dist/types/src/entries/drawer.d.ts +0 -9
- package/dist/types/src/entries/editable-grid.d.ts +0 -9
- package/dist/types/src/entries/form-item.d.ts +0 -9
- package/dist/types/src/entries/iframe.d.ts +0 -9
- package/dist/types/src/entries/image-upload.d.ts +0 -9
- package/dist/types/src/entries/panel.d.ts +0 -9
- package/dist/types/src/entries/prompt-button.d.ts +0 -9
- package/dist/types/src/entries/radio-list.d.ts +0 -9
- package/dist/types/src/entries/requester.d.ts +0 -9
- package/dist/types/src/entries/route-button.d.ts +0 -9
- package/dist/types/src/entries/search-item.d.ts +0 -9
- package/dist/types/src/entries/search-panel.d.ts +0 -9
- package/dist/types/src/entries/select.d.ts +0 -9
- package/dist/types/src/entries/station.d.ts +0 -9
- package/dist/types/src/entries/switch.d.ts +0 -9
- package/dist/types/src/entries/tips-button.d.ts +0 -9
- package/dist/types/src/entries/tips.d.ts +0 -9
- package/dist/types/src/entries/upload.d.ts +0 -9
- package/dist/types/src/entries/viewer.d.ts +0 -9
- package/dist/types/src/index.d.ts +0 -23
- package/dist/types/src/lib/composables/useConfig.d.ts +0 -19
- package/dist/types/src/lib/composables/useDataGrid.d.ts +0 -69
- package/dist/types/src/lib/composables/useEventBus.d.ts +0 -16
- package/dist/types/src/lib/composables/useGlobalState.d.ts +0 -5
- package/dist/types/src/lib/composables/useRequest.d.ts +0 -42
- package/dist/types/src/lib/configs/default-config.d.ts +0 -6
- package/dist/types/src/lib/core/config.d.ts +0 -28
- package/dist/types/src/lib/core/http.d.ts +0 -100
- package/dist/types/src/lib/core/linkage.d.ts +0 -48
- package/dist/types/src/lib/core/skins/apple.d.ts +0 -3
- package/dist/types/src/lib/core/skins/business.d.ts +0 -3
- package/dist/types/src/lib/core/skins/chinese.d.ts +0 -3
- package/dist/types/src/lib/core/skins/cool.d.ts +0 -3
- package/dist/types/src/lib/core/skins/cyberpunk.d.ts +0 -3
- package/dist/types/src/lib/core/skins/default.d.ts +0 -3
- package/dist/types/src/lib/core/skins/fashion.d.ts +0 -3
- package/dist/types/src/lib/core/skins/flat.d.ts +0 -3
- package/dist/types/src/lib/core/skins/governance.d.ts +0 -3
- package/dist/types/src/lib/core/skins/index.d.ts +0 -15
- package/dist/types/src/lib/core/skins/tech-brain.d.ts +0 -5
- package/dist/types/src/lib/core/skins/tech.d.ts +0 -3
- package/dist/types/src/lib/core/skins/types.d.ts +0 -19
- package/dist/types/src/lib/core/station-linkage.d.ts +0 -41
- package/dist/types/src/lib/core/theme.d.ts +0 -11
- package/dist/types/src/lib/core/utils.d.ts +0 -28
- package/dist/types/src/lib/install.d.ts +0 -11
- package/dist/types/src/types/config.d.ts +0 -130
- package/dist/types/src/types/index.d.ts +0 -4
- package/dist/types/vite.config.d.ts +0 -7
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
import type { StationTab, StationToolbarConfig } from './types';
|
|
3
|
-
declare function openTab(tab: any): void;
|
|
4
|
-
declare function closeTab(key: string): void;
|
|
5
|
-
declare function refresh(): void;
|
|
6
|
-
declare var __VLS_1: {
|
|
7
|
-
collapsed: boolean;
|
|
8
|
-
}, __VLS_11: {
|
|
9
|
-
collapsed: boolean;
|
|
10
|
-
}, __VLS_46: {
|
|
11
|
-
collapsed: boolean;
|
|
12
|
-
}, __VLS_72: {
|
|
13
|
-
collapsed: boolean;
|
|
14
|
-
}, __VLS_134: {}, __VLS_144: {}, __VLS_146: {}, __VLS_200: {}, __VLS_213: {}, __VLS_215: {}, __VLS_285: {}, __VLS_299: {}, __VLS_301: {};
|
|
15
|
-
type __VLS_Slots = {} & {
|
|
16
|
-
logo?: (props: typeof __VLS_1) => any;
|
|
17
|
-
} & {
|
|
18
|
-
'menu-top'?: (props: typeof __VLS_11) => any;
|
|
19
|
-
} & {
|
|
20
|
-
'menu-bottom'?: (props: typeof __VLS_46) => any;
|
|
21
|
-
} & {
|
|
22
|
-
logo?: (props: typeof __VLS_72) => any;
|
|
23
|
-
} & {
|
|
24
|
-
'header-left'?: (props: typeof __VLS_134) => any;
|
|
25
|
-
} & {
|
|
26
|
-
'header-center'?: (props: typeof __VLS_144) => any;
|
|
27
|
-
} & {
|
|
28
|
-
'header-right'?: (props: typeof __VLS_146) => any;
|
|
29
|
-
} & {
|
|
30
|
-
'top-menu-left'?: (props: typeof __VLS_200) => any;
|
|
31
|
-
} & {
|
|
32
|
-
'top-menu-right'?: (props: typeof __VLS_213) => any;
|
|
33
|
-
} & {
|
|
34
|
-
'tabs-left'?: (props: typeof __VLS_215) => any;
|
|
35
|
-
} & {
|
|
36
|
-
'tabs-right'?: (props: typeof __VLS_285) => any;
|
|
37
|
-
} & {
|
|
38
|
-
default?: (props: typeof __VLS_299) => any;
|
|
39
|
-
} & {
|
|
40
|
-
footer?: (props: typeof __VLS_301) => any;
|
|
41
|
-
};
|
|
42
|
-
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
43
|
-
/** 系统标题(logo 区 / headerMode=title 时的头部标题) */
|
|
44
|
-
title: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
/** logo 图标(@element-plus/icons-vue 名称字符串,或直接传组件) */
|
|
49
|
-
logo: {
|
|
50
|
-
type: PropType<string | object>;
|
|
51
|
-
default: string;
|
|
52
|
-
};
|
|
53
|
-
/** 分组菜单结构(优先),支持 JSON 字符串 */
|
|
54
|
-
menuGroups: {
|
|
55
|
-
type: PropType<any[] | string>;
|
|
56
|
-
default: undefined;
|
|
57
|
-
};
|
|
58
|
-
/** 扁平菜单结构(带 group/groupKey 字段按出现顺序归组),支持 JSON 字符串 */
|
|
59
|
-
menus: {
|
|
60
|
-
type: PropType<any[] | string>;
|
|
61
|
-
default: undefined;
|
|
62
|
-
};
|
|
63
|
-
/** 头部中央模式:nav=分导台 / title=标题(此时侧边渲染全量菜单并带组标题) */
|
|
64
|
-
headerMode: {
|
|
65
|
-
type: PropType<"nav" | "title">;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
/** 菜单位置:side=左侧 / top=顶部 / none=不启用 */
|
|
69
|
-
menuMode: {
|
|
70
|
-
type: PropType<"side" | "top" | "none">;
|
|
71
|
-
default: string;
|
|
72
|
-
};
|
|
73
|
-
/** 内容方式:page=单页 / tabs=多标签 */
|
|
74
|
-
contentMode: {
|
|
75
|
-
type: PropType<"page" | "tabs">;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
/** 路由适配:auto=自动检测 $router / router / html */
|
|
79
|
-
routerMode: {
|
|
80
|
-
type: PropType<"auto" | "router" | "html">;
|
|
81
|
-
default: string;
|
|
82
|
-
};
|
|
83
|
-
/** 是否显示折叠按钮 */
|
|
84
|
-
collapsible: {
|
|
85
|
-
type: BooleanConstructor;
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
|
-
/** 折叠状态(v-model:collapsed) */
|
|
89
|
-
collapsed: {
|
|
90
|
-
type: BooleanConstructor;
|
|
91
|
-
default: boolean;
|
|
92
|
-
};
|
|
93
|
-
/** 当前分组 key(v-model:active-group) */
|
|
94
|
-
activeGroup: {
|
|
95
|
-
type: StringConstructor;
|
|
96
|
-
default: string;
|
|
97
|
-
};
|
|
98
|
-
/** 当前菜单 key(v-model:active-menu) */
|
|
99
|
-
activeMenu: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
|
-
/** 已开启标签(v-model:open-tabs,受控) */
|
|
104
|
-
openTabs: {
|
|
105
|
-
type: PropType<StationTab[]>;
|
|
106
|
-
default: undefined;
|
|
107
|
-
};
|
|
108
|
-
/** 用户名(有值显示用户下拉,无值显示登录按钮) */
|
|
109
|
-
userName: {
|
|
110
|
-
type: StringConstructor;
|
|
111
|
-
default: string;
|
|
112
|
-
};
|
|
113
|
-
/** 用户头像地址 */
|
|
114
|
-
userAvatar: {
|
|
115
|
-
type: StringConstructor;
|
|
116
|
-
default: string;
|
|
117
|
-
};
|
|
118
|
-
/** 版权信息 */
|
|
119
|
-
copyright: {
|
|
120
|
-
type: StringConstructor;
|
|
121
|
-
default: string;
|
|
122
|
-
};
|
|
123
|
-
/** 底部动态信息(v-model:footer-info) */
|
|
124
|
-
footerInfo: {
|
|
125
|
-
type: StringConstructor;
|
|
126
|
-
default: string;
|
|
127
|
-
};
|
|
128
|
-
/** router 模式内容区 keep-alive */
|
|
129
|
-
keepAlive: {
|
|
130
|
-
type: BooleanConstructor;
|
|
131
|
-
default: boolean;
|
|
132
|
-
};
|
|
133
|
-
/** 工具栏点位配置:refresh/settings/user/login 各自 left/right/none,支持 JSON 字符串 */
|
|
134
|
-
toolbarConfig: {
|
|
135
|
-
type: PropType<StationToolbarConfig | string>;
|
|
136
|
-
default: undefined;
|
|
137
|
-
};
|
|
138
|
-
filter: {
|
|
139
|
-
type: StringConstructor;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
|
-
}>, {
|
|
143
|
-
refresh: typeof refresh;
|
|
144
|
-
openTab: typeof openTab;
|
|
145
|
-
closeTab: typeof closeTab;
|
|
146
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
147
|
-
refresh: (...args: any[]) => void;
|
|
148
|
-
"update:collapsed": (...args: any[]) => void;
|
|
149
|
-
"update:active-group": (...args: any[]) => void;
|
|
150
|
-
"update:active-menu": (...args: any[]) => void;
|
|
151
|
-
"update:open-tabs": (...args: any[]) => void;
|
|
152
|
-
"update:footer-info": (...args: any[]) => void;
|
|
153
|
-
"group-change": (...args: any[]) => void;
|
|
154
|
-
"menu-select": (...args: any[]) => void;
|
|
155
|
-
"tab-click": (...args: any[]) => void;
|
|
156
|
-
"tab-close": (...args: any[]) => void;
|
|
157
|
-
login: (...args: any[]) => void;
|
|
158
|
-
logout: (...args: any[]) => void;
|
|
159
|
-
settings: (...args: any[]) => void;
|
|
160
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
161
|
-
/** 系统标题(logo 区 / headerMode=title 时的头部标题) */
|
|
162
|
-
title: {
|
|
163
|
-
type: StringConstructor;
|
|
164
|
-
default: string;
|
|
165
|
-
};
|
|
166
|
-
/** logo 图标(@element-plus/icons-vue 名称字符串,或直接传组件) */
|
|
167
|
-
logo: {
|
|
168
|
-
type: PropType<string | object>;
|
|
169
|
-
default: string;
|
|
170
|
-
};
|
|
171
|
-
/** 分组菜单结构(优先),支持 JSON 字符串 */
|
|
172
|
-
menuGroups: {
|
|
173
|
-
type: PropType<any[] | string>;
|
|
174
|
-
default: undefined;
|
|
175
|
-
};
|
|
176
|
-
/** 扁平菜单结构(带 group/groupKey 字段按出现顺序归组),支持 JSON 字符串 */
|
|
177
|
-
menus: {
|
|
178
|
-
type: PropType<any[] | string>;
|
|
179
|
-
default: undefined;
|
|
180
|
-
};
|
|
181
|
-
/** 头部中央模式:nav=分导台 / title=标题(此时侧边渲染全量菜单并带组标题) */
|
|
182
|
-
headerMode: {
|
|
183
|
-
type: PropType<"nav" | "title">;
|
|
184
|
-
default: string;
|
|
185
|
-
};
|
|
186
|
-
/** 菜单位置:side=左侧 / top=顶部 / none=不启用 */
|
|
187
|
-
menuMode: {
|
|
188
|
-
type: PropType<"side" | "top" | "none">;
|
|
189
|
-
default: string;
|
|
190
|
-
};
|
|
191
|
-
/** 内容方式:page=单页 / tabs=多标签 */
|
|
192
|
-
contentMode: {
|
|
193
|
-
type: PropType<"page" | "tabs">;
|
|
194
|
-
default: string;
|
|
195
|
-
};
|
|
196
|
-
/** 路由适配:auto=自动检测 $router / router / html */
|
|
197
|
-
routerMode: {
|
|
198
|
-
type: PropType<"auto" | "router" | "html">;
|
|
199
|
-
default: string;
|
|
200
|
-
};
|
|
201
|
-
/** 是否显示折叠按钮 */
|
|
202
|
-
collapsible: {
|
|
203
|
-
type: BooleanConstructor;
|
|
204
|
-
default: boolean;
|
|
205
|
-
};
|
|
206
|
-
/** 折叠状态(v-model:collapsed) */
|
|
207
|
-
collapsed: {
|
|
208
|
-
type: BooleanConstructor;
|
|
209
|
-
default: boolean;
|
|
210
|
-
};
|
|
211
|
-
/** 当前分组 key(v-model:active-group) */
|
|
212
|
-
activeGroup: {
|
|
213
|
-
type: StringConstructor;
|
|
214
|
-
default: string;
|
|
215
|
-
};
|
|
216
|
-
/** 当前菜单 key(v-model:active-menu) */
|
|
217
|
-
activeMenu: {
|
|
218
|
-
type: StringConstructor;
|
|
219
|
-
default: string;
|
|
220
|
-
};
|
|
221
|
-
/** 已开启标签(v-model:open-tabs,受控) */
|
|
222
|
-
openTabs: {
|
|
223
|
-
type: PropType<StationTab[]>;
|
|
224
|
-
default: undefined;
|
|
225
|
-
};
|
|
226
|
-
/** 用户名(有值显示用户下拉,无值显示登录按钮) */
|
|
227
|
-
userName: {
|
|
228
|
-
type: StringConstructor;
|
|
229
|
-
default: string;
|
|
230
|
-
};
|
|
231
|
-
/** 用户头像地址 */
|
|
232
|
-
userAvatar: {
|
|
233
|
-
type: StringConstructor;
|
|
234
|
-
default: string;
|
|
235
|
-
};
|
|
236
|
-
/** 版权信息 */
|
|
237
|
-
copyright: {
|
|
238
|
-
type: StringConstructor;
|
|
239
|
-
default: string;
|
|
240
|
-
};
|
|
241
|
-
/** 底部动态信息(v-model:footer-info) */
|
|
242
|
-
footerInfo: {
|
|
243
|
-
type: StringConstructor;
|
|
244
|
-
default: string;
|
|
245
|
-
};
|
|
246
|
-
/** router 模式内容区 keep-alive */
|
|
247
|
-
keepAlive: {
|
|
248
|
-
type: BooleanConstructor;
|
|
249
|
-
default: boolean;
|
|
250
|
-
};
|
|
251
|
-
/** 工具栏点位配置:refresh/settings/user/login 各自 left/right/none,支持 JSON 字符串 */
|
|
252
|
-
toolbarConfig: {
|
|
253
|
-
type: PropType<StationToolbarConfig | string>;
|
|
254
|
-
default: undefined;
|
|
255
|
-
};
|
|
256
|
-
filter: {
|
|
257
|
-
type: StringConstructor;
|
|
258
|
-
default: string;
|
|
259
|
-
};
|
|
260
|
-
}>> & Readonly<{
|
|
261
|
-
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
262
|
-
"onUpdate:collapsed"?: ((...args: any[]) => any) | undefined;
|
|
263
|
-
"onUpdate:active-group"?: ((...args: any[]) => any) | undefined;
|
|
264
|
-
"onUpdate:active-menu"?: ((...args: any[]) => any) | undefined;
|
|
265
|
-
"onUpdate:open-tabs"?: ((...args: any[]) => any) | undefined;
|
|
266
|
-
"onUpdate:footer-info"?: ((...args: any[]) => any) | undefined;
|
|
267
|
-
"onGroup-change"?: ((...args: any[]) => any) | undefined;
|
|
268
|
-
"onMenu-select"?: ((...args: any[]) => any) | undefined;
|
|
269
|
-
"onTab-click"?: ((...args: any[]) => any) | undefined;
|
|
270
|
-
"onTab-close"?: ((...args: any[]) => any) | undefined;
|
|
271
|
-
onLogin?: ((...args: any[]) => any) | undefined;
|
|
272
|
-
onLogout?: ((...args: any[]) => any) | undefined;
|
|
273
|
-
onSettings?: ((...args: any[]) => any) | undefined;
|
|
274
|
-
}>, {
|
|
275
|
-
title: string;
|
|
276
|
-
filter: string;
|
|
277
|
-
collapsible: boolean;
|
|
278
|
-
logo: string | object;
|
|
279
|
-
menuGroups: string | any[];
|
|
280
|
-
menus: string | any[];
|
|
281
|
-
headerMode: "nav" | "title";
|
|
282
|
-
menuMode: "none" | "top" | "side";
|
|
283
|
-
contentMode: "page" | "tabs";
|
|
284
|
-
routerMode: "html" | "auto" | "router";
|
|
285
|
-
collapsed: boolean;
|
|
286
|
-
activeGroup: string;
|
|
287
|
-
activeMenu: string;
|
|
288
|
-
openTabs: StationTab[];
|
|
289
|
-
userName: string;
|
|
290
|
-
userAvatar: string;
|
|
291
|
-
copyright: string;
|
|
292
|
-
footerInfo: string;
|
|
293
|
-
keepAlive: boolean;
|
|
294
|
-
toolbarConfig: string | StationToolbarConfig;
|
|
295
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
296
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
297
|
-
export default _default;
|
|
298
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
299
|
-
new (): {
|
|
300
|
-
$slots: S;
|
|
301
|
-
};
|
|
302
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
/** 归一化后的菜单项(带 _key) */
|
|
3
|
-
items: {
|
|
4
|
-
type: () => any[];
|
|
5
|
-
default: () => never[];
|
|
6
|
-
};
|
|
7
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
-
select: (item: any) => any;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
/** 归一化后的菜单项(带 _key) */
|
|
11
|
-
items: {
|
|
12
|
-
type: () => any[];
|
|
13
|
-
default: () => never[];
|
|
14
|
-
};
|
|
15
|
-
}>> & Readonly<{
|
|
16
|
-
onSelect?: ((item: any) => any) | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
items: any[];
|
|
19
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WdStation 类型定义
|
|
3
|
-
*/
|
|
4
|
-
/** 菜单项(统一模型:分组 Group → 菜单树,建议两层) */
|
|
5
|
-
export interface StationMenuItem {
|
|
6
|
-
/** 菜单标题 */
|
|
7
|
-
title: string;
|
|
8
|
-
/** 图标(@element-plus/icons-vue 名称字符串,或直接传组件) */
|
|
9
|
-
icon?: string | object;
|
|
10
|
-
/** 路由路径(router 模式点击 push;html 模式仅作标识) */
|
|
11
|
-
path?: string;
|
|
12
|
-
/** 路由名称(可选,key 兜底优先级高于 path) */
|
|
13
|
-
name?: string;
|
|
14
|
-
/** 角标 */
|
|
15
|
-
badge?: string | number;
|
|
16
|
-
/** 禁用 */
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/** tabs 模式下固定标签(自动开启、不可关闭) */
|
|
19
|
-
affix?: boolean;
|
|
20
|
-
/** 扁平喂法:所属分组标题 */
|
|
21
|
-
group?: string;
|
|
22
|
-
/** 扁平喂法:所属分组 key(缺省取 group) */
|
|
23
|
-
groupKey?: string;
|
|
24
|
-
/** 扁平喂法:所属分组图标 */
|
|
25
|
-
groupIcon?: string | object;
|
|
26
|
-
/** 子菜单(递归,建议不超过两层) */
|
|
27
|
-
children?: StationMenuItem[];
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
/** 菜单分组(分导台条目) */
|
|
31
|
-
export interface StationMenuGroup {
|
|
32
|
-
/** 分组唯一标识 */
|
|
33
|
-
key: string;
|
|
34
|
-
/** 分组标题 */
|
|
35
|
-
title: string;
|
|
36
|
-
/** 分组图标 */
|
|
37
|
-
icon?: string | object;
|
|
38
|
-
/** 组内菜单树 */
|
|
39
|
-
menus: StationMenuItem[];
|
|
40
|
-
}
|
|
41
|
-
/** 已开启标签 */
|
|
42
|
-
export interface StationTab {
|
|
43
|
-
key: string;
|
|
44
|
-
title: string;
|
|
45
|
-
path?: string;
|
|
46
|
-
affix?: boolean;
|
|
47
|
-
}
|
|
48
|
-
/** 工具栏点位配置:refresh/settings/user/login 各自可放 left / right / none */
|
|
49
|
-
export interface StationToolbarConfig {
|
|
50
|
-
refresh?: 'left' | 'right' | 'none';
|
|
51
|
-
settings?: 'left' | 'right' | 'none';
|
|
52
|
-
user?: 'left' | 'right' | 'none';
|
|
53
|
-
login?: 'left' | 'right' | 'none';
|
|
54
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_19: {}, __VLS_21: {};
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
title?: (props: typeof __VLS_1) => any;
|
|
5
|
-
} & {
|
|
6
|
-
extra?: (props: typeof __VLS_3) => any;
|
|
7
|
-
} & {
|
|
8
|
-
default?: (props: typeof __VLS_19) => any;
|
|
9
|
-
} & {
|
|
10
|
-
footer?: (props: typeof __VLS_21) => any;
|
|
11
|
-
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
-
/** 面板标题 */
|
|
14
|
-
title: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
/** 标题旁描述 */
|
|
19
|
-
description: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
/** 是否可折叠(折叠时隐藏主体与底部) */
|
|
24
|
-
collapsible: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
/** 展开状态(配合 collapsible 使用,支持 v-model:opened) */
|
|
29
|
-
opened: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
/** 阴影策略:always=常驻阴影 / hover=悬停时显示 / never=无阴影 */
|
|
34
|
-
shadow: {
|
|
35
|
-
type: PropType<"always" | "hover" | "never">;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
/** 是否显示外边框(嵌套在卡片/弹层等容器内时可关闭) */
|
|
39
|
-
border: {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
44
|
-
change: (value: boolean) => any;
|
|
45
|
-
"update:opened": (value: boolean) => any;
|
|
46
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
-
/** 面板标题 */
|
|
48
|
-
title: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
/** 标题旁描述 */
|
|
53
|
-
description: {
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
default: string;
|
|
56
|
-
};
|
|
57
|
-
/** 是否可折叠(折叠时隐藏主体与底部) */
|
|
58
|
-
collapsible: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
};
|
|
62
|
-
/** 展开状态(配合 collapsible 使用,支持 v-model:opened) */
|
|
63
|
-
opened: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
/** 阴影策略:always=常驻阴影 / hover=悬停时显示 / never=无阴影 */
|
|
68
|
-
shadow: {
|
|
69
|
-
type: PropType<"always" | "hover" | "never">;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
/** 是否显示外边框(嵌套在卡片/弹层等容器内时可关闭) */
|
|
73
|
-
border: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
}>> & Readonly<{
|
|
78
|
-
onChange?: ((value: boolean) => any) | undefined;
|
|
79
|
-
"onUpdate:opened"?: ((value: boolean) => any) | undefined;
|
|
80
|
-
}>, {
|
|
81
|
-
title: string;
|
|
82
|
-
border: boolean;
|
|
83
|
-
description: string;
|
|
84
|
-
collapsible: boolean;
|
|
85
|
-
opened: boolean;
|
|
86
|
-
shadow: "hover" | "always" | "never";
|
|
87
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
88
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
89
|
-
export default _default;
|
|
90
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
91
|
-
new (): {
|
|
92
|
-
$slots: S;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
declare var __VLS_21: {};
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_21) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
-
/** 提示内容 */
|
|
8
|
-
tips: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
/** word=悬停图标模式 / box=行内文字模式 */
|
|
13
|
-
type: {
|
|
14
|
-
type: PropType<"word" | "box">;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
/** 图标组件名(InfoFilled/WarningFilled/QuestionFilled) */
|
|
18
|
-
icon: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
/** 图标/文字颜色 */
|
|
23
|
-
color: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
-
/** 提示内容 */
|
|
29
|
-
tips: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
/** word=悬停图标模式 / box=行内文字模式 */
|
|
34
|
-
type: {
|
|
35
|
-
type: PropType<"word" | "box">;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
/** 图标组件名(InfoFilled/WarningFilled/QuestionFilled) */
|
|
39
|
-
icon: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
/** 图标/文字颜色 */
|
|
44
|
-
color: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
}>> & Readonly<{}>, {
|
|
49
|
-
type: "word" | "box";
|
|
50
|
-
icon: string;
|
|
51
|
-
tips: string;
|
|
52
|
-
color: string;
|
|
53
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
55
|
-
export default _default;
|
|
56
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
-
new (): {
|
|
58
|
-
$slots: S;
|
|
59
|
-
};
|
|
60
|
-
};
|