@teamias/rex-design 0.0.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/LICENSE +21 -0
- package/README.md +43 -0
- package/dist/components/action-buttons/action-buttons.d.ts +2 -0
- package/dist/components/action-buttons/action-buttons.js +182 -0
- package/dist/components/action-buttons/demo/index.d.ts +2 -0
- package/dist/components/action-buttons/demo/index.js +69 -0
- package/dist/components/action-buttons/index.d.ts +3 -0
- package/dist/components/action-buttons/index.js +3 -0
- package/dist/components/action-buttons/modules/handlerFilter.d.ts +2 -0
- package/dist/components/action-buttons/modules/handlerFilter.js +62 -0
- package/dist/components/action-buttons/types.d.ts +96 -0
- package/dist/components/action-buttons/types.js +3 -0
- package/dist/components/base-form/base-form.d.ts +3 -0
- package/dist/components/base-form/base-form.js +260 -0
- package/dist/components/base-form/demo/index.d.ts +4 -0
- package/dist/components/base-form/demo/index.js +515 -0
- package/dist/components/base-form/index.d.ts +4 -0
- package/dist/components/base-form/index.js +4 -0
- package/dist/components/base-form/locales/en-US.json +21 -0
- package/dist/components/base-form/locales/zh-CN.json +21 -0
- package/dist/components/base-form/locales.index.d.ts +42 -0
- package/dist/components/base-form/locales.index.js +4 -0
- package/dist/components/base-form/modules/dependencyUtils.d.ts +13 -0
- package/dist/components/base-form/modules/dependencyUtils.js +43 -0
- package/dist/components/base-form/modules/handlerData.d.ts +8 -0
- package/dist/components/base-form/modules/handlerData.js +59 -0
- package/dist/components/base-form/modules/renderComponentNode.d.ts +11 -0
- package/dist/components/base-form/modules/renderComponentNode.js +607 -0
- package/dist/components/base-form/modules/valuesToFields.d.ts +10 -0
- package/dist/components/base-form/modules/valuesToFields.js +18 -0
- package/dist/components/base-form/style/index.d.ts +3 -0
- package/dist/components/base-form/style/index.js +8 -0
- package/dist/components/base-form/types.d.ts +181 -0
- package/dist/components/base-form/types.js +10 -0
- package/dist/components/base-list-table/base-list-table.d.ts +33 -0
- package/dist/components/base-list-table/base-list-table.js +292 -0
- package/dist/components/base-list-table/demo/BasicBaseListTable.d.ts +2 -0
- package/dist/components/base-list-table/demo/BasicBaseListTable.js +1469 -0
- package/dist/components/base-list-table/demo/NoData.d.ts +2 -0
- package/dist/components/base-list-table/demo/NoData.js +55 -0
- package/dist/components/base-list-table/demo/TableMaxRowCount.d.ts +2 -0
- package/dist/components/base-list-table/demo/TableMaxRowCount.js +1696 -0
- package/dist/components/base-list-table/demo/VirtualDemo.d.ts +2 -0
- package/dist/components/base-list-table/demo/VirtualDemo.js +548 -0
- package/dist/components/base-list-table/index.d.ts +1 -0
- package/dist/components/base-list-table/index.js +1 -0
- package/dist/components/base-list-table/style/index.d.ts +5 -0
- package/dist/components/base-list-table/style/index.js +17 -0
- package/dist/components/base-table/base-table.d.ts +51 -0
- package/dist/components/base-table/base-table.js +291 -0
- package/dist/components/base-table/components/BaseTableRow.d.ts +1 -0
- package/dist/components/base-table/components/BaseTableRow.js +129 -0
- package/dist/components/base-table/demo/BaseTableAll.d.ts +2 -0
- package/dist/components/base-table/demo/BaseTableAll.js +66 -0
- package/dist/components/base-table/demo/BaseTableBasic.d.ts +2 -0
- package/dist/components/base-table/demo/BaseTableBasic.js +58 -0
- package/dist/components/base-table/demo/BaseTableIndex.d.ts +2 -0
- package/dist/components/base-table/demo/BaseTableIndex.js +57 -0
- package/dist/components/base-table/demo/BaseTableRowSelect.d.ts +2 -0
- package/dist/components/base-table/demo/BaseTableRowSelect.js +45 -0
- package/dist/components/base-table/demo/tableData.d.ts +332 -0
- package/dist/components/base-table/demo/tableData.js +293 -0
- package/dist/components/base-table/index.d.ts +1 -0
- package/dist/components/base-table/index.js +1 -0
- package/dist/components/base-table/style/index.d.ts +3 -0
- package/dist/components/base-table/style/index.js +9 -0
- package/dist/components/data-cell/data-cell.d.ts +3 -0
- package/dist/components/data-cell/data-cell.js +17 -0
- package/dist/components/data-cell/demo/index.d.ts +2 -0
- package/dist/components/data-cell/demo/index.js +332 -0
- package/dist/components/data-cell/index.d.ts +2 -0
- package/dist/components/data-cell/index.js +2 -0
- package/dist/components/data-cell/modules/cellItemMap.d.ts +3 -0
- package/dist/components/data-cell/modules/cellItemMap.js +374 -0
- package/dist/components/data-cell/style/index.d.ts +7 -0
- package/dist/components/data-cell/style/index.js +23 -0
- package/dist/components/data-cell/types.d.ts +192 -0
- package/dist/components/data-cell/types.js +1 -0
- package/dist/components/icons/assets/icon-park--arrow-up.svg +7 -0
- package/dist/components/icons/assets/index.d.ts +4 -0
- package/dist/components/icons/assets/index.js +9 -0
- package/dist/components/icons/assets/svg-spinners--blocks-shuffle-3.svg +21 -0
- package/dist/components/icons/demo/index.d.ts +2 -0
- package/dist/components/icons/demo/index.js +43 -0
- package/dist/components/icons/icons.d.ts +39 -0
- package/dist/components/icons/icons.js +251 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/index.js +1 -0
- package/dist/components/icons/style/index.d.ts +2 -0
- package/dist/components/icons/style/index.js +5 -0
- package/dist/components/media-viewer/demo/index.d.ts +2 -0
- package/dist/components/media-viewer/demo/index.js +23 -0
- package/dist/components/media-viewer/index.d.ts +1 -0
- package/dist/components/media-viewer/index.js +1 -0
- package/dist/components/media-viewer/media-viewer.d.ts +48 -0
- package/dist/components/media-viewer/media-viewer.js +119 -0
- package/dist/components/media-viewer/style/index.d.ts +6 -0
- package/dist/components/media-viewer/style/index.js +31 -0
- package/dist/hooks/request-fields-container/demo/index.d.ts +2 -0
- package/dist/hooks/request-fields-container/demo/index.js +36 -0
- package/dist/hooks/request-fields-container/index.d.ts +4 -0
- package/dist/hooks/request-fields-container/index.js +3 -0
- package/dist/hooks/request-fields-container/request-fields-container-context-provider.d.ts +22 -0
- package/dist/hooks/request-fields-container/request-fields-container-context-provider.js +134 -0
- package/dist/hooks/request-fields-container/request-fields-container-context.d.ts +39 -0
- package/dist/hooks/request-fields-container/request-fields-container-context.js +5 -0
- package/dist/hooks/request-fields-container/request-fields-container-hoc.d.ts +4 -0
- package/dist/hooks/request-fields-container/request-fields-container-hoc.js +31 -0
- package/dist/hooks/request-fields-container/use-request-fields-container.d.ts +22 -0
- package/dist/hooks/request-fields-container/use-request-fields-container.js +131 -0
- package/dist/hooks/rex-pro-config-provider/demo/index.d.ts +2 -0
- package/dist/hooks/rex-pro-config-provider/demo/index.js +61 -0
- package/dist/hooks/rex-pro-config-provider/index.d.ts +2 -0
- package/dist/hooks/rex-pro-config-provider/index.js +2 -0
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-context.d.ts +27 -0
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-context.js +33 -0
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.d.ts +6 -0
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.js +24 -0
- package/dist/hooks/rex-pro-config-provider/use-rex-pro-config-provider.d.ts +2 -0
- package/dist/hooks/rex-pro-config-provider/use-rex-pro-config-provider.js +11 -0
- package/dist/hooks/use-state-data/demo/index.d.ts +2 -0
- package/dist/hooks/use-state-data/demo/index.js +135 -0
- package/dist/hooks/use-state-data/index.d.ts +1 -0
- package/dist/hooks/use-state-data/index.js +1 -0
- package/dist/hooks/use-state-data/use-state-data.d.ts +11 -0
- package/dist/hooks/use-state-data/use-state-data.js +64 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/types/svg.d.ts +4 -0
- package/dist/utils/locales/en-US.json +13 -0
- package/dist/utils/locales/index.d.ts +26 -0
- package/dist/utils/locales/index.js +4 -0
- package/dist/utils/locales/zh-CN.json +13 -0
- package/package.json +90 -0
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseListTable } from "../base-list-table";
|
|
3
|
+
export default (function () {
|
|
4
|
+
return /*#__PURE__*/React.createElement(BaseListTable, {
|
|
5
|
+
defaultExpandAllCollapse: true,
|
|
6
|
+
rowSelection: {
|
|
7
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
8
|
+
return {
|
|
9
|
+
disabled: record.key === 'parent_1075'
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
scroll: function scroll(h) {
|
|
14
|
+
return {
|
|
15
|
+
y: h
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
virtual: true,
|
|
19
|
+
headerRender: function headerRender(originNode) {
|
|
20
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, originNode, /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
style: {
|
|
22
|
+
color: 'red'
|
|
23
|
+
}
|
|
24
|
+
}, "\u81EA\u5B9A\u4E49\u5185\u5BB9"));
|
|
25
|
+
},
|
|
26
|
+
titleRender: function titleRender(item, index, originNode) {
|
|
27
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, originNode.checkboxNode, originNode.dataNode, /*#__PURE__*/React.createElement("span", {
|
|
28
|
+
style: {
|
|
29
|
+
flex: 1,
|
|
30
|
+
textAlign: 'right',
|
|
31
|
+
color: 'red'
|
|
32
|
+
}
|
|
33
|
+
}, "\u81EA\u5B9A\u4E49\u5185\u5BB9"));
|
|
34
|
+
},
|
|
35
|
+
fieldsConfig: [{
|
|
36
|
+
"title": "编号/状态",
|
|
37
|
+
"dataIndex": "status_name",
|
|
38
|
+
"key": "status_name"
|
|
39
|
+
}, {
|
|
40
|
+
"title": "SPU/组合SKU",
|
|
41
|
+
"dataIndex": "goods_spu_info",
|
|
42
|
+
"key": "goods_spu_info"
|
|
43
|
+
}, {
|
|
44
|
+
"title": "图片",
|
|
45
|
+
"dataIndex": "goods_image",
|
|
46
|
+
"key": "goods_image",
|
|
47
|
+
"align": 'center'
|
|
48
|
+
}, {
|
|
49
|
+
"title": "SKU/属性",
|
|
50
|
+
"dataIndex": "goods_sku_info",
|
|
51
|
+
"key": "goods_sku_info"
|
|
52
|
+
}, {
|
|
53
|
+
"title": "计划员",
|
|
54
|
+
"dataIndex": "planuser",
|
|
55
|
+
"key": "planuser"
|
|
56
|
+
}, {
|
|
57
|
+
"title": "供应商",
|
|
58
|
+
"dataIndex": "factory",
|
|
59
|
+
"key": "factory"
|
|
60
|
+
}, {
|
|
61
|
+
"title": "ASIN",
|
|
62
|
+
"dataIndex": "asin",
|
|
63
|
+
"key": "asin"
|
|
64
|
+
}, {
|
|
65
|
+
"title": "销量",
|
|
66
|
+
"dataIndex": "goods_sales",
|
|
67
|
+
"key": "goods_sales"
|
|
68
|
+
}, {
|
|
69
|
+
"title": "DMS",
|
|
70
|
+
"dataIndex": "goods_dms",
|
|
71
|
+
"key": "goods_dms"
|
|
72
|
+
}, {
|
|
73
|
+
"title": "毛利率",
|
|
74
|
+
"dataIndex": "gross_margin",
|
|
75
|
+
"key": "gross_margin"
|
|
76
|
+
}, {
|
|
77
|
+
"title": "售后率",
|
|
78
|
+
"dataIndex": "goods_rma",
|
|
79
|
+
"key": "goods_rma"
|
|
80
|
+
}],
|
|
81
|
+
dataSource: new Array(5000).fill(0).map(function (_, index) {
|
|
82
|
+
return {
|
|
83
|
+
"key": "parent_1075".concat(index),
|
|
84
|
+
"id": [{
|
|
85
|
+
"type": "text",
|
|
86
|
+
"props": {
|
|
87
|
+
"value": "1075-".concat(index),
|
|
88
|
+
"width": 200
|
|
89
|
+
},
|
|
90
|
+
"extra": {
|
|
91
|
+
"colSpan": 28
|
|
92
|
+
}
|
|
93
|
+
}],
|
|
94
|
+
"store_name": [{
|
|
95
|
+
"type": "text",
|
|
96
|
+
"props": {
|
|
97
|
+
"label": "目的仓",
|
|
98
|
+
"value": "国内备货仓",
|
|
99
|
+
"width": 200
|
|
100
|
+
}
|
|
101
|
+
}],
|
|
102
|
+
"planuser": [{
|
|
103
|
+
"type": "text",
|
|
104
|
+
"props": {
|
|
105
|
+
"label": "计划员",
|
|
106
|
+
"value": "",
|
|
107
|
+
"width": 200
|
|
108
|
+
}
|
|
109
|
+
}],
|
|
110
|
+
"label": [{
|
|
111
|
+
"type": "tag",
|
|
112
|
+
"props": {
|
|
113
|
+
"value": "加工"
|
|
114
|
+
}
|
|
115
|
+
}],
|
|
116
|
+
children: [{
|
|
117
|
+
"key": "1075_1102".concat(index),
|
|
118
|
+
"id": 1075,
|
|
119
|
+
"detail_id": 1102,
|
|
120
|
+
"status_name": [{
|
|
121
|
+
"type": "text",
|
|
122
|
+
"props": {
|
|
123
|
+
"value": 1075
|
|
124
|
+
},
|
|
125
|
+
"extra": {
|
|
126
|
+
"rowSpan": 2
|
|
127
|
+
}
|
|
128
|
+
}, {
|
|
129
|
+
"type": "tag",
|
|
130
|
+
"props": {
|
|
131
|
+
"value": "待处理"
|
|
132
|
+
}
|
|
133
|
+
}],
|
|
134
|
+
"goods_spu_info": [{
|
|
135
|
+
"type": "text",
|
|
136
|
+
"props": {
|
|
137
|
+
"label": "SPU",
|
|
138
|
+
"value": {
|
|
139
|
+
"type": "link",
|
|
140
|
+
"props": {
|
|
141
|
+
"label": "CO576911",
|
|
142
|
+
"value": "/"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"extra": {
|
|
147
|
+
"rowSpan": 2
|
|
148
|
+
}
|
|
149
|
+
}, {
|
|
150
|
+
"type": "text",
|
|
151
|
+
"props": {
|
|
152
|
+
"label": "品名",
|
|
153
|
+
"value": "跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶"
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
"type": "text",
|
|
157
|
+
"props": {
|
|
158
|
+
"label": "买手",
|
|
159
|
+
"value": ""
|
|
160
|
+
}
|
|
161
|
+
}],
|
|
162
|
+
"store_name": [{
|
|
163
|
+
"type": "text",
|
|
164
|
+
"props": {
|
|
165
|
+
"value": "国内备货仓"
|
|
166
|
+
}
|
|
167
|
+
}],
|
|
168
|
+
"goods_image": [{
|
|
169
|
+
"type": "img",
|
|
170
|
+
"props": {
|
|
171
|
+
"value": "http://image.spocoo.com/881a5f295d399a1bfab9cd9a03173801.jpg"
|
|
172
|
+
}
|
|
173
|
+
}],
|
|
174
|
+
"goods_sku_info": [{
|
|
175
|
+
"type": "link",
|
|
176
|
+
"props": {
|
|
177
|
+
"label": "CO576911_01",
|
|
178
|
+
"value": "/"
|
|
179
|
+
}
|
|
180
|
+
}, {
|
|
181
|
+
"type": "text",
|
|
182
|
+
"props": {
|
|
183
|
+
"value": "跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶 黑色"
|
|
184
|
+
}
|
|
185
|
+
}, {
|
|
186
|
+
"type": "tag",
|
|
187
|
+
"props": {
|
|
188
|
+
"value": "加",
|
|
189
|
+
"color": "red"
|
|
190
|
+
}
|
|
191
|
+
}],
|
|
192
|
+
"planuser": [{
|
|
193
|
+
"type": "text",
|
|
194
|
+
"props": {
|
|
195
|
+
"value": ""
|
|
196
|
+
}
|
|
197
|
+
}],
|
|
198
|
+
"factory": [{
|
|
199
|
+
"type": "link",
|
|
200
|
+
"props": {
|
|
201
|
+
"label": "CO576911_01",
|
|
202
|
+
"value": "/"
|
|
203
|
+
}
|
|
204
|
+
}],
|
|
205
|
+
"asin": [{
|
|
206
|
+
"type": "text",
|
|
207
|
+
"props": {
|
|
208
|
+
"value": "0 / 0"
|
|
209
|
+
}
|
|
210
|
+
}],
|
|
211
|
+
"goods_sales": [{
|
|
212
|
+
"type": "text",
|
|
213
|
+
"props": {
|
|
214
|
+
"value": "0 / 0 / 0 / / "
|
|
215
|
+
}
|
|
216
|
+
}],
|
|
217
|
+
"goods_dms": [{
|
|
218
|
+
"type": "text",
|
|
219
|
+
"props": {
|
|
220
|
+
"value": "0 / 0"
|
|
221
|
+
}
|
|
222
|
+
}],
|
|
223
|
+
"gross_margin": [{
|
|
224
|
+
"type": "text",
|
|
225
|
+
"props": {
|
|
226
|
+
"value": "0 / 0 / 0 / 0 / 0"
|
|
227
|
+
}
|
|
228
|
+
}],
|
|
229
|
+
"goods_rma": [{
|
|
230
|
+
"type": "text",
|
|
231
|
+
"props": {
|
|
232
|
+
"value": "0 / 0 / 0 / 0 / 0"
|
|
233
|
+
}
|
|
234
|
+
}],
|
|
235
|
+
"goods_stock": [{
|
|
236
|
+
"type": "text",
|
|
237
|
+
"props": {
|
|
238
|
+
"value": 0
|
|
239
|
+
}
|
|
240
|
+
}],
|
|
241
|
+
"usable_stock": [{
|
|
242
|
+
"type": "text",
|
|
243
|
+
"props": {
|
|
244
|
+
"value": 0
|
|
245
|
+
}
|
|
246
|
+
}],
|
|
247
|
+
"having_stock": [{
|
|
248
|
+
"type": "text",
|
|
249
|
+
"props": {
|
|
250
|
+
"value": 0
|
|
251
|
+
}
|
|
252
|
+
}],
|
|
253
|
+
"unsellable_stock": [{
|
|
254
|
+
"type": "text",
|
|
255
|
+
"props": {
|
|
256
|
+
"value": 0
|
|
257
|
+
}
|
|
258
|
+
}],
|
|
259
|
+
"plan_quantity": [{
|
|
260
|
+
"type": "text",
|
|
261
|
+
"props": {
|
|
262
|
+
"value": 0
|
|
263
|
+
}
|
|
264
|
+
}],
|
|
265
|
+
"process_ing_quantity": [{
|
|
266
|
+
"type": "text",
|
|
267
|
+
"props": {
|
|
268
|
+
"value": 0
|
|
269
|
+
}
|
|
270
|
+
}],
|
|
271
|
+
"ship_wait_quantity": [{
|
|
272
|
+
"type": "text",
|
|
273
|
+
"props": {
|
|
274
|
+
"value": 0
|
|
275
|
+
}
|
|
276
|
+
}],
|
|
277
|
+
"shiping_num": [{
|
|
278
|
+
"type": "text",
|
|
279
|
+
"props": {
|
|
280
|
+
"value": 0
|
|
281
|
+
}
|
|
282
|
+
}],
|
|
283
|
+
"overseas_stock": [{
|
|
284
|
+
"type": "text",
|
|
285
|
+
"props": {
|
|
286
|
+
"value": 0
|
|
287
|
+
}
|
|
288
|
+
}],
|
|
289
|
+
"shiped_error_quantity": [{
|
|
290
|
+
"type": "text",
|
|
291
|
+
"props": {
|
|
292
|
+
"value": 0
|
|
293
|
+
}
|
|
294
|
+
}],
|
|
295
|
+
"time_info": [{
|
|
296
|
+
"type": "text",
|
|
297
|
+
"props": {
|
|
298
|
+
"value": "1970-01-01 08:00:00(黄盛)"
|
|
299
|
+
}
|
|
300
|
+
}, {
|
|
301
|
+
"type": "text",
|
|
302
|
+
"props": {
|
|
303
|
+
"value": "2025-03-12 15:54:26(黄盛)"
|
|
304
|
+
}
|
|
305
|
+
}],
|
|
306
|
+
"p_remark": [{
|
|
307
|
+
"type": "text",
|
|
308
|
+
"props": {
|
|
309
|
+
"value": ""
|
|
310
|
+
}
|
|
311
|
+
}],
|
|
312
|
+
"quantity": [{
|
|
313
|
+
"type": "text",
|
|
314
|
+
"props": {
|
|
315
|
+
"value": 0
|
|
316
|
+
}
|
|
317
|
+
}],
|
|
318
|
+
"quantity_modify": [{
|
|
319
|
+
"type": "text",
|
|
320
|
+
"props": {
|
|
321
|
+
"value": 103
|
|
322
|
+
}
|
|
323
|
+
}],
|
|
324
|
+
"bom_data": [{
|
|
325
|
+
"type": "text",
|
|
326
|
+
"props": {
|
|
327
|
+
"value": "0 / 0"
|
|
328
|
+
}
|
|
329
|
+
}]
|
|
330
|
+
}, {
|
|
331
|
+
"key": "1075_1103".concat(index),
|
|
332
|
+
"id": 1075,
|
|
333
|
+
"detail_id": 1103,
|
|
334
|
+
"status_name": [{
|
|
335
|
+
"type": "text",
|
|
336
|
+
"props": {
|
|
337
|
+
"value": ""
|
|
338
|
+
},
|
|
339
|
+
"extra": {
|
|
340
|
+
"rowSpan": -1
|
|
341
|
+
}
|
|
342
|
+
}, {
|
|
343
|
+
"type": "tag",
|
|
344
|
+
"props": {
|
|
345
|
+
"value": ""
|
|
346
|
+
}
|
|
347
|
+
}],
|
|
348
|
+
"goods_spu_info": [{
|
|
349
|
+
"type": "text",
|
|
350
|
+
"props": {
|
|
351
|
+
"label": "SPU",
|
|
352
|
+
"value": {
|
|
353
|
+
"type": "link",
|
|
354
|
+
"props": {
|
|
355
|
+
"label": "",
|
|
356
|
+
"value": "/"
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"extra": {
|
|
361
|
+
"rowSpan": -1
|
|
362
|
+
}
|
|
363
|
+
}, {
|
|
364
|
+
"type": "text",
|
|
365
|
+
"props": {
|
|
366
|
+
"label": "品名",
|
|
367
|
+
"value": ""
|
|
368
|
+
}
|
|
369
|
+
}, {
|
|
370
|
+
"type": "text",
|
|
371
|
+
"props": {
|
|
372
|
+
"label": "买手",
|
|
373
|
+
"value": ""
|
|
374
|
+
}
|
|
375
|
+
}],
|
|
376
|
+
"store_name": [{
|
|
377
|
+
"type": "text",
|
|
378
|
+
"props": {
|
|
379
|
+
"value": "国内备货仓"
|
|
380
|
+
}
|
|
381
|
+
}],
|
|
382
|
+
"goods_image": [{
|
|
383
|
+
"type": "img",
|
|
384
|
+
"props": {
|
|
385
|
+
"value": "http://image.spocoo.com/ac88db91d513da3256a6e18dd60c11a8.jpg"
|
|
386
|
+
}
|
|
387
|
+
}],
|
|
388
|
+
"goods_sku_info": [{
|
|
389
|
+
"type": "link",
|
|
390
|
+
"props": {
|
|
391
|
+
"label": "CO576911_02",
|
|
392
|
+
"value": "/"
|
|
393
|
+
}
|
|
394
|
+
}, {
|
|
395
|
+
"type": "text",
|
|
396
|
+
"props": {
|
|
397
|
+
"value": "跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶 粉色"
|
|
398
|
+
}
|
|
399
|
+
}, {
|
|
400
|
+
"type": "tag",
|
|
401
|
+
"props": {
|
|
402
|
+
"value": "加",
|
|
403
|
+
"color": "red"
|
|
404
|
+
}
|
|
405
|
+
}],
|
|
406
|
+
"planuser": [{
|
|
407
|
+
"type": "text",
|
|
408
|
+
"props": {
|
|
409
|
+
"value": ""
|
|
410
|
+
}
|
|
411
|
+
}],
|
|
412
|
+
"factory": [{
|
|
413
|
+
"type": "link",
|
|
414
|
+
"props": {
|
|
415
|
+
"label": "CO576911_02",
|
|
416
|
+
"value": "/"
|
|
417
|
+
}
|
|
418
|
+
}],
|
|
419
|
+
"asin": [{
|
|
420
|
+
"type": "text",
|
|
421
|
+
"props": {
|
|
422
|
+
"value": "0 / 0"
|
|
423
|
+
}
|
|
424
|
+
}],
|
|
425
|
+
"goods_sales": [{
|
|
426
|
+
"type": "text",
|
|
427
|
+
"props": {
|
|
428
|
+
"value": "0 / 0 / 0 / / "
|
|
429
|
+
}
|
|
430
|
+
}],
|
|
431
|
+
"goods_dms": [{
|
|
432
|
+
"type": "text",
|
|
433
|
+
"props": {
|
|
434
|
+
"value": "0 / 0"
|
|
435
|
+
}
|
|
436
|
+
}],
|
|
437
|
+
"gross_margin": [{
|
|
438
|
+
"type": "text",
|
|
439
|
+
"props": {
|
|
440
|
+
"value": "0 / 0 / 0 / 0 / 0"
|
|
441
|
+
}
|
|
442
|
+
}],
|
|
443
|
+
"goods_rma": [{
|
|
444
|
+
"type": "text",
|
|
445
|
+
"props": {
|
|
446
|
+
"value": "0 / 0 / 0 / 0 / 0"
|
|
447
|
+
}
|
|
448
|
+
}],
|
|
449
|
+
"goods_stock": [{
|
|
450
|
+
"type": "text",
|
|
451
|
+
"props": {
|
|
452
|
+
"value": 0
|
|
453
|
+
}
|
|
454
|
+
}],
|
|
455
|
+
"usable_stock": [{
|
|
456
|
+
"type": "text",
|
|
457
|
+
"props": {
|
|
458
|
+
"value": 0
|
|
459
|
+
}
|
|
460
|
+
}],
|
|
461
|
+
"having_stock": [{
|
|
462
|
+
"type": "text",
|
|
463
|
+
"props": {
|
|
464
|
+
"value": 0
|
|
465
|
+
}
|
|
466
|
+
}],
|
|
467
|
+
"unsellable_stock": [{
|
|
468
|
+
"type": "text",
|
|
469
|
+
"props": {
|
|
470
|
+
"value": 0
|
|
471
|
+
}
|
|
472
|
+
}],
|
|
473
|
+
"plan_quantity": [{
|
|
474
|
+
"type": "text",
|
|
475
|
+
"props": {
|
|
476
|
+
"value": 0
|
|
477
|
+
}
|
|
478
|
+
}],
|
|
479
|
+
"process_ing_quantity": [{
|
|
480
|
+
"type": "text",
|
|
481
|
+
"props": {
|
|
482
|
+
"value": 0
|
|
483
|
+
}
|
|
484
|
+
}],
|
|
485
|
+
"ship_wait_quantity": [{
|
|
486
|
+
"type": "text",
|
|
487
|
+
"props": {
|
|
488
|
+
"value": 0
|
|
489
|
+
}
|
|
490
|
+
}],
|
|
491
|
+
"shiping_num": [{
|
|
492
|
+
"type": "text",
|
|
493
|
+
"props": {
|
|
494
|
+
"value": 0
|
|
495
|
+
}
|
|
496
|
+
}],
|
|
497
|
+
"overseas_stock": [{
|
|
498
|
+
"type": "text",
|
|
499
|
+
"props": {
|
|
500
|
+
"value": 0
|
|
501
|
+
}
|
|
502
|
+
}],
|
|
503
|
+
"shiped_error_quantity": [{
|
|
504
|
+
"type": "text",
|
|
505
|
+
"props": {
|
|
506
|
+
"value": 0
|
|
507
|
+
}
|
|
508
|
+
}],
|
|
509
|
+
"time_info": [{
|
|
510
|
+
"type": "text",
|
|
511
|
+
"props": {
|
|
512
|
+
"value": "1970-01-01 08:00:00(黄盛)"
|
|
513
|
+
}
|
|
514
|
+
}, {
|
|
515
|
+
"type": "text",
|
|
516
|
+
"props": {
|
|
517
|
+
"value": "2025-03-12 15:54:26(黄盛)"
|
|
518
|
+
}
|
|
519
|
+
}],
|
|
520
|
+
"p_remark": [{
|
|
521
|
+
"type": "text",
|
|
522
|
+
"props": {
|
|
523
|
+
"value": ""
|
|
524
|
+
}
|
|
525
|
+
}],
|
|
526
|
+
"quantity": [{
|
|
527
|
+
"type": "text",
|
|
528
|
+
"props": {
|
|
529
|
+
"value": 0
|
|
530
|
+
}
|
|
531
|
+
}],
|
|
532
|
+
"quantity_modify": [{
|
|
533
|
+
"type": "text",
|
|
534
|
+
"props": {
|
|
535
|
+
"value": 102
|
|
536
|
+
}
|
|
537
|
+
}],
|
|
538
|
+
"bom_data": [{
|
|
539
|
+
"type": "text",
|
|
540
|
+
"props": {
|
|
541
|
+
"value": "0 / 0"
|
|
542
|
+
}
|
|
543
|
+
}]
|
|
544
|
+
}]
|
|
545
|
+
};
|
|
546
|
+
})
|
|
547
|
+
});
|
|
548
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './base-list-table';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./base-list-table";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const TableTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const TableMoreData: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export var Wrapper = styled.div.withConfig({
|
|
3
|
+
displayName: "Wrapper",
|
|
4
|
+
componentId: "rex-design-aaf4__sc-yd1xjd-0"
|
|
5
|
+
})(["&.base-list-table-table-box{padding-inline:12px;.ant-list-item{border:none;padding-inline:0;display:block;}}"]);
|
|
6
|
+
export var Header = styled.div.withConfig({
|
|
7
|
+
displayName: "Header",
|
|
8
|
+
componentId: "rex-design-aaf4__sc-yd1xjd-1"
|
|
9
|
+
})(["&.base-list-table-table-header{display:flex;gap:10px;flex-wrap:wrap;}"]);
|
|
10
|
+
export var TableTitle = styled.div.withConfig({
|
|
11
|
+
displayName: "TableTitle",
|
|
12
|
+
componentId: "rex-design-aaf4__sc-yd1xjd-2"
|
|
13
|
+
})(["&.base-list-table-table-title{display:inline-flex;gap:20px;flex-wrap:wrap;width:100%;.ant-checkbox-wrapper{height:100%;}.data-cell-row-text-value{width:initial;}}"]);
|
|
14
|
+
export var TableMoreData = styled.div.withConfig({
|
|
15
|
+
displayName: "TableMoreData",
|
|
16
|
+
componentId: "rex-design-aaf4__sc-yd1xjd-3"
|
|
17
|
+
})(["&.base-list-table-more-data{display:flex;justify-content:center;margin-top:4px;}"]);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { GetProps, Table } from "antd";
|
|
2
|
+
import { IDataCellItem, TGroupV2 } from "../data-cell/types";
|
|
3
|
+
export declare const BaseTable: <T extends object = object>({ useDataCellRender, fields: outFields, fieldsConfig, fieldProps: outFieldProps, requestFields, requestFieldsUrl, requestFieldsParams, fieldPropsFn, indexColumn, extraColumns, onDataCellClick, onDataCellClickV2, scroll, rootClassName, customEmptyText, ...otherProps }: IBaseTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
/** 组件props */
|
|
5
|
+
export interface IBaseTableProps<T extends object = object> extends Omit<TRawTableProps<T>, 'size' | 'bordered' | 'tableLayout' | 'scroll'> {
|
|
6
|
+
/** @deprecated 使用 fieldsConfig */
|
|
7
|
+
fields?: TBaseTableColumns<T>[];
|
|
8
|
+
/**
|
|
9
|
+
* 静态配置(通过这个组合columns, 可不配置直接使用原 columns)
|
|
10
|
+
*/
|
|
11
|
+
fieldsConfig?: TBaseTableColumns<T>[];
|
|
12
|
+
/** 通过这个组合columns, 可不配置直接使用原 columns */
|
|
13
|
+
fieldProps?: Record<string, TBaseTableColumns<T>>;
|
|
14
|
+
/** 接口方式获取配置数据,优先级高 */
|
|
15
|
+
requestFields?: () => Promise<TBaseTableColumns<T>[]>;
|
|
16
|
+
/** 配置数据, 配置url的时候,通过注入请求器的方式获取 */
|
|
17
|
+
requestFieldsUrl?: string;
|
|
18
|
+
/** 配套 */
|
|
19
|
+
requestFieldsParams?: Record<string, unknown>;
|
|
20
|
+
/** 映射,优先级高 */
|
|
21
|
+
fieldPropsFn?: () => Record<string, TBaseTableColumns<T>>;
|
|
22
|
+
/** 在配置数据的基础上,扩展一些手写列 */
|
|
23
|
+
extraColumns?: TBaseTableColumns<T>[];
|
|
24
|
+
/** 索引列 */
|
|
25
|
+
indexColumn?: TBaseTableColumns<T>;
|
|
26
|
+
/**
|
|
27
|
+
* @desc 使用 DataCell 组件渲染单元格, 需要注意数据结构
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
useDataCellRender?: boolean;
|
|
31
|
+
/** dataCell组件中的点击回调 */
|
|
32
|
+
onDataCellClick?: (item: IDataCellItem, dataIndex: string, record: T, index: number) => void;
|
|
33
|
+
onDataCellClickV2?: (data: {
|
|
34
|
+
item: IDataCellItem;
|
|
35
|
+
subItem?: Exclude<TGroupV2['props'], undefined>['items'][number];
|
|
36
|
+
dataIndex: string;
|
|
37
|
+
record: T;
|
|
38
|
+
index: number;
|
|
39
|
+
}) => void;
|
|
40
|
+
/** 滚动 */
|
|
41
|
+
scroll?: TRawTableProps<T>['scroll'] | ((height?: number) => TRawTableProps<T>['scroll']);
|
|
42
|
+
/** 自定义空数据文案 */
|
|
43
|
+
customEmptyText?: string;
|
|
44
|
+
}
|
|
45
|
+
export type TRawTableProps<T> = GetProps<typeof Table<T>>;
|
|
46
|
+
export type TBaseTableColumns<T> = Required<TRawTableProps<T>>['columns'][number] & {
|
|
47
|
+
/** 控制隐藏 */
|
|
48
|
+
hidden?: boolean;
|
|
49
|
+
/** 权限key */
|
|
50
|
+
permissionKey?: string;
|
|
51
|
+
};
|