@byteluck-fe/model-driven-shared 2.11.0-alpha.1 → 2.20.0-beta.1
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/README.md +29 -29
- package/dist/esm/calc.js +35 -35
- package/dist/esm/entity/Department.js +7 -7
- package/dist/esm/entity/User.js +39 -39
- package/dist/esm/enum.js +74 -74
- package/dist/esm/locales/en-US.json +73 -73
- package/dist/esm/locales/ja-JP.json +73 -73
- package/dist/esm/locales/zh-CN.json +76 -76
- package/dist/esm/updateValueFromKeys.js +6 -6
- package/dist/esm/utils.js +11 -11
- package/dist/types/EventLogic.d.ts +305 -305
- package/dist/types/RulesMessage.d.ts +14 -14
- package/dist/types/calc.d.ts +74 -74
- package/dist/types/constant.d.ts +2 -2
- package/dist/types/entity/Department.d.ts +15 -15
- package/dist/types/entity/User.d.ts +85 -85
- package/dist/types/entity/index.d.ts +2 -2
- package/dist/types/enum.d.ts +267 -267
- package/dist/types/genNonDuplicateId.d.ts +1 -1
- package/dist/types/index.d.ts +13 -13
- package/dist/types/locales/index.d.ts +225 -225
- package/dist/types/log.d.ts +5 -5
- package/dist/types/loopControls.d.ts +1 -1
- package/dist/types/updateValueFromKeys.d.ts +8 -8
- package/dist/types/utils.d.ts +44 -44
- package/dist/types/watcher.d.ts +14 -14
- package/package.json +2 -2
|
@@ -1,305 +1,305 @@
|
|
|
1
|
-
import { FieldTypes } from './enum';
|
|
2
|
-
export interface CustomEventItem {
|
|
3
|
-
key: string;
|
|
4
|
-
name: string;
|
|
5
|
-
namespace: string;
|
|
6
|
-
args?: {
|
|
7
|
-
key: string;
|
|
8
|
-
type: FieldTypes;
|
|
9
|
-
name: string;
|
|
10
|
-
}[];
|
|
11
|
-
returnType?: FieldTypes;
|
|
12
|
-
falseToStop?: false;
|
|
13
|
-
}
|
|
14
|
-
export interface EventItem {
|
|
15
|
-
key: string;
|
|
16
|
-
name: string;
|
|
17
|
-
code: string;
|
|
18
|
-
}
|
|
19
|
-
declare const eventMap: readonly [{
|
|
20
|
-
readonly key: "on_click";
|
|
21
|
-
readonly name: "点击时";
|
|
22
|
-
readonly code: "click";
|
|
23
|
-
}, {
|
|
24
|
-
readonly key: "on_click_finish";
|
|
25
|
-
readonly name: "执行完成时";
|
|
26
|
-
readonly code: "click-finish";
|
|
27
|
-
}, {
|
|
28
|
-
readonly key: "on_change";
|
|
29
|
-
readonly name: "值发生变化时";
|
|
30
|
-
readonly code: "change";
|
|
31
|
-
}, {
|
|
32
|
-
readonly key: "on_search";
|
|
33
|
-
readonly name: "搜索时";
|
|
34
|
-
readonly code: "search";
|
|
35
|
-
}, {
|
|
36
|
-
readonly key: "on_list_change";
|
|
37
|
-
readonly name: "列表数据变化时";
|
|
38
|
-
readonly code: "list-change";
|
|
39
|
-
}, {
|
|
40
|
-
readonly key: "on_list_search";
|
|
41
|
-
readonly name: "列表数据查询构建时";
|
|
42
|
-
readonly code: "list-search";
|
|
43
|
-
}, {
|
|
44
|
-
readonly key: "on_list_mounted";
|
|
45
|
-
readonly name: "列表数据返回时";
|
|
46
|
-
readonly code: "list-mounted";
|
|
47
|
-
}, {
|
|
48
|
-
readonly key: "on_list_delete";
|
|
49
|
-
readonly name: "列表数据删除时";
|
|
50
|
-
readonly code: "list-delete";
|
|
51
|
-
}, {
|
|
52
|
-
readonly key: "on_list_before_insert";
|
|
53
|
-
readonly name: "列表数据插入前";
|
|
54
|
-
readonly code: "list-before-insert";
|
|
55
|
-
}, {
|
|
56
|
-
readonly key: "on_input";
|
|
57
|
-
readonly name: "用户输入时";
|
|
58
|
-
readonly code: "input";
|
|
59
|
-
}, {
|
|
60
|
-
readonly key: "on_blur";
|
|
61
|
-
readonly name: "失去焦点时";
|
|
62
|
-
readonly code: "blur";
|
|
63
|
-
}, {
|
|
64
|
-
readonly key: "on_focus";
|
|
65
|
-
readonly name: "获取焦点时";
|
|
66
|
-
readonly code: "focus";
|
|
67
|
-
}, {
|
|
68
|
-
readonly key: "on_wps_open";
|
|
69
|
-
readonly name: "打开文件时";
|
|
70
|
-
readonly code: "wps-open";
|
|
71
|
-
}, {
|
|
72
|
-
readonly key: "on_wps_save";
|
|
73
|
-
readonly name: "保存文件时";
|
|
74
|
-
readonly code: "wps-save";
|
|
75
|
-
}, {
|
|
76
|
-
readonly key: "on_wps_rename";
|
|
77
|
-
readonly name: "重命名时";
|
|
78
|
-
readonly code: "wps-rename";
|
|
79
|
-
}, {
|
|
80
|
-
readonly key: "on_list_actions";
|
|
81
|
-
readonly name: "点击操作按钮时";
|
|
82
|
-
readonly code: "list-actions";
|
|
83
|
-
}, {
|
|
84
|
-
readonly key: "on_list_render_operation";
|
|
85
|
-
readonly name: "操作列渲染时";
|
|
86
|
-
readonly code: "list-render-operation";
|
|
87
|
-
}, {
|
|
88
|
-
readonly key: "on_list_rowclick";
|
|
89
|
-
readonly name: "行点击时";
|
|
90
|
-
readonly code: "list-rowclick";
|
|
91
|
-
}, {
|
|
92
|
-
readonly key: "on_list_before_rowdelete";
|
|
93
|
-
readonly name: "行删除前";
|
|
94
|
-
readonly code: "list-before-rowdelete";
|
|
95
|
-
}, {
|
|
96
|
-
readonly key: "on_list_before_import";
|
|
97
|
-
readonly name: "列表数据导入前";
|
|
98
|
-
readonly code: "list-before-import";
|
|
99
|
-
}, {
|
|
100
|
-
readonly key: "on_list_rows_checked";
|
|
101
|
-
readonly name: "行选中时";
|
|
102
|
-
readonly code: "list-rows-checked";
|
|
103
|
-
}, {
|
|
104
|
-
readonly key: "on_change_tab";
|
|
105
|
-
readonly name: "标签页切换时";
|
|
106
|
-
readonly code: "change-tab";
|
|
107
|
-
}, {
|
|
108
|
-
readonly key: "on_modal_ok";
|
|
109
|
-
readonly name: "弹窗确认时";
|
|
110
|
-
readonly code: "modal-ok";
|
|
111
|
-
}];
|
|
112
|
-
export type InnerEventCode = (typeof eventMap)[number]['code'];
|
|
113
|
-
export declare class EventLogic {
|
|
114
|
-
static readonly events: readonly [{
|
|
115
|
-
readonly key: "on_click";
|
|
116
|
-
readonly name: "点击时";
|
|
117
|
-
readonly code: "click";
|
|
118
|
-
}, {
|
|
119
|
-
readonly key: "on_click_finish";
|
|
120
|
-
readonly name: "执行完成时";
|
|
121
|
-
readonly code: "click-finish";
|
|
122
|
-
}, {
|
|
123
|
-
readonly key: "on_change";
|
|
124
|
-
readonly name: "值发生变化时";
|
|
125
|
-
readonly code: "change";
|
|
126
|
-
}, {
|
|
127
|
-
readonly key: "on_search";
|
|
128
|
-
readonly name: "搜索时";
|
|
129
|
-
readonly code: "search";
|
|
130
|
-
}, {
|
|
131
|
-
readonly key: "on_list_change";
|
|
132
|
-
readonly name: "列表数据变化时";
|
|
133
|
-
readonly code: "list-change";
|
|
134
|
-
}, {
|
|
135
|
-
readonly key: "on_list_search";
|
|
136
|
-
readonly name: "列表数据查询构建时";
|
|
137
|
-
readonly code: "list-search";
|
|
138
|
-
}, {
|
|
139
|
-
readonly key: "on_list_mounted";
|
|
140
|
-
readonly name: "列表数据返回时";
|
|
141
|
-
readonly code: "list-mounted";
|
|
142
|
-
}, {
|
|
143
|
-
readonly key: "on_list_delete";
|
|
144
|
-
readonly name: "列表数据删除时";
|
|
145
|
-
readonly code: "list-delete";
|
|
146
|
-
}, {
|
|
147
|
-
readonly key: "on_list_before_insert";
|
|
148
|
-
readonly name: "列表数据插入前";
|
|
149
|
-
readonly code: "list-before-insert";
|
|
150
|
-
}, {
|
|
151
|
-
readonly key: "on_input";
|
|
152
|
-
readonly name: "用户输入时";
|
|
153
|
-
readonly code: "input";
|
|
154
|
-
}, {
|
|
155
|
-
readonly key: "on_blur";
|
|
156
|
-
readonly name: "失去焦点时";
|
|
157
|
-
readonly code: "blur";
|
|
158
|
-
}, {
|
|
159
|
-
readonly key: "on_focus";
|
|
160
|
-
readonly name: "获取焦点时";
|
|
161
|
-
readonly code: "focus";
|
|
162
|
-
}, {
|
|
163
|
-
readonly key: "on_wps_open";
|
|
164
|
-
readonly name: "打开文件时";
|
|
165
|
-
readonly code: "wps-open";
|
|
166
|
-
}, {
|
|
167
|
-
readonly key: "on_wps_save";
|
|
168
|
-
readonly name: "保存文件时";
|
|
169
|
-
readonly code: "wps-save";
|
|
170
|
-
}, {
|
|
171
|
-
readonly key: "on_wps_rename";
|
|
172
|
-
readonly name: "重命名时";
|
|
173
|
-
readonly code: "wps-rename";
|
|
174
|
-
}, {
|
|
175
|
-
readonly key: "on_list_actions";
|
|
176
|
-
readonly name: "点击操作按钮时";
|
|
177
|
-
readonly code: "list-actions";
|
|
178
|
-
}, {
|
|
179
|
-
readonly key: "on_list_render_operation";
|
|
180
|
-
readonly name: "操作列渲染时";
|
|
181
|
-
readonly code: "list-render-operation";
|
|
182
|
-
}, {
|
|
183
|
-
readonly key: "on_list_rowclick";
|
|
184
|
-
readonly name: "行点击时";
|
|
185
|
-
readonly code: "list-rowclick";
|
|
186
|
-
}, {
|
|
187
|
-
readonly key: "on_list_before_rowdelete";
|
|
188
|
-
readonly name: "行删除前";
|
|
189
|
-
readonly code: "list-before-rowdelete";
|
|
190
|
-
}, {
|
|
191
|
-
readonly key: "on_list_before_import";
|
|
192
|
-
readonly name: "列表数据导入前";
|
|
193
|
-
readonly code: "list-before-import";
|
|
194
|
-
}, {
|
|
195
|
-
readonly key: "on_list_rows_checked";
|
|
196
|
-
readonly name: "行选中时";
|
|
197
|
-
readonly code: "list-rows-checked";
|
|
198
|
-
}, {
|
|
199
|
-
readonly key: "on_change_tab";
|
|
200
|
-
readonly name: "标签页切换时";
|
|
201
|
-
readonly code: "change-tab";
|
|
202
|
-
}, {
|
|
203
|
-
readonly key: "on_modal_ok";
|
|
204
|
-
readonly name: "弹窗确认时";
|
|
205
|
-
readonly code: "modal-ok";
|
|
206
|
-
}];
|
|
207
|
-
static getEventsFromKeys(keys: string | string[]): ({
|
|
208
|
-
readonly key: "on_click";
|
|
209
|
-
readonly name: "点击时";
|
|
210
|
-
readonly code: "click";
|
|
211
|
-
} | {
|
|
212
|
-
readonly key: "on_click_finish";
|
|
213
|
-
readonly name: "执行完成时";
|
|
214
|
-
readonly code: "click-finish";
|
|
215
|
-
} | {
|
|
216
|
-
readonly key: "on_change";
|
|
217
|
-
readonly name: "值发生变化时";
|
|
218
|
-
readonly code: "change";
|
|
219
|
-
} | {
|
|
220
|
-
readonly key: "on_search";
|
|
221
|
-
readonly name: "搜索时";
|
|
222
|
-
readonly code: "search";
|
|
223
|
-
} | {
|
|
224
|
-
readonly key: "on_list_change";
|
|
225
|
-
readonly name: "列表数据变化时";
|
|
226
|
-
readonly code: "list-change";
|
|
227
|
-
} | {
|
|
228
|
-
readonly key: "on_list_search";
|
|
229
|
-
readonly name: "列表数据查询构建时";
|
|
230
|
-
readonly code: "list-search";
|
|
231
|
-
} | {
|
|
232
|
-
readonly key: "on_list_mounted";
|
|
233
|
-
readonly name: "列表数据返回时";
|
|
234
|
-
readonly code: "list-mounted";
|
|
235
|
-
} | {
|
|
236
|
-
readonly key: "on_list_delete";
|
|
237
|
-
readonly name: "列表数据删除时";
|
|
238
|
-
readonly code: "list-delete";
|
|
239
|
-
} | {
|
|
240
|
-
readonly key: "on_list_before_insert";
|
|
241
|
-
readonly name: "列表数据插入前";
|
|
242
|
-
readonly code: "list-before-insert";
|
|
243
|
-
} | {
|
|
244
|
-
readonly key: "on_input";
|
|
245
|
-
readonly name: "用户输入时";
|
|
246
|
-
readonly code: "input";
|
|
247
|
-
} | {
|
|
248
|
-
readonly key: "on_blur";
|
|
249
|
-
readonly name: "失去焦点时";
|
|
250
|
-
readonly code: "blur";
|
|
251
|
-
} | {
|
|
252
|
-
readonly key: "on_focus";
|
|
253
|
-
readonly name: "获取焦点时";
|
|
254
|
-
readonly code: "focus";
|
|
255
|
-
} | {
|
|
256
|
-
readonly key: "on_wps_open";
|
|
257
|
-
readonly name: "打开文件时";
|
|
258
|
-
readonly code: "wps-open";
|
|
259
|
-
} | {
|
|
260
|
-
readonly key: "on_wps_save";
|
|
261
|
-
readonly name: "保存文件时";
|
|
262
|
-
readonly code: "wps-save";
|
|
263
|
-
} | {
|
|
264
|
-
readonly key: "on_wps_rename";
|
|
265
|
-
readonly name: "重命名时";
|
|
266
|
-
readonly code: "wps-rename";
|
|
267
|
-
} | {
|
|
268
|
-
readonly key: "on_list_actions";
|
|
269
|
-
readonly name: "点击操作按钮时";
|
|
270
|
-
readonly code: "list-actions";
|
|
271
|
-
} | {
|
|
272
|
-
readonly key: "on_list_render_operation";
|
|
273
|
-
readonly name: "操作列渲染时";
|
|
274
|
-
readonly code: "list-render-operation";
|
|
275
|
-
} | {
|
|
276
|
-
readonly key: "on_list_rowclick";
|
|
277
|
-
readonly name: "行点击时";
|
|
278
|
-
readonly code: "list-rowclick";
|
|
279
|
-
} | {
|
|
280
|
-
readonly key: "on_list_before_rowdelete";
|
|
281
|
-
readonly name: "行删除前";
|
|
282
|
-
readonly code: "list-before-rowdelete";
|
|
283
|
-
} | {
|
|
284
|
-
readonly key: "on_list_before_import";
|
|
285
|
-
readonly name: "列表数据导入前";
|
|
286
|
-
readonly code: "list-before-import";
|
|
287
|
-
} | {
|
|
288
|
-
readonly key: "on_list_rows_checked";
|
|
289
|
-
readonly name: "行选中时";
|
|
290
|
-
readonly code: "list-rows-checked";
|
|
291
|
-
} | {
|
|
292
|
-
readonly key: "on_change_tab";
|
|
293
|
-
readonly name: "标签页切换时";
|
|
294
|
-
readonly code: "change-tab";
|
|
295
|
-
} | {
|
|
296
|
-
readonly key: "on_modal_ok";
|
|
297
|
-
readonly name: "弹窗确认时";
|
|
298
|
-
readonly code: "modal-ok";
|
|
299
|
-
})[];
|
|
300
|
-
static getEventsFromControl(control: {
|
|
301
|
-
eventKeys: string[];
|
|
302
|
-
customEvents: CustomEventItem[];
|
|
303
|
-
}): EventItem[];
|
|
304
|
-
}
|
|
305
|
-
export {};
|
|
1
|
+
import { FieldTypes } from './enum';
|
|
2
|
+
export interface CustomEventItem {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
namespace: string;
|
|
6
|
+
args?: {
|
|
7
|
+
key: string;
|
|
8
|
+
type: FieldTypes;
|
|
9
|
+
name: string;
|
|
10
|
+
}[];
|
|
11
|
+
returnType?: FieldTypes;
|
|
12
|
+
falseToStop?: false;
|
|
13
|
+
}
|
|
14
|
+
export interface EventItem {
|
|
15
|
+
key: string;
|
|
16
|
+
name: string;
|
|
17
|
+
code: string;
|
|
18
|
+
}
|
|
19
|
+
declare const eventMap: readonly [{
|
|
20
|
+
readonly key: "on_click";
|
|
21
|
+
readonly name: "点击时";
|
|
22
|
+
readonly code: "click";
|
|
23
|
+
}, {
|
|
24
|
+
readonly key: "on_click_finish";
|
|
25
|
+
readonly name: "执行完成时";
|
|
26
|
+
readonly code: "click-finish";
|
|
27
|
+
}, {
|
|
28
|
+
readonly key: "on_change";
|
|
29
|
+
readonly name: "值发生变化时";
|
|
30
|
+
readonly code: "change";
|
|
31
|
+
}, {
|
|
32
|
+
readonly key: "on_search";
|
|
33
|
+
readonly name: "搜索时";
|
|
34
|
+
readonly code: "search";
|
|
35
|
+
}, {
|
|
36
|
+
readonly key: "on_list_change";
|
|
37
|
+
readonly name: "列表数据变化时";
|
|
38
|
+
readonly code: "list-change";
|
|
39
|
+
}, {
|
|
40
|
+
readonly key: "on_list_search";
|
|
41
|
+
readonly name: "列表数据查询构建时";
|
|
42
|
+
readonly code: "list-search";
|
|
43
|
+
}, {
|
|
44
|
+
readonly key: "on_list_mounted";
|
|
45
|
+
readonly name: "列表数据返回时";
|
|
46
|
+
readonly code: "list-mounted";
|
|
47
|
+
}, {
|
|
48
|
+
readonly key: "on_list_delete";
|
|
49
|
+
readonly name: "列表数据删除时";
|
|
50
|
+
readonly code: "list-delete";
|
|
51
|
+
}, {
|
|
52
|
+
readonly key: "on_list_before_insert";
|
|
53
|
+
readonly name: "列表数据插入前";
|
|
54
|
+
readonly code: "list-before-insert";
|
|
55
|
+
}, {
|
|
56
|
+
readonly key: "on_input";
|
|
57
|
+
readonly name: "用户输入时";
|
|
58
|
+
readonly code: "input";
|
|
59
|
+
}, {
|
|
60
|
+
readonly key: "on_blur";
|
|
61
|
+
readonly name: "失去焦点时";
|
|
62
|
+
readonly code: "blur";
|
|
63
|
+
}, {
|
|
64
|
+
readonly key: "on_focus";
|
|
65
|
+
readonly name: "获取焦点时";
|
|
66
|
+
readonly code: "focus";
|
|
67
|
+
}, {
|
|
68
|
+
readonly key: "on_wps_open";
|
|
69
|
+
readonly name: "打开文件时";
|
|
70
|
+
readonly code: "wps-open";
|
|
71
|
+
}, {
|
|
72
|
+
readonly key: "on_wps_save";
|
|
73
|
+
readonly name: "保存文件时";
|
|
74
|
+
readonly code: "wps-save";
|
|
75
|
+
}, {
|
|
76
|
+
readonly key: "on_wps_rename";
|
|
77
|
+
readonly name: "重命名时";
|
|
78
|
+
readonly code: "wps-rename";
|
|
79
|
+
}, {
|
|
80
|
+
readonly key: "on_list_actions";
|
|
81
|
+
readonly name: "点击操作按钮时";
|
|
82
|
+
readonly code: "list-actions";
|
|
83
|
+
}, {
|
|
84
|
+
readonly key: "on_list_render_operation";
|
|
85
|
+
readonly name: "操作列渲染时";
|
|
86
|
+
readonly code: "list-render-operation";
|
|
87
|
+
}, {
|
|
88
|
+
readonly key: "on_list_rowclick";
|
|
89
|
+
readonly name: "行点击时";
|
|
90
|
+
readonly code: "list-rowclick";
|
|
91
|
+
}, {
|
|
92
|
+
readonly key: "on_list_before_rowdelete";
|
|
93
|
+
readonly name: "行删除前";
|
|
94
|
+
readonly code: "list-before-rowdelete";
|
|
95
|
+
}, {
|
|
96
|
+
readonly key: "on_list_before_import";
|
|
97
|
+
readonly name: "列表数据导入前";
|
|
98
|
+
readonly code: "list-before-import";
|
|
99
|
+
}, {
|
|
100
|
+
readonly key: "on_list_rows_checked";
|
|
101
|
+
readonly name: "行选中时";
|
|
102
|
+
readonly code: "list-rows-checked";
|
|
103
|
+
}, {
|
|
104
|
+
readonly key: "on_change_tab";
|
|
105
|
+
readonly name: "标签页切换时";
|
|
106
|
+
readonly code: "change-tab";
|
|
107
|
+
}, {
|
|
108
|
+
readonly key: "on_modal_ok";
|
|
109
|
+
readonly name: "弹窗确认时";
|
|
110
|
+
readonly code: "modal-ok";
|
|
111
|
+
}];
|
|
112
|
+
export type InnerEventCode = (typeof eventMap)[number]['code'];
|
|
113
|
+
export declare class EventLogic {
|
|
114
|
+
static readonly events: readonly [{
|
|
115
|
+
readonly key: "on_click";
|
|
116
|
+
readonly name: "点击时";
|
|
117
|
+
readonly code: "click";
|
|
118
|
+
}, {
|
|
119
|
+
readonly key: "on_click_finish";
|
|
120
|
+
readonly name: "执行完成时";
|
|
121
|
+
readonly code: "click-finish";
|
|
122
|
+
}, {
|
|
123
|
+
readonly key: "on_change";
|
|
124
|
+
readonly name: "值发生变化时";
|
|
125
|
+
readonly code: "change";
|
|
126
|
+
}, {
|
|
127
|
+
readonly key: "on_search";
|
|
128
|
+
readonly name: "搜索时";
|
|
129
|
+
readonly code: "search";
|
|
130
|
+
}, {
|
|
131
|
+
readonly key: "on_list_change";
|
|
132
|
+
readonly name: "列表数据变化时";
|
|
133
|
+
readonly code: "list-change";
|
|
134
|
+
}, {
|
|
135
|
+
readonly key: "on_list_search";
|
|
136
|
+
readonly name: "列表数据查询构建时";
|
|
137
|
+
readonly code: "list-search";
|
|
138
|
+
}, {
|
|
139
|
+
readonly key: "on_list_mounted";
|
|
140
|
+
readonly name: "列表数据返回时";
|
|
141
|
+
readonly code: "list-mounted";
|
|
142
|
+
}, {
|
|
143
|
+
readonly key: "on_list_delete";
|
|
144
|
+
readonly name: "列表数据删除时";
|
|
145
|
+
readonly code: "list-delete";
|
|
146
|
+
}, {
|
|
147
|
+
readonly key: "on_list_before_insert";
|
|
148
|
+
readonly name: "列表数据插入前";
|
|
149
|
+
readonly code: "list-before-insert";
|
|
150
|
+
}, {
|
|
151
|
+
readonly key: "on_input";
|
|
152
|
+
readonly name: "用户输入时";
|
|
153
|
+
readonly code: "input";
|
|
154
|
+
}, {
|
|
155
|
+
readonly key: "on_blur";
|
|
156
|
+
readonly name: "失去焦点时";
|
|
157
|
+
readonly code: "blur";
|
|
158
|
+
}, {
|
|
159
|
+
readonly key: "on_focus";
|
|
160
|
+
readonly name: "获取焦点时";
|
|
161
|
+
readonly code: "focus";
|
|
162
|
+
}, {
|
|
163
|
+
readonly key: "on_wps_open";
|
|
164
|
+
readonly name: "打开文件时";
|
|
165
|
+
readonly code: "wps-open";
|
|
166
|
+
}, {
|
|
167
|
+
readonly key: "on_wps_save";
|
|
168
|
+
readonly name: "保存文件时";
|
|
169
|
+
readonly code: "wps-save";
|
|
170
|
+
}, {
|
|
171
|
+
readonly key: "on_wps_rename";
|
|
172
|
+
readonly name: "重命名时";
|
|
173
|
+
readonly code: "wps-rename";
|
|
174
|
+
}, {
|
|
175
|
+
readonly key: "on_list_actions";
|
|
176
|
+
readonly name: "点击操作按钮时";
|
|
177
|
+
readonly code: "list-actions";
|
|
178
|
+
}, {
|
|
179
|
+
readonly key: "on_list_render_operation";
|
|
180
|
+
readonly name: "操作列渲染时";
|
|
181
|
+
readonly code: "list-render-operation";
|
|
182
|
+
}, {
|
|
183
|
+
readonly key: "on_list_rowclick";
|
|
184
|
+
readonly name: "行点击时";
|
|
185
|
+
readonly code: "list-rowclick";
|
|
186
|
+
}, {
|
|
187
|
+
readonly key: "on_list_before_rowdelete";
|
|
188
|
+
readonly name: "行删除前";
|
|
189
|
+
readonly code: "list-before-rowdelete";
|
|
190
|
+
}, {
|
|
191
|
+
readonly key: "on_list_before_import";
|
|
192
|
+
readonly name: "列表数据导入前";
|
|
193
|
+
readonly code: "list-before-import";
|
|
194
|
+
}, {
|
|
195
|
+
readonly key: "on_list_rows_checked";
|
|
196
|
+
readonly name: "行选中时";
|
|
197
|
+
readonly code: "list-rows-checked";
|
|
198
|
+
}, {
|
|
199
|
+
readonly key: "on_change_tab";
|
|
200
|
+
readonly name: "标签页切换时";
|
|
201
|
+
readonly code: "change-tab";
|
|
202
|
+
}, {
|
|
203
|
+
readonly key: "on_modal_ok";
|
|
204
|
+
readonly name: "弹窗确认时";
|
|
205
|
+
readonly code: "modal-ok";
|
|
206
|
+
}];
|
|
207
|
+
static getEventsFromKeys(keys: string | string[]): ({
|
|
208
|
+
readonly key: "on_click";
|
|
209
|
+
readonly name: "点击时";
|
|
210
|
+
readonly code: "click";
|
|
211
|
+
} | {
|
|
212
|
+
readonly key: "on_click_finish";
|
|
213
|
+
readonly name: "执行完成时";
|
|
214
|
+
readonly code: "click-finish";
|
|
215
|
+
} | {
|
|
216
|
+
readonly key: "on_change";
|
|
217
|
+
readonly name: "值发生变化时";
|
|
218
|
+
readonly code: "change";
|
|
219
|
+
} | {
|
|
220
|
+
readonly key: "on_search";
|
|
221
|
+
readonly name: "搜索时";
|
|
222
|
+
readonly code: "search";
|
|
223
|
+
} | {
|
|
224
|
+
readonly key: "on_list_change";
|
|
225
|
+
readonly name: "列表数据变化时";
|
|
226
|
+
readonly code: "list-change";
|
|
227
|
+
} | {
|
|
228
|
+
readonly key: "on_list_search";
|
|
229
|
+
readonly name: "列表数据查询构建时";
|
|
230
|
+
readonly code: "list-search";
|
|
231
|
+
} | {
|
|
232
|
+
readonly key: "on_list_mounted";
|
|
233
|
+
readonly name: "列表数据返回时";
|
|
234
|
+
readonly code: "list-mounted";
|
|
235
|
+
} | {
|
|
236
|
+
readonly key: "on_list_delete";
|
|
237
|
+
readonly name: "列表数据删除时";
|
|
238
|
+
readonly code: "list-delete";
|
|
239
|
+
} | {
|
|
240
|
+
readonly key: "on_list_before_insert";
|
|
241
|
+
readonly name: "列表数据插入前";
|
|
242
|
+
readonly code: "list-before-insert";
|
|
243
|
+
} | {
|
|
244
|
+
readonly key: "on_input";
|
|
245
|
+
readonly name: "用户输入时";
|
|
246
|
+
readonly code: "input";
|
|
247
|
+
} | {
|
|
248
|
+
readonly key: "on_blur";
|
|
249
|
+
readonly name: "失去焦点时";
|
|
250
|
+
readonly code: "blur";
|
|
251
|
+
} | {
|
|
252
|
+
readonly key: "on_focus";
|
|
253
|
+
readonly name: "获取焦点时";
|
|
254
|
+
readonly code: "focus";
|
|
255
|
+
} | {
|
|
256
|
+
readonly key: "on_wps_open";
|
|
257
|
+
readonly name: "打开文件时";
|
|
258
|
+
readonly code: "wps-open";
|
|
259
|
+
} | {
|
|
260
|
+
readonly key: "on_wps_save";
|
|
261
|
+
readonly name: "保存文件时";
|
|
262
|
+
readonly code: "wps-save";
|
|
263
|
+
} | {
|
|
264
|
+
readonly key: "on_wps_rename";
|
|
265
|
+
readonly name: "重命名时";
|
|
266
|
+
readonly code: "wps-rename";
|
|
267
|
+
} | {
|
|
268
|
+
readonly key: "on_list_actions";
|
|
269
|
+
readonly name: "点击操作按钮时";
|
|
270
|
+
readonly code: "list-actions";
|
|
271
|
+
} | {
|
|
272
|
+
readonly key: "on_list_render_operation";
|
|
273
|
+
readonly name: "操作列渲染时";
|
|
274
|
+
readonly code: "list-render-operation";
|
|
275
|
+
} | {
|
|
276
|
+
readonly key: "on_list_rowclick";
|
|
277
|
+
readonly name: "行点击时";
|
|
278
|
+
readonly code: "list-rowclick";
|
|
279
|
+
} | {
|
|
280
|
+
readonly key: "on_list_before_rowdelete";
|
|
281
|
+
readonly name: "行删除前";
|
|
282
|
+
readonly code: "list-before-rowdelete";
|
|
283
|
+
} | {
|
|
284
|
+
readonly key: "on_list_before_import";
|
|
285
|
+
readonly name: "列表数据导入前";
|
|
286
|
+
readonly code: "list-before-import";
|
|
287
|
+
} | {
|
|
288
|
+
readonly key: "on_list_rows_checked";
|
|
289
|
+
readonly name: "行选中时";
|
|
290
|
+
readonly code: "list-rows-checked";
|
|
291
|
+
} | {
|
|
292
|
+
readonly key: "on_change_tab";
|
|
293
|
+
readonly name: "标签页切换时";
|
|
294
|
+
readonly code: "change-tab";
|
|
295
|
+
} | {
|
|
296
|
+
readonly key: "on_modal_ok";
|
|
297
|
+
readonly name: "弹窗确认时";
|
|
298
|
+
readonly code: "modal-ok";
|
|
299
|
+
})[];
|
|
300
|
+
static getEventsFromControl(control: {
|
|
301
|
+
eventKeys: string[];
|
|
302
|
+
customEvents: CustomEventItem[];
|
|
303
|
+
}): EventItem[];
|
|
304
|
+
}
|
|
305
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import OkI18n from 'ok-i18n';
|
|
2
|
-
import messages from './locales';
|
|
3
|
-
type Message = Partial<(typeof messages)['zhCN']>;
|
|
4
|
-
type Keys = 'caption' | 'placeholder' | 'max' | 'min';
|
|
5
|
-
type Variable = {
|
|
6
|
-
[key in Keys]?: string | number;
|
|
7
|
-
};
|
|
8
|
-
export declare class RulesMessage {
|
|
9
|
-
static $i18n: OkI18n;
|
|
10
|
-
static getMessage(messageKey: keyof Message, variable?: Variable): string;
|
|
11
|
-
static resetI18n(locale?: string): OkI18n;
|
|
12
|
-
static setLocale(locale: string): void;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
1
|
+
import OkI18n from 'ok-i18n';
|
|
2
|
+
import messages from './locales';
|
|
3
|
+
type Message = Partial<(typeof messages)['zhCN']>;
|
|
4
|
+
type Keys = 'caption' | 'placeholder' | 'max' | 'min';
|
|
5
|
+
type Variable = {
|
|
6
|
+
[key in Keys]?: string | number;
|
|
7
|
+
};
|
|
8
|
+
export declare class RulesMessage {
|
|
9
|
+
static $i18n: OkI18n;
|
|
10
|
+
static getMessage(messageKey: keyof Message, variable?: Variable): string;
|
|
11
|
+
static resetI18n(locale?: string): OkI18n;
|
|
12
|
+
static setLocale(locale: string): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|