ns-base-module 1.1.79 → 1.1.81
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/dist/Button/AntdIconButton.d.ts +10 -0
- package/dist/Button/ConfigButton.d.ts +17 -0
- package/dist/Button/index.d.ts +7 -0
- package/dist/ChooseModal/index.d.ts +20 -0
- package/dist/ClassFilter/index.d.ts +10 -0
- package/dist/ClassFilter/indexVertical.d.ts +10 -0
- package/dist/ClassFilter/util.d.ts +16 -0
- package/dist/CopyCol/index.d.ts +3 -0
- package/dist/Entry/EntryCriteria.d.ts +16 -0
- package/dist/Entry/EntryItem.d.ts +33 -0
- package/dist/Entry/components/Checkbox.d.ts +11 -0
- package/dist/Entry/components/ChooseModalTable.d.ts +14 -0
- package/dist/Entry/components/Condition.d.ts +8 -0
- package/dist/Entry/components/DatePicker.d.ts +11 -0
- package/dist/Entry/components/Etable2Modal.d.ts +3 -0
- package/dist/Entry/components/Express.d.ts +7 -0
- package/dist/Entry/components/GroupInput.d.ts +12 -0
- package/dist/Entry/components/ImageText.d.ts +12 -0
- package/dist/Entry/components/Input.d.ts +26 -0
- package/dist/Entry/components/InputNumber.d.ts +17 -0
- package/dist/Entry/components/InputNumberRange.d.ts +9 -0
- package/dist/Entry/components/ListSelect.d.ts +14 -0
- package/dist/Entry/components/ObjectSelect.d.ts +13 -0
- package/dist/Entry/components/Progress.d.ts +10 -0
- package/dist/Entry/components/Radio.d.ts +14 -0
- package/dist/Entry/components/Select.d.ts +28 -0
- package/dist/Entry/components/Switch.d.ts +5 -0
- package/dist/Entry/components/TagsDatePicker.d.ts +6 -0
- package/dist/Entry/components/TimePicker.d.ts +5 -0
- package/dist/Entry/components/TreeSelect.d.ts +4 -0
- package/dist/Entry/components/utils.d.ts +0 -0
- package/dist/Entry/index.d.ts +53 -0
- package/dist/FilterPopover/Filter.d.ts +29 -0
- package/dist/FilterPopover/FilterClearIcon.d.ts +7 -0
- package/dist/FilterPopover/index.d.ts +20 -0
- package/dist/FilterPopover/vTableFilter.d.ts +24 -0
- package/dist/Icon/IconCreate.d.ts +10 -0
- package/dist/Icon/index.d.ts +5 -0
- package/dist/Icon/index.js +1 -1
- package/dist/IconTools/index.d.ts +12 -0
- package/dist/IconTools/utils.d.ts +14 -0
- package/dist/SubtotalsModal/Increment.d.ts +17 -0
- package/dist/SubtotalsModal/addSubtotals.d.ts +21 -0
- package/dist/SubtotalsModal/dndQuota.d.ts +26 -0
- package/dist/SubtotalsModal/index.d.ts +21 -0
- package/dist/SubtotalsModal/subtotalTemplate.d.ts +21 -0
- package/dist/SubtotalsModal/util.d.ts +2 -0
- package/dist/SubtotalsModal/viewSubtotals.d.ts +11 -0
- package/dist/TableHeaderConfigPopover/Dustbin.d.ts +4 -0
- package/dist/TableHeaderConfigPopover/index.d.ts +21 -0
- package/dist/TableHeaderConfigPopover/updateColumns.d.ts +9 -0
- package/dist/TableHeaderConfigPopover/utils.d.ts +12 -0
- package/dist/WidgetConfig/index.d.ts +39 -0
- package/dist/index.d.ts +5 -0
- package/dist/test/index.d.ts +3 -0
- package/dist/umd/ns-base-module.min.css +1 -1
- package/dist/umd/ns-base-module.min.js +1 -1
- package/dist/utils/cache.d.ts +16 -0
- package/dist/utils/enum.d.ts +21 -0
- package/dist/utils/errorMsg.d.ts +2 -0
- package/dist/utils/language.d.ts +283 -0
- package/dist/utils/request.d.ts +0 -0
- package/dist/utils/services/global.d.ts +129 -0
- package/dist/utils/utils.d.ts +110 -0
- package/package.json +1 -1
- package/style/components/ClassFilter.scss +2 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class ListCache {
|
|
2
|
+
getColumns(key: string): any;
|
|
3
|
+
setColumns(key: string, columns: any[]): void;
|
|
4
|
+
getArgument(key: string, defaultValue?: Record<string, any>): any;
|
|
5
|
+
setArgument(key: string, argument: string): void;
|
|
6
|
+
getArgumentUpdate(key: string): any;
|
|
7
|
+
setArgumentUpdate(key: string, timeString: string): void;
|
|
8
|
+
getColumnsUpdate(key: string): any;
|
|
9
|
+
setColumnsUpdate(key: string, timeString: string): void;
|
|
10
|
+
getPagination(defaultValue?: Record<string, any>): string;
|
|
11
|
+
setPagination(argument: string): void;
|
|
12
|
+
clearPagination(): void;
|
|
13
|
+
setTagsStorage(nextActiveKey: string): void;
|
|
14
|
+
clearTagsStorage(): void;
|
|
15
|
+
getTagsStorage(): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const summaryType: {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}[];
|
|
5
|
+
export declare enum TagConditionEnum {
|
|
6
|
+
StartWith = "StartWith",
|
|
7
|
+
EndWith = "EndWith",
|
|
8
|
+
Contains = "Contains",
|
|
9
|
+
NotContains = "NotContains",
|
|
10
|
+
Equals = "Equals",
|
|
11
|
+
NotEqual = "NotEqual",
|
|
12
|
+
GreaterThan = "GreaterThan",
|
|
13
|
+
GreaterOrEqual = "GreaterOrEqual",
|
|
14
|
+
LessThan = "LessThan",
|
|
15
|
+
LessOrEqual = "LessOrEqual",
|
|
16
|
+
In = "In",
|
|
17
|
+
Between = "Between",
|
|
18
|
+
BeforeThan = "BeforeThan",
|
|
19
|
+
AfterThan = "AfterThan",
|
|
20
|
+
Default = "Default"
|
|
21
|
+
}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
export declare const defaultLang: {
|
|
2
|
+
"list.seleced": string;
|
|
3
|
+
"list.discard": string;
|
|
4
|
+
"list.action": string;
|
|
5
|
+
"list.next": string;
|
|
6
|
+
"list.prev": string;
|
|
7
|
+
"list.subtotals": string;
|
|
8
|
+
"list.refresh": string;
|
|
9
|
+
"list.horizontalDisplay": string;
|
|
10
|
+
"list.export": string;
|
|
11
|
+
"list.exportAll": string;
|
|
12
|
+
"list.exportSelect": string;
|
|
13
|
+
"list.size.default": string;
|
|
14
|
+
"list.size.middle": string;
|
|
15
|
+
"list.size.small": string;
|
|
16
|
+
"list.pagination.total": string;
|
|
17
|
+
"list.total": string;
|
|
18
|
+
"list.column.summaryTitle": string;
|
|
19
|
+
"list.column.summaryType": string;
|
|
20
|
+
"list.column.summaryTypeFuntion": string;
|
|
21
|
+
"list.subtotals.modal.title": string;
|
|
22
|
+
"list.column.action": string;
|
|
23
|
+
"list.column.sort": string;
|
|
24
|
+
"list.expandableAll": string;
|
|
25
|
+
"search.title": string;
|
|
26
|
+
"classFilter.title": string;
|
|
27
|
+
"message.warn.select.least": string;
|
|
28
|
+
"message.warn.select.not": string;
|
|
29
|
+
"message.warn.select.over": string;
|
|
30
|
+
"message.confirm.delete": string;
|
|
31
|
+
"message.confirm.info": string;
|
|
32
|
+
"message.error.login": string;
|
|
33
|
+
"message.error.request": string;
|
|
34
|
+
"message.error.request.status": string;
|
|
35
|
+
"message.error.network": string;
|
|
36
|
+
"message.error.network.desc": string;
|
|
37
|
+
"message.success.request": string;
|
|
38
|
+
"message.success.login": string;
|
|
39
|
+
"message.success.set": string;
|
|
40
|
+
"message.preview.tip": string;
|
|
41
|
+
"login.label.username": string;
|
|
42
|
+
"login.label.client": string;
|
|
43
|
+
"login.label.password": string;
|
|
44
|
+
"login.label.code": string;
|
|
45
|
+
"login.label.phoneEmail": string;
|
|
46
|
+
"login.label.phoneEmail.tip": string;
|
|
47
|
+
"button.view": string;
|
|
48
|
+
"button.save": string;
|
|
49
|
+
"button.edit": string;
|
|
50
|
+
"button.set.default": string;
|
|
51
|
+
"button.set.cancelDefault": string;
|
|
52
|
+
"button.set.cancelSelect": string;
|
|
53
|
+
"button.ok": string;
|
|
54
|
+
"button.knows": string;
|
|
55
|
+
"button.cancel": string;
|
|
56
|
+
"button.back": string;
|
|
57
|
+
"button.delete": string;
|
|
58
|
+
"button.submit": string;
|
|
59
|
+
"button.search": string;
|
|
60
|
+
"button.search.shut": string;
|
|
61
|
+
"button.reset": string;
|
|
62
|
+
"button.next": string;
|
|
63
|
+
"button.prev": string;
|
|
64
|
+
"button.select": string;
|
|
65
|
+
"button.down.add": string;
|
|
66
|
+
"button.down.addchild": string;
|
|
67
|
+
"button.sort.up": string;
|
|
68
|
+
"button.sort.dargDrawer": string;
|
|
69
|
+
"button.sort.down": string;
|
|
70
|
+
"button.expand": string;
|
|
71
|
+
"button.collapse": string;
|
|
72
|
+
"button.clicksearch": string;
|
|
73
|
+
"button.config": string;
|
|
74
|
+
"button.refresh": string;
|
|
75
|
+
"button.print": string;
|
|
76
|
+
"button.rest.filter": string;
|
|
77
|
+
"button.rest.clear": string;
|
|
78
|
+
"button.rest.filterTip": string;
|
|
79
|
+
"button.moreform": string;
|
|
80
|
+
"button.yes": string;
|
|
81
|
+
"button.no": string;
|
|
82
|
+
"condition.startWith": string;
|
|
83
|
+
"condition.isNull": string;
|
|
84
|
+
"condition.endWith": string;
|
|
85
|
+
"condition.contains": string;
|
|
86
|
+
"condition.notContains": string;
|
|
87
|
+
"condition.equals": string;
|
|
88
|
+
"condition.notEqual": string;
|
|
89
|
+
"condition.greaterThan": string;
|
|
90
|
+
"condition.greaterOrEqual": string;
|
|
91
|
+
"condition.lessThan": string;
|
|
92
|
+
"condition.lessOrEqual": string;
|
|
93
|
+
"condition.in": string;
|
|
94
|
+
"condition.between": string;
|
|
95
|
+
"condition.beforeThan": string;
|
|
96
|
+
"condition.afterThan": string;
|
|
97
|
+
"condition.isNotNull": string;
|
|
98
|
+
"setting.menu.setting": string;
|
|
99
|
+
"setting.menu.about": string;
|
|
100
|
+
"setting.menu.logout": string;
|
|
101
|
+
"setting.info.personalTitle": string;
|
|
102
|
+
"setting.info.username": string;
|
|
103
|
+
"setting.info.zoom": string;
|
|
104
|
+
"setting.info.nickname": string;
|
|
105
|
+
"setting.info.phone": string;
|
|
106
|
+
"setting.info.email": string;
|
|
107
|
+
"setting.info.department": string;
|
|
108
|
+
"setting.info.role": string;
|
|
109
|
+
"setting.info.createDate": string;
|
|
110
|
+
"setting.info.basicTitle": string;
|
|
111
|
+
"setting.info.changePsw": string;
|
|
112
|
+
"setting.info.preference": string;
|
|
113
|
+
"setting.info.oldPsw": string;
|
|
114
|
+
"setting.info.newPsw": string;
|
|
115
|
+
"setting.info.surePsw": string;
|
|
116
|
+
"setting.info.isOpenNewTab": string;
|
|
117
|
+
"setting.info.tab.shutOther": string;
|
|
118
|
+
"setting.info.tab.shutCurent": string;
|
|
119
|
+
"setting.info.tab.refresh": string;
|
|
120
|
+
"setting.info.tab.default": string;
|
|
121
|
+
"setting.info.tab.newTab": string;
|
|
122
|
+
"setting.info.tab.newWin": string;
|
|
123
|
+
"setting.info.tabCacheLimit": string;
|
|
124
|
+
"setting.info.isOpenQueryCache": string;
|
|
125
|
+
"setting.info.shutMenu": string;
|
|
126
|
+
"setting.info.style": string;
|
|
127
|
+
"setting.info.language": string;
|
|
128
|
+
"setting.info.default": string;
|
|
129
|
+
"setting.info.small": string;
|
|
130
|
+
"setting.info.sex": string;
|
|
131
|
+
"setting.info.add": string;
|
|
132
|
+
"workflow.title": string;
|
|
133
|
+
"workflow.basicInfo": string;
|
|
134
|
+
"workflow.status": string;
|
|
135
|
+
"workflow.flow": string;
|
|
136
|
+
"workflow.step0.title": string;
|
|
137
|
+
"workflow.step0.column.code": string;
|
|
138
|
+
"workflow.step0.column.name": string;
|
|
139
|
+
"workflow.step0.column.remark": string;
|
|
140
|
+
"workflow.step1.column.name": string;
|
|
141
|
+
"workflow.step1.column.remark": string;
|
|
142
|
+
"workflow.step1.column.startNode": string;
|
|
143
|
+
"workflow.step1.column.endNode": string;
|
|
144
|
+
"workflow.step1.title": string;
|
|
145
|
+
"workflow.step1.desc": string;
|
|
146
|
+
"workflow.step1.tip": string;
|
|
147
|
+
"workflow.step1.button.add": string;
|
|
148
|
+
"workflow.step1.add.modal.title": string;
|
|
149
|
+
"workflow.step1.add.modal.column.code": string;
|
|
150
|
+
"workflow.step1.add.modal.column.name": string;
|
|
151
|
+
"workflow.step1.add.modal.column.remark": string;
|
|
152
|
+
"page.header.tool.collect": string;
|
|
153
|
+
"page.header.tool.uncollect": string;
|
|
154
|
+
"page.header.tool.msg": string;
|
|
155
|
+
"page.header.tool.linkOrDislike": string;
|
|
156
|
+
"page.header.tool.help": string;
|
|
157
|
+
"page.header.tool.remark": string;
|
|
158
|
+
"page.dimension": string;
|
|
159
|
+
"page.dimension.placeholder": string;
|
|
160
|
+
"page.quota": string;
|
|
161
|
+
"page.quota.list": string;
|
|
162
|
+
"page.quota.placeholder": string;
|
|
163
|
+
"page.quota.add": string;
|
|
164
|
+
"placeholder.global.search": string;
|
|
165
|
+
"prompt.drag.dimension": string;
|
|
166
|
+
"prompt.drag.quota": string;
|
|
167
|
+
"prompt.document": string;
|
|
168
|
+
"prompt.copyCol": string;
|
|
169
|
+
"prompt.asc": string;
|
|
170
|
+
"prompt.desc": string;
|
|
171
|
+
"prompt.text.default": string;
|
|
172
|
+
"prompt.nameTemplate": string;
|
|
173
|
+
"prompt.placeholderTemplate": string;
|
|
174
|
+
"prompt.shareTemplate": string;
|
|
175
|
+
"prompt.setTemplate": string;
|
|
176
|
+
"prompt.delTemplate": string;
|
|
177
|
+
"prompt.personalTemplate": string;
|
|
178
|
+
"prompt.summaryTemplate": string;
|
|
179
|
+
"prompt.publicTemplate": string;
|
|
180
|
+
"prompt.transTemplate": string;
|
|
181
|
+
"prompt.copyTemplate": string;
|
|
182
|
+
"prompt.template.list": string;
|
|
183
|
+
"prompt.list": string;
|
|
184
|
+
"prompt.template.cross": string;
|
|
185
|
+
"prompt.template.trans": string;
|
|
186
|
+
"prompt.template.sum": string;
|
|
187
|
+
"prompt.sum.row": string;
|
|
188
|
+
"prompt.sum.col.left": string;
|
|
189
|
+
"prompt.sum.col.right": string;
|
|
190
|
+
"prompt.feedback": string;
|
|
191
|
+
"prompt.information": string;
|
|
192
|
+
"prompt.downloadCenter": string;
|
|
193
|
+
"prompt.tableColumnSet": string;
|
|
194
|
+
"prompt.fixed.left": string;
|
|
195
|
+
"prompt.fixed.right": string;
|
|
196
|
+
"prompt.expression": string;
|
|
197
|
+
"prompt.expression.tip": string;
|
|
198
|
+
"timeline.modal.title": string;
|
|
199
|
+
"timeline.tag.popover": string;
|
|
200
|
+
"brick.view.placeholder": string;
|
|
201
|
+
"brick.classification": string;
|
|
202
|
+
"brick.quantitative": string;
|
|
203
|
+
"brick.any": string;
|
|
204
|
+
"brick.dimension": string;
|
|
205
|
+
"brick.quota": string;
|
|
206
|
+
"brick.col": string;
|
|
207
|
+
"brick.filter": string;
|
|
208
|
+
"brick.drag": string;
|
|
209
|
+
"brick.field": string;
|
|
210
|
+
"brick.title.placeholder": string;
|
|
211
|
+
"brick.search.placeholder": string;
|
|
212
|
+
"brick.title.warning": string;
|
|
213
|
+
"brick.describe.placeholder": string;
|
|
214
|
+
"brick.view.warning": string;
|
|
215
|
+
"brick.config.modal.title": string;
|
|
216
|
+
"brick.config.modal.form.searchShowType": string;
|
|
217
|
+
"brick.config.modal.form.searchShowType.modal": string;
|
|
218
|
+
"brick.config.modal.form.searchShowType.panel": string;
|
|
219
|
+
"brick.config.modal.form.searchShowType.slide": string;
|
|
220
|
+
"brick.config.modal.form.searchShowType.slideLeft": string;
|
|
221
|
+
"brick.config.modal.form.firstLoad": string;
|
|
222
|
+
"cashier.page.title": string;
|
|
223
|
+
"cashier.tab.title": string;
|
|
224
|
+
"cashier.tab.button.add": string;
|
|
225
|
+
"cashier.form.salesman": string;
|
|
226
|
+
"cashier.form.salesman.placeholder": string;
|
|
227
|
+
"cashier.form.vip_no": string;
|
|
228
|
+
"cashier.form.vip_no.placeholder": string;
|
|
229
|
+
"cashier.form.sku": string;
|
|
230
|
+
"cashier.form.sku.placeholder": string;
|
|
231
|
+
"cashier.form.remark": string;
|
|
232
|
+
"cashier.form.remark.placeholder": string;
|
|
233
|
+
"cashier.text.sales_qty": string;
|
|
234
|
+
"cashier.text.list_amt": string;
|
|
235
|
+
"cashier.text.dis_rate": string;
|
|
236
|
+
"cashier.text.disc_amt": string;
|
|
237
|
+
"cashier.text.payment_amt": string;
|
|
238
|
+
"cashier.columns.strategy": string;
|
|
239
|
+
"rules.warning.please": string;
|
|
240
|
+
"rules.warning.input": string;
|
|
241
|
+
"rules.warning.select": string;
|
|
242
|
+
"app.search.modal": string;
|
|
243
|
+
"app.search.modal.title": string;
|
|
244
|
+
"app.search.modal.selectAll": string;
|
|
245
|
+
"app.search.modal.button.search": string;
|
|
246
|
+
"app.search.modal.button.advancedSearc": string;
|
|
247
|
+
"app.search.txt.and": string;
|
|
248
|
+
"app.search.txt.or": string;
|
|
249
|
+
"app.search.txt.be": string;
|
|
250
|
+
"app.search.modal.button.reset": string;
|
|
251
|
+
"pay.title.pay": string;
|
|
252
|
+
"pay.title.order": string;
|
|
253
|
+
"pay.info.surePay": string;
|
|
254
|
+
"pay.button.pay": string;
|
|
255
|
+
"pay.button.reload": string;
|
|
256
|
+
"pay.button.complete": string;
|
|
257
|
+
"pay.button.cancel": string;
|
|
258
|
+
"pay.label.receivable": string;
|
|
259
|
+
"pay.label.received": string;
|
|
260
|
+
"pay.label.toBeReceived": string;
|
|
261
|
+
"pay.label.change": string;
|
|
262
|
+
"pay.svc.title": string;
|
|
263
|
+
"pay.svc.label.payValue": string;
|
|
264
|
+
"pay.svc.label.balance": string;
|
|
265
|
+
"pay.svc.label.cardNo": string;
|
|
266
|
+
"pay.svc.label.openTime": string;
|
|
267
|
+
"pay.svc.label.smsVerCode": string;
|
|
268
|
+
"pay.svc.button.sendSMS": string;
|
|
269
|
+
"pay.svc.info.inputCode": string;
|
|
270
|
+
"pay.svc.info.inputCardId": string;
|
|
271
|
+
"pay.message.payining": string;
|
|
272
|
+
"upload.wran": string;
|
|
273
|
+
"upload.error": string;
|
|
274
|
+
"upload.error.sign": string;
|
|
275
|
+
"upload.loading": string;
|
|
276
|
+
};
|
|
277
|
+
export interface InitLangProps {
|
|
278
|
+
id: string;
|
|
279
|
+
defaultValue?: string;
|
|
280
|
+
data?: any;
|
|
281
|
+
}
|
|
282
|
+
export declare const parsePlaceholder: (placeholderStr: string, data?: any) => string;
|
|
283
|
+
export declare const initLang: ({ id, defaultValue, data }: InitLangProps) => string;
|
|
File without changes
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export interface queryButtonParamsType {
|
|
2
|
+
menuCode?: string;
|
|
3
|
+
data: any;
|
|
4
|
+
formTemplateCode?: string;
|
|
5
|
+
event?: string;
|
|
6
|
+
api?: string;
|
|
7
|
+
method?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 执行动态配置按钮事件
|
|
11
|
+
* @param edit Y/N Y: 编辑 N: 详情
|
|
12
|
+
* @param menuCode 菜单code
|
|
13
|
+
* @param id 详情id
|
|
14
|
+
*/
|
|
15
|
+
export declare function queryButton({ menuCode, data, formTemplateCode, event, api, method, }: queryButtonParamsType): Promise<import("axios").AxiosResponse<any, any>>;
|
|
16
|
+
/**
|
|
17
|
+
* 返回时请求取消锁定
|
|
18
|
+
* @param param0
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export declare function queryLeaveForm({ menuCode, id, }: {
|
|
22
|
+
menuCode: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
|
+
/**
|
|
26
|
+
* 请求获取反馈中心的地址
|
|
27
|
+
* @returns 反馈中心地址
|
|
28
|
+
*/
|
|
29
|
+
export declare function queryFeedback(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
+
/**
|
|
31
|
+
* 获取字典枚举
|
|
32
|
+
* @param dictCode 字典编码
|
|
33
|
+
*/
|
|
34
|
+
export declare function queryDictEnum(dictCode: string): Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* 获取动态列表的配置
|
|
37
|
+
* @param menuCode 菜单code
|
|
38
|
+
* @param formTemplateCode 表单编码
|
|
39
|
+
*/
|
|
40
|
+
export declare function queryConfig({ menuCode, formTemplateCode, data, }: {
|
|
41
|
+
menuCode: string;
|
|
42
|
+
formTemplateCode: string;
|
|
43
|
+
data?: Record<string, any>;
|
|
44
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
45
|
+
/**
|
|
46
|
+
* 获取动态列表的配置
|
|
47
|
+
* @param menuCode 菜单code
|
|
48
|
+
* @param formTemplateCode 表单编码
|
|
49
|
+
*/
|
|
50
|
+
export declare function queryAppConfig({ menuCode, formTemplateCode, data, }: {
|
|
51
|
+
menuCode: string;
|
|
52
|
+
formTemplateCode: string;
|
|
53
|
+
data?: Record<string, any>;
|
|
54
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
55
|
+
/**
|
|
56
|
+
* 获取动态列表的数据
|
|
57
|
+
* @param params 请求参数
|
|
58
|
+
*/
|
|
59
|
+
export declare function queryMobileData(params: Record<string, any>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
60
|
+
/**
|
|
61
|
+
* 获取百度用户统计token
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
export declare function queryBaiduToken(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
65
|
+
/**
|
|
66
|
+
* 获取动态菜单的详情/表单数据
|
|
67
|
+
* @param menuCode 菜单code
|
|
68
|
+
* @param formTemplateCode 模板编码
|
|
69
|
+
* @param event 事件编码
|
|
70
|
+
* @param code 按钮编码
|
|
71
|
+
* @param method 请求类型
|
|
72
|
+
* @param data body参数
|
|
73
|
+
*/
|
|
74
|
+
export declare function queryDetailsData({ menuCode, data, formTemplateCode, event, api, method, code, }: Record<string, any>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
75
|
+
/**
|
|
76
|
+
* 获取百度用户统计token
|
|
77
|
+
* @returns
|
|
78
|
+
*/
|
|
79
|
+
export declare function queryUpload(data: Record<string, any>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @param params {name: 功能名称, path: 路由地址, favorite_status: true/false(收藏标识)}
|
|
83
|
+
*/
|
|
84
|
+
export declare function queryCollect({ api, ...params }: {
|
|
85
|
+
name: string;
|
|
86
|
+
path: string;
|
|
87
|
+
favorite_status: boolean;
|
|
88
|
+
api: string;
|
|
89
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
90
|
+
export declare function feedback({ api, params, }: {
|
|
91
|
+
api: string;
|
|
92
|
+
params: Record<string, any>;
|
|
93
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
94
|
+
export declare function commonRequest({ api, params, }: {
|
|
95
|
+
api: string;
|
|
96
|
+
params: Record<string, any>;
|
|
97
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
98
|
+
export interface ListParamsType {
|
|
99
|
+
arguments?: Record<string, any>;
|
|
100
|
+
menuCode?: string;
|
|
101
|
+
orderKey?: string;
|
|
102
|
+
orderType?: string;
|
|
103
|
+
pageNum?: number;
|
|
104
|
+
pageSize?: number;
|
|
105
|
+
variablePara?: Object;
|
|
106
|
+
formTemplateCode?: string;
|
|
107
|
+
quota?: string[] | null;
|
|
108
|
+
dimension?: string[] | null;
|
|
109
|
+
sql?: string;
|
|
110
|
+
dataSource?: string;
|
|
111
|
+
pagination?: boolean;
|
|
112
|
+
crossQuery?: boolean | null;
|
|
113
|
+
chartDimensions?: Record<string, any>;
|
|
114
|
+
chartQuotas?: Record<string, any>;
|
|
115
|
+
chartColumns?: Record<string, any>;
|
|
116
|
+
sumColPosition?: "left" | "right" | null;
|
|
117
|
+
sumRow?: boolean;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* 获取动态列表的数据
|
|
121
|
+
* @param params 请求参数
|
|
122
|
+
*/
|
|
123
|
+
export declare function queryData(params: ListParamsType): Promise<import("axios").AxiosResponse<any, any>>;
|
|
124
|
+
/**
|
|
125
|
+
* 保存模板
|
|
126
|
+
* @param params 请求参数
|
|
127
|
+
*/
|
|
128
|
+
export declare function setFormTemplates(params: Record<string, any>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
129
|
+
export declare function queryColumnsConfig(data: Record<string, any>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { ButtonsType } from "@/components/v2/ButtonGroup";
|
|
2
|
+
import type { EntryType } from "@/components/v2/Form";
|
|
3
|
+
import type { AppButtonsType } from "@/components/v2/Mobile2/ButtonGroup";
|
|
4
|
+
import type { EntryType as AppEntryType } from "@/components/v2/Mobile2/Entry";
|
|
5
|
+
import type { rulesFn } from "@/utils/type";
|
|
6
|
+
import { TagConditionEnum } from "./enum";
|
|
7
|
+
export declare const isUrl: (path: string) => boolean;
|
|
8
|
+
export declare const regMap: rulesFn;
|
|
9
|
+
export declare const isAntDesignPro: () => boolean;
|
|
10
|
+
export declare const isAntDesignProOrDev: () => boolean;
|
|
11
|
+
export declare const pathAddIds: (url: string, dataSource: Record<string, any>[], hasPageTurning: boolean) => string;
|
|
12
|
+
export declare type dynamicPathParamsType = ButtonsType | AppButtonsType | {
|
|
13
|
+
config: {
|
|
14
|
+
path: string;
|
|
15
|
+
redirect: string;
|
|
16
|
+
};
|
|
17
|
+
} | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* 处理动态路径的动态参数
|
|
20
|
+
* @param detail 按钮详情
|
|
21
|
+
* @param record 数据
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
export declare const dynamicPath: (detail: dynamicPathParamsType, record?: Record<string, any>, dataSource?: Record<string, any>[]) => any;
|
|
25
|
+
export declare const dynamicRedirect: (detail: dynamicPathParamsType, record?: Record<string, any>) => any;
|
|
26
|
+
export declare const formatUnit: (value: any, unit?: string) => any;
|
|
27
|
+
export declare const formatData: (value: any, format?: any) => any;
|
|
28
|
+
export declare const re: RegExp;
|
|
29
|
+
export declare const isDomain: boolean;
|
|
30
|
+
export declare const getToken: () => any;
|
|
31
|
+
export declare const rulesCustom: (type: rulesEnum) => rulesFn;
|
|
32
|
+
export declare const rules: (required: boolean | undefined, entryType: EntryType | AppEntryType | undefined, label: string, entryAttr: Record<string, any> | undefined) => any[];
|
|
33
|
+
export declare const matchCondition: (condition: TagConditionEnum, value: string | number, cdtValue: string | number) => boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* 取对象多级key下的值
|
|
36
|
+
* @param keysStr 对象的多级key,用.分割,a.a1 = obj[a][a1]
|
|
37
|
+
* @param obj 取值的对象
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
export declare const getMuilObjectValue: (keysStr: string, obj: Record<string, any>) => any;
|
|
41
|
+
export declare const handlePercentage: (width: string | undefined) => string | number | undefined;
|
|
42
|
+
export declare function flattenArrayObjects(arr: any[], children?: string): any[];
|
|
43
|
+
export interface IColorObj {
|
|
44
|
+
r: number;
|
|
45
|
+
g: number;
|
|
46
|
+
b: number;
|
|
47
|
+
a?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 255颜色值转16进制颜色值
|
|
51
|
+
* @param n 255颜色值
|
|
52
|
+
* @returns hex 16进制颜色值
|
|
53
|
+
*/
|
|
54
|
+
export declare const toHex: (n: number) => string;
|
|
55
|
+
/**
|
|
56
|
+
* 颜色对象转化为16进制颜色字符串
|
|
57
|
+
* @param colorObj 颜色对象
|
|
58
|
+
*/
|
|
59
|
+
export declare const toHexString: (colorObj: IColorObj) => string;
|
|
60
|
+
/**
|
|
61
|
+
* 颜色对象转化为rgb颜色字符串
|
|
62
|
+
* @param colorObj 颜色对象
|
|
63
|
+
*/
|
|
64
|
+
export declare const toRgbString: (colorObj: IColorObj) => string;
|
|
65
|
+
/**
|
|
66
|
+
* 颜色对象转化为rgba颜色字符串
|
|
67
|
+
* @param colorObj 颜色对象
|
|
68
|
+
*/
|
|
69
|
+
export declare const toRgbaString: (colorObj: IColorObj, n?: number) => string;
|
|
70
|
+
/**
|
|
71
|
+
* 16进制颜色字符串解析为颜色对象
|
|
72
|
+
* @param color 颜色字符串
|
|
73
|
+
* @returns IColorObj
|
|
74
|
+
*/
|
|
75
|
+
export declare const parseHexColor: (color: string, op?: number) => IColorObj;
|
|
76
|
+
/**
|
|
77
|
+
* rgba颜色字符串解析为颜色对象
|
|
78
|
+
* @param color 颜色字符串
|
|
79
|
+
* @returns IColorObj
|
|
80
|
+
*/
|
|
81
|
+
export declare const parseRgbaColor: (color: string, op?: number) => IColorObj;
|
|
82
|
+
/**
|
|
83
|
+
* 颜色字符串解析为颜色对象
|
|
84
|
+
* @param color 颜色字符串
|
|
85
|
+
* @returns IColorObj
|
|
86
|
+
*/
|
|
87
|
+
export declare const parseColorString: (color: string, op?: number) => IColorObj;
|
|
88
|
+
/**
|
|
89
|
+
* 颜色字符串解析为各种颜色表达方式
|
|
90
|
+
* @param color 颜色字符串
|
|
91
|
+
* @returns IColorObj
|
|
92
|
+
*/
|
|
93
|
+
export declare const getColorInfo: (color: string, op: number) => {
|
|
94
|
+
hex: string;
|
|
95
|
+
rgba: string;
|
|
96
|
+
rgb: string;
|
|
97
|
+
rgbaObj: IColorObj;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* 16进制颜色字符串转化为rgba颜色字符串
|
|
101
|
+
* @param hex 16进制颜色字符串
|
|
102
|
+
* @returns rgba颜色字符串
|
|
103
|
+
*/
|
|
104
|
+
export declare const hexToRgba: (hex: string, op: number) => string;
|
|
105
|
+
/**
|
|
106
|
+
* rgba颜色字符串转化为16进制颜色字符串
|
|
107
|
+
* @param rgba rgba颜色字符串
|
|
108
|
+
* @returns 16进制颜色字符串
|
|
109
|
+
*/
|
|
110
|
+
export declare const rgbaToHex: (rgba: string) => string;
|
package/package.json
CHANGED