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
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_14: {
|
|
3
|
+
option: Record<string, any>;
|
|
4
|
+
text: string;
|
|
5
|
+
value: any;
|
|
6
|
+
}, __VLS_20: {
|
|
7
|
+
option: Record<string, any>;
|
|
8
|
+
text: string;
|
|
9
|
+
value: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_14) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_20) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: PropType<any>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
/** 按钮样式 */
|
|
22
|
+
buttonStyle: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
apiMethod: {
|
|
27
|
+
type: PropType<"get" | "post">;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
active: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
dataSource: {
|
|
35
|
+
type: PropType<any[]>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
textProp: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
valueProp: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
addData: {
|
|
47
|
+
type: PropType<any[]>;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
appendData: {
|
|
51
|
+
type: PropType<any[]>;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
api: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
apiParam: {
|
|
59
|
+
type: PropType<Record<string, any>>;
|
|
60
|
+
default: () => {};
|
|
61
|
+
};
|
|
62
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
|
+
apiBefore: (...args: any[]) => void;
|
|
64
|
+
apiSuccess: (...args: any[]) => void;
|
|
65
|
+
apiFail: (...args: any[]) => void;
|
|
66
|
+
apiAfter: (...args: any[]) => void;
|
|
67
|
+
"update:modelValue": (...args: any[]) => void;
|
|
68
|
+
change: (...args: any[]) => void;
|
|
69
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
modelValue: {
|
|
71
|
+
type: PropType<any>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
/** 按钮样式 */
|
|
75
|
+
buttonStyle: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
apiMethod: {
|
|
80
|
+
type: PropType<"get" | "post">;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
active: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
dataSource: {
|
|
88
|
+
type: PropType<any[]>;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
textProp: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
valueProp: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
addData: {
|
|
100
|
+
type: PropType<any[]>;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
103
|
+
appendData: {
|
|
104
|
+
type: PropType<any[]>;
|
|
105
|
+
default: undefined;
|
|
106
|
+
};
|
|
107
|
+
api: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
apiParam: {
|
|
112
|
+
type: PropType<Record<string, any>>;
|
|
113
|
+
default: () => {};
|
|
114
|
+
};
|
|
115
|
+
}>> & Readonly<{
|
|
116
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
}>, {
|
|
123
|
+
api: string;
|
|
124
|
+
apiMethod: "get" | "post";
|
|
125
|
+
apiParam: Record<string, any>;
|
|
126
|
+
active: boolean;
|
|
127
|
+
dataSource: any[];
|
|
128
|
+
modelValue: any;
|
|
129
|
+
textProp: string;
|
|
130
|
+
valueProp: string;
|
|
131
|
+
addData: any[];
|
|
132
|
+
appendData: any[];
|
|
133
|
+
buttonStyle: boolean;
|
|
134
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
136
|
+
export default _default;
|
|
137
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
138
|
+
new (): {
|
|
139
|
+
$slots: S;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_14: {
|
|
3
|
+
option: Record<string, any>;
|
|
4
|
+
text: string;
|
|
5
|
+
value: any;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_14) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: PropType<any>;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
multiple: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** 远程搜索 */
|
|
20
|
+
remote: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
/** 本地可搜索 */
|
|
25
|
+
filterable: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
/** 远程搜索关键字字段名 */
|
|
30
|
+
keywordKey: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
apiMethod: {
|
|
35
|
+
type: PropType<"get" | "post">;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
active: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
dataSource: {
|
|
43
|
+
type: PropType<any[]>;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
textProp: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
valueProp: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
addData: {
|
|
55
|
+
type: PropType<any[]>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
appendData: {
|
|
59
|
+
type: PropType<any[]>;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
api: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
apiParam: {
|
|
67
|
+
type: PropType<Record<string, any>>;
|
|
68
|
+
default: () => {};
|
|
69
|
+
};
|
|
70
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
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: PropType<any>;
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
82
|
+
multiple: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
/** 远程搜索 */
|
|
87
|
+
remote: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
/** 本地可搜索 */
|
|
92
|
+
filterable: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
/** 远程搜索关键字字段名 */
|
|
97
|
+
keywordKey: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
apiMethod: {
|
|
102
|
+
type: PropType<"get" | "post">;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
active: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
dataSource: {
|
|
110
|
+
type: PropType<any[]>;
|
|
111
|
+
default: undefined;
|
|
112
|
+
};
|
|
113
|
+
textProp: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
valueProp: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
addData: {
|
|
122
|
+
type: PropType<any[]>;
|
|
123
|
+
default: undefined;
|
|
124
|
+
};
|
|
125
|
+
appendData: {
|
|
126
|
+
type: PropType<any[]>;
|
|
127
|
+
default: undefined;
|
|
128
|
+
};
|
|
129
|
+
api: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
apiParam: {
|
|
134
|
+
type: PropType<Record<string, any>>;
|
|
135
|
+
default: () => {};
|
|
136
|
+
};
|
|
137
|
+
}>> & Readonly<{
|
|
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: "get" | "post";
|
|
147
|
+
apiParam: Record<string, any>;
|
|
148
|
+
active: boolean;
|
|
149
|
+
dataSource: any[];
|
|
150
|
+
modelValue: any;
|
|
151
|
+
multiple: boolean;
|
|
152
|
+
remote: boolean;
|
|
153
|
+
filterable: boolean;
|
|
154
|
+
keywordKey: string;
|
|
155
|
+
textProp: string;
|
|
156
|
+
valueProp: string;
|
|
157
|
+
addData: any[];
|
|
158
|
+
appendData: any[];
|
|
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,116 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: PropType<any>;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** 悬停提示 */
|
|
8
|
+
tips: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
/** 提交参数的字段名 */
|
|
13
|
+
paramKey: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
activeValue: {
|
|
18
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
inactiveValue: {
|
|
22
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
api: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
apiMethod: {
|
|
30
|
+
type: PropType<"get" | "post" | "put" | "delete">;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
apiParam: {
|
|
34
|
+
type: PropType<Record<string, any>>;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
headRefreshDatagrid: {
|
|
38
|
+
type: PropType<boolean | string>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
filter: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
apiBefore: (...args: any[]) => void;
|
|
47
|
+
apiSuccess: (...args: any[]) => void;
|
|
48
|
+
apiFail: (...args: any[]) => void;
|
|
49
|
+
apiException: (...args: any[]) => void;
|
|
50
|
+
apiAfter: (...args: any[]) => void;
|
|
51
|
+
"update:modelValue": (...args: any[]) => void;
|
|
52
|
+
change: (...args: any[]) => void;
|
|
53
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
modelValue: {
|
|
55
|
+
type: PropType<any>;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
/** 悬停提示 */
|
|
59
|
+
tips: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
/** 提交参数的字段名 */
|
|
64
|
+
paramKey: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
activeValue: {
|
|
69
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
inactiveValue: {
|
|
73
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
api: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
apiMethod: {
|
|
81
|
+
type: PropType<"get" | "post" | "put" | "delete">;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
apiParam: {
|
|
85
|
+
type: PropType<Record<string, any>>;
|
|
86
|
+
default: () => {};
|
|
87
|
+
};
|
|
88
|
+
headRefreshDatagrid: {
|
|
89
|
+
type: PropType<boolean | string>;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
filter: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{
|
|
97
|
+
onApiBefore?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
onApiSuccess?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
onApiFail?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
onApiException?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
onApiAfter?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
}>, {
|
|
105
|
+
filter: string;
|
|
106
|
+
api: string;
|
|
107
|
+
apiMethod: "delete" | "get" | "post" | "put";
|
|
108
|
+
apiParam: Record<string, any>;
|
|
109
|
+
modelValue: any;
|
|
110
|
+
headRefreshDatagrid: string | boolean;
|
|
111
|
+
paramKey: string;
|
|
112
|
+
tips: string;
|
|
113
|
+
activeValue: string | number | boolean;
|
|
114
|
+
inactiveValue: string | number | boolean;
|
|
115
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
116
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 输入选择组共享:选项自动加载(静态数组 or api)、前插/后追加固定项
|
|
3
|
+
*/
|
|
4
|
+
import { type Ref } from 'vue';
|
|
5
|
+
export interface UseOptionsOptions {
|
|
6
|
+
api: Ref<string>;
|
|
7
|
+
apiMethod: Ref<'get' | 'post'>;
|
|
8
|
+
apiParam: Ref<Record<string, any>>;
|
|
9
|
+
active: Ref<boolean>;
|
|
10
|
+
dataSource: Ref<any[] | undefined>;
|
|
11
|
+
textProp: Ref<string>;
|
|
12
|
+
valueProp: Ref<string>;
|
|
13
|
+
addData: Ref<any[] | undefined>;
|
|
14
|
+
appendData: Ref<any[] | undefined>;
|
|
15
|
+
emit: (event: any, ...args: any[]) => void;
|
|
16
|
+
}
|
|
17
|
+
export interface NormalizedOption {
|
|
18
|
+
text: string;
|
|
19
|
+
value: any;
|
|
20
|
+
/** 原始数据(默认插槽上下文 { option }) */
|
|
21
|
+
raw: Record<string, any>;
|
|
22
|
+
}
|
|
23
|
+
export declare function useOptionsLoader(opts: UseOptionsOptions): {
|
|
24
|
+
options: import("vue").ShallowRef<NormalizedOption[], NormalizedOption[]>;
|
|
25
|
+
loading: Ref<boolean, boolean>;
|
|
26
|
+
fetchOptions: (extraParam?: Record<string, any>) => Promise<void>;
|
|
27
|
+
remoteSearch: (keyword: string, keywordKey?: string) => Promise<void>;
|
|
28
|
+
loaded: Ref<boolean, boolean>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
title?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_3) => any;
|
|
6
|
+
} & {
|
|
7
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
/** 面板标题 */
|
|
11
|
+
title: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/** 标题旁描述 */
|
|
16
|
+
description: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
/** 面板标题 */
|
|
22
|
+
title: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
/** 标题旁描述 */
|
|
27
|
+
description: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{}>, {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_21: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_21) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
/** 提示内容 */
|
|
8
|
+
tips: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
/** word=悬停图标模式 / box=行内文字模式 */
|
|
13
|
+
type: {
|
|
14
|
+
type: PropType<"word" | "box">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
/** 图标组件名(InfoFilled/WarningFilled/QuestionFilled) */
|
|
18
|
+
icon: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/** 图标/文字颜色 */
|
|
23
|
+
color: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
/** 提示内容 */
|
|
29
|
+
tips: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
/** word=悬停图标模式 / box=行内文字模式 */
|
|
34
|
+
type: {
|
|
35
|
+
type: PropType<"word" | "box">;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
/** 图标组件名(InfoFilled/WarningFilled/QuestionFilled) */
|
|
39
|
+
icon: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
/** 图标/文字颜色 */
|
|
44
|
+
color: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>> & Readonly<{}>, {
|
|
49
|
+
type: "word" | "box";
|
|
50
|
+
icon: string;
|
|
51
|
+
tips: string;
|
|
52
|
+
color: string;
|
|
53
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|