workdesktop-ai 1.2.1 → 1.2.3
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 +7 -2
- 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,311 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
/** 回填数据到表单 */
|
|
3
|
+
declare function fillForm(data: Record<string, any> | null | undefined): void;
|
|
4
|
+
/** 请求详情并回填 */
|
|
5
|
+
declare function requestApi(options?: {
|
|
6
|
+
apiParam?: Record<string, any>;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
/** 取当前表单值 */
|
|
9
|
+
declare function getFormData(): {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
};
|
|
12
|
+
/** 手动校验 */
|
|
13
|
+
declare function validate(): Promise<boolean>;
|
|
14
|
+
/** 提交 */
|
|
15
|
+
declare function submitForm(continueNext?: boolean): Promise<void>;
|
|
16
|
+
/** 重置:create 清空 / edit 回填原值 */
|
|
17
|
+
declare function resetForm(clearOnly?: boolean): void;
|
|
18
|
+
/** 是否有未保存修改 */
|
|
19
|
+
declare function isDirty(): boolean;
|
|
20
|
+
/** 供父组件/抽屉调用的离开检查 */
|
|
21
|
+
declare function beforeLeave(): Promise<boolean>;
|
|
22
|
+
declare var __VLS_11: {
|
|
23
|
+
model: Record<string, any>;
|
|
24
|
+
form: any;
|
|
25
|
+
}, __VLS_13: {
|
|
26
|
+
submit: typeof submitForm;
|
|
27
|
+
reset: typeof resetForm;
|
|
28
|
+
loading: boolean;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_Slots = {} & {
|
|
31
|
+
default?: (props: typeof __VLS_11) => any;
|
|
32
|
+
} & {
|
|
33
|
+
footer?: (props: typeof __VLS_13) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
36
|
+
/** 模式:create 新增 / edit 编辑 */
|
|
37
|
+
mode: {
|
|
38
|
+
type: PropType<"create" | "edit">;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
/** 详情数据接口(edit 模式回填) */
|
|
42
|
+
api: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
apiMethod: {
|
|
47
|
+
type: PropType<"get" | "post">;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
apiParam: {
|
|
51
|
+
type: PropType<Record<string, any>>;
|
|
52
|
+
default: () => {};
|
|
53
|
+
};
|
|
54
|
+
/** 提交接口 */
|
|
55
|
+
submitApi: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
submitMethod: {
|
|
60
|
+
type: PropType<"post" | "put">;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
/** 提交字段白名单 */
|
|
64
|
+
submitKeys: {
|
|
65
|
+
type: PropType<string | string[]>;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
/** 提交字段黑名单 */
|
|
69
|
+
submitExcludeKeys: {
|
|
70
|
+
type: PropType<string | string[]>;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
/** 是否自动请求详情 */
|
|
74
|
+
active: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
/** 有未保存修改时离开确认 */
|
|
79
|
+
confirmLeave: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
/** 是否显示底部操作按钮区 */
|
|
84
|
+
withActions: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
/** 底部按钮文案配置 */
|
|
89
|
+
actionConfig: {
|
|
90
|
+
type: PropType<{
|
|
91
|
+
resetText?: string;
|
|
92
|
+
submitText?: string;
|
|
93
|
+
continueText?: string;
|
|
94
|
+
closeText?: string;
|
|
95
|
+
showReset?: boolean;
|
|
96
|
+
showContinue?: boolean;
|
|
97
|
+
}>;
|
|
98
|
+
default: () => {};
|
|
99
|
+
};
|
|
100
|
+
/** 提交后关闭抽屉 */
|
|
101
|
+
headCloseDrawer: {
|
|
102
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
/** 提交后刷新表格 */
|
|
106
|
+
headRefreshDatagrid: {
|
|
107
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
/** 显示连续操作按钮 */
|
|
111
|
+
keepFormButton: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
/** 表单规则(透传 el-form rules) */
|
|
116
|
+
rules: {
|
|
117
|
+
type: PropType<Record<string, any>>;
|
|
118
|
+
default: () => {};
|
|
119
|
+
};
|
|
120
|
+
labelWidth: {
|
|
121
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
labelPosition: {
|
|
125
|
+
type: PropType<"left" | "right" | "top">;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
inline: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
/** 联动分组 */
|
|
133
|
+
filter: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
/** 外部传入的初始数据(DrawerButton data 等) */
|
|
138
|
+
data: {
|
|
139
|
+
type: PropType<Record<string, any>>;
|
|
140
|
+
default: undefined;
|
|
141
|
+
};
|
|
142
|
+
}>, {
|
|
143
|
+
requestApi: typeof requestApi;
|
|
144
|
+
submitForm: typeof submitForm;
|
|
145
|
+
resetForm: typeof resetForm;
|
|
146
|
+
validate: typeof validate;
|
|
147
|
+
getFormData: typeof getFormData;
|
|
148
|
+
isDirty: typeof isDirty;
|
|
149
|
+
beforeLeave: typeof beforeLeave;
|
|
150
|
+
fillForm: typeof fillForm;
|
|
151
|
+
formRef: import("vue").Ref<any, any>;
|
|
152
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
153
|
+
apiBefore: (...args: any[]) => void;
|
|
154
|
+
apiAfter: (...args: any[]) => void;
|
|
155
|
+
close: (...args: any[]) => void;
|
|
156
|
+
change: (...args: any[]) => void;
|
|
157
|
+
"load-success": (...args: any[]) => void;
|
|
158
|
+
"submit-success": (...args: any[]) => void;
|
|
159
|
+
"submit-fail": (...args: any[]) => void;
|
|
160
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
161
|
+
/** 模式:create 新增 / edit 编辑 */
|
|
162
|
+
mode: {
|
|
163
|
+
type: PropType<"create" | "edit">;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
/** 详情数据接口(edit 模式回填) */
|
|
167
|
+
api: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
apiMethod: {
|
|
172
|
+
type: PropType<"get" | "post">;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
apiParam: {
|
|
176
|
+
type: PropType<Record<string, any>>;
|
|
177
|
+
default: () => {};
|
|
178
|
+
};
|
|
179
|
+
/** 提交接口 */
|
|
180
|
+
submitApi: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
184
|
+
submitMethod: {
|
|
185
|
+
type: PropType<"post" | "put">;
|
|
186
|
+
default: string;
|
|
187
|
+
};
|
|
188
|
+
/** 提交字段白名单 */
|
|
189
|
+
submitKeys: {
|
|
190
|
+
type: PropType<string | string[]>;
|
|
191
|
+
default: undefined;
|
|
192
|
+
};
|
|
193
|
+
/** 提交字段黑名单 */
|
|
194
|
+
submitExcludeKeys: {
|
|
195
|
+
type: PropType<string | string[]>;
|
|
196
|
+
default: undefined;
|
|
197
|
+
};
|
|
198
|
+
/** 是否自动请求详情 */
|
|
199
|
+
active: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
/** 有未保存修改时离开确认 */
|
|
204
|
+
confirmLeave: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: boolean;
|
|
207
|
+
};
|
|
208
|
+
/** 是否显示底部操作按钮区 */
|
|
209
|
+
withActions: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
213
|
+
/** 底部按钮文案配置 */
|
|
214
|
+
actionConfig: {
|
|
215
|
+
type: PropType<{
|
|
216
|
+
resetText?: string;
|
|
217
|
+
submitText?: string;
|
|
218
|
+
continueText?: string;
|
|
219
|
+
closeText?: string;
|
|
220
|
+
showReset?: boolean;
|
|
221
|
+
showContinue?: boolean;
|
|
222
|
+
}>;
|
|
223
|
+
default: () => {};
|
|
224
|
+
};
|
|
225
|
+
/** 提交后关闭抽屉 */
|
|
226
|
+
headCloseDrawer: {
|
|
227
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
228
|
+
default: boolean;
|
|
229
|
+
};
|
|
230
|
+
/** 提交后刷新表格 */
|
|
231
|
+
headRefreshDatagrid: {
|
|
232
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
/** 显示连续操作按钮 */
|
|
236
|
+
keepFormButton: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
/** 表单规则(透传 el-form rules) */
|
|
241
|
+
rules: {
|
|
242
|
+
type: PropType<Record<string, any>>;
|
|
243
|
+
default: () => {};
|
|
244
|
+
};
|
|
245
|
+
labelWidth: {
|
|
246
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
247
|
+
default: string;
|
|
248
|
+
};
|
|
249
|
+
labelPosition: {
|
|
250
|
+
type: PropType<"left" | "right" | "top">;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
253
|
+
inline: {
|
|
254
|
+
type: BooleanConstructor;
|
|
255
|
+
default: boolean;
|
|
256
|
+
};
|
|
257
|
+
/** 联动分组 */
|
|
258
|
+
filter: {
|
|
259
|
+
type: StringConstructor;
|
|
260
|
+
default: string;
|
|
261
|
+
};
|
|
262
|
+
/** 外部传入的初始数据(DrawerButton data 等) */
|
|
263
|
+
data: {
|
|
264
|
+
type: PropType<Record<string, any>>;
|
|
265
|
+
default: undefined;
|
|
266
|
+
};
|
|
267
|
+
}>> & Readonly<{
|
|
268
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
269
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
270
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
271
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
272
|
+
"onLoad-success"?: ((...args: any[]) => any) | undefined;
|
|
273
|
+
"onSubmit-success"?: ((...args: any[]) => any) | undefined;
|
|
274
|
+
"onSubmit-fail"?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
}>, {
|
|
276
|
+
data: Record<string, any>;
|
|
277
|
+
filter: string;
|
|
278
|
+
mode: "create" | "edit";
|
|
279
|
+
api: string;
|
|
280
|
+
apiMethod: "post" | "get";
|
|
281
|
+
apiParam: Record<string, any>;
|
|
282
|
+
active: boolean;
|
|
283
|
+
withActions: boolean;
|
|
284
|
+
headRefreshDatagrid: string | boolean;
|
|
285
|
+
submitApi: string;
|
|
286
|
+
submitMethod: "post" | "put";
|
|
287
|
+
submitKeys: string | string[];
|
|
288
|
+
submitExcludeKeys: string | string[];
|
|
289
|
+
confirmLeave: boolean;
|
|
290
|
+
actionConfig: {
|
|
291
|
+
resetText?: string;
|
|
292
|
+
submitText?: string;
|
|
293
|
+
continueText?: string;
|
|
294
|
+
closeText?: string;
|
|
295
|
+
showReset?: boolean;
|
|
296
|
+
showContinue?: boolean;
|
|
297
|
+
};
|
|
298
|
+
headCloseDrawer: string | boolean;
|
|
299
|
+
keepFormButton: boolean;
|
|
300
|
+
rules: Record<string, any>;
|
|
301
|
+
labelWidth: string | number;
|
|
302
|
+
labelPosition: "left" | "right" | "top";
|
|
303
|
+
inline: boolean;
|
|
304
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
305
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
306
|
+
export default _default;
|
|
307
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
308
|
+
new (): {
|
|
309
|
+
$slots: S;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件汇总导出(29 个组件)
|
|
3
|
+
*/
|
|
4
|
+
export { default as WdDataGrid } from './data/datagrid/DataGrid.vue';
|
|
5
|
+
export { default as WdEditableGrid } from './data/editable-grid/EditableGrid.vue';
|
|
6
|
+
export { default as WdViewer } from './data/viewer/Viewer.vue';
|
|
7
|
+
export { default as WdDataForm } from './form/data-form/DataForm.vue';
|
|
8
|
+
export { default as WdSearchPanel } from './form/SearchPanel.vue';
|
|
9
|
+
export { default as WdFormItem } from './form/FormItem.vue';
|
|
10
|
+
export { default as WdSearchItem } from './form/SearchItem.vue';
|
|
11
|
+
export { default as WdApiButton } from './buttons/ApiButton.vue';
|
|
12
|
+
export { default as WdConfirmButton } from './buttons/ConfirmButton.vue';
|
|
13
|
+
export { default as WdDialogButton } from './buttons/DialogButton.vue';
|
|
14
|
+
export { default as WdPopconfirmButton } from './buttons/PopconfirmButton.vue';
|
|
15
|
+
export { default as WdPromptButton } from './buttons/PromptButton.vue';
|
|
16
|
+
export { default as WdRouteButton } from './buttons/RouteButton.vue';
|
|
17
|
+
export { default as WdTipsButton } from './buttons/TipsButton.vue';
|
|
18
|
+
export { default as WdDrawerButton } from './buttons/DrawerButton.vue';
|
|
19
|
+
export { default as WdDrawer } from './containers/Drawer.vue';
|
|
20
|
+
export { default as WdIframe } from './containers/Iframe.vue';
|
|
21
|
+
export { default as WdSelect } from './inputs/Select.vue';
|
|
22
|
+
export { default as WdAutoComplete } from './inputs/AutoComplete.vue';
|
|
23
|
+
export { default as WdCheckboxList } from './inputs/CheckboxList.vue';
|
|
24
|
+
export { default as WdRadioList } from './inputs/RadioList.vue';
|
|
25
|
+
export { default as WdSwitch } from './inputs/Switch.vue';
|
|
26
|
+
export { default as WdUpload } from './upload/Upload.vue';
|
|
27
|
+
export { default as WdImageUpload } from './upload/ImageUpload.vue';
|
|
28
|
+
export { default as WdPanel } from './styles/Panel.vue';
|
|
29
|
+
export { default as WdPath } from './styles/Path.vue';
|
|
30
|
+
export { default as WdTips } from './styles/Tips.vue';
|
|
31
|
+
export { default as WdStation } from './layout/Station.vue';
|
|
32
|
+
export { default as WdRequester } from './core/Requester.vue';
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_10: {
|
|
3
|
+
option: any;
|
|
4
|
+
text: any;
|
|
5
|
+
value: any;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_10) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/** 选项值字段 */
|
|
16
|
+
valueKey: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
/** 选项显示字段 */
|
|
21
|
+
labelKey: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
keywordKey: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
apiMethod: {
|
|
30
|
+
type: PropType<"get" | "post">;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
active: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
dataSource: {
|
|
38
|
+
type: PropType<any[]>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
textProp: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
valueProp: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
tipsProp: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
addData: {
|
|
54
|
+
type: PropType<any[]>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
appendData: {
|
|
58
|
+
type: PropType<any[]>;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
api: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
apiParam: {
|
|
66
|
+
type: PropType<Record<string, any>>;
|
|
67
|
+
default: () => {};
|
|
68
|
+
};
|
|
69
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
+
select: (...args: any[]) => void;
|
|
71
|
+
apiBefore: (...args: any[]) => void;
|
|
72
|
+
apiSuccess: (...args: any[]) => void;
|
|
73
|
+
apiFail: (...args: any[]) => void;
|
|
74
|
+
apiAfter: (...args: any[]) => void;
|
|
75
|
+
"update:modelValue": (...args: any[]) => void;
|
|
76
|
+
change: (...args: any[]) => void;
|
|
77
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
+
modelValue: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
/** 选项值字段 */
|
|
83
|
+
valueKey: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
/** 选项显示字段 */
|
|
88
|
+
labelKey: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
keywordKey: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
apiMethod: {
|
|
97
|
+
type: PropType<"get" | "post">;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
active: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
dataSource: {
|
|
105
|
+
type: PropType<any[]>;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
textProp: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
valueProp: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
tipsProp: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
addData: {
|
|
121
|
+
type: PropType<any[]>;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
124
|
+
appendData: {
|
|
125
|
+
type: PropType<any[]>;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
api: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
apiParam: {
|
|
133
|
+
type: PropType<Record<string, any>>;
|
|
134
|
+
default: () => {};
|
|
135
|
+
};
|
|
136
|
+
}>> & Readonly<{
|
|
137
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
138
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
139
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
140
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
141
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
142
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
143
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
144
|
+
}>, {
|
|
145
|
+
api: string;
|
|
146
|
+
apiMethod: "post" | "get";
|
|
147
|
+
apiParam: Record<string, any>;
|
|
148
|
+
active: boolean;
|
|
149
|
+
dataSource: any[];
|
|
150
|
+
modelValue: string;
|
|
151
|
+
keywordKey: string;
|
|
152
|
+
textProp: string;
|
|
153
|
+
valueProp: string;
|
|
154
|
+
tipsProp: string;
|
|
155
|
+
addData: any[];
|
|
156
|
+
appendData: any[];
|
|
157
|
+
valueKey: string;
|
|
158
|
+
labelKey: string;
|
|
159
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
160
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
161
|
+
export default _default;
|
|
162
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
163
|
+
new (): {
|
|
164
|
+
$slots: S;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_18: {
|
|
3
|
+
option: Record<string, any>;
|
|
4
|
+
text: string;
|
|
5
|
+
value: any;
|
|
6
|
+
tips: string;
|
|
7
|
+
}, __VLS_20: {
|
|
8
|
+
option: Record<string, any>;
|
|
9
|
+
text: string;
|
|
10
|
+
value: any;
|
|
11
|
+
tips: string;
|
|
12
|
+
}, __VLS_30: {
|
|
13
|
+
option: Record<string, any>;
|
|
14
|
+
text: string;
|
|
15
|
+
value: any;
|
|
16
|
+
tips: string;
|
|
17
|
+
}, __VLS_32: {
|
|
18
|
+
option: Record<string, any>;
|
|
19
|
+
text: string;
|
|
20
|
+
value: any;
|
|
21
|
+
tips: string;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
default?: (props: typeof __VLS_18) => any;
|
|
25
|
+
} & {
|
|
26
|
+
default?: (props: typeof __VLS_20) => any;
|
|
27
|
+
} & {
|
|
28
|
+
default?: (props: typeof __VLS_30) => any;
|
|
29
|
+
} & {
|
|
30
|
+
default?: (props: typeof __VLS_32) => any;
|
|
31
|
+
};
|
|
32
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: PropType<any[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
/** 按钮样式 */
|
|
38
|
+
buttonStyle: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
apiMethod: {
|
|
43
|
+
type: PropType<"get" | "post">;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
active: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
dataSource: {
|
|
51
|
+
type: PropType<any[]>;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
textProp: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
valueProp: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
tipsProp: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
addData: {
|
|
67
|
+
type: PropType<any[]>;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
appendData: {
|
|
71
|
+
type: PropType<any[]>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
api: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
apiParam: {
|
|
79
|
+
type: PropType<Record<string, any>>;
|
|
80
|
+
default: () => {};
|
|
81
|
+
};
|
|
82
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
|
+
apiBefore: (...args: any[]) => void;
|
|
84
|
+
apiSuccess: (...args: any[]) => void;
|
|
85
|
+
apiFail: (...args: any[]) => void;
|
|
86
|
+
apiAfter: (...args: any[]) => void;
|
|
87
|
+
"update:modelValue": (...args: any[]) => void;
|
|
88
|
+
change: (...args: any[]) => void;
|
|
89
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
90
|
+
modelValue: {
|
|
91
|
+
type: PropType<any[]>;
|
|
92
|
+
default: () => never[];
|
|
93
|
+
};
|
|
94
|
+
/** 按钮样式 */
|
|
95
|
+
buttonStyle: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
apiMethod: {
|
|
100
|
+
type: PropType<"get" | "post">;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
active: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
dataSource: {
|
|
108
|
+
type: PropType<any[]>;
|
|
109
|
+
default: undefined;
|
|
110
|
+
};
|
|
111
|
+
textProp: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
valueProp: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
tipsProp: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
addData: {
|
|
124
|
+
type: PropType<any[]>;
|
|
125
|
+
default: undefined;
|
|
126
|
+
};
|
|
127
|
+
appendData: {
|
|
128
|
+
type: PropType<any[]>;
|
|
129
|
+
default: undefined;
|
|
130
|
+
};
|
|
131
|
+
api: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
apiParam: {
|
|
136
|
+
type: PropType<Record<string, any>>;
|
|
137
|
+
default: () => {};
|
|
138
|
+
};
|
|
139
|
+
}>> & Readonly<{
|
|
140
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
141
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
142
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
143
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
144
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
145
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
}>, {
|
|
147
|
+
api: string;
|
|
148
|
+
apiMethod: "post" | "get";
|
|
149
|
+
apiParam: Record<string, any>;
|
|
150
|
+
active: boolean;
|
|
151
|
+
dataSource: any[];
|
|
152
|
+
modelValue: any[];
|
|
153
|
+
textProp: string;
|
|
154
|
+
valueProp: string;
|
|
155
|
+
tipsProp: string;
|
|
156
|
+
addData: any[];
|
|
157
|
+
appendData: any[];
|
|
158
|
+
buttonStyle: boolean;
|
|
159
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
160
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
161
|
+
export default _default;
|
|
162
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
163
|
+
new (): {
|
|
164
|
+
$slots: S;
|
|
165
|
+
};
|
|
166
|
+
};
|