workdesktop-ai 1.2.1 → 1.2.2
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 +190 -190
- package/dist/chunks/Path-pIP0JQ0c.mjs +245 -0
- package/dist/chunks/Path-pIP0JQ0c.mjs.map +1 -0
- package/dist/chunks/Station-BTP0SbBg.mjs +818 -0
- package/dist/chunks/Station-BTP0SbBg.mjs.map +1 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +19 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/path/index.mjs +1 -1
- package/dist/path/style.css +1 -1
- package/dist/station/index.mjs +1 -1
- package/dist/station/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/ApiButton.vue.d.ts +134 -0
- package/dist/types/src/components/buttons/ConfirmButton.vue.d.ts +169 -0
- package/dist/types/src/components/buttons/DialogButton.vue.d.ts +167 -0
- package/dist/types/src/components/buttons/DrawerButton.vue.d.ts +186 -0
- package/dist/types/src/components/buttons/PopconfirmButton.vue.d.ts +317 -0
- package/dist/types/src/components/buttons/PromptButton.vue.d.ts +180 -0
- package/dist/types/src/components/buttons/RouteButton.vue.d.ts +122 -0
- package/dist/types/src/components/buttons/TipsButton.vue.d.ts +66 -0
- package/dist/types/src/components/buttons/useApiAction.d.ts +20 -0
- package/dist/types/src/components/common/props.d.ts +122 -0
- package/dist/types/src/components/containers/Drawer.vue.d.ts +172 -0
- package/dist/types/src/components/containers/Iframe.vue.d.ts +81 -0
- package/dist/types/src/components/containers/containerContext.d.ts +15 -0
- package/dist/types/src/components/containers/useContainerController.d.ts +24 -0
- package/dist/types/src/components/containers/useIframeContainer.d.ts +20 -0
- package/dist/types/src/components/core/Requester.vue.d.ts +41 -0
- package/dist/types/src/components/data/datagrid/DataGrid.vue.d.ts +542 -0
- package/dist/types/src/components/data/datagrid/useColumnSettings.d.ts +62 -0
- package/dist/types/src/components/data/editable-grid/EditableGrid.vue.d.ts +586 -0
- package/dist/types/src/components/data/viewer/Viewer.vue.d.ts +187 -0
- package/dist/types/src/components/form/FormItem.vue.d.ts +62 -0
- package/dist/types/src/components/form/SearchItem.vue.d.ts +62 -0
- package/dist/types/src/components/form/SearchPanel.vue.d.ts +167 -0
- package/dist/types/src/components/form/data-form/DataForm.vue.d.ts +311 -0
- package/dist/types/src/components/index.d.ts +32 -0
- package/dist/types/src/components/inputs/AutoComplete.vue.d.ts +166 -0
- package/dist/types/src/components/inputs/CheckboxList.vue.d.ts +166 -0
- package/dist/types/src/components/inputs/RadioList.vue.d.ts +166 -0
- package/dist/types/src/components/inputs/Select.vue.d.ts +176 -0
- package/dist/types/src/components/inputs/Switch.vue.d.ts +116 -0
- package/dist/types/src/components/inputs/useOptionsLoader.d.ts +32 -0
- package/dist/types/src/components/layout/Station.vue.d.ts +313 -0
- package/dist/types/src/components/layout/StationMenuNode.vue.d.ts +20 -0
- package/dist/types/src/components/layout/types.d.ts +67 -0
- package/dist/types/src/components/styles/Panel.vue.d.ts +94 -0
- package/dist/types/src/components/styles/Path.vue.d.ts +103 -0
- package/dist/types/src/components/styles/Tips.vue.d.ts +60 -0
- package/dist/types/src/components/upload/ImageUpload.vue.d.ts +176 -0
- package/dist/types/src/components/upload/Upload.vue.d.ts +235 -0
- package/dist/types/src/entries/api-button.d.ts +9 -0
- package/dist/types/src/entries/auto-complete.d.ts +9 -0
- package/dist/types/src/entries/checkbox-list.d.ts +9 -0
- package/dist/types/src/entries/components-map.d.ts +8 -0
- package/dist/types/src/entries/confirm-button.d.ts +9 -0
- package/dist/types/src/entries/data-form.d.ts +9 -0
- package/dist/types/src/entries/data-grid.d.ts +9 -0
- package/dist/types/src/entries/dialog-button.d.ts +9 -0
- package/dist/types/src/entries/drawer-button.d.ts +9 -0
- package/dist/types/src/entries/drawer.d.ts +9 -0
- package/dist/types/src/entries/editable-grid.d.ts +9 -0
- package/dist/types/src/entries/form-item.d.ts +9 -0
- package/dist/types/src/entries/iframe.d.ts +9 -0
- package/dist/types/src/entries/image-upload.d.ts +9 -0
- package/dist/types/src/entries/panel.d.ts +9 -0
- package/dist/types/src/entries/path.d.ts +9 -0
- package/dist/types/src/entries/prompt-button.d.ts +9 -0
- package/dist/types/src/entries/radio-list.d.ts +9 -0
- package/dist/types/src/entries/requester.d.ts +9 -0
- package/dist/types/src/entries/route-button.d.ts +9 -0
- package/dist/types/src/entries/search-item.d.ts +9 -0
- package/dist/types/src/entries/search-panel.d.ts +9 -0
- package/dist/types/src/entries/select.d.ts +9 -0
- package/dist/types/src/entries/station.d.ts +9 -0
- package/dist/types/src/entries/switch.d.ts +9 -0
- package/dist/types/src/entries/tips-button.d.ts +9 -0
- package/dist/types/src/entries/tips.d.ts +9 -0
- package/dist/types/src/entries/upload.d.ts +9 -0
- package/dist/types/src/entries/viewer.d.ts +9 -0
- package/dist/types/src/index.d.ts +24 -0
- package/dist/types/src/lib/composables/useConfig.d.ts +19 -0
- package/dist/types/src/lib/composables/useDataGrid.d.ts +69 -0
- package/dist/types/src/lib/composables/useEventBus.d.ts +16 -0
- package/dist/types/src/lib/composables/useGlobalState.d.ts +5 -0
- package/dist/types/src/lib/composables/useRequest.d.ts +42 -0
- package/dist/types/src/lib/configs/default-config.d.ts +6 -0
- package/dist/types/src/lib/core/config.d.ts +28 -0
- package/dist/types/src/lib/core/http.d.ts +100 -0
- package/dist/types/src/lib/core/linkage.d.ts +48 -0
- package/dist/types/src/lib/core/skins/apple.d.ts +3 -0
- package/dist/types/src/lib/core/skins/business.d.ts +3 -0
- package/dist/types/src/lib/core/skins/chinese.d.ts +3 -0
- package/dist/types/src/lib/core/skins/cool.d.ts +3 -0
- package/dist/types/src/lib/core/skins/cyberpunk.d.ts +3 -0
- package/dist/types/src/lib/core/skins/default.d.ts +3 -0
- package/dist/types/src/lib/core/skins/fashion.d.ts +3 -0
- package/dist/types/src/lib/core/skins/flat.d.ts +3 -0
- package/dist/types/src/lib/core/skins/governance.d.ts +3 -0
- package/dist/types/src/lib/core/skins/index.d.ts +15 -0
- package/dist/types/src/lib/core/skins/tech.d.ts +3 -0
- package/dist/types/src/lib/core/skins/types.d.ts +19 -0
- package/dist/types/src/lib/core/station-linkage.d.ts +72 -0
- package/dist/types/src/lib/core/theme.d.ts +11 -0
- package/dist/types/src/lib/core/utils.d.ts +28 -0
- package/dist/types/src/lib/install.d.ts +11 -0
- package/dist/types/src/types/config.d.ts +130 -0
- package/dist/types/src/types/index.d.ts +4 -0
- package/dist/types/vite.config.d.ts +7 -0
- package/package.json +6 -1
- package/dist/chunks/Path-C_oyo6Dg.mjs +0 -200
- package/dist/chunks/Path-C_oyo6Dg.mjs.map +0 -1
- package/dist/chunks/Station-DLV19USa.mjs +0 -780
- package/dist/chunks/Station-DLV19USa.mjs.map +0 -1
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare function closePanel(): void;
|
|
3
|
+
declare var __VLS_13: {}, __VLS_23: {}, __VLS_33: {
|
|
4
|
+
data: Record<string, any>;
|
|
5
|
+
close: typeof closePanel;
|
|
6
|
+
}, __VLS_35: {
|
|
7
|
+
close: (reason?: string) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
button?: (props: typeof __VLS_13) => any;
|
|
11
|
+
} & {
|
|
12
|
+
button?: (props: typeof __VLS_23) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_33) => any;
|
|
15
|
+
} & {
|
|
16
|
+
footer?: (props: typeof __VLS_35) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
19
|
+
/** 按钮文案(也可用 #button 插槽;el-button 原生 text 走 $attrs 透传) */
|
|
20
|
+
label: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 按钮尺寸(el-button size)。
|
|
26
|
+
* 注意:DrawerButton 的 size 被「弹层尺寸」占用,按钮尺寸请用 buttonSize,否则两属性冲突。
|
|
27
|
+
*/
|
|
28
|
+
buttonSize: {
|
|
29
|
+
type: PropType<"large" | "default" | "small" | "">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
/** 弹出层形式:drawer 抽屉 / dialog 对话框 */
|
|
33
|
+
mode: {
|
|
34
|
+
type: PropType<"drawer" | "dialog">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
/** 弹出层标题 */
|
|
38
|
+
title: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
/** iframe 地址(设置后弹层内以 iframe 加载,否则渲染默认插槽) */
|
|
43
|
+
url: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
/** 传给内部表单/iframe 的数据 */
|
|
48
|
+
data: {
|
|
49
|
+
type: PropType<Record<string, any>>;
|
|
50
|
+
default: () => {};
|
|
51
|
+
};
|
|
52
|
+
/** 弹出层尺寸(抽屉宽度/高度,对话框宽度) */
|
|
53
|
+
size: {
|
|
54
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
/** 抽屉弹出方向(仅 mode=drawer 生效) */
|
|
58
|
+
direction: {
|
|
59
|
+
type: PropType<"rtl" | "ltr" | "ttb" | "btt">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
/** 每次打开弹层时重新加载 iframe 内容(url 模式生效) */
|
|
63
|
+
reloadOnOpen: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
tips: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
tipsType: {
|
|
72
|
+
type: PropType<"dark" | "light">;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
placement: {
|
|
76
|
+
type: PropType<"top" | "bottom" | "left" | "right" | string>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
headRefreshDatagrid: {
|
|
80
|
+
type: PropType<boolean | string>;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
filter: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
88
|
+
confirm: (...args: any[]) => void;
|
|
89
|
+
close: (...args: any[]) => void;
|
|
90
|
+
open: (...args: any[]) => void;
|
|
91
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
+
/** 按钮文案(也可用 #button 插槽;el-button 原生 text 走 $attrs 透传) */
|
|
93
|
+
label: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* 按钮尺寸(el-button size)。
|
|
99
|
+
* 注意:DrawerButton 的 size 被「弹层尺寸」占用,按钮尺寸请用 buttonSize,否则两属性冲突。
|
|
100
|
+
*/
|
|
101
|
+
buttonSize: {
|
|
102
|
+
type: PropType<"large" | "default" | "small" | "">;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
/** 弹出层形式:drawer 抽屉 / dialog 对话框 */
|
|
106
|
+
mode: {
|
|
107
|
+
type: PropType<"drawer" | "dialog">;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
/** 弹出层标题 */
|
|
111
|
+
title: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
/** iframe 地址(设置后弹层内以 iframe 加载,否则渲染默认插槽) */
|
|
116
|
+
url: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
/** 传给内部表单/iframe 的数据 */
|
|
121
|
+
data: {
|
|
122
|
+
type: PropType<Record<string, any>>;
|
|
123
|
+
default: () => {};
|
|
124
|
+
};
|
|
125
|
+
/** 弹出层尺寸(抽屉宽度/高度,对话框宽度) */
|
|
126
|
+
size: {
|
|
127
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
/** 抽屉弹出方向(仅 mode=drawer 生效) */
|
|
131
|
+
direction: {
|
|
132
|
+
type: PropType<"rtl" | "ltr" | "ttb" | "btt">;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
/** 每次打开弹层时重新加载 iframe 内容(url 模式生效) */
|
|
136
|
+
reloadOnOpen: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
tips: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
tipsType: {
|
|
145
|
+
type: PropType<"dark" | "light">;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
placement: {
|
|
149
|
+
type: PropType<"top" | "bottom" | "left" | "right" | string>;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
152
|
+
headRefreshDatagrid: {
|
|
153
|
+
type: PropType<boolean | string>;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
filter: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
}>> & Readonly<{
|
|
161
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
162
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
163
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
164
|
+
}>, {
|
|
165
|
+
data: Record<string, any>;
|
|
166
|
+
label: string;
|
|
167
|
+
title: string;
|
|
168
|
+
size: string | number;
|
|
169
|
+
placement: string;
|
|
170
|
+
filter: string;
|
|
171
|
+
mode: "dialog" | "drawer";
|
|
172
|
+
url: string;
|
|
173
|
+
tips: string;
|
|
174
|
+
headRefreshDatagrid: string | boolean;
|
|
175
|
+
tipsType: "dark" | "light";
|
|
176
|
+
direction: "rtl" | "ltr" | "ttb" | "btt";
|
|
177
|
+
reloadOnOpen: boolean;
|
|
178
|
+
buttonSize: "" | "default" | "small" | "large";
|
|
179
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
180
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
181
|
+
export default _default;
|
|
182
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
183
|
+
new (): {
|
|
184
|
+
$slots: S;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { type Component, type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_11: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_11) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
/** 确认提示标题 */
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
/** 确定按钮文案 */
|
|
13
|
+
confirmButtonText: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
/** 取消按钮文案 */
|
|
18
|
+
cancelButtonText: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/** 确定按钮类型 */
|
|
23
|
+
confirmButtonType: {
|
|
24
|
+
type: PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
/** 取消按钮类型 */
|
|
28
|
+
cancelButtonType: {
|
|
29
|
+
type: PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
/** 弹层图标(命名 popIcon 避免与 el-button 的 icon 透传冲突) */
|
|
33
|
+
popIcon: {
|
|
34
|
+
type: PropType<string | Component>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
/** 弹层图标颜色 */
|
|
38
|
+
popIconColor: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
/** 关闭动画时长(ms,继承自 el-popconfirm) */
|
|
43
|
+
hideAfter: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
/** 禁用确认弹层(命名 popDisabled 避免与 el-button 的 disabled 透传冲突) */
|
|
48
|
+
popDisabled: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
/** 弹层宽度 */
|
|
53
|
+
width: {
|
|
54
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
/** 触发方式 */
|
|
58
|
+
trigger: {
|
|
59
|
+
type: PropType<"click" | "hover" | "focus" | "contextmenu">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
/** 弹层自定义类名 */
|
|
63
|
+
popperClass: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
/** popper 配置 */
|
|
68
|
+
popperOptions: {
|
|
69
|
+
type: ObjectConstructor;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
/** 显示延迟(ms) */
|
|
73
|
+
showAfter: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
/** 是否挂载到 body */
|
|
78
|
+
teleported: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
/** 关闭时是否保留内容 */
|
|
83
|
+
persistent: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
/** 按钮级 loading(默认 true);false 时按钮不转圈 */
|
|
88
|
+
buttonLoading: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
/** 页面级 loading(全局遮罩 ElLoading) */
|
|
93
|
+
pageLoading: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
tips: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
tipsType: {
|
|
102
|
+
type: PropType<"dark" | "light">;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
placement: {
|
|
106
|
+
type: PropType<"top" | "bottom" | "left" | "right" | string>;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
label: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
api: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
apiMethod: {
|
|
118
|
+
type: PropType<"get" | "post" | "put" | "delete">;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
apiParam: {
|
|
122
|
+
type: PropType<Record<string, any>>;
|
|
123
|
+
default: () => {};
|
|
124
|
+
};
|
|
125
|
+
headRefreshDatagrid: {
|
|
126
|
+
type: PropType<boolean | string>;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
filter: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
134
|
+
apiBefore: (...args: any[]) => void;
|
|
135
|
+
apiSuccess: (...args: any[]) => void;
|
|
136
|
+
apiFail: (...args: any[]) => void;
|
|
137
|
+
apiException: (...args: any[]) => void;
|
|
138
|
+
apiAfter: (...args: any[]) => void;
|
|
139
|
+
confirm: (...args: any[]) => void;
|
|
140
|
+
cancel: (...args: any[]) => void;
|
|
141
|
+
click: (...args: any[]) => void;
|
|
142
|
+
show: (...args: any[]) => void;
|
|
143
|
+
hide: (...args: any[]) => void;
|
|
144
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
145
|
+
/** 确认提示标题 */
|
|
146
|
+
title: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
/** 确定按钮文案 */
|
|
151
|
+
confirmButtonText: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
/** 取消按钮文案 */
|
|
156
|
+
cancelButtonText: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
/** 确定按钮类型 */
|
|
161
|
+
confirmButtonType: {
|
|
162
|
+
type: PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
|
|
163
|
+
default: string;
|
|
164
|
+
};
|
|
165
|
+
/** 取消按钮类型 */
|
|
166
|
+
cancelButtonType: {
|
|
167
|
+
type: PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
|
|
168
|
+
default: string;
|
|
169
|
+
};
|
|
170
|
+
/** 弹层图标(命名 popIcon 避免与 el-button 的 icon 透传冲突) */
|
|
171
|
+
popIcon: {
|
|
172
|
+
type: PropType<string | Component>;
|
|
173
|
+
default: undefined;
|
|
174
|
+
};
|
|
175
|
+
/** 弹层图标颜色 */
|
|
176
|
+
popIconColor: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
180
|
+
/** 关闭动画时长(ms,继承自 el-popconfirm) */
|
|
181
|
+
hideAfter: {
|
|
182
|
+
type: NumberConstructor;
|
|
183
|
+
default: undefined;
|
|
184
|
+
};
|
|
185
|
+
/** 禁用确认弹层(命名 popDisabled 避免与 el-button 的 disabled 透传冲突) */
|
|
186
|
+
popDisabled: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
/** 弹层宽度 */
|
|
191
|
+
width: {
|
|
192
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
193
|
+
default: undefined;
|
|
194
|
+
};
|
|
195
|
+
/** 触发方式 */
|
|
196
|
+
trigger: {
|
|
197
|
+
type: PropType<"click" | "hover" | "focus" | "contextmenu">;
|
|
198
|
+
default: string;
|
|
199
|
+
};
|
|
200
|
+
/** 弹层自定义类名 */
|
|
201
|
+
popperClass: {
|
|
202
|
+
type: StringConstructor;
|
|
203
|
+
default: string;
|
|
204
|
+
};
|
|
205
|
+
/** popper 配置 */
|
|
206
|
+
popperOptions: {
|
|
207
|
+
type: ObjectConstructor;
|
|
208
|
+
default: undefined;
|
|
209
|
+
};
|
|
210
|
+
/** 显示延迟(ms) */
|
|
211
|
+
showAfter: {
|
|
212
|
+
type: NumberConstructor;
|
|
213
|
+
default: undefined;
|
|
214
|
+
};
|
|
215
|
+
/** 是否挂载到 body */
|
|
216
|
+
teleported: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
/** 关闭时是否保留内容 */
|
|
221
|
+
persistent: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
/** 按钮级 loading(默认 true);false 时按钮不转圈 */
|
|
226
|
+
buttonLoading: {
|
|
227
|
+
type: BooleanConstructor;
|
|
228
|
+
default: boolean;
|
|
229
|
+
};
|
|
230
|
+
/** 页面级 loading(全局遮罩 ElLoading) */
|
|
231
|
+
pageLoading: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
tips: {
|
|
236
|
+
type: StringConstructor;
|
|
237
|
+
default: string;
|
|
238
|
+
};
|
|
239
|
+
tipsType: {
|
|
240
|
+
type: PropType<"dark" | "light">;
|
|
241
|
+
default: string;
|
|
242
|
+
};
|
|
243
|
+
placement: {
|
|
244
|
+
type: PropType<"top" | "bottom" | "left" | "right" | string>;
|
|
245
|
+
default: string;
|
|
246
|
+
};
|
|
247
|
+
label: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
default: string;
|
|
250
|
+
};
|
|
251
|
+
api: {
|
|
252
|
+
type: StringConstructor;
|
|
253
|
+
default: string;
|
|
254
|
+
};
|
|
255
|
+
apiMethod: {
|
|
256
|
+
type: PropType<"get" | "post" | "put" | "delete">;
|
|
257
|
+
default: string;
|
|
258
|
+
};
|
|
259
|
+
apiParam: {
|
|
260
|
+
type: PropType<Record<string, any>>;
|
|
261
|
+
default: () => {};
|
|
262
|
+
};
|
|
263
|
+
headRefreshDatagrid: {
|
|
264
|
+
type: PropType<boolean | string>;
|
|
265
|
+
default: boolean;
|
|
266
|
+
};
|
|
267
|
+
filter: {
|
|
268
|
+
type: StringConstructor;
|
|
269
|
+
default: string;
|
|
270
|
+
};
|
|
271
|
+
}>> & Readonly<{
|
|
272
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
273
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
274
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
onApiException?: ((...args: any[]) => any) | undefined;
|
|
276
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
277
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
278
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
279
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
280
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
281
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
282
|
+
}>, {
|
|
283
|
+
label: string;
|
|
284
|
+
title: string;
|
|
285
|
+
placement: string;
|
|
286
|
+
filter: string;
|
|
287
|
+
api: string;
|
|
288
|
+
apiMethod: "post" | "delete" | "get" | "put";
|
|
289
|
+
apiParam: Record<string, any>;
|
|
290
|
+
trigger: "click" | "contextmenu" | "focus" | "hover";
|
|
291
|
+
width: string | number;
|
|
292
|
+
tips: string;
|
|
293
|
+
headRefreshDatagrid: string | boolean;
|
|
294
|
+
confirmButtonText: string;
|
|
295
|
+
cancelButtonText: string;
|
|
296
|
+
showAfter: number;
|
|
297
|
+
buttonLoading: boolean;
|
|
298
|
+
pageLoading: boolean;
|
|
299
|
+
tipsType: "dark" | "light";
|
|
300
|
+
confirmButtonType: "success" | "warning" | "info" | "text" | "primary" | "danger";
|
|
301
|
+
cancelButtonType: "success" | "warning" | "info" | "text" | "primary" | "danger";
|
|
302
|
+
popIcon: string | Component;
|
|
303
|
+
popIconColor: string;
|
|
304
|
+
hideAfter: number;
|
|
305
|
+
popDisabled: boolean;
|
|
306
|
+
popperClass: string;
|
|
307
|
+
popperOptions: Record<string, any>;
|
|
308
|
+
teleported: boolean;
|
|
309
|
+
persistent: boolean;
|
|
310
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
311
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
312
|
+
export default _default;
|
|
313
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
314
|
+
new (): {
|
|
315
|
+
$slots: S;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
declare var __VLS_14: {}, __VLS_25: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_14) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_25) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
/** 输入框标题 */
|
|
9
|
+
promptTitle: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
/** 输入框占位文本(默认输入框模式有效) */
|
|
14
|
+
promptPlaceholder: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
/** 输入值并入 apiParam 的字段名(默认输入框模式有效) */
|
|
19
|
+
paramKey: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/** 输入框默认值(默认输入框模式有效) */
|
|
24
|
+
promptDefault: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
buttonLoading: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
pageLoading: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
tips: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
tipsType: {
|
|
41
|
+
type: import("vue").PropType<"dark" | "light">;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
placement: {
|
|
45
|
+
type: import("vue").PropType<"top" | "bottom" | "left" | "right" | string>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
label: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
api: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
apiMethod: {
|
|
57
|
+
type: import("vue").PropType<"get" | "post" | "put" | "delete">;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
apiParam: {
|
|
61
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
62
|
+
default: () => {};
|
|
63
|
+
};
|
|
64
|
+
headRefreshDatagrid: {
|
|
65
|
+
type: import("vue").PropType<boolean | string>;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
filter: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
|
+
apiBefore: (...args: any[]) => void;
|
|
74
|
+
apiSuccess: (...args: any[]) => void;
|
|
75
|
+
apiFail: (...args: any[]) => void;
|
|
76
|
+
apiException: (...args: any[]) => void;
|
|
77
|
+
apiAfter: (...args: any[]) => void;
|
|
78
|
+
confirm: (...args: any[]) => void;
|
|
79
|
+
prompt: (...args: any[]) => void;
|
|
80
|
+
cancel: (...args: any[]) => void;
|
|
81
|
+
click: (...args: any[]) => void;
|
|
82
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
|
+
/** 输入框标题 */
|
|
84
|
+
promptTitle: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
/** 输入框占位文本(默认输入框模式有效) */
|
|
89
|
+
promptPlaceholder: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
/** 输入值并入 apiParam 的字段名(默认输入框模式有效) */
|
|
94
|
+
paramKey: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
/** 输入框默认值(默认输入框模式有效) */
|
|
99
|
+
promptDefault: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
buttonLoading: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
pageLoading: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
tips: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
tipsType: {
|
|
116
|
+
type: import("vue").PropType<"dark" | "light">;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
placement: {
|
|
120
|
+
type: import("vue").PropType<"top" | "bottom" | "left" | "right" | string>;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
label: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
api: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
apiMethod: {
|
|
132
|
+
type: import("vue").PropType<"get" | "post" | "put" | "delete">;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
apiParam: {
|
|
136
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
137
|
+
default: () => {};
|
|
138
|
+
};
|
|
139
|
+
headRefreshDatagrid: {
|
|
140
|
+
type: import("vue").PropType<boolean | string>;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
filter: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
}>> & Readonly<{
|
|
148
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
onApiException?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
154
|
+
onPrompt?: ((...args: any[]) => any) | undefined;
|
|
155
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
156
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
157
|
+
}>, {
|
|
158
|
+
label: string;
|
|
159
|
+
placement: string;
|
|
160
|
+
filter: string;
|
|
161
|
+
api: string;
|
|
162
|
+
apiMethod: "post" | "delete" | "get" | "put";
|
|
163
|
+
apiParam: Record<string, any>;
|
|
164
|
+
tips: string;
|
|
165
|
+
headRefreshDatagrid: string | boolean;
|
|
166
|
+
buttonLoading: boolean;
|
|
167
|
+
pageLoading: boolean;
|
|
168
|
+
tipsType: "dark" | "light";
|
|
169
|
+
promptTitle: string;
|
|
170
|
+
promptPlaceholder: string;
|
|
171
|
+
paramKey: string;
|
|
172
|
+
promptDefault: string;
|
|
173
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
174
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
175
|
+
export default _default;
|
|
176
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
177
|
+
new (): {
|
|
178
|
+
$slots: S;
|
|
179
|
+
};
|
|
180
|
+
};
|