star-horse-lowcode 3.0.3 → 3.0.5

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 (173) hide show
  1. package/README.md +10 -0
  2. package/dist/api/WebSocketUtils.d.ts +100 -0
  3. package/dist/api/date_utils.d.ts +58 -0
  4. package/dist/api/device.d.ts +21 -0
  5. package/dist/api/finger_utils.d.ts +9 -0
  6. package/dist/api/form_utils.d.ts +140 -0
  7. package/dist/api/pcas-code.json.d.ts +185519 -0
  8. package/dist/api/settings.d.ts +1 -0
  9. package/dist/api/star_horse_apis.d.ts +93 -0
  10. package/dist/api/star_horse_utils.d.ts +213 -0
  11. package/dist/api/system.d.ts +78 -0
  12. package/dist/api/user_func.d.ts +22 -0
  13. package/dist/api/valid_utils.d.ts +7 -0
  14. package/dist/assets/index.css +1 -1
  15. package/dist/components/comp/ShDynamicForm.vue.d.ts +56 -0
  16. package/dist/components/comp/ShForm.vue.d.ts +58 -0
  17. package/dist/components/comp/ShTableListColumn.vue.d.ts +79 -0
  18. package/dist/components/comp/StarHorseDataSelector.vue.d.ts +107 -0
  19. package/dist/components/comp/StarHorseDataView.vue.d.ts +161 -0
  20. package/dist/components/comp/StarHorseDialog.vue.d.ts +231 -0
  21. package/dist/components/comp/StarHorseDraggable.vue.d.ts +82 -0
  22. package/dist/components/comp/StarHorseForm.vue.d.ts +176 -0
  23. package/dist/components/comp/StarHorseFormItem.vue.d.ts +26 -0
  24. package/dist/components/comp/StarHorseFormList.vue.d.ts +165 -0
  25. package/dist/components/comp/StarHorseFormTable.vue.d.ts +71 -0
  26. package/dist/components/comp/StarHorseIcon.vue.d.ts +119 -0
  27. package/dist/components/comp/StarHorseItem.vue.d.ts +106 -0
  28. package/dist/components/comp/StarHorseJsonEditor.vue.d.ts +44 -0
  29. package/dist/components/comp/StarHorsePopover.vue.d.ts +50 -0
  30. package/dist/components/comp/StarHorseSearchComp.vue.d.ts +48 -0
  31. package/dist/components/comp/StarHorseSearchForm.vue.d.ts +77 -0
  32. package/dist/components/comp/StarHorseStaticTable.vue.d.ts +101 -0
  33. package/dist/components/comp/StarHorseTableColumn.vue.d.ts +106 -0
  34. package/dist/components/comp/StarHorseTableComp.vue.d.ts +42 -0
  35. package/dist/components/comp/StarHorseTree.vue.d.ts +264 -0
  36. package/dist/components/comp/app/MainBar.vue.d.ts +20 -0
  37. package/dist/components/comp/app/MainContainer.vue.d.ts +18 -0
  38. package/dist/components/comp/app/MainContent.vue.d.ts +26 -0
  39. package/dist/components/comp/app/MainSubBar.vue.d.ts +38 -0
  40. package/dist/components/comp/app/MenuShot.vue.d.ts +64 -0
  41. package/dist/components/comp/index.d.ts +25 -0
  42. package/dist/components/comp/items/UTableColumn.vue.d.ts +72 -0
  43. package/dist/components/comp/items/boxItem.vue.d.ts +22 -0
  44. package/dist/components/comp/items/callitem.d.ts +2 -0
  45. package/dist/components/comp/items/dytableItem.vue.d.ts +22 -0
  46. package/dist/components/comp/items/tableColumn.vue.d.ts +86 -0
  47. package/dist/components/comp/items/tablebtn.vue.d.ts +60 -0
  48. package/dist/components/comp/selfcomp.d.ts +2 -0
  49. package/dist/components/comp/utils/DataPicker.vue.d.ts +85 -0
  50. package/dist/components/cron/Crontab-Day.vue.d.ts +29 -0
  51. package/dist/components/cron/Crontab-Hour.vue.d.ts +28 -0
  52. package/dist/components/cron/Crontab-Min.vue.d.ts +28 -0
  53. package/dist/components/cron/Crontab-Month.vue.d.ts +28 -0
  54. package/dist/components/cron/Crontab-Second.vue.d.ts +31 -0
  55. package/dist/components/cron/Crontab-Week.vue.d.ts +29 -0
  56. package/dist/components/cron/Crontab-Year.vue.d.ts +30 -0
  57. package/dist/components/cron/Crontab.vue.d.ts +15 -0
  58. package/dist/components/enums/ModuleEnums.d.ts +10 -0
  59. package/dist/components/enums/ServiceEnums.d.ts +18 -0
  60. package/dist/components/formcomp/items/allitem.d.ts +2 -0
  61. package/dist/components/formcomp/items/area-item.vue.d.ts +23 -0
  62. package/dist/components/formcomp/items/audio-item.vue.d.ts +23 -0
  63. package/dist/components/formcomp/items/autocomplete-item.vue.d.ts +23 -0
  64. package/dist/components/formcomp/items/barcode-item.vue.d.ts +23 -0
  65. package/dist/components/formcomp/items/button-item.vue.d.ts +23 -0
  66. package/dist/components/formcomp/items/cascade-item.vue.d.ts +23 -0
  67. package/dist/components/formcomp/items/checkbox-item.vue.d.ts +23 -0
  68. package/dist/components/formcomp/items/color-item.vue.d.ts +23 -0
  69. package/dist/components/formcomp/items/cron-item.vue.d.ts +23 -0
  70. package/dist/components/formcomp/items/datapicker-item.vue.d.ts +23 -0
  71. package/dist/components/formcomp/items/datetime-item.vue.d.ts +23 -0
  72. package/dist/components/formcomp/items/depart-item.vue.d.ts +16 -0
  73. package/dist/components/formcomp/items/dialog-input-item.vue.d.ts +23 -0
  74. package/dist/components/formcomp/items/dialog-item.vue.d.ts +23 -0
  75. package/dist/components/formcomp/items/divider-item.vue.d.ts +23 -0
  76. package/dist/components/formcomp/items/drawer-item.vue.d.ts +23 -0
  77. package/dist/components/formcomp/items/empty-item.vue.d.ts +16 -0
  78. package/dist/components/formcomp/items/html-item.vue.d.ts +23 -0
  79. package/dist/components/formcomp/items/htmleditor-item.vue.d.ts +23 -0
  80. package/dist/components/formcomp/items/icon-item.vue.d.ts +23 -0
  81. package/dist/components/formcomp/items/image-item.vue.d.ts +23 -0
  82. package/dist/components/formcomp/items/index.d.ts +50 -0
  83. package/dist/components/formcomp/items/input-item.vue.d.ts +17 -0
  84. package/dist/components/formcomp/items/input-tag-item.vue.d.ts +23 -0
  85. package/dist/components/formcomp/items/json-array-item.vue.d.ts +23 -0
  86. package/dist/components/formcomp/items/json-item.vue.d.ts +23 -0
  87. package/dist/components/formcomp/items/markdown-item.vue.d.ts +23 -0
  88. package/dist/components/formcomp/items/number-item.vue.d.ts +23 -0
  89. package/dist/components/formcomp/items/number-range-item.vue.d.ts +23 -0
  90. package/dist/components/formcomp/items/page-select-item.vue.d.ts +23 -0
  91. package/dist/components/formcomp/items/password-item.vue.d.ts +23 -0
  92. package/dist/components/formcomp/items/qrcode-item.vue.d.ts +23 -0
  93. package/dist/components/formcomp/items/radio-item.vue.d.ts +23 -0
  94. package/dist/components/formcomp/items/rate-item.vue.d.ts +23 -0
  95. package/dist/components/formcomp/items/select-item.vue.d.ts +23 -0
  96. package/dist/components/formcomp/items/signature-item.vue.d.ts +23 -0
  97. package/dist/components/formcomp/items/slider-item.vue.d.ts +23 -0
  98. package/dist/components/formcomp/items/starhorse-form-item.vue.d.ts +23 -0
  99. package/dist/components/formcomp/items/switch-item.vue.d.ts +23 -0
  100. package/dist/components/formcomp/items/tag-item.vue.d.ts +23 -0
  101. package/dist/components/formcomp/items/text-item.vue.d.ts +23 -0
  102. package/dist/components/formcomp/items/textarea-item.vue.d.ts +23 -0
  103. package/dist/components/formcomp/items/time-item.vue.d.ts +23 -0
  104. package/dist/components/formcomp/items/time-picker-item.vue.d.ts +23 -0
  105. package/dist/components/formcomp/items/transfer-item.vue.d.ts +23 -0
  106. package/dist/components/formcomp/items/tselect-item.vue.d.ts +23 -0
  107. package/dist/components/formcomp/items/unknown-item.vue.d.ts +16 -0
  108. package/dist/components/formcomp/items/upload-item.vue.d.ts +23 -0
  109. package/dist/components/formcomp/items/user-item.vue.d.ts +23 -0
  110. package/dist/components/formcomp/items/usercomp-item.vue.d.ts +24 -0
  111. package/dist/components/formcomp/items/view-markdown-item.vue.d.ts +23 -0
  112. package/dist/components/formcomp/utils/EditDataDialog.vue.d.ts +55 -0
  113. package/dist/components/formcomp/utils/FieldList.vue.d.ts +7 -0
  114. package/dist/components/formcomp/utils/ItemRelationEventUtils.d.ts +32 -0
  115. package/dist/components/formcomp/utils/prefixSuffixUtils.d.ts +28 -0
  116. package/dist/components/help.vue.d.ts +26 -0
  117. package/dist/components/menu/MenuItem.vue.d.ts +49 -0
  118. package/dist/components/system/ContentMenu.vue.d.ts +77 -0
  119. package/dist/components/system/PageConfig.vue.d.ts +66 -0
  120. package/dist/components/system/StarHorseButtonList.vue.d.ts +72 -0
  121. package/dist/components/system/StarHorseEditor.vue.d.ts +82 -0
  122. package/dist/components/system/StarHorseMenu.vue.d.ts +40 -0
  123. package/dist/components/system/StarHorseSidebar.vue.d.ts +13 -0
  124. package/dist/components/system/StarHorseSvg.vue.d.ts +112 -0
  125. package/dist/components/system/SvgLoader.vue.d.ts +59 -0
  126. package/dist/components/system/SystemComp.d.ts +2 -0
  127. package/dist/components/system/index.d.ts +8 -0
  128. package/dist/components/types/ApiUrls.d.ts +171 -0
  129. package/dist/components/types/BtnAction.d.ts +35 -0
  130. package/dist/components/types/BtnAuth.d.ts +43 -0
  131. package/dist/components/types/CompInfo.d.ts +50 -0
  132. package/dist/components/types/DialogProps.d.ts +54 -0
  133. package/dist/components/types/DyCompField.d.ts +14 -0
  134. package/dist/components/types/DynamicNode.d.ts +34 -0
  135. package/dist/components/types/FormType.d.ts +113 -0
  136. package/dist/components/types/ItemPreps.d.ts +151 -0
  137. package/dist/components/types/MenusInfo.d.ts +44 -0
  138. package/dist/components/types/PageFieldInfo.d.ts +547 -0
  139. package/dist/components/types/PageProps.d.ts +177 -0
  140. package/dist/components/types/Params.d.ts +146 -0
  141. package/dist/components/types/RuleType.d.ts +10 -0
  142. package/dist/components/types/SearchProps.d.ts +59 -0
  143. package/dist/components/types/ShortKey.d.ts +30 -0
  144. package/dist/components/types/StarHorseType.d.ts +18 -0
  145. package/dist/components/types/UserinfoType.d.ts +46 -0
  146. package/dist/components/types/index.d.ts +18 -0
  147. package/dist/index.d.ts +53 -0
  148. package/dist/index.es.js +8 -8
  149. package/dist/lang/en_US.d.ts +730 -0
  150. package/dist/lang/index.d.ts +17 -0
  151. package/dist/lang/zh_CN.d.ts +731 -0
  152. package/dist/main.d.ts +0 -0
  153. package/dist/plugins/AblesPlugin.d.ts +48 -0
  154. package/dist/plugins/registerCompPlugin.d.ts +10 -0
  155. package/dist/router/index.d.ts +2 -0
  156. package/dist/store/ButtonPermission.d.ts +32 -0
  157. package/dist/store/ConsumerView.d.ts +22 -0
  158. package/dist/store/CopyerOperation.d.ts +35 -0
  159. package/dist/store/DesignForm.d.ts +1728 -0
  160. package/dist/store/DesignPage.d.ts +149 -0
  161. package/dist/store/DynamicForm.d.ts +52 -0
  162. package/dist/store/GlobalConfig.d.ts +13 -0
  163. package/dist/store/SelfOperation.d.ts +651 -0
  164. package/dist/store/UserInfo.d.ts +44 -0
  165. package/dist/store/index.d.ts +2 -0
  166. package/dist/theme/localStorge.d.ts +10 -0
  167. package/dist/theme/theme.d.ts +24 -0
  168. package/dist/types/index.d.ts +6 -10604
  169. package/dist/utils/FieldOperationUtils.d.ts +6 -0
  170. package/dist/utils/auth.d.ts +25 -0
  171. package/dist/utils/message.d.ts +25 -0
  172. package/dist/utils/preview.d.ts +16 -0
  173. package/package.json +18 -16
