@teamias/rex-pro 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.
Files changed (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -0
  3. package/dist/components/card-basic-info/card-basic-info.d.ts +24 -0
  4. package/dist/components/card-basic-info/card-basic-info.js +62 -0
  5. package/dist/components/card-basic-info/demo/BasicCardBasicInfo.d.ts +2 -0
  6. package/dist/components/card-basic-info/demo/BasicCardBasicInfo.js +11 -0
  7. package/dist/components/card-basic-info/demo/LinkContentType.d.ts +2 -0
  8. package/dist/components/card-basic-info/demo/LinkContentType.js +26 -0
  9. package/dist/components/card-basic-info/demo/TableUsage.d.ts +2 -0
  10. package/dist/components/card-basic-info/demo/TableUsage.js +44 -0
  11. package/dist/components/card-basic-info/demo/TagContentType.d.ts +2 -0
  12. package/dist/components/card-basic-info/demo/TagContentType.js +16 -0
  13. package/dist/components/card-basic-info/demo/TextAndTagContentType.d.ts +2 -0
  14. package/dist/components/card-basic-info/demo/TextAndTagContentType.js +23 -0
  15. package/dist/components/card-basic-info/demo/TextContentType.d.ts +2 -0
  16. package/dist/components/card-basic-info/demo/TextContentType.js +17 -0
  17. package/dist/components/card-basic-info/index.d.ts +2 -0
  18. package/dist/components/card-basic-info/index.js +1 -0
  19. package/dist/components/card-basic-info/style/index.d.ts +5 -0
  20. package/dist/components/card-basic-info/style/index.js +19 -0
  21. package/dist/components/filter-form/demo/AverageFilterForm.d.ts +2 -0
  22. package/dist/components/filter-form/demo/AverageFilterForm.js +146 -0
  23. package/dist/components/filter-form/demo/BasicFilterForm.d.ts +2 -0
  24. package/dist/components/filter-form/demo/BasicFilterForm.js +319 -0
  25. package/dist/components/filter-form/filter-form.d.ts +62 -0
  26. package/dist/components/filter-form/filter-form.js +241 -0
  27. package/dist/components/filter-form/index.d.ts +1 -0
  28. package/dist/components/filter-form/index.js +2 -0
  29. package/dist/components/filter-form/style/index.d.ts +3 -0
  30. package/dist/components/filter-form/style/index.js +3 -0
  31. package/dist/components/index.d.ts +4 -0
  32. package/dist/components/index.js +5 -0
  33. package/dist/components/rex-pro-form/demo/BasicRexProForm.d.ts +2 -0
  34. package/dist/components/rex-pro-form/demo/BasicRexProForm.js +209 -0
  35. package/dist/components/rex-pro-form/index.d.ts +1 -0
  36. package/dist/components/rex-pro-form/index.js +1 -0
  37. package/dist/components/rex-pro-form/rex-pro-form.d.ts +35 -0
  38. package/dist/components/rex-pro-form/rex-pro-form.js +100 -0
  39. package/dist/components/rex-pro-form/style/index.d.ts +2 -0
  40. package/dist/components/rex-pro-form/style/index.js +2 -0
  41. package/dist/components/rex-pro-table/components/ActionButtons.d.ts +2 -0
  42. package/dist/components/rex-pro-table/components/ActionButtons.js +306 -0
  43. package/dist/components/rex-pro-table/components/drawer-table/InlineTable.d.ts +4 -0
  44. package/dist/components/rex-pro-table/components/drawer-table/InlineTable.js +89 -0
  45. package/dist/components/rex-pro-table/components/drawer-table/index.d.ts +2 -0
  46. package/dist/components/rex-pro-table/components/drawer-table/index.js +67 -0
  47. package/dist/components/rex-pro-table/components/modal-form/InlineForm.d.ts +8 -0
  48. package/dist/components/rex-pro-table/components/modal-form/InlineForm.js +143 -0
  49. package/dist/components/rex-pro-table/components/modal-form/index.d.ts +2 -0
  50. package/dist/components/rex-pro-table/components/modal-form/index.js +77 -0
  51. package/dist/components/rex-pro-table/demo/BasicRexProListTable.d.ts +2 -0
  52. package/dist/components/rex-pro-table/demo/BasicRexProListTable.js +1076 -0
  53. package/dist/components/rex-pro-table/demo/BasicRexProTable.d.ts +2 -0
  54. package/dist/components/rex-pro-table/demo/BasicRexProTable.js +1104 -0
  55. package/dist/components/rex-pro-table/index.d.ts +2 -0
  56. package/dist/components/rex-pro-table/index.js +1 -0
  57. package/dist/components/rex-pro-table/rex-pro-table.d.ts +4 -0
  58. package/dist/components/rex-pro-table/rex-pro-table.js +416 -0
  59. package/dist/components/rex-pro-table/style/index.d.ts +10 -0
  60. package/dist/components/rex-pro-table/style/index.js +23 -0
  61. package/dist/components/rex-pro-table/types.d.ts +221 -0
  62. package/dist/components/rex-pro-table/types.js +1 -0
  63. package/dist/index.d.ts +1 -0
  64. package/dist/index.js +1 -0
  65. package/dist/locales/en-US.json +28 -0
  66. package/dist/locales/zh-CN.json +28 -0
  67. package/dist/types/svg.d.ts +4 -0
  68. package/package.json +97 -0
@@ -0,0 +1,1076 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ import { RequestFieldsContainer, RexProConfigProvider } from '@teamias/rex-design';
6
+ import { RexProTable } from "../rex-pro-table";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ var tableData = {
9
+ items: new Array(5000).fill(0).map(function (_, index) {
10
+ return {
11
+ key: "parent_1075".concat(index),
12
+ id: [{
13
+ type: 'text',
14
+ props: {
15
+ value: "1075-".concat(index),
16
+ width: 200
17
+ },
18
+ extra: {
19
+ colSpan: 28
20
+ }
21
+ }],
22
+ store_name: [{
23
+ type: 'text',
24
+ props: {
25
+ label: '目的仓',
26
+ value: '国内备货仓',
27
+ width: 200
28
+ }
29
+ }],
30
+ planuser: [{
31
+ type: 'text',
32
+ props: {
33
+ label: '计划员',
34
+ value: '',
35
+ width: 200
36
+ }
37
+ }],
38
+ label: [{
39
+ type: 'tag',
40
+ props: {
41
+ value: '加工'
42
+ }
43
+ }],
44
+ children: [{
45
+ key: "1075_1102".concat(index),
46
+ id: 1075,
47
+ detail_id: 1102,
48
+ status_name: [{
49
+ type: 'text',
50
+ props: {
51
+ value: 1075
52
+ },
53
+ extra: {
54
+ rowSpan: 2
55
+ }
56
+ }, {
57
+ type: 'tag',
58
+ props: {
59
+ value: '待处理'
60
+ }
61
+ }],
62
+ goods_spu_info: [{
63
+ type: 'text',
64
+ props: {
65
+ label: 'SPU',
66
+ value: {
67
+ type: 'link',
68
+ props: {
69
+ label: 'CO576911',
70
+ value: '/'
71
+ }
72
+ }
73
+ },
74
+ extra: {
75
+ rowSpan: 2
76
+ }
77
+ }, {
78
+ type: 'text',
79
+ props: {
80
+ label: '品名',
81
+ value: '跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶'
82
+ }
83
+ }, {
84
+ type: 'text',
85
+ props: {
86
+ label: '买手',
87
+ value: ''
88
+ }
89
+ }],
90
+ store_name: [{
91
+ type: 'text',
92
+ props: {
93
+ value: '国内备货仓'
94
+ }
95
+ }],
96
+ goods_image: [{
97
+ type: 'img',
98
+ props: {
99
+ value: 'http://image.spocoo.com/881a5f295d399a1bfab9cd9a03173801.jpg'
100
+ }
101
+ }],
102
+ goods_sku_info: [{
103
+ type: 'link',
104
+ props: {
105
+ label: 'CO576911_01',
106
+ value: '/'
107
+ }
108
+ }, {
109
+ type: 'text',
110
+ props: {
111
+ value: '跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶 黑色'
112
+ }
113
+ }, {
114
+ type: 'tag',
115
+ props: {
116
+ value: '加',
117
+ color: 'red'
118
+ }
119
+ }],
120
+ planuser: [{
121
+ type: 'text',
122
+ props: {
123
+ value: ''
124
+ }
125
+ }],
126
+ factory: [{
127
+ type: 'link',
128
+ props: {
129
+ label: 'CO576911_01',
130
+ value: '/'
131
+ }
132
+ }],
133
+ asin: [{
134
+ type: 'text',
135
+ props: {
136
+ value: '0 / 0'
137
+ }
138
+ }],
139
+ goods_sales: [{
140
+ type: 'text',
141
+ props: {
142
+ value: '0 / 0 / 0 / / '
143
+ }
144
+ }],
145
+ goods_dms: [{
146
+ type: 'text',
147
+ props: {
148
+ value: '0 / 0'
149
+ }
150
+ }],
151
+ gross_margin: [{
152
+ type: 'text',
153
+ props: {
154
+ value: '0 / 0 / 0 / 0 / 0'
155
+ }
156
+ }],
157
+ goods_rma: [{
158
+ type: 'text',
159
+ props: {
160
+ value: '0 / 0 / 0 / 0 / 0'
161
+ }
162
+ }],
163
+ goods_stock: [{
164
+ type: 'text',
165
+ props: {
166
+ value: 0
167
+ }
168
+ }],
169
+ usable_stock: [{
170
+ type: 'text',
171
+ props: {
172
+ value: 0
173
+ }
174
+ }],
175
+ having_stock: [{
176
+ type: 'text',
177
+ props: {
178
+ value: 0
179
+ }
180
+ }],
181
+ unsellable_stock: [{
182
+ type: 'text',
183
+ props: {
184
+ value: 0
185
+ }
186
+ }],
187
+ plan_quantity: [{
188
+ type: 'text',
189
+ props: {
190
+ value: 0
191
+ }
192
+ }],
193
+ process_ing_quantity: [{
194
+ type: 'text',
195
+ props: {
196
+ value: 0
197
+ }
198
+ }],
199
+ ship_wait_quantity: [{
200
+ type: 'text',
201
+ props: {
202
+ value: 0
203
+ }
204
+ }],
205
+ shiping_num: [{
206
+ type: 'text',
207
+ props: {
208
+ value: 0
209
+ }
210
+ }],
211
+ overseas_stock: [{
212
+ type: 'text',
213
+ props: {
214
+ value: 0
215
+ }
216
+ }],
217
+ shiped_error_quantity: [{
218
+ type: 'text',
219
+ props: {
220
+ value: 0
221
+ }
222
+ }],
223
+ time_info: [{
224
+ type: 'text',
225
+ props: {
226
+ value: '1970-01-01 08:00:00(黄盛)'
227
+ }
228
+ }, {
229
+ type: 'text',
230
+ props: {
231
+ value: '2025-03-12 15:54:26(黄盛)'
232
+ }
233
+ }],
234
+ p_remark: [{
235
+ type: 'text',
236
+ props: {
237
+ value: ''
238
+ }
239
+ }],
240
+ quantity: [{
241
+ type: 'text',
242
+ props: {
243
+ value: 0
244
+ }
245
+ }],
246
+ quantity_modify: [{
247
+ type: 'text',
248
+ props: {
249
+ value: 103
250
+ }
251
+ }],
252
+ bom_data: [{
253
+ type: 'text',
254
+ props: {
255
+ value: '0 / 0'
256
+ }
257
+ }]
258
+ }, {
259
+ key: "1075_1103".concat(index),
260
+ id: 1075,
261
+ detail_id: 1103,
262
+ status_name: [{
263
+ type: 'text',
264
+ props: {
265
+ value: ''
266
+ },
267
+ extra: {
268
+ rowSpan: -1
269
+ }
270
+ }, {
271
+ type: 'tag',
272
+ props: {
273
+ value: ''
274
+ }
275
+ }],
276
+ goods_spu_info: [{
277
+ type: 'text',
278
+ props: {
279
+ label: 'SPU',
280
+ value: {
281
+ type: 'link',
282
+ props: {
283
+ label: '',
284
+ value: '/'
285
+ }
286
+ }
287
+ },
288
+ extra: {
289
+ rowSpan: -1
290
+ }
291
+ }, {
292
+ type: 'text',
293
+ props: {
294
+ label: '品名',
295
+ value: ''
296
+ }
297
+ }, {
298
+ type: 'text',
299
+ props: {
300
+ label: '买手',
301
+ value: ''
302
+ }
303
+ }],
304
+ store_name: [{
305
+ type: 'text',
306
+ props: {
307
+ value: '国内备货仓'
308
+ }
309
+ }],
310
+ goods_image: [{
311
+ type: 'img',
312
+ props: {
313
+ value: 'http://image.spocoo.com/ac88db91d513da3256a6e18dd60c11a8.jpg'
314
+ }
315
+ }],
316
+ goods_sku_info: [{
317
+ type: 'link',
318
+ props: {
319
+ label: 'CO576911_02',
320
+ value: '/'
321
+ }
322
+ }, {
323
+ type: 'text',
324
+ props: {
325
+ value: '跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶 粉色'
326
+ }
327
+ }, {
328
+ type: 'tag',
329
+ props: {
330
+ value: '加',
331
+ color: 'red'
332
+ }
333
+ }],
334
+ planuser: [{
335
+ type: 'text',
336
+ props: {
337
+ value: ''
338
+ }
339
+ }],
340
+ factory: [{
341
+ type: 'link',
342
+ props: {
343
+ label: 'CO576911_02',
344
+ value: '/'
345
+ }
346
+ }],
347
+ asin: [{
348
+ type: 'text',
349
+ props: {
350
+ value: '0 / 0'
351
+ }
352
+ }],
353
+ goods_sales: [{
354
+ type: 'text',
355
+ props: {
356
+ value: '0 / 0 / 0 / / '
357
+ }
358
+ }],
359
+ goods_dms: [{
360
+ type: 'text',
361
+ props: {
362
+ value: '0 / 0'
363
+ }
364
+ }],
365
+ gross_margin: [{
366
+ type: 'text',
367
+ props: {
368
+ value: '0 / 0 / 0 / 0 / 0'
369
+ }
370
+ }],
371
+ goods_rma: [{
372
+ type: 'text',
373
+ props: {
374
+ value: '0 / 0 / 0 / 0 / 0'
375
+ }
376
+ }],
377
+ goods_stock: [{
378
+ type: 'text',
379
+ props: {
380
+ value: 0
381
+ }
382
+ }],
383
+ usable_stock: [{
384
+ type: 'text',
385
+ props: {
386
+ value: 0
387
+ }
388
+ }],
389
+ having_stock: [{
390
+ type: 'text',
391
+ props: {
392
+ value: 0
393
+ }
394
+ }],
395
+ unsellable_stock: [{
396
+ type: 'text',
397
+ props: {
398
+ value: 0
399
+ }
400
+ }],
401
+ plan_quantity: [{
402
+ type: 'text',
403
+ props: {
404
+ value: 0
405
+ }
406
+ }],
407
+ process_ing_quantity: [{
408
+ type: 'text',
409
+ props: {
410
+ value: 0
411
+ }
412
+ }],
413
+ ship_wait_quantity: [{
414
+ type: 'text',
415
+ props: {
416
+ value: 0
417
+ }
418
+ }],
419
+ shiping_num: [{
420
+ type: 'text',
421
+ props: {
422
+ value: 0
423
+ }
424
+ }],
425
+ overseas_stock: [{
426
+ type: 'text',
427
+ props: {
428
+ value: 0
429
+ }
430
+ }],
431
+ shiped_error_quantity: [{
432
+ type: 'text',
433
+ props: {
434
+ value: 0
435
+ }
436
+ }],
437
+ time_info: [{
438
+ type: 'text',
439
+ props: {
440
+ value: '1970-01-01 08:00:00(黄盛)'
441
+ }
442
+ }, {
443
+ type: 'text',
444
+ props: {
445
+ value: '2025-03-12 15:54:26(黄盛)'
446
+ }
447
+ }],
448
+ p_remark: [{
449
+ type: 'text',
450
+ props: {
451
+ value: ''
452
+ }
453
+ }],
454
+ quantity: [{
455
+ type: 'text',
456
+ props: {
457
+ value: 0
458
+ }
459
+ }],
460
+ quantity_modify: [{
461
+ type: 'text',
462
+ props: {
463
+ value: 102
464
+ }
465
+ }],
466
+ bom_data: [{
467
+ type: 'text',
468
+ props: {
469
+ value: '0 / 0'
470
+ }
471
+ }]
472
+ }]
473
+ };
474
+ }),
475
+ page: {
476
+ total_items: 2,
477
+ current_page: 0,
478
+ page_size: 0,
479
+ total_pages: 0
480
+ }
481
+ };
482
+ export default (function () {
483
+ return (
484
+ /*#__PURE__*/
485
+ // <RexProTable>hello world!</RexProTable>
486
+ _jsx(RexProConfigProvider, {
487
+ value: {
488
+ // intl: createIntl({
489
+ // messages: {
490
+ // ...crush(proRexProTableEnUS),
491
+ // ...crush(proFilterFormEnUS),
492
+ // ...crush(designDataDisplayEnUS),
493
+ // },
494
+ // locale: 'en-US',
495
+ // }),
496
+ apiClient: function () {
497
+ var _apiClient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, params) {
498
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
499
+ while (1) switch (_context.prev = _context.next) {
500
+ case 0:
501
+ _context.next = 2;
502
+ return new Promise(function (rel) {
503
+ setTimeout(rel, Math.random() * 1000);
504
+ });
505
+ case 2:
506
+ if (!url.startsWith('/schemaConfig')) {
507
+ _context.next = 4;
508
+ break;
509
+ }
510
+ return _context.abrupt("return", {
511
+ /** 批量操作按钮 */
512
+ // batchActionUrl: '/batchActionProps',
513
+ // batchActionParams?: Record<string, unknown>;
514
+ batchActionConfig: [{
515
+ type: 'button_items',
516
+ items: [{
517
+ label: '确认1',
518
+ value: '确认1',
519
+ action: 'confirm',
520
+ url: '/ass/ada/qqqq',
521
+ buttonProps: {
522
+ type: 'primary'
523
+ }
524
+ }, {
525
+ label: 'modal-form',
526
+ value: 'modal-form',
527
+ action: 'modal-form',
528
+ modalConfigUrl: '/form-modal-schemaConfig',
529
+ modalConfigParams: {
530
+ ww: 1
531
+ },
532
+ modalTitle: 'qweqwe',
533
+ modalWidth: '50%',
534
+ buttonProps: {
535
+ type: 'dashed'
536
+ }
537
+ }, {
538
+ label: 'modal-search',
539
+ value: 'modal-search',
540
+ action: 'modal-search',
541
+ modalConfigUrl: '/search-modal-schemaConfig',
542
+ modalConfigParams: {
543
+ ww: 1
544
+ },
545
+ modalTitle: 'modal-search标题',
546
+ modalWidth: '80%',
547
+ buttonProps: {
548
+ type: 'dashed'
549
+ }
550
+ }]
551
+ }, {
552
+ type: 'button_group',
553
+ label: '批量操作',
554
+ items: [{
555
+ label: '确认2',
556
+ value: '确认2',
557
+ action: 'confirm',
558
+ url: '/ass/ada/qqqq',
559
+ buttonProps: {
560
+ type: 'primary'
561
+ }
562
+ }, {
563
+ label: '确认3',
564
+ value: '确认3',
565
+ action: 'confirm',
566
+ url: '/ass/ada/qqqq'
567
+ }, {
568
+ label: '确认4',
569
+ value: '确认4',
570
+ action: 'confirm',
571
+ url: '/ass/ada/qqqq'
572
+ }]
573
+ }],
574
+ /** 表格操作列按钮 */
575
+ // tableActionButtonUrl: '/actionConfig',
576
+ // tableActionButtonParams?: Record<string, unknown>;
577
+ tableActionButtonConfig: [{
578
+ type: 'button_items',
579
+ items: [{
580
+ label: 'items',
581
+ value: 'items',
582
+ buttonProps: {
583
+ type: 'primary'
584
+ }
585
+ }]
586
+ }, {
587
+ type: 'button_group',
588
+ label: '操作',
589
+ items: [{
590
+ label: 'confirm',
591
+ value: 'value2',
592
+ action: 'confirm',
593
+ api: '/ass/ada/qqqq'
594
+ }, {
595
+ label: 'modal-form',
596
+ value: 'modal-form',
597
+ action: 'modal-form',
598
+ modalConfigUrl: '/form-modal-schemaConfig',
599
+ modalConfigParams: {
600
+ ww: 1
601
+ },
602
+ modalTitle: 'qweqwe',
603
+ modalWidth: '50%',
604
+ buttonProps: {
605
+ type: 'dashed'
606
+ }
607
+ }, {
608
+ label: 'modal-search',
609
+ value: 'modal-search',
610
+ action: 'modal-search',
611
+ modalConfigUrl: '/search-modal-schemaConfig',
612
+ modalConfigParams: {
613
+ ww: 1
614
+ },
615
+ modalTitle: 'modal-search标题',
616
+ modalWidth: '80%',
617
+ buttonProps: {
618
+ type: 'dashed'
619
+ }
620
+ }]
621
+ }],
622
+ /** 表格过滤项 */
623
+ // formFieldUrl: '/filterFormProps',
624
+ // formFieldParams?: Record<string, unknown>;
625
+ formFieldConfig: [{
626
+ field: 'qwe5',
627
+ valueType: 'cascader',
628
+ api: '/qwe/qwe/cascader',
629
+ label: 'qweqweqw',
630
+ multiple: true,
631
+ tooltip: '提示'
632
+ // options: [
633
+ // {
634
+ // value: 'zhejiang',
635
+ // label: 'Zhejiang',
636
+ // children: [
637
+ // {
638
+ // value: 'hangzhou',
639
+ // label: 'Hangzhou',
640
+ // children: [
641
+ // {
642
+ // value: 'xihu',
643
+ // label: 'West Lake',
644
+ // },
645
+ // ],
646
+ // },
647
+ // ],
648
+ // },
649
+ // ],
650
+ }],
651
+ /** 表单数据回显 */
652
+ // formDataUrl: '/formDataUrl',
653
+ // formDataParams?: Record<string, unknown>;
654
+
655
+ /** 表单数据保存 */
656
+ // formSaveUrl: '/formSaveUrl',
657
+ // formSaveParams?: Record<string, unknown>;
658
+
659
+ /** 表格头 */
660
+ // tableHeaderUrl: '/tableProps',
661
+ // tableHeaderParams?: Record<string, unknown>;
662
+ tableHeaderConfig: [{
663
+ title: '编号/状态',
664
+ dataIndex: 'status_name',
665
+ key: 'status_name'
666
+ }, {
667
+ title: 'SPU/组合SKU',
668
+ dataIndex: 'goods_spu_info',
669
+ key: 'goods_spu_info'
670
+ }, {
671
+ title: '图片',
672
+ dataIndex: 'goods_image',
673
+ key: 'goods_image',
674
+ align: 'center'
675
+ }, {
676
+ title: 'SKU/属性',
677
+ dataIndex: 'goods_sku_info',
678
+ key: 'goods_sku_info'
679
+ }, {
680
+ title: '计划员',
681
+ dataIndex: 'planuser',
682
+ key: 'planuser'
683
+ }, {
684
+ title: '供应商',
685
+ dataIndex: 'factory',
686
+ key: 'factory'
687
+ }, {
688
+ title: 'ASIN',
689
+ dataIndex: 'asin',
690
+ key: 'asin'
691
+ }, {
692
+ title: '销量',
693
+ dataIndex: 'goods_sales',
694
+ key: 'goods_sales'
695
+ }, {
696
+ title: 'DMS',
697
+ dataIndex: 'goods_dms',
698
+ key: 'goods_dms'
699
+ }, {
700
+ title: '毛利率',
701
+ dataIndex: 'gross_margin',
702
+ key: 'gross_margin'
703
+ }, {
704
+ title: '售后率',
705
+ dataIndex: 'goods_rma',
706
+ key: 'goods_rma'
707
+ }]
708
+
709
+ /** 表格数据 */
710
+ // tableDataUrl: '/tableDataUrl'
711
+ });
712
+ case 4:
713
+ if (!url.startsWith('/search-modal-schemaConfig')) {
714
+ _context.next = 6;
715
+ break;
716
+ }
717
+ return _context.abrupt("return", {
718
+ /** 批量操作按钮 */
719
+ // batchActionUrl: '/batchActionProps',
720
+ // batchActionParams?: Record<string, unknown>;
721
+ batchActionConfig: [{
722
+ type: 'button_items',
723
+ items: [{
724
+ label: '确认1',
725
+ value: '确认1',
726
+ action: 'confirm',
727
+ url: '/ass/ada/qqqq',
728
+ buttonProps: {
729
+ type: 'primary'
730
+ }
731
+ }, {
732
+ label: 'modal-form',
733
+ value: 'modal-form',
734
+ action: 'modal-form',
735
+ modalConfigUrl: '/RequestFieldsContainer',
736
+ modalConfigParams: {
737
+ ww: 1
738
+ },
739
+ modalTitle: 'qweqwe',
740
+ modalWidth: '50%',
741
+ buttonProps: {
742
+ type: 'dashed'
743
+ }
744
+ }, {
745
+ label: 'modal-search',
746
+ value: 'modal-search',
747
+ action: 'modal-search',
748
+ modalConfigUrl: '/RequestFieldsContainer',
749
+ modalConfigParams: {
750
+ ww: 1
751
+ },
752
+ modalTitle: 'qweqwe',
753
+ modalWidth: '80%',
754
+ buttonProps: {
755
+ type: 'dashed'
756
+ }
757
+ }]
758
+ }, {
759
+ type: 'button_group',
760
+ label: '批量操作',
761
+ items: [{
762
+ label: '确认2',
763
+ value: '确认2',
764
+ action: 'confirm',
765
+ url: '/ass/ada/qqqq',
766
+ buttonProps: {
767
+ type: 'primary'
768
+ }
769
+ }, {
770
+ label: '确认3',
771
+ value: '确认3',
772
+ action: 'confirm',
773
+ url: '/ass/ada/qqqq'
774
+ }, {
775
+ label: '确认4',
776
+ value: '确认4',
777
+ action: 'confirm',
778
+ url: '/ass/ada/qqqq'
779
+ }]
780
+ }],
781
+ /** 表格操作列按钮 */
782
+ // tableActionButtonUrl: '/actionConfig',
783
+ // tableActionButtonParams?: Record<string, unknown>;
784
+ tableActionButtonConfig: [{
785
+ type: 'button_items',
786
+ items: [{
787
+ label: 'items',
788
+ value: 'items',
789
+ api: '/ass/ada/qqqq',
790
+ buttonProps: {
791
+ type: 'primary'
792
+ }
793
+ }]
794
+ }, {
795
+ type: 'button_group',
796
+ label: '操作',
797
+ items: [{
798
+ label: 'label1',
799
+ value: 'value1',
800
+ action: 'confirm',
801
+ api: '/ass/ada/qqqq',
802
+ buttonProps: {
803
+ type: 'primary'
804
+ }
805
+ }, {
806
+ label: 'label2',
807
+ value: 'value2',
808
+ action: 'confirm',
809
+ api: '/ass/ada/qqqq'
810
+ }, {
811
+ label: 'label3',
812
+ value: 'value3',
813
+ action: 'confirm',
814
+ api: '/ass/ada/qqqq'
815
+ }]
816
+ }],
817
+ /** 表格过滤项 */
818
+ // formFieldUrl: '/filterFormProps',
819
+ // formFieldParams?: Record<string, unknown>;
820
+ formFieldConfig: [{
821
+ field: 'qwe5',
822
+ valueType: 'cascader',
823
+ api: '/qwe/qwe/cascader',
824
+ label: 'qweqweqw',
825
+ multiple: true,
826
+ tooltip: '提示'
827
+ // options: [
828
+ // {
829
+ // value: 'zhejiang',
830
+ // label: 'Zhejiang',
831
+ // children: [
832
+ // {
833
+ // value: 'hangzhou',
834
+ // label: 'Hangzhou',
835
+ // children: [
836
+ // {
837
+ // value: 'xihu',
838
+ // label: 'West Lake',
839
+ // },
840
+ // ],
841
+ // },
842
+ // ],
843
+ // },
844
+ // ],
845
+ }],
846
+ /** 表单数据回显 */
847
+ // formDataUrl: '/formDataUrl',
848
+ // formDataParams?: Record<string, unknown>;
849
+
850
+ /** 表单数据保存 */
851
+ // formSaveUrl: '/formSaveUrl',
852
+ // formSaveParams?: Record<string, unknown>;
853
+
854
+ /** 表格头 */
855
+ // tableHeaderUrl: '/tableProps',
856
+ // tableHeaderParams?: Record<string, unknown>;
857
+ tableHeaderConfig: [{
858
+ title: '编号/状态',
859
+ dataIndex: 'status_name',
860
+ key: 'status_name'
861
+ }, {
862
+ title: 'SPU/组合SKU',
863
+ dataIndex: 'goods_spu_info',
864
+ key: 'goods_spu_info'
865
+ }, {
866
+ title: '图片',
867
+ dataIndex: 'goods_image',
868
+ key: 'goods_image',
869
+ align: 'center'
870
+ }, {
871
+ title: 'SKU/属性',
872
+ dataIndex: 'goods_sku_info',
873
+ key: 'goods_sku_info'
874
+ }, {
875
+ title: '计划员',
876
+ dataIndex: 'planuser',
877
+ key: 'planuser'
878
+ }, {
879
+ title: '供应商',
880
+ dataIndex: 'factory',
881
+ key: 'factory'
882
+ }, {
883
+ title: 'ASIN',
884
+ dataIndex: 'asin',
885
+ key: 'asin'
886
+ }, {
887
+ title: '销量',
888
+ dataIndex: 'goods_sales',
889
+ key: 'goods_sales'
890
+ }, {
891
+ title: 'DMS',
892
+ dataIndex: 'goods_dms',
893
+ key: 'goods_dms'
894
+ }, {
895
+ title: '毛利率',
896
+ dataIndex: 'gross_margin',
897
+ key: 'gross_margin'
898
+ }, {
899
+ title: '售后率',
900
+ dataIndex: 'goods_rma',
901
+ key: 'goods_rma'
902
+ }],
903
+ /** 表格数据 */
904
+ tableDataUrl: '/tableDataUrl'
905
+ });
906
+ case 6:
907
+ if (!url.startsWith('/form-modal-schemaConfig')) {
908
+ _context.next = 8;
909
+ break;
910
+ }
911
+ return _context.abrupt("return", {
912
+ /** 批量操作按钮 */
913
+ // batchActionUrl: '/batchActionProps',
914
+ // batchActionParams?: Record<string, unknown>;
915
+
916
+ /** 表格操作列按钮 */
917
+ // tableActionButtonUrl: '/actionConfig',
918
+ // tableActionButtonParams?: Record<string, unknown>;
919
+
920
+ /** 表格过滤项 */
921
+ // formFieldUrl: '/filterFormProps',
922
+ // formFieldParams?: Record<string, unknown>;
923
+ formFieldConfig: [{
924
+ field: 'qwe5',
925
+ valueType: 'cascader',
926
+ api: '/qwe/qwe/cascader',
927
+ label: 'qweqweqw',
928
+ multiple: true,
929
+ tooltip: '提示'
930
+ // options: [
931
+ // {
932
+ // value: 'zhejiang',
933
+ // label: 'Zhejiang',
934
+ // children: [
935
+ // {
936
+ // value: 'hangzhou',
937
+ // label: 'Hangzhou',
938
+ // children: [
939
+ // {
940
+ // value: 'xihu',
941
+ // label: 'West Lake',
942
+ // },
943
+ // ],
944
+ // },
945
+ // ],
946
+ // },
947
+ // ],
948
+ }],
949
+ /** 表单数据回显 */
950
+ formDataUrl: '/formDataUrl',
951
+ // formDataParams?: Record<string, unknown>;
952
+
953
+ /** 表单数据保存 */
954
+ formSaveUrl: '/formSaveUrl'
955
+ // formSaveParams?: Record<string, unknown>;
956
+
957
+ /** 表格头 */
958
+ // tableHeaderUrl: '/tableProps',
959
+ // tableHeaderParams?: Record<string, unknown>;
960
+
961
+ /** 表格数据 */
962
+ // tableDataUrl: '/tableDataUrl'
963
+ });
964
+ case 8:
965
+ if (!url.startsWith('/tableDataUrl')) {
966
+ _context.next = 10;
967
+ break;
968
+ }
969
+ return _context.abrupt("return", JSON.parse(JSON.stringify(tableData)));
970
+ case 10:
971
+ return _context.abrupt("return", [{
972
+ value: 'zhejiang1',
973
+ label: '标题-root',
974
+ children: [{
975
+ value: 'hangzhou1',
976
+ label: 'Hangzhou1',
977
+ children: [{
978
+ value: 'xihu1',
979
+ label: 'West Lake1'
980
+ }]
981
+ }, {
982
+ value: 'hangzhou1-2',
983
+ label: 'Hangzhou1-2',
984
+ children: [{
985
+ value: 'xihu1-2',
986
+ label: '标题-children'
987
+ }]
988
+ }]
989
+ }, {
990
+ value: 'zhejiang2',
991
+ label: 'Zhejiang2',
992
+ children: [{
993
+ value: 'hangzhou2',
994
+ label: 'Hangzhou2',
995
+ children: [{
996
+ value: 'xihu2',
997
+ label: 'West Lake2'
998
+ }]
999
+ }, {
1000
+ value: 'hangzhou2-2',
1001
+ label: 'Hangzhou2-2',
1002
+ children: [{
1003
+ value: 'xihu2-2',
1004
+ label: 'West Lake2-2'
1005
+ }]
1006
+ }]
1007
+ }]);
1008
+ case 11:
1009
+ case "end":
1010
+ return _context.stop();
1011
+ }
1012
+ }, _callee);
1013
+ }));
1014
+ function apiClient(_x, _x2) {
1015
+ return _apiClient.apply(this, arguments);
1016
+ }
1017
+ return apiClient;
1018
+ }()
1019
+ },
1020
+ children: /*#__PURE__*/_jsx(RequestFieldsContainer, {
1021
+ requestConfigUrl: "/schemaConfig",
1022
+ children: /*#__PURE__*/_jsx(RexProTable, {
1023
+ autoInitRequest: true
1024
+ // toolbar={{
1025
+ // batchActionProps: {
1026
+ // actionSuccessCallback: () => {
1027
+ // console.log('成功回调');
1028
+ // },
1029
+ // onClick: (key, item, proTableRef) => {
1030
+ // console.log('其他自定义操作', key);
1031
+ // },
1032
+ // }
1033
+ // }}
1034
+ ,
1035
+ actionConfig: {
1036
+ actionButtonProps: {
1037
+ actionSuccessCallback: function actionSuccessCallback() {
1038
+ console.log('成功回调');
1039
+ },
1040
+ onClick: function onClick() {
1041
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1042
+ args[_key] = arguments[_key];
1043
+ }
1044
+ console.log('其他自定义操作', args);
1045
+ }
1046
+ }
1047
+ },
1048
+ request: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1049
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1050
+ while (1) switch (_context2.prev = _context2.next) {
1051
+ case 0:
1052
+ console.log('调用次');
1053
+ return _context2.abrupt("return", JSON.parse(JSON.stringify(tableData)));
1054
+ case 2:
1055
+ case "end":
1056
+ return _context2.stop();
1057
+ }
1058
+ }, _callee2);
1059
+ })),
1060
+ listTableProps: {
1061
+ rowSelection: {},
1062
+ tableMaxRowCount: 1,
1063
+ defaultExpandAllCollapse: true,
1064
+ virtual: true,
1065
+ scroll: function scroll(h) {
1066
+ return {
1067
+ x: 1000,
1068
+ y: h
1069
+ };
1070
+ }
1071
+ }
1072
+ })
1073
+ })
1074
+ })
1075
+ );
1076
+ });