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.
Files changed (115) hide show
  1. package/CHANGELOG.md +190 -190
  2. package/dist/chunks/Path-pIP0JQ0c.mjs +245 -0
  3. package/dist/chunks/Path-pIP0JQ0c.mjs.map +1 -0
  4. package/dist/chunks/Station-BTP0SbBg.mjs +818 -0
  5. package/dist/chunks/Station-BTP0SbBg.mjs.map +1 -0
  6. package/dist/index.esm.js +2 -2
  7. package/dist/index.umd.js +19 -19
  8. package/dist/index.umd.js.map +1 -1
  9. package/dist/path/index.mjs +1 -1
  10. package/dist/path/style.css +1 -1
  11. package/dist/station/index.mjs +1 -1
  12. package/dist/station/style.css +1 -1
  13. package/dist/style.css +1 -1
  14. package/dist/types/src/components/buttons/ApiButton.vue.d.ts +134 -0
  15. package/dist/types/src/components/buttons/ConfirmButton.vue.d.ts +169 -0
  16. package/dist/types/src/components/buttons/DialogButton.vue.d.ts +167 -0
  17. package/dist/types/src/components/buttons/DrawerButton.vue.d.ts +186 -0
  18. package/dist/types/src/components/buttons/PopconfirmButton.vue.d.ts +317 -0
  19. package/dist/types/src/components/buttons/PromptButton.vue.d.ts +180 -0
  20. package/dist/types/src/components/buttons/RouteButton.vue.d.ts +122 -0
  21. package/dist/types/src/components/buttons/TipsButton.vue.d.ts +66 -0
  22. package/dist/types/src/components/buttons/useApiAction.d.ts +20 -0
  23. package/dist/types/src/components/common/props.d.ts +122 -0
  24. package/dist/types/src/components/containers/Drawer.vue.d.ts +172 -0
  25. package/dist/types/src/components/containers/Iframe.vue.d.ts +81 -0
  26. package/dist/types/src/components/containers/containerContext.d.ts +15 -0
  27. package/dist/types/src/components/containers/useContainerController.d.ts +24 -0
  28. package/dist/types/src/components/containers/useIframeContainer.d.ts +20 -0
  29. package/dist/types/src/components/core/Requester.vue.d.ts +41 -0
  30. package/dist/types/src/components/data/datagrid/DataGrid.vue.d.ts +542 -0
  31. package/dist/types/src/components/data/datagrid/useColumnSettings.d.ts +62 -0
  32. package/dist/types/src/components/data/editable-grid/EditableGrid.vue.d.ts +586 -0
  33. package/dist/types/src/components/data/viewer/Viewer.vue.d.ts +187 -0
  34. package/dist/types/src/components/form/FormItem.vue.d.ts +62 -0
  35. package/dist/types/src/components/form/SearchItem.vue.d.ts +62 -0
  36. package/dist/types/src/components/form/SearchPanel.vue.d.ts +167 -0
  37. package/dist/types/src/components/form/data-form/DataForm.vue.d.ts +311 -0
  38. package/dist/types/src/components/index.d.ts +32 -0
  39. package/dist/types/src/components/inputs/AutoComplete.vue.d.ts +166 -0
  40. package/dist/types/src/components/inputs/CheckboxList.vue.d.ts +166 -0
  41. package/dist/types/src/components/inputs/RadioList.vue.d.ts +166 -0
  42. package/dist/types/src/components/inputs/Select.vue.d.ts +176 -0
  43. package/dist/types/src/components/inputs/Switch.vue.d.ts +116 -0
  44. package/dist/types/src/components/inputs/useOptionsLoader.d.ts +32 -0
  45. package/dist/types/src/components/layout/Station.vue.d.ts +313 -0
  46. package/dist/types/src/components/layout/StationMenuNode.vue.d.ts +20 -0
  47. package/dist/types/src/components/layout/types.d.ts +67 -0
  48. package/dist/types/src/components/styles/Panel.vue.d.ts +94 -0
  49. package/dist/types/src/components/styles/Path.vue.d.ts +103 -0
  50. package/dist/types/src/components/styles/Tips.vue.d.ts +60 -0
  51. package/dist/types/src/components/upload/ImageUpload.vue.d.ts +176 -0
  52. package/dist/types/src/components/upload/Upload.vue.d.ts +235 -0
  53. package/dist/types/src/entries/api-button.d.ts +9 -0
  54. package/dist/types/src/entries/auto-complete.d.ts +9 -0
  55. package/dist/types/src/entries/checkbox-list.d.ts +9 -0
  56. package/dist/types/src/entries/components-map.d.ts +8 -0
  57. package/dist/types/src/entries/confirm-button.d.ts +9 -0
  58. package/dist/types/src/entries/data-form.d.ts +9 -0
  59. package/dist/types/src/entries/data-grid.d.ts +9 -0
  60. package/dist/types/src/entries/dialog-button.d.ts +9 -0
  61. package/dist/types/src/entries/drawer-button.d.ts +9 -0
  62. package/dist/types/src/entries/drawer.d.ts +9 -0
  63. package/dist/types/src/entries/editable-grid.d.ts +9 -0
  64. package/dist/types/src/entries/form-item.d.ts +9 -0
  65. package/dist/types/src/entries/iframe.d.ts +9 -0
  66. package/dist/types/src/entries/image-upload.d.ts +9 -0
  67. package/dist/types/src/entries/panel.d.ts +9 -0
  68. package/dist/types/src/entries/path.d.ts +9 -0
  69. package/dist/types/src/entries/prompt-button.d.ts +9 -0
  70. package/dist/types/src/entries/radio-list.d.ts +9 -0
  71. package/dist/types/src/entries/requester.d.ts +9 -0
  72. package/dist/types/src/entries/route-button.d.ts +9 -0
  73. package/dist/types/src/entries/search-item.d.ts +9 -0
  74. package/dist/types/src/entries/search-panel.d.ts +9 -0
  75. package/dist/types/src/entries/select.d.ts +9 -0
  76. package/dist/types/src/entries/station.d.ts +9 -0
  77. package/dist/types/src/entries/switch.d.ts +9 -0
  78. package/dist/types/src/entries/tips-button.d.ts +9 -0
  79. package/dist/types/src/entries/tips.d.ts +9 -0
  80. package/dist/types/src/entries/upload.d.ts +9 -0
  81. package/dist/types/src/entries/viewer.d.ts +9 -0
  82. package/dist/types/src/index.d.ts +24 -0
  83. package/dist/types/src/lib/composables/useConfig.d.ts +19 -0
  84. package/dist/types/src/lib/composables/useDataGrid.d.ts +69 -0
  85. package/dist/types/src/lib/composables/useEventBus.d.ts +16 -0
  86. package/dist/types/src/lib/composables/useGlobalState.d.ts +5 -0
  87. package/dist/types/src/lib/composables/useRequest.d.ts +42 -0
  88. package/dist/types/src/lib/configs/default-config.d.ts +6 -0
  89. package/dist/types/src/lib/core/config.d.ts +28 -0
  90. package/dist/types/src/lib/core/http.d.ts +100 -0
  91. package/dist/types/src/lib/core/linkage.d.ts +48 -0
  92. package/dist/types/src/lib/core/skins/apple.d.ts +3 -0
  93. package/dist/types/src/lib/core/skins/business.d.ts +3 -0
  94. package/dist/types/src/lib/core/skins/chinese.d.ts +3 -0
  95. package/dist/types/src/lib/core/skins/cool.d.ts +3 -0
  96. package/dist/types/src/lib/core/skins/cyberpunk.d.ts +3 -0
  97. package/dist/types/src/lib/core/skins/default.d.ts +3 -0
  98. package/dist/types/src/lib/core/skins/fashion.d.ts +3 -0
  99. package/dist/types/src/lib/core/skins/flat.d.ts +3 -0
  100. package/dist/types/src/lib/core/skins/governance.d.ts +3 -0
  101. package/dist/types/src/lib/core/skins/index.d.ts +15 -0
  102. package/dist/types/src/lib/core/skins/tech.d.ts +3 -0
  103. package/dist/types/src/lib/core/skins/types.d.ts +19 -0
  104. package/dist/types/src/lib/core/station-linkage.d.ts +72 -0
  105. package/dist/types/src/lib/core/theme.d.ts +11 -0
  106. package/dist/types/src/lib/core/utils.d.ts +28 -0
  107. package/dist/types/src/lib/install.d.ts +11 -0
  108. package/dist/types/src/types/config.d.ts +130 -0
  109. package/dist/types/src/types/index.d.ts +4 -0
  110. package/dist/types/vite.config.d.ts +7 -0
  111. package/package.json +7 -2
  112. package/dist/chunks/Path-C_oyo6Dg.mjs +0 -200
  113. package/dist/chunks/Path-C_oyo6Dg.mjs.map +0 -1
  114. package/dist/chunks/Station-DLV19USa.mjs +0 -780
  115. package/dist/chunks/Station-DLV19USa.mjs.map +0 -1