@@ -0,0 +1 @@
1
+ export declare const Config: any;
@@ -0,0 +1,93 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { SearchParams } from '../components/types/Params';
3
+ import { OrderByInfo } from '../components/types/PageFieldInfo';
4
+ import { SelectOption } from '../components/types/SearchProps';
5
+ declare const starHorseAxios: import('axios').AxiosInstance;
6
+ export { starHorseAxios };
7
+ export declare function getMenuId(): string;
8
+ /**
9
+ * 获取axios实例
10
+ */
11
+ export declare function getAxiosInstance(): import('axios').AxiosInstance;
12
+ /**
13
+ * 下载文件,
14
+ * @param url 路径
15
+ * @param param 参数
16
+ */
17
+ export declare function download(url: string, param: any): Promise<unknown>;
18
+ /**
19
+ * 下载文件,
20
+ * @param data 数据
21
+ * @param name 文件名称
22
+ */
23
+ export declare function downloadData(data: any, name: string): void;
24
+ /**
25
+ * 加载资源文件
26
+ * @param url
27
+ * @param method
28
+ */
29
+ export declare function blobData(url: string, method?: string): Promise<any>;
30
+ /**
31
+ * Post 请求
32
+ * @param url
33
+ * @param data
34
+ */
35
+ export declare function postRequest(url: string, data: Array<any> | any): Promise<AxiosResponse<any, any, {}>>;
36
+ /**
37
+ * Get请求
38
+ * @param url
39
+ */
40
+ export declare function getRequest(url: string): Promise<AxiosResponse<any, any, {}>>;
41
+ /**
42
+ * Request 请求
43
+ * @param url 请求地址
44
+ * @param data 请求参数
45
+ * @param method 请求方法
46
+ */
47
+ export declare function httpRequest(url: string, method: string, data: any): Promise<AxiosResponse<any, any, {}>>;
48
+ /**
49
+ * Post Upload 请求
50
+ * @param url
51
+ * @param data
52
+ */
53
+ export declare function uploadRequest(url: string, data: Array<any>): Promise<AxiosResponse<any, any, {}>>;
54
+ /**
55
+ * 加载Post 数据
56
+ * @param url 接口地址
57
+ * @param params 参数
58
+ * @param orderBy 排序
59
+ */
60
+ export declare function loadData(url: string, params: SearchParams[] | any, orderBy?: OrderByInfo[]): Promise<{
61
+ data: any;
62
+ error: string;
63
+ }>;
64
+ /**
65
+ * 加载Get 数据
66
+ * @param url 接口地址
67
+ * @param params 参数
68
+ */
69
+ export declare function loadGetData(url: string): Promise<{
70
+ data: any;
71
+ error: string;
72
+ }>;
73
+ /**
74
+ * 加载Id数据
75
+ * @param url
76
+ * @param id
77
+ * @param params
78
+ */
79
+ export declare function loadById(url: string, id: any, params?: any): Promise<any>;
80
+ /**
81
+ * 根据Id删除数据
82
+ * @param url
83
+ * @param ids
84
+ * @param msg 删除提示
85
+ */
86
+ export declare function deleteByIds(url: string, ids: any, msg?: string): Promise<boolean>;
87
+ /**
88
+ * 根据字典类别获取字典数据
89
+ * @param dictType 字典类别
90
+ * @param exclusion 排除字典项
91
+ * @param userUrl 用户自定义接口
92
+ */
93
+ export declare function dictData(dictType: string, exclusion?: Array<string>, userUrl?: string): Promise<SelectOption[]>;
@@ -0,0 +1,213 @@
1
+ import { JoinSearchParams, SearchParams } from '../components/types/Params';
2
+ import { Reactive } from 'vue';
3
+ import { SelectOption } from '../components/types/SearchProps';
4
+ import { BatchFieldInfo, FieldInfo, PageFieldInfo } from '../components/types/PageFieldInfo';
5
+ import { ApiUrls } from '../components/types/ApiUrls';
6
+ import { DialogProps } from '../components/types/DialogProps';
7
+ /**
8
+ * 构建菜单树
9
+ * @param data
10
+ * @param valField 字符串值
11
+ * @param name
12
+ * @param val 数字值
13
+ */
14
+ export declare function createTree(data: any, valField: string, name: string, val: string): SelectOption[];
15
+ /**
16
+ * 加载框
17
+ * @param msg
18
+ * @param defaultTarget
19
+ */
20
+ export declare function load(msg: string, defaultTarget?: string): void;
21
+ /**
22
+ * 关闭加载框
23
+ */
24
+ export declare function closeLoad(): void;
25
+ /**
26
+ * 下划线转驼峰
27
+ * @param str
28
+ */
29
+ export declare function convertToCamelCase(str: string): string;
30
+ /**
31
+ * 驼峰转下划线
32
+ * @param str
33
+ */
34
+ export declare function camelCaseToUnderline(str: string): string;
35
+ /**
36
+ * 数据格式化
37
+ * @param name
38
+ * @param cellValue
39
+ */
40
+ export declare function commonParseCodeToName(name: string, cellValue: any): any;
41
+ /**
42
+ * 数据匹配方式
43
+ */
44
+ export declare function searchMatchList(): SelectOption[];
45
+ /**
46
+ * 排序方式
47
+ */
48
+ export declare function orderBy(): SelectOption[];
49
+ /**
50
+ * 请求方式
51
+ */
52
+ export declare function httpMethod(): SelectOption[];
53
+ /**
54
+ * 辅助函数 创建属性对象
55
+ * @param label 字段标签
56
+ * @param fieldName 字段名称
57
+ * @param type 字段类型
58
+ * @param defaultVisible 默认可见
59
+ * @param matchType 匹配方式
60
+ */
61
+ export declare function createSearchField(label: string, fieldName: string, defaultVisible?: boolean, matchType?: string, type?: string): {
62
+ label: string;
63
+ fieldName: string;
64
+ type: string;
65
+ defaultVisible: boolean;
66
+ matchType: string;
67
+ };
68
+ /**
69
+ * 辅助函数 创建属性对象
70
+ * @param label 字段标签
71
+ * @param fieldName 字段名称
72
+ * @param type 字段类型
73
+ * @param formVisible 表单可见
74
+ * @param listVisible 表格可见
75
+ */
76
+ export declare function createField(label: string, fieldName: string, type?: string, formVisible?: boolean, listVisible?: boolean): {
77
+ label: string;
78
+ fieldName: string;
79
+ type: string;
80
+ formVisible: boolean;
81
+ listVisible: boolean;
82
+ };
83
+ /**
84
+ * 公共字段
85
+ * @param formVisibleFields 表单可见字段
86
+ * @param tableVisibleFields 表格可见字段
87
+ */
88
+ export declare function commonField(formVisibleFields?: Array<string>, tableVisibleFields?: Array<string>): FieldInfo[];
89
+ /**
90
+ * 数据格式
91
+ */
92
+ export declare function dataType(): SelectOption[];
93
+ /**
94
+ * 复制数据
95
+ * @param msg
96
+ */
97
+ export declare function copyTxt(msg: string): void;
98
+ /**
99
+ * 表格序号
100
+ * @param row
101
+ * @param rowIndex
102
+ */
103
+ export declare function rowClassName({ row, rowIndex }: any): void;
104
+ /**
105
+ * 创建条件
106
+ */
107
+ export declare function createCondition(name: string, val: any, matchType?: string): SearchParams;
108
+ /**
109
+ * 创建关联条件
110
+ * @param leftFieldName 左表字段名称
111
+ * @param rightFieldName 右表字段名称
112
+ * @param matchType 匹配方式
113
+ */
114
+ export declare function createJoinCondition(leftFieldName: string, rightFieldName: string, matchType?: string): JoinSearchParams;
115
+ /**
116
+ * 解析已组装的条件
117
+ * @param conditions
118
+ * @param name
119
+ */
120
+ export declare function analysisField(conditions: SearchParams[], name: string): SearchParams;
121
+ /**
122
+ * 判断是不是Json
123
+ * @param v
124
+ */
125
+ export declare function isJson(v: any): boolean;
126
+ /**
127
+ * 解析表单字段映射
128
+ * @param fieldList
129
+ */
130
+ export declare function formFieldMapping(fieldList: PageFieldInfo): {
131
+ defaultDatas: any;
132
+ mappingFields: any[];
133
+ batchDefaultValues: any;
134
+ actions: any[];
135
+ formFields: FieldInfo[];
136
+ };
137
+ /**
138
+ * 批量列表数据默认值
139
+ * @param datas
140
+ * @param dataForm
141
+ */
142
+ export declare function batchFieldDefaultValues(datas: BatchFieldInfo, dataForm: any): any;
143
+ /**
144
+ * 动态组件数据
145
+ * @param field 组件参数信息
146
+ * @param analysisUrl 是否解析Url
147
+ */
148
+ export declare function compDynamicData(field: any, analysisUrl?: false): Promise<any>;
149
+ /**
150
+ *
151
+ * @param preps 组件参数信息
152
+ * @param queryInfo 查询条件
153
+ * @param proxyUrl 代理接口,为空时,默认使用/system-config/redirect/execute
154
+ */
155
+ export declare function dynamicUrlOperation(preps: any, queryInfo?: SearchParams[], proxyUrl?: string): Promise<SelectOption[]>;
156
+ /**
157
+ * 创建过滤器
158
+ * @param queryString 查询参数
159
+ */
160
+ export declare function createFilter(queryString: string): Promise<(data: SelectOption) => number>;
161
+ /**
162
+ * 公共Api接口
163
+ * @param appName 应用名称
164
+ * @param urlPrefix api接口前缀
165
+ * @param condition 条件
166
+ */
167
+ export declare function apiInstance(appName: string, urlPrefix: string, condition?: Array<any>): ApiUrls;
168
+ /**
169
+ * 模态窗口相关属性
170
+ */
171
+ export declare function dialogPreps(title?: string, batchTitle?: string): Reactive<DialogProps>;
172
+ /**
173
+ * 参数编码
174
+ * @param param
175
+ */
176
+ export declare function uriEncode(param: string | number | boolean): string;
177
+ /**
178
+ * 参数解码
179
+ * @param param
180
+ */
181
+ export declare function uriDecode(param: string): string;
182
+ /**
183
+ * 字符串转base64
184
+ * @param param
185
+ */
186
+ export declare function base64Encode(param: string): string;
187
+ /**
188
+ * 对象转base64
189
+ * @param object
190
+ */
191
+ export declare function objectToBase64(object: any): string;
192
+ /**
193
+ * base64转字符串
194
+ * @param param
195
+ */
196
+ export declare function base64Decode(param: string): string;
197
+ /**
198
+ * 预览图片
199
+ * @param images
200
+ */
201
+ export declare function imagesPreview(images: Array<string> | string): void;
202
+ /**
203
+ * 设置css 全局变量
204
+ * @param name 变量名称
205
+ * @param val 变量值
206
+ * @param dom
207
+ */
208
+ export declare function setCssVar(name: string, val: any, dom?: HTMLElement): void;
209
+ /**
210
+ * 去除空格
211
+ * @param data
212
+ */
213
+ export declare function trim(data: string): string;
@@ -0,0 +1,78 @@
1
+ import { DyCompField } from '../components/types/DyCompField';
2
+ import { RelationDetail } from '../components/types/ItemPreps';
3
+ import { SearchParams } from '../components/types/Params';
4
+ import { Ref } from 'vue';
5
+ /**
6
+ * UUID
7
+ */
8
+ export declare function uuid(): string;
9
+ export declare function copyText(text: any): Promise<void>;
10
+ /**
11
+ * 调用Table组件查询数据
12
+ * @param tableComp
13
+ * @param data
14
+ */
15
+ export declare function searchData(tableComp: any, data: SearchParams[]): void;
16
+ export declare const isDark: import('@vueuse/core').UseDarkReturn;
17
+ export declare const toggle: (value?: boolean) => boolean;
18
+ /**
19
+ * 批量修改公共属性
20
+ * @param items
21
+ * @param val
22
+ * @param fieldName
23
+ */
24
+ export declare const batchModifyAction: (items: Array<any>, val: any, fieldName: string) => void;
25
+ /**
26
+ *下拉组件
27
+ * @returns
28
+ */
29
+ export declare function selectCompList(): string[];
30
+ /**
31
+ * 输入组件
32
+ * @returns
33
+ */
34
+ export declare function inputCompList(): string[];
35
+ /**
36
+ * 日期组件
37
+ * @returns
38
+ */
39
+ export declare function dateCompList(): string[];
40
+ /**
41
+ * 给组件添加placeholder属性
42
+ * @param item
43
+ * @param itemType
44
+ */
45
+ export declare function fieldPlaceholder(item: any, itemType: string, source?: number): void;
46
+ /**
47
+ * 校验组件
48
+ * @param item
49
+ */
50
+ export declare function itemCheck(item: any): string;
51
+ /**
52
+ * 动态创建组件
53
+ * @param compInfo 组件信息
54
+ */
55
+ export declare function createComponent(compInfo: DyCompField): string;
56
+ /**
57
+ * 删除查询条件中出现的空值和空对象
58
+ * @param condition
59
+ */
60
+ export declare function removeEmptyCondition(condition: SearchParams[]): SearchParams[];
61
+ /**
62
+ * 组件key
63
+ * @param item
64
+ * @param key
65
+ * @param isComp 是否组件
66
+ * @param prefix 前缀
67
+ * @param suffix 后缀
68
+ */
69
+ export declare function compKey(item: any, key: number | string, isComp?: boolean, prefix?: string, suffix?: string): string;
70
+ export declare const DEFAULT_INITIAL_Z_INDEX = 2000;
71
+ export declare const useZIndex: (zIndexOverrides?: Ref<number>) => {
72
+ initialZIndex: import('vue').ComputedRef<number>;
73
+ currentZIndex: import('vue').ComputedRef<number>;
74
+ nextZIndex: () => number;
75
+ };
76
+ export declare const baseEvent: (eventName: string, recall?: Function) => (e: Event) => void;
77
+ export declare const baseRelationEvent: (props: any, relationDetails: RelationDetail[], actionName: string) => (e: Event) => void;
78
+ export declare function getDynamicEvents(props: any, recall: Function): Record<string, any>;
@@ -0,0 +1,22 @@
1
+ import { Ref } from 'vue';
2
+ import { UserFuncInfo } from '../components/types/PageFieldInfo';
3
+ /**
4
+ * 用户自定义事件对接接口
5
+ * @param code 需要执行的代码
6
+ * @param context 组件上下文信息
7
+ * @param formData
8
+ * @param formInfo
9
+ */
10
+ export declare const userFunction: (code: string, context: any, formData: any) => void;
11
+ /**
12
+ * 用户自定义按钮
13
+ * @param tableRef 表格实例
14
+ * @param primaryKey 主键名称
15
+ * @param datas 按钮信息
16
+ */
17
+ export declare function userAction(tableRef: Ref, primaryKey: string, datas: Array<any>): Array<UserFuncInfo>;
18
+ /**
19
+ * 判断是否是Promise
20
+ * @param obj
21
+ */
22
+ export declare function isPromise<T = any>(obj: any): obj is Promise<T>;
@@ -0,0 +1,7 @@
1
+ import { SelectOption } from '../components/types/SearchProps';
2
+ export declare const validRulesList: Array<SelectOption>;
3
+ /**
4
+ * 获取验证类型
5
+ * @param type
6
+ */
7
+ export declare function getValidType(type: any, options?: any): any;