workdesktop-ai 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/LICENSE +21 -0
- package/README.md +214 -0
- package/dist/index.esm.js +6531 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.umd.js +11 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/src/components/buttons/ApiButton.vue.d.ts +96 -0
- package/dist/types/src/components/buttons/ConfirmButton.vue.d.ts +131 -0
- package/dist/types/src/components/buttons/DialogButton.vue.d.ts +107 -0
- package/dist/types/src/components/buttons/DrawerButton.vue.d.ts +118 -0
- package/dist/types/src/components/buttons/PromptButton.vue.d.ts +140 -0
- package/dist/types/src/components/buttons/RouteButton.vue.d.ts +84 -0
- package/dist/types/src/components/buttons/TipsButton.vue.d.ts +64 -0
- package/dist/types/src/components/buttons/useApiAction.d.ts +20 -0
- package/dist/types/src/components/common/props.d.ts +85 -0
- package/dist/types/src/components/containers/Dialog.vue.d.ts +112 -0
- package/dist/types/src/components/containers/Drawer.vue.d.ts +119 -0
- package/dist/types/src/components/containers/Iframe.vue.d.ts +44 -0
- package/dist/types/src/components/containers/SearchPanel.vue.d.ts +152 -0
- package/dist/types/src/components/containers/containerContext.d.ts +15 -0
- package/dist/types/src/components/containers/useContainerController.d.ts +19 -0
- package/dist/types/src/components/data/datagrid/DataGrid.vue.d.ts +335 -0
- package/dist/types/src/components/data/datagrid/useColumnSettings.d.ts +48 -0
- package/dist/types/src/components/data/editable-table/EditableTable.vue.d.ts +306 -0
- package/dist/types/src/components/form/data-form/DataForm.vue.d.ts +311 -0
- package/dist/types/src/components/index.d.ts +27 -0
- package/dist/types/src/components/inputs/AutoComplete.vue.d.ts +157 -0
- package/dist/types/src/components/inputs/CheckboxList.vue.d.ts +141 -0
- package/dist/types/src/components/inputs/RadioList.vue.d.ts +141 -0
- package/dist/types/src/components/inputs/Select.vue.d.ts +166 -0
- package/dist/types/src/components/inputs/Switch.vue.d.ts +116 -0
- package/dist/types/src/components/inputs/useOptionsLoader.d.ts +29 -0
- package/dist/types/src/components/styles/Panel.vue.d.ts +41 -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/components/utils/Viewer.vue.d.ts +131 -0
- package/dist/types/src/index.d.ts +20 -0
- package/dist/types/src/lib/composables/useConfig.d.ts +19 -0
- package/dist/types/src/lib/composables/useDataGrid.d.ts +54 -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 +83 -0
- package/dist/types/src/lib/core/linkage.d.ts +48 -0
- package/dist/types/src/lib/core/theme.d.ts +6 -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 +109 -0
- package/dist/types/src/types/index.d.ts +4 -0
- package/dist/types/vite.config.d.ts +2 -0
- package/package.json +68 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--wd-color-primary: #409eff;--wd-color-success: #67c23a;--wd-color-warning: #e6a23c;--wd-color-danger: #f56c6c;--wd-color-info: #909399;--wd-text-color-primary: #303133;--wd-text-color-regular: #606266;--wd-text-color-secondary: #909399;--wd-text-color-placeholder: #a8abb2;--wd-border-color: #dcdfe6;--wd-border-color-light: #e4e7ed;--wd-bg-color: #ffffff;--wd-bg-color-page: #f5f7fa;--wd-bg-color-overlay: #ffffff;--wd-size-default: 32px;--wd-size-large: 40px;--wd-size-small: 24px;--wd-radius-base: 4px;--wd-radius-small: 2px;--wd-spacing-base: 12px;--wd-spacing-large: 16px;--wd-font-size-base: 14px;--wd-font-size-small: 12px;--wd-font-size-large: 16px;--wd-z-index-popup: 2000}:root{--el-color-primary: var(--wd-color-primary);--el-color-success: var(--wd-color-success);--el-color-warning: var(--wd-color-warning);--el-color-danger: var(--wd-color-danger);--el-color-error: var(--wd-color-danger);--el-color-info: var(--wd-color-info);--el-text-color-primary: var(--wd-text-color-primary);--el-text-color-regular: var(--wd-text-color-regular);--el-border-color: var(--wd-border-color);--el-border-color-light: var(--wd-border-color-light);--el-bg-color: var(--wd-bg-color);--el-bg-color-page: var(--wd-bg-color-page);--el-bg-color-overlay: var(--wd-bg-color-overlay);--el-font-size-base: var(--wd-font-size-base);--el-border-radius-base: var(--wd-radius-base)}.wd-datagrid[data-v-8be2f212]{display:flex;flex-direction:column;width:100%;height:100%;background:var(--wd-bg-color, #fff)}.wd-datagrid--auto-height[data-v-8be2f212]{height:100%}.wd-datagrid__toolbar[data-v-8be2f212]{display:flex;align-items:center;justify-content:space-between;gap:var(--wd-spacing-base, 12px);padding:0 0 var(--wd-spacing-base, 12px);flex-wrap:wrap}.wd-datagrid__toolbar-left[data-v-8be2f212]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wd-datagrid__toolbar-right[data-v-8be2f212]{display:flex;align-items:center;gap:8px;margin-left:auto}.wd-datagrid__table[data-v-8be2f212]{flex:1;min-height:0}.wd-datagrid__pager[data-v-8be2f212]{display:flex;justify-content:flex-end;padding-top:var(--wd-spacing-base, 12px)}.wd-datagrid__cards[data-v-8be2f212]{flex:1;min-height:0;overflow:auto}.wd-datagrid__card[data-v-8be2f212]{border:1px solid var(--wd-border-color-light, #e4e7ed);border-radius:var(--wd-radius-base, 4px);padding:var(--wd-spacing-base, 12px);margin-bottom:var(--wd-spacing-base, 12px)}.wd-datagrid__card-title[data-v-8be2f212]{font-weight:600;font-size:var(--wd-font-size-large, 16px);color:var(--wd-text-color-primary, #303133);margin-bottom:8px}.wd-datagrid__card-line[data-v-8be2f212]{display:flex;font-size:var(--wd-font-size-base, 14px);line-height:1.8}.wd-datagrid__card-label[data-v-8be2f212]{width:110px;color:var(--wd-text-color-secondary, #909399);flex-shrink:0}.wd-datagrid__card-value[data-v-8be2f212]{color:var(--wd-text-color-regular, #606266);word-break:break-all}.wd-datagrid__col-setting[data-v-8be2f212]{max-height:400px;overflow:auto}.wd-datagrid__col-item[data-v-8be2f212]{display:flex;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--wd-border-color-light, #f0f0f0)}.wd-datagrid__col-actions[data-v-8be2f212]{display:flex;gap:4px}.wd-editable-table__toolbar[data-v-b7462863]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px}.wd-editable-table__toolbar-right[data-v-b7462863]{display:flex;align-items:center;gap:8px}.wd-editable-table__cell[data-v-b7462863]{display:inline-block;min-height:24px;min-width:40px}.wd-editable-table__cell.is-editable[data-v-b7462863]{cursor:cell}.wd-editable-table__cell.is-editable[data-v-b7462863]:hover{color:var(--el-color-primary)}.wd-data-form[data-v-7db7a261]{width:100%}.wd-data-form__footer[data-v-7db7a261]{display:flex;justify-content:flex-end;gap:8px;padding-top:var(--wd-spacing-base, 12px);border-top:1px solid var(--wd-border-color-light, #e4e7ed);margin-top:var(--wd-spacing-base, 12px)}.wd-container__iframe[data-v-f240d935]{width:100%;height:100%;min-height:400px;border:0;display:block}.wd-container__iframe[data-v-6401686c]{width:100%;height:60vh;border:0;display:block}.wd-iframe[data-v-6b5e31a2]{width:100%;border:0;display:block}.wd-search-panel[data-v-1a67fc1d]{width:100%;background:var(--wd-bg-color, #fff);padding:var(--wd-spacing-base, 12px) var(--wd-spacing-base, 12px) 0;box-sizing:border-box}.wd-search-panel__fields.is-collapsed[data-v-1a67fc1d]{max-height:40px;overflow:hidden}.wd-search-panel__actions[data-v-1a67fc1d]{display:flex;justify-content:flex-end;gap:8px;padding-bottom:var(--wd-spacing-base, 12px)}.wd-image-upload[data-v-bf4a1202] .el-upload-list--picture-card .el-upload-list__item,.wd-image-upload[data-v-bf4a1202] .el-upload--picture-card{width:var(--v976d3d6c);height:var(--v976d3d6c)}.wd-image-upload.is-hide-add[data-v-bf4a1202] .el-upload--picture-card,.wd-image-upload[data-v-bf4a1202] .is-hide-add .el-upload--picture-card{display:none}.wd-panel[data-v-b59750a9]{width:100%;background:var(--wd-bg-color, #fff);border:1px solid var(--wd-border-color-light, #e4e7ed);border-radius:var(--wd-radius-base, 4px);margin-bottom:var(--wd-spacing-base, 12px);box-sizing:border-box}.wd-panel__header[data-v-b59750a9]{display:flex;align-items:baseline;gap:8px;padding:12px 16px;border-bottom:1px solid var(--wd-border-color-light, #e4e7ed)}.wd-panel__title[data-v-b59750a9]{font-size:var(--wd-font-size-md, 15px);font-weight:600;color:var(--wd-text-color-primary, #303133)}.wd-panel__description[data-v-b59750a9]{font-size:var(--wd-font-size-sm, 12px);color:var(--wd-text-color-secondary, #909399)}.wd-panel__body[data-v-b59750a9]{padding:16px}.wd-panel__footer[data-v-b59750a9]{padding:12px 16px;border-top:1px solid var(--wd-border-color-light, #e4e7ed)}.wd-tips__icon[data-v-bacdf99f]{cursor:pointer;vertical-align:middle}.wd-tips__box[data-v-bacdf99f]{display:inline-flex;align-items:center;gap:4px;font-size:var(--wd-font-size-sm, 12px)}.wd-tips__box-icon[data-v-bacdf99f]{flex-shrink:0}.wd-viewer[data-v-5a218091]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3000}.wd-viewer__mask[data-v-5a218091]{position:absolute;top:0;right:0;bottom:0;left:0;background:#0009}.wd-viewer__wrapper[data-v-5a218091]{position:relative;display:flex;flex-direction:column;height:100%}.wd-viewer__toolbar[data-v-5a218091]{position:relative;z-index:1;display:flex;justify-content:center;gap:12px;padding:12px}.wd-viewer__zoom-text[data-v-5a218091],.wd-viewer__page-text[data-v-5a218091]{min-width:72px;pointer-events:none}.wd-viewer__body[data-v-5a218091]{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0 24px 24px}.wd-viewer__img[data-v-5a218091]{max-width:90vw;max-height:80vh;transition:transform .2s ease,opacity .2s ease;-webkit-user-select:none;user-select:none}.wd-viewer__pdf[data-v-5a218091]{width:90vw;height:82vh;border:none;background:#fff}.wd-viewer__doc[data-v-5a218091]{display:flex;flex-direction:column;align-items:center;gap:16px;color:#fff}.wd-viewer__doc-name[data-v-5a218091]{max-width:60vw;word-break:break-all;font-size:14px}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare var __VLS_10: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_10) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
/** 按钮级 loading(默认 true);false 时按钮不转圈 */
|
|
7
|
+
buttonLoading: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** 页面级 loading(全局遮罩 ElLoading) */
|
|
12
|
+
pageLoading: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
api: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
apiMethod: {
|
|
21
|
+
type: import("vue").PropType<"get" | "post" | "put" | "delete">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
apiParam: {
|
|
25
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
26
|
+
default: () => {};
|
|
27
|
+
};
|
|
28
|
+
headRefreshDatagrid: {
|
|
29
|
+
type: import("vue").PropType<boolean | string>;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
filter: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
apiBefore: (...args: any[]) => void;
|
|
38
|
+
apiSuccess: (...args: any[]) => void;
|
|
39
|
+
apiFail: (...args: any[]) => void;
|
|
40
|
+
apiException: (...args: any[]) => void;
|
|
41
|
+
apiAfter: (...args: any[]) => void;
|
|
42
|
+
click: (...args: any[]) => void;
|
|
43
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
+
/** 按钮级 loading(默认 true);false 时按钮不转圈 */
|
|
45
|
+
buttonLoading: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
/** 页面级 loading(全局遮罩 ElLoading) */
|
|
50
|
+
pageLoading: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
api: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
apiMethod: {
|
|
59
|
+
type: import("vue").PropType<"get" | "post" | "put" | "delete">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
apiParam: {
|
|
63
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
64
|
+
default: () => {};
|
|
65
|
+
};
|
|
66
|
+
headRefreshDatagrid: {
|
|
67
|
+
type: import("vue").PropType<boolean | string>;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
filter: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
}>> & Readonly<{
|
|
75
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
onApiException?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
filter: string;
|
|
83
|
+
api: string;
|
|
84
|
+
apiMethod: "delete" | "get" | "post" | "put";
|
|
85
|
+
apiParam: Record<string, any>;
|
|
86
|
+
headRefreshDatagrid: string | boolean;
|
|
87
|
+
buttonLoading: boolean;
|
|
88
|
+
pageLoading: boolean;
|
|
89
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
90
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
91
|
+
export default _default;
|
|
92
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
93
|
+
new (): {
|
|
94
|
+
$slots: S;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
declare var __VLS_10: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_10) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
/** 确认文案 */
|
|
7
|
+
confirmText: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
/** 取消按钮文案(空则不显示取消按钮) */
|
|
12
|
+
cancelText: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/** 确认框标题 */
|
|
17
|
+
confirmTitle: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/** 按钮级 loading */
|
|
22
|
+
buttonLoading: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
pageLoading: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
api: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
apiMethod: {
|
|
35
|
+
type: import("vue").PropType<"get" | "post" | "put" | "delete">;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
apiParam: {
|
|
39
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
40
|
+
default: () => {};
|
|
41
|
+
};
|
|
42
|
+
headRefreshDatagrid: {
|
|
43
|
+
type: import("vue").PropType<boolean | string>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
filter: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
apiBefore: (...args: any[]) => void;
|
|
52
|
+
apiSuccess: (...args: any[]) => void;
|
|
53
|
+
apiFail: (...args: any[]) => void;
|
|
54
|
+
apiException: (...args: any[]) => void;
|
|
55
|
+
apiAfter: (...args: any[]) => void;
|
|
56
|
+
click: (...args: any[]) => void;
|
|
57
|
+
confirm: (...args: any[]) => void;
|
|
58
|
+
cancel: (...args: any[]) => void;
|
|
59
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
/** 确认文案 */
|
|
61
|
+
confirmText: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
/** 取消按钮文案(空则不显示取消按钮) */
|
|
66
|
+
cancelText: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
/** 确认框标题 */
|
|
71
|
+
confirmTitle: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
/** 按钮级 loading */
|
|
76
|
+
buttonLoading: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
pageLoading: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
api: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
apiMethod: {
|
|
89
|
+
type: import("vue").PropType<"get" | "post" | "put" | "delete">;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
apiParam: {
|
|
93
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
94
|
+
default: () => {};
|
|
95
|
+
};
|
|
96
|
+
headRefreshDatagrid: {
|
|
97
|
+
type: import("vue").PropType<boolean | string>;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
filter: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
}>> & Readonly<{
|
|
105
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
onApiException?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
110
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
}>, {
|
|
114
|
+
filter: string;
|
|
115
|
+
api: string;
|
|
116
|
+
apiMethod: "delete" | "get" | "post" | "put";
|
|
117
|
+
apiParam: Record<string, any>;
|
|
118
|
+
headRefreshDatagrid: string | boolean;
|
|
119
|
+
buttonLoading: boolean;
|
|
120
|
+
pageLoading: boolean;
|
|
121
|
+
confirmText: string;
|
|
122
|
+
cancelText: string;
|
|
123
|
+
confirmTitle: string;
|
|
124
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
125
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
126
|
+
export default _default;
|
|
127
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
128
|
+
new (): {
|
|
129
|
+
$slots: S;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare function closeDialog(): void;
|
|
3
|
+
declare var __VLS_9: {}, __VLS_19: {
|
|
4
|
+
data: Record<string, any>;
|
|
5
|
+
close: typeof closeDialog;
|
|
6
|
+
}, __VLS_21: {
|
|
7
|
+
close: (reason?: string) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
button?: (props: typeof __VLS_9) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_19) => any;
|
|
13
|
+
} & {
|
|
14
|
+
footer?: (props: typeof __VLS_21) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
+
/** 按钮文案(也可用 #button 插槽) */
|
|
18
|
+
text: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/** 对话框标题 */
|
|
23
|
+
dialogTitle: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
/** iframe 地址 */
|
|
28
|
+
dialogUrl: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
/** 传给内部内容/iframe 的数据 */
|
|
33
|
+
dialogData: {
|
|
34
|
+
type: PropType<Record<string, any>>;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
/** 对话框宽度 */
|
|
38
|
+
size: {
|
|
39
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
headRefreshDatagrid: {
|
|
43
|
+
type: PropType<boolean | string>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
filter: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
close: (...args: any[]) => void;
|
|
52
|
+
confirm: (...args: any[]) => void;
|
|
53
|
+
open: (...args: any[]) => void;
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
/** 按钮文案(也可用 #button 插槽) */
|
|
56
|
+
text: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
/** 对话框标题 */
|
|
61
|
+
dialogTitle: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
/** iframe 地址 */
|
|
66
|
+
dialogUrl: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
/** 传给内部内容/iframe 的数据 */
|
|
71
|
+
dialogData: {
|
|
72
|
+
type: PropType<Record<string, any>>;
|
|
73
|
+
default: () => {};
|
|
74
|
+
};
|
|
75
|
+
/** 对话框宽度 */
|
|
76
|
+
size: {
|
|
77
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
headRefreshDatagrid: {
|
|
81
|
+
type: PropType<boolean | string>;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
filter: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
}>> & Readonly<{
|
|
89
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
text: string;
|
|
94
|
+
size: string | number;
|
|
95
|
+
filter: string;
|
|
96
|
+
headRefreshDatagrid: string | boolean;
|
|
97
|
+
dialogTitle: string;
|
|
98
|
+
dialogUrl: string;
|
|
99
|
+
dialogData: Record<string, any>;
|
|
100
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare function closeDrawer(): void;
|
|
3
|
+
declare var __VLS_9: {}, __VLS_19: {
|
|
4
|
+
data: Record<string, any>;
|
|
5
|
+
close: typeof closeDrawer;
|
|
6
|
+
}, __VLS_21: {
|
|
7
|
+
close: (reason?: string) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
button?: (props: typeof __VLS_9) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_19) => any;
|
|
13
|
+
} & {
|
|
14
|
+
footer?: (props: typeof __VLS_21) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
+
/** 按钮文案(也可用 #button 插槽) */
|
|
18
|
+
text: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/** 抽屉标题 */
|
|
23
|
+
drawerTitle: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
/** iframe 地址(设置后抽屉内以 iframe 加载,否则渲染默认插槽) */
|
|
28
|
+
drawerUrl: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
/** 传给内部表单/iframe 的数据 */
|
|
33
|
+
drawerData: {
|
|
34
|
+
type: PropType<Record<string, any>>;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
/** 抽屉尺寸 */
|
|
38
|
+
size: {
|
|
39
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
/** 弹出方向 */
|
|
43
|
+
direction: {
|
|
44
|
+
type: PropType<"rtl" | "ltr" | "ttb" | "btt">;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
headRefreshDatagrid: {
|
|
48
|
+
type: PropType<boolean | string>;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
filter: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
|
+
close: (...args: any[]) => void;
|
|
57
|
+
confirm: (...args: any[]) => void;
|
|
58
|
+
open: (...args: any[]) => void;
|
|
59
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
/** 按钮文案(也可用 #button 插槽) */
|
|
61
|
+
text: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
/** 抽屉标题 */
|
|
66
|
+
drawerTitle: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
/** iframe 地址(设置后抽屉内以 iframe 加载,否则渲染默认插槽) */
|
|
71
|
+
drawerUrl: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
/** 传给内部表单/iframe 的数据 */
|
|
76
|
+
drawerData: {
|
|
77
|
+
type: PropType<Record<string, any>>;
|
|
78
|
+
default: () => {};
|
|
79
|
+
};
|
|
80
|
+
/** 抽屉尺寸 */
|
|
81
|
+
size: {
|
|
82
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
/** 弹出方向 */
|
|
86
|
+
direction: {
|
|
87
|
+
type: PropType<"rtl" | "ltr" | "ttb" | "btt">;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
headRefreshDatagrid: {
|
|
91
|
+
type: PropType<boolean | string>;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
filter: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{
|
|
99
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
}>, {
|
|
103
|
+
text: string;
|
|
104
|
+
size: string | number;
|
|
105
|
+
filter: string;
|
|
106
|
+
headRefreshDatagrid: string | boolean;
|
|
107
|
+
direction: "rtl" | "ltr" | "ttb" | "btt";
|
|
108
|
+
drawerTitle: string;
|
|
109
|
+
drawerUrl: string;
|
|
110
|
+
drawerData: Record<string, any>;
|
|
111
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
113
|
+
export default _default;
|
|
114
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
115
|
+
new (): {
|
|
116
|
+
$slots: S;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
declare var __VLS_10: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_10) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
/** 输入框标题 */
|
|
7
|
+
promptTitle: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
/** 输入框占位文本 */
|
|
12
|
+
promptPlaceholder: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/** 输入值并入 apiParam 的字段名 */
|
|
17
|
+
paramKey: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/** 输入框默认值 */
|
|
22
|
+
promptDefault: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
buttonLoading: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
pageLoading: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
api: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
apiMethod: {
|
|
39
|
+
type: import("vue").PropType<"get" | "post" | "put" | "delete">;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
apiParam: {
|
|
43
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
44
|
+
default: () => {};
|
|
45
|
+
};
|
|
46
|
+
headRefreshDatagrid: {
|
|
47
|
+
type: import("vue").PropType<boolean | string>;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
filter: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
|
+
apiBefore: (...args: any[]) => void;
|
|
56
|
+
apiSuccess: (...args: any[]) => void;
|
|
57
|
+
apiFail: (...args: any[]) => void;
|
|
58
|
+
apiException: (...args: any[]) => void;
|
|
59
|
+
apiAfter: (...args: any[]) => void;
|
|
60
|
+
click: (...args: any[]) => void;
|
|
61
|
+
prompt: (...args: any[]) => void;
|
|
62
|
+
cancel: (...args: any[]) => void;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
/** 输入框标题 */
|
|
65
|
+
promptTitle: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/** 输入框占位文本 */
|
|
70
|
+
promptPlaceholder: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
/** 输入值并入 apiParam 的字段名 */
|
|
75
|
+
paramKey: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/** 输入框默认值 */
|
|
80
|
+
promptDefault: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
buttonLoading: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
pageLoading: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
api: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
apiMethod: {
|
|
97
|
+
type: import("vue").PropType<"get" | "post" | "put" | "delete">;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
apiParam: {
|
|
101
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
102
|
+
default: () => {};
|
|
103
|
+
};
|
|
104
|
+
headRefreshDatagrid: {
|
|
105
|
+
type: import("vue").PropType<boolean | string>;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
filter: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
}>> & Readonly<{
|
|
113
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onApiException?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
onPrompt?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
}>, {
|
|
122
|
+
filter: string;
|
|
123
|
+
api: string;
|
|
124
|
+
apiMethod: "delete" | "get" | "post" | "put";
|
|
125
|
+
apiParam: Record<string, any>;
|
|
126
|
+
headRefreshDatagrid: string | boolean;
|
|
127
|
+
buttonLoading: boolean;
|
|
128
|
+
pageLoading: boolean;
|
|
129
|
+
promptTitle: string;
|
|
130
|
+
promptPlaceholder: string;
|
|
131
|
+
paramKey: string;
|
|
132
|
+
promptDefault: string;
|
|
133
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
134
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
135
|
+
export default _default;
|
|
136
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
137
|
+
new (): {
|
|
138
|
+
$slots: S;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_10: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_10) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
/** 路由 name(与 routePath 二选一) */
|
|
8
|
+
routeName: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
/** 路由 path */
|
|
13
|
+
routePath: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
/** 路由 params */
|
|
18
|
+
params: {
|
|
19
|
+
type: PropType<Record<string, any>>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
/** 路由 query */
|
|
23
|
+
query: {
|
|
24
|
+
type: PropType<Record<string, any>>;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
/** 打开方式 */
|
|
28
|
+
target: {
|
|
29
|
+
type: PropType<"_self" | "_blank">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
filter: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
click: (...args: any[]) => void;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
/** 路由 name(与 routePath 二选一) */
|
|
40
|
+
routeName: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
/** 路由 path */
|
|
45
|
+
routePath: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
/** 路由 params */
|
|
50
|
+
params: {
|
|
51
|
+
type: PropType<Record<string, any>>;
|
|
52
|
+
default: () => {};
|
|
53
|
+
};
|
|
54
|
+
/** 路由 query */
|
|
55
|
+
query: {
|
|
56
|
+
type: PropType<Record<string, any>>;
|
|
57
|
+
default: () => {};
|
|
58
|
+
};
|
|
59
|
+
/** 打开方式 */
|
|
60
|
+
target: {
|
|
61
|
+
type: PropType<"_self" | "_blank">;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
filter: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{
|
|
69
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
}>, {
|
|
71
|
+
filter: string;
|
|
72
|
+
target: "_self" | "_blank";
|
|
73
|
+
query: Record<string, any>;
|
|
74
|
+
params: Record<string, any>;
|
|
75
|
+
routeName: string;
|
|
76
|
+
routePath: string;
|
|
77
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
78
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
79
|
+
export default _default;
|
|
80
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
81
|
+
new (): {
|
|
82
|
+
$slots: S;
|
|
83
|
+
};
|
|
84
|
+
};
|