@@ -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: undefined;
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: undefined;
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
+ };
@@ -0,0 +1,176 @@
1
+ import { type PropType } from 'vue';
2
+ declare var __VLS_14: {
3
+ option: Record<string, any>;
4
+ text: string;
5
+ value: any;
6
+ tips: string;
7
+ };
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_14) => any;
10
+ };
11
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ modelValue: {
13
+ type: PropType<any>;
14
+ default: undefined;
15
+ };
16
+ multiple: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ /** 远程搜索 */
21
+ remote: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ /** 本地可搜索 */
26
+ filterable: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ /** 远程搜索关键字字段名 */
31
+ keywordKey: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ apiMethod: {
36
+ type: PropType<"get" | "post">;
37
+ default: string;
38
+ };
39
+ active: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ dataSource: {
44
+ type: PropType<any[]>;
45
+ default: undefined;
46
+ };
47
+ textProp: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ valueProp: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ tipsProp: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ addData: {
60
+ type: PropType<any[]>;
61
+ default: undefined;
62
+ };
63
+ appendData: {
64
+ type: PropType<any[]>;
65
+ default: undefined;
66
+ };
67
+ api: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ apiParam: {
72
+ type: PropType<Record<string, any>>;
73
+ default: () => {};
74
+ };
75
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
76
+ apiBefore: (...args: any[]) => void;
77
+ apiSuccess: (...args: any[]) => void;
78
+ apiFail: (...args: any[]) => void;
79
+ apiAfter: (...args: any[]) => void;
80
+ "update:modelValue": (...args: any[]) => void;
81
+ change: (...args: any[]) => void;
82
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
83
+ modelValue: {
84
+ type: PropType<any>;
85
+ default: undefined;
86
+ };
87
+ multiple: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ /** 远程搜索 */
92
+ remote: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ /** 本地可搜索 */
97
+ filterable: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ /** 远程搜索关键字字段名 */
102
+ keywordKey: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ apiMethod: {
107
+ type: PropType<"get" | "post">;
108
+ default: string;
109
+ };
110
+ active: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ dataSource: {
115
+ type: PropType<any[]>;
116
+ default: undefined;
117
+ };
118
+ textProp: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ valueProp: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ tipsProp: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ addData: {
131
+ type: PropType<any[]>;
132
+ default: undefined;
133
+ };
134
+ appendData: {
135
+ type: PropType<any[]>;
136
+ default: undefined;
137
+ };
138
+ api: {
139
+ type: StringConstructor;
140
+ default: string;
141
+ };
142
+ apiParam: {
143
+ type: PropType<Record<string, any>>;
144
+ default: () => {};
145
+ };
146
+ }>> & Readonly<{
147
+ onApiBefore?: ((...args: any[]) => any) | undefined;
148
+ onApiSuccess?: ((...args: any[]) => any) | undefined;
149
+ onApiFail?: ((...args: any[]) => any) | undefined;
150
+ onApiAfter?: ((...args: any[]) => any) | undefined;
151
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
152
+ onChange?: ((...args: any[]) => any) | undefined;
153
+ }>, {
154
+ api: string;
155
+ apiMethod: "post" | "get";
156
+ apiParam: Record<string, any>;
157
+ active: boolean;
158
+ dataSource: any[];
159
+ modelValue: any;
160
+ multiple: boolean;
161
+ remote: boolean;
162
+ filterable: boolean;
163
+ keywordKey: string;
164
+ textProp: string;
165
+ valueProp: string;
166
+ tipsProp: string;
167
+ addData: any[];
168
+ appendData: any[];
169
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
170
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
171
+ export default _default;
172
+ type __VLS_WithSlots<T, S> = T & {
173
+ new (): {
174
+ $slots: S;
175
+ };
176
+ };
@@ -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: "post" | "delete" | "get" | "put";
108
+ apiParam: Record<string, any>;
109
+ modelValue: any;
110
+ tips: string;
111
+ headRefreshDatagrid: string | boolean;
112
+ paramKey: 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,32 @@
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
+ tipsProp?: Ref<string>;
14
+ addData: Ref<any[] | undefined>;
15
+ appendData: Ref<any[] | undefined>;
16
+ emit: (event: any, ...args: any[]) => void;
17
+ }
18
+ export interface NormalizedOption {
19
+ text: string;
20
+ value: any;
21
+ /** 悬停提示内容(取 tipsProp 字段,无则为空字符串) */
22
+ tips: string;
23
+ /** 原始数据(默认插槽上下文 { option }) */
24
+ raw: Record<string, any>;
25
+ }
26
+ export declare function useOptionsLoader(opts: UseOptionsOptions): {
27
+ options: import("vue").ShallowRef<NormalizedOption[], NormalizedOption[]>;
28
+ loading: Ref<boolean, boolean>;
29
+ fetchOptions: (extraParam?: Record<string, any>) => Promise<void>;
30
+ remoteSearch: (keyword: string, keywordKey?: string) => Promise<void>;
31
+ loaded: Ref<boolean, boolean>;
32
+ };