@xfe-repo/web-components 1.5.1 → 1.5.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.
- package/dist/index.css +547 -1
- package/dist/index.d.mts +1232 -6
- package/dist/index.d.ts +1232 -6
- package/dist/index.js +6802 -94
- package/dist/index.mjs +6467 -51
- package/package.json +24 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,504 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import React__default, { PureComponent, RefObject, ReactNode } from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { PureComponent, RefObject, ReactNode, ReactElement, FC, FunctionComponent, MemoExoticComponent, ComponentType } from 'react';
|
|
4
|
+
import { Request, JWT, BFFRequestConfig } from '@xfe-repo/web-service';
|
|
5
|
+
import { ApiEnv, Business } from '@xfe-repo/web-utils/env';
|
|
6
|
+
import { Locale } from 'antd/lib/locale';
|
|
4
7
|
import { ThemeConfig } from 'antd/lib';
|
|
5
8
|
import { KeepAliveRef, useKeepAliveRef } from 'keepalive-for-react';
|
|
9
|
+
import { InputProps, InputRef, Input, CascaderProps, TableProps, ImageProps, Image, FormInstance, FormProps, SelectProps } from 'antd';
|
|
10
|
+
import { SearchProps } from 'antd/es/input/Search';
|
|
11
|
+
import { TextAreaProps, TextAreaRef } from 'antd/es/input/TextArea';
|
|
12
|
+
import * as antd_es__util_type from 'antd/es/_util/type';
|
|
13
|
+
import { ColumnProps } from 'antd/es/table';
|
|
14
|
+
import { DragEndEvent } from '@dnd-kit/core';
|
|
15
|
+
import * as _ant_design_icons_lib_components_IconFont from '@ant-design/icons/lib/components/IconFont';
|
|
16
|
+
import { UploadFile, UploadListType } from 'antd/es/upload/interface';
|
|
17
|
+
import { DrawerProps } from 'antd/lib/drawer';
|
|
18
|
+
import { ModalProps } from 'antd/lib/modal';
|
|
19
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
20
|
+
import { SelectProps as SelectProps$1 } from 'antd/es/select';
|
|
6
21
|
|
|
7
|
-
type
|
|
22
|
+
type TreeCategory = {
|
|
23
|
+
/** 上架质检规则id */
|
|
24
|
+
putOnTypeQualityInspectRuleId?: number;
|
|
25
|
+
value: string | number;
|
|
26
|
+
parent_value: string | number;
|
|
27
|
+
level: string | number;
|
|
28
|
+
label: string;
|
|
29
|
+
children: Array<TreeCategory>;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
type InQueryCategoryListToTree = {
|
|
33
|
+
/**
|
|
34
|
+
* 业务类型
|
|
35
|
+
* 11 - 维修养护;
|
|
36
|
+
* 13 - 在线鉴定;
|
|
37
|
+
* 14 - 代检;
|
|
38
|
+
* 15 - 查码;
|
|
39
|
+
* */
|
|
40
|
+
sysBizTypeId?: '11' | '13' | '14' | '15';
|
|
41
|
+
/** 是否B2b平台过滤,1:过滤,0:不过滤 */
|
|
42
|
+
filterB2b?: number;
|
|
43
|
+
/** 是否识款过滤,1:过滤,0:不过滤 */
|
|
44
|
+
filterRecognize?: number;
|
|
45
|
+
/** 是否保卖过滤,1:过滤,0:不过滤 */
|
|
46
|
+
filterBaomai?: number;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
type OutListToTreeCategoryDto = {
|
|
50
|
+
listTree: Array<TreeCategory>;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
type InQueryBrandComboBox = {
|
|
54
|
+
sysBizTypeId?: '11' | '13' | '14' | '15';
|
|
55
|
+
page?: number;
|
|
56
|
+
pageSize?: number;
|
|
57
|
+
categoryId?: number;
|
|
58
|
+
brandId?: string;
|
|
59
|
+
brandName?: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
type ComboBoxDto$1 = {
|
|
63
|
+
id: number;
|
|
64
|
+
name: string;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
type OutComboBoxBrandDto = {
|
|
68
|
+
title: string;
|
|
69
|
+
list: Array<ComboBoxDto$1>;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
type InQuerySeriesComboBox = {
|
|
73
|
+
page?: number;
|
|
74
|
+
pageSize?: number;
|
|
75
|
+
id?: number;
|
|
76
|
+
categoryId?: number;
|
|
77
|
+
brandId?: number;
|
|
78
|
+
seriesName?: string;
|
|
79
|
+
status?: number;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
type InQuerySeriesList = {
|
|
83
|
+
/** 当前页码 */
|
|
84
|
+
page?: number;
|
|
85
|
+
/** 每页显示数 */
|
|
86
|
+
pageSize?: number;
|
|
87
|
+
id?: number;
|
|
88
|
+
categoryId?: number;
|
|
89
|
+
brandId?: number;
|
|
90
|
+
seriesName?: string;
|
|
91
|
+
status?: number;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
type ItemSeries = {
|
|
95
|
+
id: number;
|
|
96
|
+
series_name: string;
|
|
97
|
+
logo?: string;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
type SeriesComboBoxDto = {
|
|
101
|
+
id: number;
|
|
102
|
+
name: string;
|
|
103
|
+
logo: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
type OutComboBoxSeriesDto = {
|
|
107
|
+
title: string;
|
|
108
|
+
list: Array<SeriesComboBoxDto>;
|
|
109
|
+
page: number;
|
|
110
|
+
pageSize: number;
|
|
111
|
+
total: number;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
type OutListSeriesDto = {
|
|
115
|
+
total: number;
|
|
116
|
+
list: Array<ItemSeries>;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
type InPathSkuFindOne = {
|
|
120
|
+
id: number;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
type InQuerySkuListV2 = {
|
|
124
|
+
page?: number;
|
|
125
|
+
pageSize?: number;
|
|
126
|
+
status?: number;
|
|
127
|
+
type?: string;
|
|
128
|
+
id?: number;
|
|
129
|
+
spuId?: number;
|
|
130
|
+
categoryId?: number;
|
|
131
|
+
brandId?: number;
|
|
132
|
+
seriesId?: number;
|
|
133
|
+
skuName?: string;
|
|
134
|
+
aliasName?: string;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
type NewSkuProperties = {
|
|
138
|
+
name_id?: number;
|
|
139
|
+
value_id?: number;
|
|
140
|
+
name?: string;
|
|
141
|
+
value?: string;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
type ListSkuV2 = {
|
|
145
|
+
skuId?: number;
|
|
146
|
+
model?: string;
|
|
147
|
+
skuName?: string;
|
|
148
|
+
spuId?: number;
|
|
149
|
+
spuName?: string;
|
|
150
|
+
name?: string;
|
|
151
|
+
ahsSkuId?: number;
|
|
152
|
+
image?: string;
|
|
153
|
+
skuImage?: string;
|
|
154
|
+
categoryId?: number;
|
|
155
|
+
categoryName?: string;
|
|
156
|
+
brandId?: number;
|
|
157
|
+
brandName?: string;
|
|
158
|
+
seriesId?: number;
|
|
159
|
+
seriesName?: string;
|
|
160
|
+
salePrice?: string;
|
|
161
|
+
skuProperties?: Array<NewSkuProperties>;
|
|
162
|
+
score?: number;
|
|
163
|
+
subName?: string;
|
|
164
|
+
aliasName?: string;
|
|
165
|
+
properties?: string;
|
|
166
|
+
status?: number;
|
|
167
|
+
employeeId?: number;
|
|
168
|
+
dtCreated?: string;
|
|
169
|
+
dtUpdated?: string;
|
|
170
|
+
bizSource?: string;
|
|
171
|
+
standardSkuId?: number;
|
|
172
|
+
standardStatus?: number;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
type OutListSkuV2Dto = {
|
|
176
|
+
list?: Array<ListSkuV2>;
|
|
177
|
+
total?: number;
|
|
178
|
+
requestId?: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
type SkuFindOneCategory = {
|
|
182
|
+
id: number;
|
|
183
|
+
category_name: string;
|
|
184
|
+
};
|
|
185
|
+
type SkuFindOneBrand = {
|
|
186
|
+
id: number;
|
|
187
|
+
brand_name: string;
|
|
188
|
+
};
|
|
189
|
+
type SkuFindOneSeries = {
|
|
190
|
+
id: number;
|
|
191
|
+
series_name: string;
|
|
192
|
+
};
|
|
193
|
+
type SkuFindOneSpu = {
|
|
194
|
+
id: number | string;
|
|
195
|
+
spu_name: string;
|
|
196
|
+
};
|
|
197
|
+
type SkuFindOneSku = {
|
|
198
|
+
id: string;
|
|
199
|
+
sku_name: string;
|
|
200
|
+
thumbnail: string;
|
|
201
|
+
};
|
|
202
|
+
type OutFindOneSkuDto = {
|
|
203
|
+
/** 额外派生的图片列表 */
|
|
204
|
+
imageList: Array<string>;
|
|
205
|
+
sku: SkuFindOneSku;
|
|
206
|
+
spu: SkuFindOneSpu;
|
|
207
|
+
categories: Array<SkuFindOneCategory>;
|
|
208
|
+
brand: SkuFindOneBrand;
|
|
209
|
+
series: SkuFindOneSeries;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
type InQueryProductImageSpuSkuList = {
|
|
213
|
+
/** 待识别的图片 URL */
|
|
214
|
+
image: string;
|
|
215
|
+
/** 品牌 id */
|
|
216
|
+
brandId?: number;
|
|
217
|
+
/** 分类 id */
|
|
218
|
+
categoryId?: number;
|
|
219
|
+
/** 标准 sku / 临时 sku */
|
|
220
|
+
skuType?: string;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
type OutListProductImageSpuSkuDto = {
|
|
224
|
+
/** 识款结果列表 */
|
|
225
|
+
list: Array<ListSkuV2>;
|
|
226
|
+
/** 识款请求 id */
|
|
227
|
+
requestId: string;
|
|
228
|
+
/** 主体区域 */
|
|
229
|
+
region?: string;
|
|
230
|
+
/** 请求原图 */
|
|
231
|
+
image?: string;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
type InQuerySpuList = {
|
|
235
|
+
page?: number;
|
|
236
|
+
pageSize?: number;
|
|
237
|
+
id?: number;
|
|
238
|
+
ids?: string;
|
|
239
|
+
categoryId?: number;
|
|
240
|
+
brandId?: number;
|
|
241
|
+
seriesId?: number;
|
|
242
|
+
spuName?: string;
|
|
243
|
+
spuType?: number;
|
|
244
|
+
status?: number;
|
|
245
|
+
employeeId?: number;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
type SpuItem = {
|
|
249
|
+
id: number;
|
|
250
|
+
categoryId?: number;
|
|
251
|
+
categoryName?: string;
|
|
252
|
+
brandId?: number;
|
|
253
|
+
brandName?: string;
|
|
254
|
+
seriesId?: number;
|
|
255
|
+
seriesName?: string;
|
|
256
|
+
spuName?: string;
|
|
257
|
+
spuImage?: string;
|
|
258
|
+
status: number;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
type OutListSpuDto = {
|
|
262
|
+
total: number;
|
|
263
|
+
list: Array<SpuItem>;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
type InUploadFileDto = {
|
|
267
|
+
type: 'activity' | 'product' | 'quality' | 'aftersale' | 'receipt' | 'stock' | 'recovery';
|
|
268
|
+
rename?: number;
|
|
269
|
+
file: Blob;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
type OutUploadFileDto = {
|
|
273
|
+
name: string;
|
|
274
|
+
url: string;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
type InRemoteCreateDto = {
|
|
278
|
+
ttl?: number;
|
|
279
|
+
maxNum?: number;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
type OutRemoteCreateDto = {
|
|
283
|
+
qrcode: string;
|
|
284
|
+
uuid: string;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
type InPathCommonAddressList = {
|
|
288
|
+
pid?: string;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
type CombBoxAddress = {
|
|
292
|
+
id: number;
|
|
293
|
+
name: string;
|
|
294
|
+
isCity?: boolean;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
type OutAddressListDto = {
|
|
298
|
+
list: Array<CombBoxAddress>;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
type InPathStoreComboBox = {
|
|
302
|
+
type?: string;
|
|
303
|
+
currentMerchantOnly?: boolean;
|
|
304
|
+
warehouseType?: string;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
type InQueryStoreComboBox = {
|
|
308
|
+
type?: string;
|
|
309
|
+
currentMerchantOnly?: boolean;
|
|
310
|
+
warehouseType?: string;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
type ComboBoxDto = {
|
|
314
|
+
id: number;
|
|
315
|
+
name: string;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
type OutComboBoxWarehouseStoreDto = {
|
|
319
|
+
list?: Array<ComboBoxDto>;
|
|
320
|
+
status?: Array<ComboBoxDto>;
|
|
321
|
+
type?: Array<ComboBoxDto>;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
type InQueryReservoirList = {
|
|
325
|
+
page?: number;
|
|
326
|
+
pageSize?: number;
|
|
327
|
+
reservoirNameFilter?: string;
|
|
328
|
+
reservoirStateFilter?: string;
|
|
329
|
+
warehouseIdFilter?: string;
|
|
330
|
+
reservoirType?: string;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
type RelateWarehouse = {
|
|
334
|
+
warehouse_id: number;
|
|
335
|
+
name: number;
|
|
336
|
+
address: string;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
type ListReservoir = {
|
|
340
|
+
reservoir_id: number;
|
|
341
|
+
name: string;
|
|
342
|
+
remark: string;
|
|
343
|
+
state: number;
|
|
344
|
+
state_desc: string;
|
|
345
|
+
number_count: number;
|
|
346
|
+
layer_count: number;
|
|
347
|
+
lattice_count: number;
|
|
348
|
+
relate_warehouse: RelateWarehouse;
|
|
349
|
+
userId: number;
|
|
350
|
+
btnOptions?: {
|
|
351
|
+
showUpdate: boolean;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
type OutListReservoirDto = {
|
|
356
|
+
total: number;
|
|
357
|
+
btnOptions: {
|
|
358
|
+
showCreate: boolean;
|
|
359
|
+
};
|
|
360
|
+
list: Array<ListReservoir>;
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
type InQueryShelveList = {
|
|
364
|
+
warehouseId?: number;
|
|
365
|
+
reservoirId?: number;
|
|
366
|
+
code?: string;
|
|
367
|
+
status?: number;
|
|
368
|
+
page?: number;
|
|
369
|
+
pageSize?: number;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
type ListShelveV2 = {
|
|
373
|
+
warehouseId: number;
|
|
374
|
+
reservoirId: number;
|
|
375
|
+
code: string;
|
|
376
|
+
status: number;
|
|
377
|
+
id: number;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
type OutShelveListV2Dto = {
|
|
381
|
+
page?: number;
|
|
382
|
+
pageSize?: number;
|
|
383
|
+
total: number;
|
|
384
|
+
list: Array<ListShelveV2>;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
declare class InMerchantListBusDto {
|
|
388
|
+
name?: string;
|
|
389
|
+
enterpriseNos?: string;
|
|
390
|
+
phone?: string;
|
|
391
|
+
businessNo?: string;
|
|
392
|
+
platformName?: string;
|
|
393
|
+
page: number;
|
|
394
|
+
pageSize: number;
|
|
395
|
+
}
|
|
396
|
+
declare class OutMerchantListBusDto {
|
|
397
|
+
total: number;
|
|
398
|
+
list: MerchantListBus[];
|
|
399
|
+
}
|
|
400
|
+
declare class MerchantListBus {
|
|
401
|
+
enterpriseNo: string;
|
|
402
|
+
name: string;
|
|
403
|
+
platformName: string;
|
|
404
|
+
logo: string;
|
|
405
|
+
legalPersonName: string;
|
|
406
|
+
legalPersonPhone: string;
|
|
407
|
+
legalPersonCardFrontImage: string;
|
|
408
|
+
legalPersonCardBackImage: string;
|
|
409
|
+
contactName: string;
|
|
410
|
+
contactPhone: string;
|
|
411
|
+
contactPosition: string;
|
|
412
|
+
serviceBuy: number;
|
|
413
|
+
serviceSale: number;
|
|
414
|
+
serviceManger: number;
|
|
415
|
+
businessType: number;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
type InQueryBusinessList = {
|
|
419
|
+
page?: number;
|
|
420
|
+
pageSize?: number;
|
|
421
|
+
roleCodeFilter?: string;
|
|
422
|
+
nameFilter?: string;
|
|
423
|
+
keywordFilter?: string;
|
|
424
|
+
phoneFilter?: string;
|
|
425
|
+
deptId?: number;
|
|
426
|
+
enterpriseNo?: string;
|
|
427
|
+
isEncrypt?: number;
|
|
428
|
+
};
|
|
429
|
+
type ListBus = {
|
|
430
|
+
user_id: number;
|
|
431
|
+
name: string;
|
|
432
|
+
phone: string;
|
|
433
|
+
role: Array<string>;
|
|
434
|
+
warehouseCount: number;
|
|
435
|
+
depts: Array<Record<string, any>>;
|
|
436
|
+
btnOptions: {
|
|
437
|
+
showUpdate?: boolean;
|
|
438
|
+
showDelete?: boolean;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
type OutListBusDto = {
|
|
442
|
+
total: number;
|
|
443
|
+
list: Array<ListBus>;
|
|
444
|
+
btnOptions: {
|
|
445
|
+
showCreate?: boolean;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
declare const saasApiService: IApiService;
|
|
450
|
+
interface IApiService {
|
|
451
|
+
categoryListToTree: Request<InQueryCategoryListToTree, OutListToTreeCategoryDto>;
|
|
452
|
+
brandComboBox: Request<InQueryBrandComboBox, OutComboBoxBrandDto>;
|
|
453
|
+
seriesComboBox: Request<InQuerySeriesComboBox, OutComboBoxSeriesDto>;
|
|
454
|
+
seriesList: Request<InQuerySeriesList, OutListSeriesDto>;
|
|
455
|
+
skuFindOne: Request<InPathSkuFindOne, OutFindOneSkuDto>;
|
|
456
|
+
skuListV2: Request<InQuerySkuListV2, OutListSkuV2Dto>;
|
|
457
|
+
spuList: Request<InQuerySpuList, OutListSpuDto>;
|
|
458
|
+
productImageSpuSkuList: Request<InQueryProductImageSpuSkuList, OutListProductImageSpuSkuDto>;
|
|
459
|
+
uploadUploadFile: Request<InUploadFileDto, OutUploadFileDto>;
|
|
460
|
+
uploadRemoteCreate: Request<InRemoteCreateDto, OutRemoteCreateDto>;
|
|
461
|
+
commonAddressList: Request<InPathCommonAddressList, OutAddressListDto>;
|
|
462
|
+
storeComboBox: Request<InPathStoreComboBox & InQueryStoreComboBox, OutComboBoxWarehouseStoreDto>;
|
|
463
|
+
reservoirList: Request<InQueryReservoirList, OutListReservoirDto>;
|
|
464
|
+
shelveList: Request<InQueryShelveList, OutShelveListV2Dto>;
|
|
465
|
+
merchantList: Request<InMerchantListBusDto, OutMerchantListBusDto>;
|
|
466
|
+
businessList: Request<InQueryBusinessList, OutListBusDto>;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
declare const ConfigContext: React$1.Context<IConfigContext | null>;
|
|
470
|
+
type IApiPayload = {
|
|
471
|
+
jwt: JWT;
|
|
472
|
+
apiEnv: ApiEnv;
|
|
473
|
+
business: Business;
|
|
474
|
+
getUserToken: () => string;
|
|
475
|
+
setUserToken: (token: string) => void;
|
|
476
|
+
removeUserToken: () => void;
|
|
477
|
+
};
|
|
478
|
+
interface ConfigProviderProps {
|
|
479
|
+
/** SaaS BFF 认证信息,使用自定义 apiService 时可不传 */
|
|
480
|
+
apiPayload?: Partial<IApiPayload>;
|
|
481
|
+
/** 自定义 API 服务实现,会覆盖默认的 SaaS BFF 服务 */
|
|
482
|
+
apiService?: Partial<IApiService>;
|
|
483
|
+
/** antd 国际化语言包 */
|
|
484
|
+
locale?: Locale;
|
|
485
|
+
/** antd 主题配置 */
|
|
486
|
+
theme?: ThemeConfig;
|
|
487
|
+
/** antd App 组件的 className */
|
|
488
|
+
className?: string;
|
|
489
|
+
/** 子组件 */
|
|
490
|
+
children: React.ReactNode;
|
|
491
|
+
}
|
|
492
|
+
type IConfigContext = {
|
|
493
|
+
apiPayload: Partial<IApiPayload>;
|
|
494
|
+
apiService: IApiService;
|
|
495
|
+
};
|
|
496
|
+
declare const ConfigProvider: React$1.MemoExoticComponent<(props: ConfigProviderProps) => react_jsx_runtime.JSX.Element>;
|
|
497
|
+
|
|
498
|
+
type Props$9 = {
|
|
8
499
|
loading: boolean;
|
|
9
500
|
};
|
|
10
|
-
declare class Loading extends PureComponent<Props> {
|
|
501
|
+
declare class Loading extends PureComponent<Props$9> {
|
|
11
502
|
render(): react_jsx_runtime.JSX.Element | null;
|
|
12
503
|
}
|
|
13
504
|
|
|
@@ -36,6 +527,741 @@ type MultiWindowProps = {
|
|
|
36
527
|
theme?: ThemeConfig;
|
|
37
528
|
className?: string;
|
|
38
529
|
};
|
|
39
|
-
declare const MultiWindow: React.MemoExoticComponent<(props: MultiWindowProps) => react_jsx_runtime.JSX.Element>;
|
|
530
|
+
declare const MultiWindow: React$1.MemoExoticComponent<(props: MultiWindowProps) => react_jsx_runtime.JSX.Element>;
|
|
531
|
+
|
|
532
|
+
interface CInputProps extends InputProps {
|
|
533
|
+
/** 是否在失焦时自动去掉首尾空格,默认 true */
|
|
534
|
+
autoTrim?: boolean;
|
|
535
|
+
}
|
|
536
|
+
interface CTextAreaProps extends TextAreaProps {
|
|
537
|
+
/** 是否在失焦时自动去掉首尾空格,默认 true */
|
|
538
|
+
autoTrim?: boolean;
|
|
539
|
+
}
|
|
540
|
+
interface CSearchProps extends SearchProps {
|
|
541
|
+
/** 是否在失焦时自动去掉首尾空格,默认 true */
|
|
542
|
+
autoTrim?: boolean;
|
|
543
|
+
}
|
|
544
|
+
declare const InternalCInput: React__default.ForwardRefExoticComponent<CInputProps & React__default.RefAttributes<InputRef>>;
|
|
545
|
+
declare const CTextArea: React__default.ForwardRefExoticComponent<CTextAreaProps & React__default.RefAttributes<TextAreaRef>>;
|
|
546
|
+
declare const CSearch: React__default.ForwardRefExoticComponent<CSearchProps & React__default.RefAttributes<InputRef>>;
|
|
547
|
+
type CInputType = typeof InternalCInput & {
|
|
548
|
+
TextArea: typeof CTextArea;
|
|
549
|
+
Search: typeof CSearch;
|
|
550
|
+
Group: typeof Input.Group;
|
|
551
|
+
};
|
|
552
|
+
declare const CInput: CInputType;
|
|
553
|
+
|
|
554
|
+
interface WithCVideoModalProps {
|
|
555
|
+
children: ReactElement;
|
|
556
|
+
videoSrc: string;
|
|
557
|
+
title?: string;
|
|
558
|
+
width?: number;
|
|
559
|
+
height?: number;
|
|
560
|
+
}
|
|
561
|
+
declare const WithCVideoModal: React$1.MemoExoticComponent<({ children, videoSrc, title, width, height }: WithCVideoModalProps) => react_jsx_runtime.JSX.Element>;
|
|
562
|
+
|
|
563
|
+
interface CVideoProps {
|
|
564
|
+
src: string;
|
|
565
|
+
width?: number;
|
|
566
|
+
height?: number;
|
|
567
|
+
}
|
|
568
|
+
declare const CVideo: React__default.FC<CVideoProps>;
|
|
569
|
+
|
|
570
|
+
interface PrivacyFieldProps {
|
|
571
|
+
/** 脱敏后的展示值 */
|
|
572
|
+
value: string;
|
|
573
|
+
/** 后端返回的加密值 */
|
|
574
|
+
encryptedValue?: string;
|
|
575
|
+
/** 是否展示解密按钮 */
|
|
576
|
+
showDecryptButton?: boolean;
|
|
577
|
+
/** 神策事件名称 */
|
|
578
|
+
trackEventName?: string;
|
|
579
|
+
/** 神策事件参数 */
|
|
580
|
+
trackEventParams?: Record<string, any>;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* 隐私字段组件:
|
|
584
|
+
* - 无加密值时直接展示脱敏值
|
|
585
|
+
* - 有加密值时支持在本地解密切换查看
|
|
586
|
+
* - 每条数据生命周期内仅触发一次埋点
|
|
587
|
+
*/
|
|
588
|
+
declare const PrivacyField: React__default.MemoExoticComponent<(props: PrivacyFieldProps) => react_jsx_runtime.JSX.Element>;
|
|
589
|
+
|
|
590
|
+
declare const replaceRgbWithHex: (value: string) => string;
|
|
591
|
+
interface RichTextEditorProps {
|
|
592
|
+
defaultValue?: string;
|
|
593
|
+
onChange?: (value: string) => void;
|
|
594
|
+
value?: string;
|
|
595
|
+
disabled?: boolean;
|
|
596
|
+
placeholder?: string;
|
|
597
|
+
enableImageInsert?: boolean;
|
|
598
|
+
/** 自定义图片插入按钮图标 */
|
|
599
|
+
imageInsertIcon?: React__default.ReactNode;
|
|
600
|
+
}
|
|
601
|
+
declare const RichTextEditor: React__default.MemoExoticComponent<(props: RichTextEditorProps) => react_jsx_runtime.JSX.Element>;
|
|
602
|
+
|
|
603
|
+
type TreeSelectItem = {
|
|
604
|
+
value: string | number;
|
|
605
|
+
label: string;
|
|
606
|
+
level: string | number;
|
|
607
|
+
isLastLevel?: boolean;
|
|
608
|
+
};
|
|
609
|
+
type TreeSelectList = TreeSelectItem[] | TreeSelectItem[][];
|
|
610
|
+
type TreeSingleValueType = Array<string | number>;
|
|
611
|
+
type TreeValueType = TreeSingleValueType | TreeSingleValueType[];
|
|
612
|
+
type CustomTreeItem = TreeCategory & {
|
|
613
|
+
index?: number;
|
|
614
|
+
};
|
|
615
|
+
type CustomTreeOptions = CustomTreeItem[] | CustomTreeItem[][];
|
|
616
|
+
type Props$8 = Omit<CascaderProps<any>, 'onChange' | 'defaultValue' | 'value'> & {
|
|
617
|
+
className?: string;
|
|
618
|
+
onChange?: (value?: TreeValueType, selected?: TreeSelectList) => void;
|
|
619
|
+
defaultValue?: TreeValueType;
|
|
620
|
+
value?: TreeValueType;
|
|
621
|
+
sysBizTypeId?: string;
|
|
622
|
+
onGetData?: (dataList?: TreeCategory[]) => void;
|
|
623
|
+
};
|
|
624
|
+
declare const EffectCategoryCascade: React__default.MemoExoticComponent<(props: Props$8) => react_jsx_runtime.JSX.Element>;
|
|
625
|
+
declare const transformOptionToSelectedList: (selectedOptions?: CustomTreeOptions, multiple?: boolean) => {
|
|
626
|
+
level: string | number;
|
|
627
|
+
value: string | number;
|
|
628
|
+
label: string;
|
|
629
|
+
isLastLevel: boolean;
|
|
630
|
+
}[] | {
|
|
631
|
+
level: string | number;
|
|
632
|
+
value: string | number;
|
|
633
|
+
label: string;
|
|
634
|
+
isLastLevel: boolean;
|
|
635
|
+
}[][];
|
|
636
|
+
declare const transformSelectListToValues: (selectList?: TreeSelectList, multiple?: boolean) => (string | number)[] | (string | number)[][];
|
|
637
|
+
declare const transformValuesToSelectList: (values?: TreeValueType, multiple?: boolean) => {
|
|
638
|
+
value: string | number;
|
|
639
|
+
label: string;
|
|
640
|
+
level: number;
|
|
641
|
+
}[] | {
|
|
642
|
+
value: string | number;
|
|
643
|
+
label: string;
|
|
644
|
+
level: number;
|
|
645
|
+
}[][];
|
|
646
|
+
declare const isSingleTreeSelected: (selectList?: TreeSelectList) => selectList is TreeSelectItem[];
|
|
647
|
+
|
|
648
|
+
interface CountdownProps {
|
|
649
|
+
init: number | string;
|
|
650
|
+
onEnd?: () => string | void;
|
|
651
|
+
onInterval?: (s: number) => string | void;
|
|
652
|
+
mode?: 'date' | 'second';
|
|
653
|
+
formatStr?: string;
|
|
654
|
+
className?: string;
|
|
655
|
+
}
|
|
656
|
+
declare const Countdown: ({ init, onEnd, onInterval, mode, className, formatStr }: CountdownProps) => react_jsx_runtime.JSX.Element;
|
|
657
|
+
declare function formatDate(s: number, formatStr?: string): string;
|
|
658
|
+
|
|
659
|
+
type TableDragEndEvent = DragEndEvent;
|
|
660
|
+
type SortTableProps<T> = TableProps<T> & {
|
|
661
|
+
onSortEnd?: (event: TableDragEndEvent) => void;
|
|
662
|
+
/** @deprecated 拼写兼容,后续请统一使用 onSortEnd */
|
|
663
|
+
onShortEnd?: (event: TableDragEndEvent) => void;
|
|
664
|
+
};
|
|
665
|
+
declare const DragHandle: React__default.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
666
|
+
|
|
667
|
+
type CTableProps<T> = SortTableProps<T> & {
|
|
668
|
+
enableDrag?: boolean;
|
|
669
|
+
};
|
|
670
|
+
declare const Column: <RecordType extends antd_es__util_type.AnyObject>(_: ColumnProps<RecordType>) => null;
|
|
671
|
+
declare const getCTable: <T extends object>() => FC<CTableProps<T>> & {
|
|
672
|
+
Column: FC<ColumnProps<T>>;
|
|
673
|
+
DragHandle: typeof DragHandle;
|
|
674
|
+
[key: string]: any;
|
|
675
|
+
};
|
|
676
|
+
interface CTableType {
|
|
677
|
+
<RecordType extends object = any>(props: CTableProps<RecordType>): React__default.ReactElement | null;
|
|
678
|
+
Column: typeof Column;
|
|
679
|
+
DragHandle: typeof DragHandle;
|
|
680
|
+
[key: string]: any;
|
|
681
|
+
}
|
|
682
|
+
declare const CTable: CTableType;
|
|
683
|
+
|
|
684
|
+
interface OSSImageGroupProps extends Pick<ImageProps, 'fallback' | 'height' | 'width' | 'onError' | 'rootClassName'> {
|
|
685
|
+
resizeWidth?: number;
|
|
686
|
+
images: string[];
|
|
687
|
+
}
|
|
688
|
+
declare const ModalGroup: FunctionComponent<OSSImageGroupProps>;
|
|
689
|
+
|
|
690
|
+
declare const PreviewGroup: typeof Image.PreviewGroup;
|
|
691
|
+
interface OSSImageProps extends ImageProps {
|
|
692
|
+
resizeWidth?: number;
|
|
693
|
+
clearDefault?: boolean;
|
|
694
|
+
showOriginPreview?: boolean;
|
|
695
|
+
}
|
|
696
|
+
declare const OSSImage: MemoExoticComponent<FunctionComponent<OSSImageProps>> & {
|
|
697
|
+
PreviewGroup: typeof PreviewGroup;
|
|
698
|
+
ModalGroup: typeof ModalGroup;
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
interface ClockProps {
|
|
702
|
+
formatStr?: string;
|
|
703
|
+
className?: string;
|
|
704
|
+
}
|
|
705
|
+
declare const formatClock: (data: Date, formatStr?: string) => string;
|
|
706
|
+
declare const Clock: ({ className, formatStr }: ClockProps) => react_jsx_runtime.JSX.Element;
|
|
707
|
+
|
|
708
|
+
interface CounterProps {
|
|
709
|
+
loading: boolean;
|
|
710
|
+
onEnd?: () => string | void;
|
|
711
|
+
onInterval?: (s: number) => string | void;
|
|
712
|
+
interval?: number;
|
|
713
|
+
className?: string;
|
|
714
|
+
init?: number | string;
|
|
715
|
+
}
|
|
716
|
+
declare const Counter: ({ loading, init, interval, onEnd, onInterval, className }: CounterProps) => react_jsx_runtime.JSX.Element;
|
|
717
|
+
|
|
718
|
+
type CurrencyUnit = 'yuan' | 'jiao' | 'fen';
|
|
719
|
+
interface CurrencyProps {
|
|
720
|
+
/** 单位 'yuan' | 'jiao' | 'fen',默认分 */
|
|
721
|
+
unit?: CurrencyUnit;
|
|
722
|
+
/** 保留的小数位,默认 2 位 */
|
|
723
|
+
toFixed?: number;
|
|
724
|
+
/** 具体金额字段 */
|
|
725
|
+
children?: number | string;
|
|
726
|
+
className?: string;
|
|
727
|
+
}
|
|
728
|
+
declare const Currency: FunctionComponent<CurrencyProps>;
|
|
729
|
+
|
|
730
|
+
declare const Iconfont: React$1.FC<_ant_design_icons_lib_components_IconFont.IconFontProps<string>>;
|
|
731
|
+
|
|
732
|
+
type SearchFormBaseProps<T> = {
|
|
733
|
+
children: ReactNode;
|
|
734
|
+
operations?: ReactNode;
|
|
735
|
+
showReset?: boolean;
|
|
736
|
+
confirmText?: string;
|
|
737
|
+
filter: T;
|
|
738
|
+
form?: FormInstance<T>;
|
|
739
|
+
};
|
|
740
|
+
type SearchFormContentProps<T> = SearchFormBaseProps<T>;
|
|
741
|
+
type SearchFormProps<T extends object = any> = SearchFormBaseProps<T> & Omit<FormProps<T>, 'children'> & {
|
|
742
|
+
/** 显式使用内容模式,不包裹 Form */
|
|
743
|
+
contentOnly?: boolean;
|
|
744
|
+
};
|
|
745
|
+
/**
|
|
746
|
+
* 搜索表单内容组件,需要放在消费方自己的 <Form> 内部使用。
|
|
747
|
+
* 提供:filter 同步、操作按钮、样式。
|
|
748
|
+
* 不包含 <Form> 包裹,避免跨包 antd Context 隔离问题。
|
|
749
|
+
*/
|
|
750
|
+
declare const SearchFormContent: <T extends object = any>(props: SearchFormContentProps<T>) => react_jsx_runtime.JSX.Element;
|
|
751
|
+
/**
|
|
752
|
+
* 搜索表单组件。
|
|
753
|
+
* 默认支持两种模式:
|
|
754
|
+
* 1. 直接作为表单容器使用(推荐,业务项目直接引用)
|
|
755
|
+
* 2. 兼容旧的内容模式(仅传 filter/form/operations 等基础属性时)
|
|
756
|
+
*/
|
|
757
|
+
declare const SearchForm: <T extends object = any>(props: SearchFormProps<T>) => react_jsx_runtime.JSX.Element;
|
|
758
|
+
/** 搜索表单样式 hook,返回需要设置在 <Form> 上的 className / layout / style */
|
|
759
|
+
declare const useSearchFormStyle: () => {
|
|
760
|
+
className: any;
|
|
761
|
+
layout: "inline";
|
|
762
|
+
style: React__default.CSSProperties;
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
type SearchListProps = {
|
|
766
|
+
showReset?: boolean;
|
|
767
|
+
hideSearch?: boolean;
|
|
768
|
+
children: ReactNode;
|
|
769
|
+
buttonChildren?: ReactNode;
|
|
770
|
+
};
|
|
771
|
+
declare const SearchList: React__default.MemoExoticComponent<(props: SearchListProps) => react_jsx_runtime.JSX.Element>;
|
|
772
|
+
|
|
773
|
+
type ModifyFileData = {
|
|
774
|
+
add?: UploadFile[];
|
|
775
|
+
remove?: UploadFile[];
|
|
776
|
+
};
|
|
777
|
+
type FileUploadProps = {
|
|
778
|
+
multiple?: boolean;
|
|
779
|
+
classNames?: string;
|
|
780
|
+
disabled?: boolean;
|
|
781
|
+
value?: UploadFile[];
|
|
782
|
+
defaultValue?: UploadFile[];
|
|
783
|
+
type?: UploadListType;
|
|
784
|
+
onChange?: (value: UploadFile[], modifyFileData: ModifyFileData) => void;
|
|
785
|
+
children?: ReactNode;
|
|
786
|
+
accept?: string;
|
|
787
|
+
max?: number;
|
|
788
|
+
remote?: boolean;
|
|
789
|
+
deleteConfirm?: boolean;
|
|
790
|
+
};
|
|
791
|
+
declare const FileUpload: (props: FileUploadProps) => react_jsx_runtime.JSX.Element;
|
|
792
|
+
|
|
793
|
+
declare enum QRCodeStatus {
|
|
794
|
+
ACTIVE = "active",
|
|
795
|
+
SCANNED = "scanned",
|
|
796
|
+
EXPIRED = "expired",
|
|
797
|
+
COMPLETE = "complete"
|
|
798
|
+
}
|
|
799
|
+
type SseEventDataType<SuccessPayloadType> = {
|
|
800
|
+
data: {
|
|
801
|
+
status: QRCodeStatus;
|
|
802
|
+
payload: SuccessPayloadType;
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
type UseRemoteUploadConfigType<SuccessPayloadType = any> = {
|
|
806
|
+
createQRCode: (requestConfig: BFFRequestConfig) => Promise<{
|
|
807
|
+
uuid: string;
|
|
808
|
+
qrcode: string;
|
|
809
|
+
}>;
|
|
810
|
+
sseUrl: string;
|
|
811
|
+
enable?: boolean;
|
|
812
|
+
onSuccess?: (data: SuccessPayloadType) => void;
|
|
813
|
+
};
|
|
814
|
+
declare const useSseQrcode: <SuccessPayloadType>(config: UseRemoteUploadConfigType<SuccessPayloadType>) => {
|
|
815
|
+
qrCodeUrl: string | undefined;
|
|
816
|
+
qrCodeStatus: QRCodeStatus | undefined;
|
|
817
|
+
refreshQRCode: () => void;
|
|
818
|
+
refreshLoading: boolean;
|
|
819
|
+
sseLoading: boolean;
|
|
820
|
+
}[];
|
|
821
|
+
|
|
822
|
+
type QRCodePropsType = {
|
|
823
|
+
url: string;
|
|
824
|
+
status?: QRCodeStatus;
|
|
825
|
+
onRefresh?: () => void;
|
|
826
|
+
refreshLoading?: boolean;
|
|
827
|
+
multiple?: boolean;
|
|
828
|
+
};
|
|
829
|
+
declare const QRCode: React__default.MemoExoticComponent<(props: QRCodePropsType) => react_jsx_runtime.JSX.Element>;
|
|
830
|
+
|
|
831
|
+
type WithPanelProps = Omit<DrawerProps, 'footer' | 'onClose'> & {
|
|
832
|
+
visible?: boolean;
|
|
833
|
+
handleElement: ReactElement;
|
|
834
|
+
activeClassName?: string;
|
|
835
|
+
children?: ReactNode;
|
|
836
|
+
submitText?: string;
|
|
837
|
+
okText?: string;
|
|
838
|
+
cancelText?: string;
|
|
839
|
+
loading?: boolean;
|
|
840
|
+
showFooter?: boolean;
|
|
841
|
+
onSave?: () => Promise<boolean | void> | boolean | void;
|
|
842
|
+
onClose?: () => Promise<boolean | void> | boolean | void;
|
|
843
|
+
onOk?: () => Promise<boolean | void> | boolean | void;
|
|
844
|
+
onCancel?: () => Promise<boolean | void> | boolean | void;
|
|
845
|
+
};
|
|
846
|
+
declare const WithPanel: React__default.MemoExoticComponent<(props: WithPanelProps) => react_jsx_runtime.JSX.Element>;
|
|
847
|
+
|
|
848
|
+
type WithModalProps = Omit<ModalProps, 'onOk' | 'onCancel' | 'confirmLoading'> & {
|
|
849
|
+
visible?: boolean;
|
|
850
|
+
handleElement: ReactElement;
|
|
851
|
+
activeClassName?: string;
|
|
852
|
+
children?: ReactNode;
|
|
853
|
+
loading?: boolean;
|
|
854
|
+
showFooter?: boolean;
|
|
855
|
+
onSave?: () => Promise<boolean | void> | boolean | void;
|
|
856
|
+
onVisibleChange?: (visible?: boolean) => Promise<boolean | void> | boolean | void;
|
|
857
|
+
onClose?: () => Promise<boolean | void> | boolean | void;
|
|
858
|
+
onOk?: () => Promise<boolean | void> | boolean | void;
|
|
859
|
+
onCancel?: () => Promise<boolean | void> | boolean | void;
|
|
860
|
+
};
|
|
861
|
+
declare const WithModal: React__default.MemoExoticComponent<(props: WithModalProps) => react_jsx_runtime.JSX.Element>;
|
|
862
|
+
|
|
863
|
+
declare const typedMemo: <T extends ComponentType>(c: T) => MemoExoticComponent<T>;
|
|
864
|
+
declare const getCommonTableProps: <T = any>(coverProps?: CTableProps<T>) => CTableProps<T>;
|
|
865
|
+
declare const getCommonSelectProps: <T = any>(coverProps?: SelectProps<T>) => SelectProps<T>;
|
|
866
|
+
declare const commonStatusSelectOptions: {
|
|
867
|
+
value: number;
|
|
868
|
+
label: string;
|
|
869
|
+
}[];
|
|
870
|
+
declare const commonYesOrNoSelectOptions: {
|
|
871
|
+
value: number;
|
|
872
|
+
label: string;
|
|
873
|
+
}[];
|
|
874
|
+
declare const commonYesOrNoSelectOptionsMap: Record<number, string>;
|
|
875
|
+
declare const commonDatePickerNormalize: (date: Dayjs | null, format?: string) => string;
|
|
876
|
+
declare const commonDatePickerGetValueProps: (date: string | null) => {
|
|
877
|
+
value: string | dayjs.Dayjs;
|
|
878
|
+
};
|
|
879
|
+
declare const commonDateRangePickerNormalize: (dates: Dayjs[] | null, format?: string) => string[];
|
|
880
|
+
declare const commonDateRangePickerGetValueProps: (dataStrs: string[] | null) => {
|
|
881
|
+
value: dayjs.Dayjs[];
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
type BrandValueType = number | number[] | string | undefined;
|
|
885
|
+
type Option$1 = {
|
|
886
|
+
label: string;
|
|
887
|
+
value: number;
|
|
888
|
+
};
|
|
889
|
+
type BrandOptions = Option$1[];
|
|
890
|
+
type Props$7 = {
|
|
891
|
+
className?: string;
|
|
892
|
+
onChange?: (value?: BrandValueType, label?: string) => void;
|
|
893
|
+
value?: BrandValueType;
|
|
894
|
+
defaultValue?: BrandValueType;
|
|
895
|
+
disabled?: boolean;
|
|
896
|
+
categoryId?: number;
|
|
897
|
+
mode?: 'multiple' | 'tags';
|
|
898
|
+
sysBizTypeId?: InQueryBrandComboBox['sysBizTypeId'];
|
|
899
|
+
/** 是否显示其他品牌,默认易奢堂不露出,如需露出请慎重 */
|
|
900
|
+
showOtherBrand?: boolean;
|
|
901
|
+
style?: React__default.CSSProperties;
|
|
902
|
+
};
|
|
903
|
+
declare const EffectBrandSelect: React__default.MemoExoticComponent<(props: Props$7) => react_jsx_runtime.JSX.Element>;
|
|
904
|
+
|
|
905
|
+
type TransferValueType = string[];
|
|
906
|
+
type TransferPropValueType = number[] | undefined;
|
|
907
|
+
type EffectBrandTransferProps = {
|
|
908
|
+
className?: string;
|
|
909
|
+
onChange?: (value?: BrandValueType, name?: string) => void;
|
|
910
|
+
value?: TransferPropValueType;
|
|
911
|
+
defaultValue?: TransferPropValueType;
|
|
912
|
+
disabled?: boolean;
|
|
913
|
+
categoryId?: number;
|
|
914
|
+
sysBizTypeId?: InQueryBrandComboBox['sysBizTypeId'];
|
|
915
|
+
/** 是否显示其他品牌,默认易奢堂不露出,如需露出请慎重 */
|
|
916
|
+
showOtherBrand?: boolean;
|
|
917
|
+
};
|
|
918
|
+
declare const EffectBrandTransfer: React__default.MemoExoticComponent<(props: EffectBrandTransferProps) => react_jsx_runtime.JSX.Element>;
|
|
919
|
+
|
|
920
|
+
type EffectSeriesSelectV2Props = Omit<SelectProps$1<number[]>, 'mode' | 'onChange'> & {
|
|
921
|
+
/** 是否显示清除按钮 */
|
|
922
|
+
allowClear?: boolean;
|
|
923
|
+
/** 品牌ID */
|
|
924
|
+
brandId?: number;
|
|
925
|
+
/** 分类ID */
|
|
926
|
+
categoryId?: number;
|
|
927
|
+
/** 值改变回调 */
|
|
928
|
+
onChange?: (value: number[]) => void;
|
|
929
|
+
/** 每页加载数量 */
|
|
930
|
+
pageSize?: number;
|
|
931
|
+
/** 占位符文本 */
|
|
932
|
+
placeholder?: string;
|
|
933
|
+
/** 选中值 */
|
|
934
|
+
value?: number[];
|
|
935
|
+
};
|
|
936
|
+
declare const EffectSeriesSelectV2: FC<EffectSeriesSelectV2Props>;
|
|
937
|
+
|
|
938
|
+
interface EffectSkuTableProps {
|
|
939
|
+
/** number[]: 各级分类Id数组,number: 最后一级分类Id */
|
|
940
|
+
categoryIds?: number[] | number;
|
|
941
|
+
brandId?: number;
|
|
942
|
+
brandName?: string;
|
|
943
|
+
seriesId?: number;
|
|
944
|
+
seriesName?: string;
|
|
945
|
+
spuId?: number;
|
|
946
|
+
spuName?: string;
|
|
947
|
+
disabled?: boolean;
|
|
948
|
+
value?: number;
|
|
949
|
+
showSkuId?: boolean;
|
|
950
|
+
skuType?: 'std' | 'tmp';
|
|
951
|
+
onChange?: (value?: number, skuData?: ListSkuV2) => void;
|
|
952
|
+
}
|
|
953
|
+
declare const EffectSkuTable: FunctionComponent<EffectSkuTableProps>;
|
|
954
|
+
|
|
955
|
+
type SimpleFileData = {
|
|
956
|
+
id?: number;
|
|
957
|
+
name?: string;
|
|
958
|
+
fileName?: string;
|
|
959
|
+
url: string;
|
|
960
|
+
};
|
|
961
|
+
type UploadResult = {
|
|
962
|
+
result: boolean;
|
|
963
|
+
msg: string;
|
|
964
|
+
data: SimpleFileData[];
|
|
965
|
+
};
|
|
966
|
+
type EffectFileUploadProps = {
|
|
967
|
+
max?: number;
|
|
968
|
+
accept?: string;
|
|
969
|
+
remote?: boolean;
|
|
970
|
+
deleteConfirm?: boolean;
|
|
971
|
+
disabled?: boolean;
|
|
972
|
+
needSave?: boolean;
|
|
973
|
+
uploadOnAdd?: boolean;
|
|
974
|
+
value?: SimpleFileData[];
|
|
975
|
+
defaultValue?: SimpleFileData[];
|
|
976
|
+
onChange?: (files: SimpleFileData[]) => void;
|
|
977
|
+
files?: UploadFile[];
|
|
978
|
+
onFileChange?: (files: UploadFile[]) => void;
|
|
979
|
+
onUpload?: () => void;
|
|
980
|
+
onUploadDone?: (uploadResult: UploadResult) => void;
|
|
981
|
+
extFormData?: Object;
|
|
982
|
+
className?: string;
|
|
983
|
+
name?: string;
|
|
984
|
+
};
|
|
985
|
+
type EffectFileUploadRef = {
|
|
986
|
+
handleUpload: () => Promise<UploadResult>;
|
|
987
|
+
uploadTasks: Promise<UploadResult>[];
|
|
988
|
+
value: SimpleFileData[];
|
|
989
|
+
};
|
|
990
|
+
declare const EffectFileUpload: React__default.NamedExoticComponent<Omit<EffectFileUploadProps & React__default.RefAttributes<EffectFileUploadRef>, "ref"> & {
|
|
991
|
+
ref?: ((instance: EffectFileUploadRef | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<EffectFileUploadRef> | null | undefined;
|
|
992
|
+
}> & {
|
|
993
|
+
readonly type: React__default.ForwardRefExoticComponent<EffectFileUploadProps & React__default.RefAttributes<EffectFileUploadRef>>;
|
|
994
|
+
} & {
|
|
995
|
+
Group: React__default.MemoExoticComponent<(props: {
|
|
996
|
+
needSave: boolean;
|
|
997
|
+
onUploadDone?: (uploadResult: Record<string, UploadResult>) => void;
|
|
998
|
+
children: React__default.ReactNode;
|
|
999
|
+
}) => react_jsx_runtime.JSX.Element>;
|
|
1000
|
+
};
|
|
1001
|
+
declare const transformSimpleFile2UploadFile: (files?: SimpleFileData[]) => UploadFile[];
|
|
1002
|
+
declare const transformUploadFile2SimpleFile: (uploadFiles?: UploadFile[]) => SimpleFileData[];
|
|
1003
|
+
|
|
1004
|
+
type Props$6 = {
|
|
1005
|
+
disabled?: boolean;
|
|
1006
|
+
defaultValue?: SimpleFileData[];
|
|
1007
|
+
onChange?: (files: SimpleFileData[]) => void;
|
|
1008
|
+
onSave?: (files?: SimpleFileData[]) => Promise<boolean | void> | boolean | void;
|
|
1009
|
+
max?: number;
|
|
1010
|
+
accept?: string;
|
|
1011
|
+
remote?: boolean;
|
|
1012
|
+
children: ReactElement;
|
|
1013
|
+
header?: ReactElement;
|
|
1014
|
+
title?: string;
|
|
1015
|
+
};
|
|
1016
|
+
declare const EffectWithFilePanel: React__default.MemoExoticComponent<(props: Props$6) => react_jsx_runtime.JSX.Element>;
|
|
1017
|
+
|
|
1018
|
+
type ConditionsType$2 = {
|
|
1019
|
+
categoryId?: number;
|
|
1020
|
+
brandId?: number;
|
|
1021
|
+
};
|
|
1022
|
+
type Props$5 = ConditionsType$2 & {
|
|
1023
|
+
className?: string;
|
|
1024
|
+
onChange?: (value?: number, name?: string) => void;
|
|
1025
|
+
value?: number;
|
|
1026
|
+
defaultValue?: string;
|
|
1027
|
+
disabled?: boolean;
|
|
1028
|
+
};
|
|
1029
|
+
declare const EffectSeriesSelect: React__default.MemoExoticComponent<(props: Props$5) => react_jsx_runtime.JSX.Element>;
|
|
1030
|
+
|
|
1031
|
+
type ConditionsType$1 = {
|
|
1032
|
+
categoryId?: number;
|
|
1033
|
+
brandId?: number;
|
|
1034
|
+
seriesId?: number;
|
|
1035
|
+
};
|
|
1036
|
+
type Props$4 = ConditionsType$1 & {
|
|
1037
|
+
className?: string;
|
|
1038
|
+
onChange?: (value?: number, skuData?: SpuItem) => void;
|
|
1039
|
+
defaultValue?: string;
|
|
1040
|
+
disabled?: boolean;
|
|
1041
|
+
value?: number;
|
|
1042
|
+
shelfStatus?: number;
|
|
1043
|
+
};
|
|
1044
|
+
declare const EffectSpuSelect: React__default.MemoExoticComponent<(props: Props$4) => react_jsx_runtime.JSX.Element>;
|
|
1045
|
+
|
|
1046
|
+
type ValueType = string | number | undefined;
|
|
1047
|
+
type ItemOption = {
|
|
1048
|
+
label: string;
|
|
1049
|
+
value: number;
|
|
1050
|
+
image: string;
|
|
1051
|
+
};
|
|
1052
|
+
type ConditionsType = {
|
|
1053
|
+
categoryId?: number;
|
|
1054
|
+
brandId?: number;
|
|
1055
|
+
seriesId?: number;
|
|
1056
|
+
spuId?: number;
|
|
1057
|
+
};
|
|
1058
|
+
type Props$3 = ConditionsType & {
|
|
1059
|
+
className?: string;
|
|
1060
|
+
onChange?: (value?: number, data?: ListSkuV2) => void;
|
|
1061
|
+
defaultValue?: number | string;
|
|
1062
|
+
disabled?: boolean;
|
|
1063
|
+
value?: number;
|
|
1064
|
+
/** 上架状态: 1-上架,2-下架,3-包含所有, 默认1 */
|
|
1065
|
+
shelfStatus?: number;
|
|
1066
|
+
showSkuId?: boolean;
|
|
1067
|
+
skuType?: 'std' | 'tmp';
|
|
1068
|
+
};
|
|
1069
|
+
declare const EffectSkuSelect: React__default.MemoExoticComponent<(props: Props$3) => react_jsx_runtime.JSX.Element>;
|
|
1070
|
+
type DropdownProps<O extends ItemOption = ItemOption> = {
|
|
1071
|
+
options: O[];
|
|
1072
|
+
value?: SelectProps$1<ValueType>['value'];
|
|
1073
|
+
onChange?: SelectProps$1<ValueType>['onChange'];
|
|
1074
|
+
onLoadMore: () => void | boolean | Promise<void | boolean>;
|
|
1075
|
+
hasMore?: boolean;
|
|
1076
|
+
noMoreText: ReactNode;
|
|
1077
|
+
};
|
|
1078
|
+
declare const SelectDropdown: React__default.MemoExoticComponent<(props: DropdownProps) => react_jsx_runtime.JSX.Element>;
|
|
1079
|
+
type ImageItemProps<O extends ItemOption = ItemOption> = {
|
|
1080
|
+
item: O;
|
|
1081
|
+
previewed: boolean;
|
|
1082
|
+
onPreview: (item?: O) => void;
|
|
1083
|
+
className?: string;
|
|
1084
|
+
};
|
|
1085
|
+
declare const ImageItem: React__default.MemoExoticComponent<(props: ImageItemProps) => react_jsx_runtime.JSX.Element>;
|
|
1086
|
+
declare const getNumberValue: (value?: ValueType | null) => number | undefined;
|
|
1087
|
+
|
|
1088
|
+
interface EffectSkuRecognizeProps {
|
|
1089
|
+
categoryId?: number;
|
|
1090
|
+
brandId?: number;
|
|
1091
|
+
image: string;
|
|
1092
|
+
limitSize?: number;
|
|
1093
|
+
onChange?: (skuId: number, skuItem: ListSkuV2) => void;
|
|
1094
|
+
value?: number;
|
|
1095
|
+
defaultValue?: number;
|
|
1096
|
+
disabled?: boolean;
|
|
1097
|
+
size?: 'small' | 'default';
|
|
1098
|
+
skuType?: 'std' | 'tmp';
|
|
1099
|
+
}
|
|
1100
|
+
declare const EffectSkuRecognize: React__default.MemoExoticComponent<(props: EffectSkuRecognizeProps) => react_jsx_runtime.JSX.Element>;
|
|
1101
|
+
|
|
1102
|
+
type LabelDisplayMode = 'platformName' | 'platformName-enterpriseNo';
|
|
1103
|
+
|
|
1104
|
+
type Option = {
|
|
1105
|
+
label: string;
|
|
1106
|
+
value: string;
|
|
1107
|
+
originalName: string;
|
|
1108
|
+
data?: MerchantListBus;
|
|
1109
|
+
};
|
|
1110
|
+
type MerchantOptions = Option[];
|
|
1111
|
+
type Source = 'businessNo' | 'platformName' | 'phone';
|
|
1112
|
+
interface EffectMerchantSelectProps {
|
|
1113
|
+
className?: string;
|
|
1114
|
+
onChange?: (value?: string, name?: string) => void;
|
|
1115
|
+
value?: string;
|
|
1116
|
+
/** 搜索字段来源 */
|
|
1117
|
+
source?: Source;
|
|
1118
|
+
disabled?: boolean;
|
|
1119
|
+
/** 选项标签展示模式 */
|
|
1120
|
+
labelDisplayMode?: LabelDisplayMode;
|
|
1121
|
+
}
|
|
1122
|
+
/** 商户下拉款搜索查询 */
|
|
1123
|
+
declare const EffectMerchantSelect: FunctionComponent<EffectMerchantSelectProps>;
|
|
1124
|
+
|
|
1125
|
+
type ScopeSelectValueType = {
|
|
1126
|
+
categoryIds?: number[];
|
|
1127
|
+
brandId?: number;
|
|
1128
|
+
seriesId?: number;
|
|
1129
|
+
spuId?: number;
|
|
1130
|
+
skuId?: number;
|
|
1131
|
+
};
|
|
1132
|
+
declare enum ScopeLevelEnum {
|
|
1133
|
+
CATEGORY = 1,
|
|
1134
|
+
BRAND = 2,
|
|
1135
|
+
SERIES = 3,
|
|
1136
|
+
SPU = 4,
|
|
1137
|
+
SKU = 5
|
|
1138
|
+
}
|
|
1139
|
+
type ScopeSelectProps = {
|
|
1140
|
+
value?: ScopeSelectValueType;
|
|
1141
|
+
defaultValue?: ScopeSelectValueType;
|
|
1142
|
+
scopeLevel?: ScopeLevelEnum;
|
|
1143
|
+
requireLevel?: ScopeLevelEnum;
|
|
1144
|
+
categoryChangeOnSelect?: boolean;
|
|
1145
|
+
onChange?: (value?: ScopeSelectValueType) => void;
|
|
1146
|
+
};
|
|
1147
|
+
declare const EffectScopeSelect: React__default.MemoExoticComponent<(props: ScopeSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
1148
|
+
|
|
1149
|
+
type EffectStaffSelectProps = {
|
|
1150
|
+
className?: string;
|
|
1151
|
+
onChange?: (value?: number, name?: string) => void;
|
|
1152
|
+
deptId?: number;
|
|
1153
|
+
value?: number;
|
|
1154
|
+
defaultValue?: number;
|
|
1155
|
+
disabled?: boolean;
|
|
1156
|
+
placeholder?: string;
|
|
1157
|
+
style?: React__default.CSSProperties;
|
|
1158
|
+
};
|
|
1159
|
+
/**
|
|
1160
|
+
* 员工选择组件
|
|
1161
|
+
* - 传入部门 id:预加载该部门员工,仅前端过滤
|
|
1162
|
+
* - 不传部门 id:按关键字实时远程搜索员工
|
|
1163
|
+
*/
|
|
1164
|
+
declare const EffectStaffSelect: React__default.MemoExoticComponent<(props: EffectStaffSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
1165
|
+
|
|
1166
|
+
type Props$2 = {
|
|
1167
|
+
className?: string;
|
|
1168
|
+
onChange?: (value?: number, name?: string) => void;
|
|
1169
|
+
value?: number;
|
|
1170
|
+
defaultValue?: string;
|
|
1171
|
+
disabled?: boolean;
|
|
1172
|
+
warehouseId?: number;
|
|
1173
|
+
reservoirType?: string;
|
|
1174
|
+
};
|
|
1175
|
+
declare const EffectReservoirSelect: React__default.MemoExoticComponent<(props: Props$2) => react_jsx_runtime.JSX.Element>;
|
|
1176
|
+
|
|
1177
|
+
type Props$1 = {
|
|
1178
|
+
className?: string;
|
|
1179
|
+
onChange?: (value?: string, name?: string) => void;
|
|
1180
|
+
value?: string;
|
|
1181
|
+
defaultValue?: string;
|
|
1182
|
+
disabled?: boolean;
|
|
1183
|
+
warehouseId?: number;
|
|
1184
|
+
reservoirId?: number;
|
|
1185
|
+
valueType?: 'code' | 'id';
|
|
1186
|
+
};
|
|
1187
|
+
declare const EffectShelveSelect: React__default.MemoExoticComponent<(props: Props$1) => react_jsx_runtime.JSX.Element>;
|
|
1188
|
+
|
|
1189
|
+
/** 选择器选项类型 */
|
|
1190
|
+
type WarehouseOption = {
|
|
1191
|
+
/** 显示标签 */
|
|
1192
|
+
label: string;
|
|
1193
|
+
/** 选项值 */
|
|
1194
|
+
value: number;
|
|
1195
|
+
};
|
|
1196
|
+
/** 仓库选择器组件属性 */
|
|
1197
|
+
interface EffectWarehouseSelectProps {
|
|
1198
|
+
/** 自定义样式类名 */
|
|
1199
|
+
className?: string;
|
|
1200
|
+
/** 是否禁用 */
|
|
1201
|
+
disabled?: boolean;
|
|
1202
|
+
/** 当前选中值 */
|
|
1203
|
+
value?: string;
|
|
1204
|
+
/** 值变化回调函数 */
|
|
1205
|
+
onChange?: (value?: string, name?: string) => void;
|
|
1206
|
+
/** 仓库类型筛选,SELF_OWNED-自有仓 STORE-门店仓 */
|
|
1207
|
+
warehouseType?: string;
|
|
1208
|
+
/** 是否仅显示当前用户商户的仓库,默认为 true */
|
|
1209
|
+
currentMerchantOnly?: boolean;
|
|
1210
|
+
}
|
|
1211
|
+
/** 仓库选择器组件 */
|
|
1212
|
+
declare const EffectWarehouseSelect: FC<EffectWarehouseSelectProps>;
|
|
1213
|
+
|
|
1214
|
+
type SelectItem = {
|
|
1215
|
+
value: string;
|
|
1216
|
+
label: string;
|
|
1217
|
+
index: number;
|
|
1218
|
+
};
|
|
1219
|
+
type Props = {
|
|
1220
|
+
className?: string;
|
|
1221
|
+
onChange?: (value?: SelectItem[]) => void;
|
|
1222
|
+
defaultValue?: string[];
|
|
1223
|
+
disabled?: boolean;
|
|
1224
|
+
};
|
|
1225
|
+
declare const EffectAddressCascade: React__default.MemoExoticComponent<(props: Props) => react_jsx_runtime.JSX.Element>;
|
|
1226
|
+
|
|
1227
|
+
type SelectOptionItem = {
|
|
1228
|
+
value: string;
|
|
1229
|
+
label: string;
|
|
1230
|
+
customFields?: Object | null;
|
|
1231
|
+
};
|
|
1232
|
+
type LabelDic = Record<string, string>;
|
|
1233
|
+
interface EffectLabelSelectProps extends Omit<SelectProps$1, 'onChange'> {
|
|
1234
|
+
onChange?: (value?: string, selectedOptionItem?: SelectOptionItem) => void;
|
|
1235
|
+
defaultLabel?: string;
|
|
1236
|
+
labelDic?: LabelDic;
|
|
1237
|
+
value?: string;
|
|
1238
|
+
customLabelInValue?: boolean;
|
|
1239
|
+
onFetchData?: (params: any, config: any) => Promise<any>;
|
|
1240
|
+
onTransformData?: (params: Record<string, string>) => SelectOptionItem;
|
|
1241
|
+
fetchParams?: Object;
|
|
1242
|
+
optionsDisplayType?: 'labelAndValue';
|
|
1243
|
+
}
|
|
1244
|
+
declare const EffectLabelSelect: FunctionComponent<EffectLabelSelectProps>;
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
*
|
|
1248
|
+
* 返回类型 格式为:
|
|
1249
|
+
* 类型('value' | 'label') + ID(value) + 名称(label) + labelDicKey(映射labelDic的key)
|
|
1250
|
+
*
|
|
1251
|
+
* eg: label;123;哈哈;name
|
|
1252
|
+
* value;123;哈哈;name
|
|
1253
|
+
*
|
|
1254
|
+
* eg: label;111;哈哈;businessNo
|
|
1255
|
+
* value;111;哈哈;businessNo
|
|
1256
|
+
*
|
|
1257
|
+
* eg: label;13200001111;13200001111;phone
|
|
1258
|
+
* value;13200001111;13200001111;phone
|
|
1259
|
+
*/
|
|
1260
|
+
declare const getStrValue: (displayType: "label" | "value", value?: string, label?: string, labelDicKey?: string) => string | undefined;
|
|
1261
|
+
type ReturnType = 'label' | 'value' | 'labelDicKey' | 'labelAndValue';
|
|
1262
|
+
declare const getSelectValue: (str?: string | null | number, returnType?: ReturnType) => string | undefined;
|
|
1263
|
+
declare const getInitialValue: (label?: string, value?: string) => string;
|
|
1264
|
+
declare const getFirstValue: (str?: string) => string | undefined;
|
|
1265
|
+
declare const getSecondValue: (str?: string) => string | undefined;
|
|
40
1266
|
|
|
41
|
-
export { Loading, MultiWindow, MultiWindowContents, type MultiWindowContentsProps, type MultiWindowContentsRefType, type MultiWindowProps, type PagePathType, useMultiWindowContentsRef };
|
|
1267
|
+
export { type BrandOptions, type BrandValueType, CInput, type CInputProps, type CSearchProps, CTable, type CTableProps, type CTextAreaProps, CVideo, Clock, type ClockProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Countdown, type CountdownProps, Counter, type CounterProps, Currency, type CurrencyProps, type CurrencyUnit, type CustomTreeItem, type CustomTreeOptions, EffectAddressCascade, EffectBrandSelect, EffectBrandTransfer, type EffectBrandTransferProps, EffectCategoryCascade, EffectFileUpload, type EffectFileUploadRef, EffectLabelSelect, EffectMerchantSelect, EffectReservoirSelect, EffectScopeSelect, EffectSeriesSelect, EffectSeriesSelectV2, EffectShelveSelect, EffectSkuRecognize, type EffectSkuRecognizeProps, EffectSkuSelect, EffectSkuTable, type EffectSkuTableProps, EffectSpuSelect, EffectStaffSelect, EffectWarehouseSelect, EffectWithFilePanel, FileUpload, type IApiPayload, type IApiService, type IConfigContext, Iconfont, ImageItem, type ImageItemProps, type ItemOption, type LabelDic, Loading, type MerchantOptions, type ModifyFileData, MultiWindow, MultiWindowContents, type MultiWindowContentsProps, type MultiWindowContentsRefType, type MultiWindowProps, OSSImage, type OSSImageProps, type PagePathType, PrivacyField, QRCode, type QRCodePropsType, QRCodeStatus, RichTextEditor, type RichTextEditorProps, ScopeLevelEnum, type ScopeSelectProps, type ScopeSelectValueType, SearchForm, SearchFormContent, type SearchFormContentProps, type SearchFormProps, SearchList, type SearchListProps, SelectDropdown, type SelectItem, type SelectOptionItem, type SimpleFileData, type SseEventDataType, type TableDragEndEvent, type TransferPropValueType, type TransferValueType, type TreeCategory, type TreeSelectItem, type TreeSelectList, type TreeSingleValueType, type TreeValueType, type UploadResult, type UseRemoteUploadConfigType, type ValueType, type WarehouseOption, WithCVideoModal, WithModal, type WithModalProps, WithPanel, type WithPanelProps, commonDatePickerGetValueProps, commonDatePickerNormalize, commonDateRangePickerGetValueProps, commonDateRangePickerNormalize, commonStatusSelectOptions, commonYesOrNoSelectOptions, commonYesOrNoSelectOptionsMap, formatClock, formatDate, getCTable, getCommonSelectProps, getCommonTableProps, getFirstValue, getInitialValue, getNumberValue, getSecondValue, getSelectValue, getStrValue, isSingleTreeSelected, replaceRgbWithHex, saasApiService, transformOptionToSelectedList, transformSelectListToValues, transformSimpleFile2UploadFile, transformUploadFile2SimpleFile, transformValuesToSelectList, typedMemo, useMultiWindowContentsRef, useSearchFormStyle, useSseQrcode };
|