@fonixtree/magic-design 2.0.108 → 2.0.109
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/es/assets/fonts/.DS_Store +0 -0
- package/es/common/LinkModal/AffiliateProductTable/index.js +27 -15
- package/es/common/LinkModal/AffiliateStore/index.js +23 -11
- package/es/common/LinkModal/BundleCampaign/index.js +27 -15
- package/es/common/LinkModal/CatgTable/index.js +11 -3
- package/es/common/LinkModal/CouponTable/index.js +11 -3
- package/es/common/LinkModal/CustomTable/index.js +11 -3
- package/es/common/LinkModal/FilteredProductModal/index.js +37 -23
- package/es/common/LinkModal/FunctionTable/index.js +11 -4
- package/es/common/LinkModal/MiniAppApi/index.js +12 -4
- package/es/common/LinkModal/MiniAppTable/index.js +11 -3
- package/es/common/LinkModal/ProductDetailPage/index.js +43 -25
- package/es/common/LinkModal/SelectVideoModal/index.js +18 -9
- package/es/common/LinkModal/ShareUrl/index.js +11 -3
- package/es/common/LinkModal/StoreCatgTable/index.js +11 -3
- package/es/common/LinkModal/StoreTable/index.js +23 -11
- package/es/common/LinkModal/index.js +19 -8
- package/es/index.js +8 -0
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +27 -15
- package/lib/common/LinkModal/AffiliateStore/index.js +23 -11
- package/lib/common/LinkModal/BundleCampaign/index.js +27 -15
- package/lib/common/LinkModal/CatgTable/index.js +11 -3
- package/lib/common/LinkModal/CouponTable/index.js +11 -3
- package/lib/common/LinkModal/CustomTable/index.js +11 -3
- package/lib/common/LinkModal/FilteredProductModal/index.js +37 -23
- package/lib/common/LinkModal/FunctionTable/index.js +11 -4
- package/lib/common/LinkModal/MiniAppApi/index.js +12 -4
- package/lib/common/LinkModal/MiniAppTable/index.js +11 -3
- package/lib/common/LinkModal/ProductDetailPage/index.js +43 -25
- package/lib/common/LinkModal/SelectVideoModal/index.js +18 -9
- package/lib/common/LinkModal/ShareUrl/index.js +11 -3
- package/lib/common/LinkModal/StoreCatgTable/index.js +11 -3
- package/lib/common/LinkModal/StoreTable/index.js +23 -11
- package/lib/common/LinkModal/index.js +19 -8
- package/lib/index.js +8 -0
- package/package.json +2 -1
|
Binary file
|
|
@@ -9,8 +9,6 @@ exports["default"] = AffiliateProductTable;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
12
|
var _locale = require("../../../locale");
|
|
15
13
|
|
|
16
14
|
var _currencyUtil = require("../../../utils/currencyUtil");
|
|
@@ -178,6 +176,20 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
178
176
|
}
|
|
179
177
|
};
|
|
180
178
|
|
|
179
|
+
var antdLibrary;
|
|
180
|
+
|
|
181
|
+
try {
|
|
182
|
+
antdLibrary = require('antd4');
|
|
183
|
+
} catch (error) {
|
|
184
|
+
antdLibrary = require('antd');
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
var Table = antdLibrary.Table,
|
|
188
|
+
Form = antdLibrary.Form,
|
|
189
|
+
Row = antdLibrary.Row,
|
|
190
|
+
Col = antdLibrary.Col,
|
|
191
|
+
Button = antdLibrary.Button,
|
|
192
|
+
Input = antdLibrary.Input;
|
|
181
193
|
var paginationParams = {
|
|
182
194
|
pageSize: 80,
|
|
183
195
|
pageIndex: 1
|
|
@@ -201,7 +213,7 @@ function AffiliateProductTable(props) {
|
|
|
201
213
|
formInfo = _c[0],
|
|
202
214
|
setFormInfo = _c[1];
|
|
203
215
|
|
|
204
|
-
var form =
|
|
216
|
+
var form = Form.useForm()[0];
|
|
205
217
|
|
|
206
218
|
var queryProduct = function queryProduct(params) {
|
|
207
219
|
return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -288,44 +300,44 @@ function AffiliateProductTable(props) {
|
|
|
288
300
|
style: {
|
|
289
301
|
height: 550
|
|
290
302
|
}
|
|
291
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
303
|
+
}, /*#__PURE__*/_react["default"].createElement(Form, {
|
|
292
304
|
form: form,
|
|
293
305
|
initialValues: formInfo,
|
|
294
306
|
labelCol: {
|
|
295
307
|
span: 8
|
|
296
308
|
},
|
|
297
309
|
layout: "horizontal"
|
|
298
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
310
|
+
}, /*#__PURE__*/_react["default"].createElement(Row, {
|
|
299
311
|
gutter: 24
|
|
300
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
312
|
+
}, /*#__PURE__*/_react["default"].createElement(Col, {
|
|
301
313
|
span: 9
|
|
302
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
314
|
+
}, /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
303
315
|
label: "Product Name",
|
|
304
316
|
name: "productName"
|
|
305
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
317
|
+
}, /*#__PURE__*/_react["default"].createElement(Input, {
|
|
306
318
|
size: "small"
|
|
307
|
-
}))), /*#__PURE__*/_react["default"].createElement(
|
|
319
|
+
}))), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
308
320
|
span: 9
|
|
309
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
321
|
+
}, /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
310
322
|
label: "Sku Code",
|
|
311
323
|
name: "affiliateProductCode"
|
|
312
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
324
|
+
}, /*#__PURE__*/_react["default"].createElement(Input, {
|
|
313
325
|
size: "small"
|
|
314
|
-
}))), /*#__PURE__*/_react["default"].createElement(
|
|
326
|
+
}))), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
315
327
|
span: 6
|
|
316
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
328
|
+
}, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
317
329
|
onClick: onQueryClick,
|
|
318
330
|
size: "small",
|
|
319
331
|
style: {
|
|
320
332
|
marginRight: 10
|
|
321
333
|
},
|
|
322
334
|
type: "primary"
|
|
323
|
-
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(
|
|
335
|
+
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
324
336
|
onClick: function onClick() {
|
|
325
337
|
reset();
|
|
326
338
|
},
|
|
327
339
|
size: "small"
|
|
328
|
-
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(
|
|
340
|
+
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(Table, {
|
|
329
341
|
bordered: false,
|
|
330
342
|
columns: columns,
|
|
331
343
|
dataSource: productList,
|
|
@@ -9,8 +9,6 @@ exports["default"] = AffiliateStore;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
12
|
var _locale = require("../../../locale");
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -176,6 +174,20 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
176
174
|
}
|
|
177
175
|
};
|
|
178
176
|
|
|
177
|
+
var antdLibrary;
|
|
178
|
+
|
|
179
|
+
try {
|
|
180
|
+
antdLibrary = require('antd4');
|
|
181
|
+
} catch (error) {
|
|
182
|
+
antdLibrary = require('antd');
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
var Table = antdLibrary.Table,
|
|
186
|
+
Form = antdLibrary.Form,
|
|
187
|
+
Row = antdLibrary.Row,
|
|
188
|
+
Col = antdLibrary.Col,
|
|
189
|
+
Button = antdLibrary.Button,
|
|
190
|
+
Input = antdLibrary.Input;
|
|
179
191
|
var paginationParams = {
|
|
180
192
|
pageSize: 20,
|
|
181
193
|
pageIndex: 1
|
|
@@ -270,26 +282,26 @@ function AffiliateStore(props) {
|
|
|
270
282
|
style: {
|
|
271
283
|
height: 550
|
|
272
284
|
}
|
|
273
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
285
|
+
}, /*#__PURE__*/_react["default"].createElement(Form, {
|
|
274
286
|
labelCol: {
|
|
275
287
|
span: 6
|
|
276
288
|
},
|
|
277
289
|
layout: "horizontal"
|
|
278
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
290
|
+
}, /*#__PURE__*/_react["default"].createElement(Row, {
|
|
279
291
|
gutter: 24
|
|
280
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
292
|
+
}, /*#__PURE__*/_react["default"].createElement(Col, {
|
|
281
293
|
span: 12
|
|
282
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
294
|
+
}, /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
283
295
|
label: "Store Name"
|
|
284
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
296
|
+
}, /*#__PURE__*/_react["default"].createElement(Input, {
|
|
285
297
|
onChange: function onChange(e) {
|
|
286
298
|
return setStoreName(e.target.value);
|
|
287
299
|
},
|
|
288
300
|
size: "small",
|
|
289
301
|
value: storeName
|
|
290
|
-
}))), /*#__PURE__*/_react["default"].createElement(
|
|
302
|
+
}))), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
291
303
|
span: 6
|
|
292
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
304
|
+
}, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
293
305
|
onClick: function onClick() {
|
|
294
306
|
setLoading(true);
|
|
295
307
|
paginationParams.pageIndex = 1;
|
|
@@ -302,12 +314,12 @@ function AffiliateStore(props) {
|
|
|
302
314
|
marginRight: 10
|
|
303
315
|
},
|
|
304
316
|
type: "primary"
|
|
305
|
-
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(
|
|
317
|
+
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
306
318
|
onClick: function onClick() {
|
|
307
319
|
reset();
|
|
308
320
|
},
|
|
309
321
|
size: "small"
|
|
310
|
-
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(
|
|
322
|
+
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(Table, {
|
|
311
323
|
bordered: false,
|
|
312
324
|
columns: columns,
|
|
313
325
|
dataSource: storeList,
|
|
@@ -9,8 +9,6 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
12
|
var _businessUtil = require("../../../utils/businessUtil");
|
|
15
13
|
|
|
16
14
|
var _dateUtil = require("../../../utils/dateUtil");
|
|
@@ -164,7 +162,21 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
164
162
|
}
|
|
165
163
|
};
|
|
166
164
|
|
|
167
|
-
var
|
|
165
|
+
var antdLibrary;
|
|
166
|
+
|
|
167
|
+
try {
|
|
168
|
+
antdLibrary = require('antd4');
|
|
169
|
+
} catch (error) {
|
|
170
|
+
antdLibrary = require('antd');
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
var Button = antdLibrary.Button,
|
|
174
|
+
Col = antdLibrary.Col,
|
|
175
|
+
Input = antdLibrary.Input,
|
|
176
|
+
Row = antdLibrary.Row,
|
|
177
|
+
Select = antdLibrary.Select,
|
|
178
|
+
Table = antdLibrary.Table;
|
|
179
|
+
var Option = Select.Option;
|
|
168
180
|
|
|
169
181
|
var BundleCampaign = function BundleCampaign(props) {
|
|
170
182
|
var setUrl = props.setUrl,
|
|
@@ -313,33 +325,33 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
313
325
|
}, []);
|
|
314
326
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
315
327
|
className: "bundleCampaign"
|
|
316
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
328
|
+
}, /*#__PURE__*/_react["default"].createElement(Row, {
|
|
317
329
|
className: "mb12",
|
|
318
330
|
style: {
|
|
319
331
|
width: '100%'
|
|
320
332
|
}
|
|
321
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
333
|
+
}, /*#__PURE__*/_react["default"].createElement(Col, {
|
|
322
334
|
span: 12,
|
|
323
335
|
style: {
|
|
324
336
|
display: 'flex'
|
|
325
337
|
}
|
|
326
338
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
327
339
|
className: "labelStyle"
|
|
328
|
-
}, "Campaign Name"), /*#__PURE__*/_react["default"].createElement(
|
|
340
|
+
}, "Campaign Name"), /*#__PURE__*/_react["default"].createElement(Input, {
|
|
329
341
|
className: "inputStyle",
|
|
330
342
|
onChange: function onChange(e) {
|
|
331
343
|
setCampaignName(e.target.value);
|
|
332
344
|
},
|
|
333
345
|
size: "small",
|
|
334
346
|
value: campaignName
|
|
335
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
347
|
+
})), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
336
348
|
span: 12,
|
|
337
349
|
style: {
|
|
338
350
|
display: 'flex'
|
|
339
351
|
}
|
|
340
352
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
341
353
|
className: "labelStyle"
|
|
342
|
-
}, "Campaign State"), /*#__PURE__*/_react["default"].createElement(
|
|
354
|
+
}, "Campaign State"), /*#__PURE__*/_react["default"].createElement(Select, {
|
|
343
355
|
className: "inputStyle",
|
|
344
356
|
defaultValue: "A,B",
|
|
345
357
|
onChange: changeCamState,
|
|
@@ -350,19 +362,19 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
350
362
|
key: v.key,
|
|
351
363
|
value: v.key
|
|
352
364
|
}, v.value);
|
|
353
|
-
})))), /*#__PURE__*/_react["default"].createElement(
|
|
365
|
+
})))), /*#__PURE__*/_react["default"].createElement(Row, {
|
|
354
366
|
className: "mb12",
|
|
355
367
|
style: {
|
|
356
368
|
width: '100%'
|
|
357
369
|
}
|
|
358
|
-
}, (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(
|
|
370
|
+
}, (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(Col, {
|
|
359
371
|
span: 12,
|
|
360
372
|
style: {
|
|
361
373
|
display: 'flex'
|
|
362
374
|
}
|
|
363
375
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
364
376
|
className: "labelStyle"
|
|
365
|
-
}, "Store"), /*#__PURE__*/_react["default"].createElement(
|
|
377
|
+
}, "Store"), /*#__PURE__*/_react["default"].createElement(Select, {
|
|
366
378
|
className: "inputStyle",
|
|
367
379
|
onChange: function onChange(value) {
|
|
368
380
|
return setStoreId(value);
|
|
@@ -377,24 +389,24 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
377
389
|
key: v.storeId,
|
|
378
390
|
value: v.storeId
|
|
379
391
|
}, v.storeName);
|
|
380
|
-
}))), /*#__PURE__*/_react["default"].createElement(
|
|
392
|
+
}))), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
381
393
|
span: 12,
|
|
382
394
|
style: {
|
|
383
395
|
paddingLeft: '120px'
|
|
384
396
|
}
|
|
385
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
397
|
+
}, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
386
398
|
onClick: queryFunc,
|
|
387
399
|
size: "small",
|
|
388
400
|
style: {
|
|
389
401
|
marginRight: 10
|
|
390
402
|
},
|
|
391
403
|
type: "primary"
|
|
392
|
-
}, "Query"), /*#__PURE__*/_react["default"].createElement(
|
|
404
|
+
}, "Query"), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
393
405
|
onClick: function onClick() {
|
|
394
406
|
reset();
|
|
395
407
|
},
|
|
396
408
|
size: "small"
|
|
397
|
-
}, "Cancel"))), /*#__PURE__*/_react["default"].createElement(
|
|
409
|
+
}, "Cancel"))), /*#__PURE__*/_react["default"].createElement(Table, {
|
|
398
410
|
bordered: false,
|
|
399
411
|
columns: columns,
|
|
400
412
|
dataSource: bundleList,
|
|
@@ -9,8 +9,6 @@ exports["default"] = CatgTable;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
12
|
var _businessUtil = require("../../../utils/businessUtil");
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -160,6 +158,16 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
160
158
|
}
|
|
161
159
|
};
|
|
162
160
|
|
|
161
|
+
var antdLibrary;
|
|
162
|
+
|
|
163
|
+
try {
|
|
164
|
+
antdLibrary = require('antd4');
|
|
165
|
+
} catch (error) {
|
|
166
|
+
antdLibrary = require('antd');
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
var Table = antdLibrary.Table;
|
|
170
|
+
|
|
163
171
|
function CatgTable(props) {
|
|
164
172
|
var _this = this;
|
|
165
173
|
|
|
@@ -225,7 +233,7 @@ function CatgTable(props) {
|
|
|
225
233
|
style: {
|
|
226
234
|
height: 550
|
|
227
235
|
}
|
|
228
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
236
|
+
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
229
237
|
bordered: false,
|
|
230
238
|
columns: columns,
|
|
231
239
|
dataSource: catgList,
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = CouponTable;
|
|
9
9
|
|
|
10
|
-
var _antd = require("antd");
|
|
11
|
-
|
|
12
10
|
var _moment = _interopRequireDefault(require("moment"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -193,6 +191,16 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
193
191
|
return t;
|
|
194
192
|
};
|
|
195
193
|
|
|
194
|
+
var antdLibrary;
|
|
195
|
+
|
|
196
|
+
try {
|
|
197
|
+
antdLibrary = require('antd4');
|
|
198
|
+
} catch (error) {
|
|
199
|
+
antdLibrary = require('antd');
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
var Table = antdLibrary.Table;
|
|
203
|
+
|
|
196
204
|
function CouponTable(props) {
|
|
197
205
|
var _this = this;
|
|
198
206
|
|
|
@@ -296,7 +304,7 @@ function CouponTable(props) {
|
|
|
296
304
|
style: {
|
|
297
305
|
height: 550
|
|
298
306
|
}
|
|
299
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
307
|
+
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
300
308
|
columns: columns,
|
|
301
309
|
dataSource: data,
|
|
302
310
|
loading: loading,
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = CustomTable;
|
|
9
9
|
|
|
10
|
-
var _antd = require("antd");
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
11
|
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -159,6 +157,16 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
159
157
|
};
|
|
160
158
|
|
|
161
159
|
// import { commonFetch } from '../../../utils/commonUtil';
|
|
160
|
+
var antdLibrary;
|
|
161
|
+
|
|
162
|
+
try {
|
|
163
|
+
antdLibrary = require('antd4');
|
|
164
|
+
} catch (error) {
|
|
165
|
+
antdLibrary = require('antd');
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
var Table = antdLibrary.Table;
|
|
169
|
+
|
|
162
170
|
function CustomTable(props) {
|
|
163
171
|
var _this = this;
|
|
164
172
|
|
|
@@ -223,7 +231,7 @@ function CustomTable(props) {
|
|
|
223
231
|
style: {
|
|
224
232
|
height: 550
|
|
225
233
|
}
|
|
226
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
234
|
+
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
227
235
|
bordered: false,
|
|
228
236
|
columns: columns,
|
|
229
237
|
dataSource: cusPageList,
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
|
|
10
|
-
var _antd = require("antd");
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
11
|
|
|
14
12
|
var _commonUtil = require("../../../utils/commonUtil");
|
|
@@ -184,11 +182,27 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
184
182
|
}
|
|
185
183
|
};
|
|
186
184
|
|
|
185
|
+
var antdLibrary;
|
|
186
|
+
|
|
187
|
+
try {
|
|
188
|
+
antdLibrary = require('antd4');
|
|
189
|
+
} catch (error) {
|
|
190
|
+
antdLibrary = require('antd');
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
var Button = antdLibrary.Button,
|
|
194
|
+
Form = antdLibrary.Form,
|
|
195
|
+
Input = antdLibrary.Input,
|
|
196
|
+
InputNumber = antdLibrary.InputNumber,
|
|
197
|
+
Select = antdLibrary.Select,
|
|
198
|
+
TreeSelect = antdLibrary.TreeSelect,
|
|
199
|
+
Table = antdLibrary.Table;
|
|
200
|
+
|
|
187
201
|
var FilteredProductModal = function FilteredProductModal(props) {
|
|
188
202
|
var onDataChange = props.onDataChange,
|
|
189
203
|
_fetch = props._fetch;
|
|
190
|
-
var Option =
|
|
191
|
-
var InputGroup =
|
|
204
|
+
var Option = Select.Option;
|
|
205
|
+
var InputGroup = Input.Group;
|
|
192
206
|
|
|
193
207
|
var _a = (0, _react.useState)([]),
|
|
194
208
|
tValue = _a[0],
|
|
@@ -503,11 +517,11 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
503
517
|
className: "mFilteredProductModalContent"
|
|
504
518
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
505
519
|
className: "leftCot"
|
|
506
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
520
|
+
}, /*#__PURE__*/_react["default"].createElement(Form, {
|
|
507
521
|
layout: "vertical"
|
|
508
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
522
|
+
}, /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
509
523
|
label: "Category"
|
|
510
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
524
|
+
}, /*#__PURE__*/_react["default"].createElement(TreeSelect // allowClear
|
|
511
525
|
, {
|
|
512
526
|
dropdownStyle: {
|
|
513
527
|
maxHeight: 400,
|
|
@@ -522,9 +536,9 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
522
536
|
treeData: treeData,
|
|
523
537
|
treeDefaultExpandAll: true,
|
|
524
538
|
value: tValue
|
|
525
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
539
|
+
})), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
526
540
|
label: "Brand"
|
|
527
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
541
|
+
}, /*#__PURE__*/_react["default"].createElement(Select, {
|
|
528
542
|
defaultValue: [],
|
|
529
543
|
maxTagCount: 2,
|
|
530
544
|
maxTagTextLength: 5,
|
|
@@ -540,9 +554,9 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
540
554
|
key: v.brandId,
|
|
541
555
|
value: v.brandName
|
|
542
556
|
}, v.brandName);
|
|
543
|
-
}))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(
|
|
557
|
+
}))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
544
558
|
label: "Store"
|
|
545
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
559
|
+
}, /*#__PURE__*/_react["default"].createElement(Select, {
|
|
546
560
|
className: "inputStyle",
|
|
547
561
|
defaultValue: [],
|
|
548
562
|
onChange: function onChange(value) {
|
|
@@ -558,9 +572,9 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
558
572
|
key: v.storeId,
|
|
559
573
|
value: v.storeId
|
|
560
574
|
}, v.storeName);
|
|
561
|
-
}))), /*#__PURE__*/_react["default"].createElement(
|
|
575
|
+
}))), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
562
576
|
label: "Label"
|
|
563
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
577
|
+
}, /*#__PURE__*/_react["default"].createElement(Select, {
|
|
564
578
|
defaultValue: [],
|
|
565
579
|
onChange: handleLabelChange,
|
|
566
580
|
placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
|
|
@@ -571,11 +585,11 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
571
585
|
key: v.labelId,
|
|
572
586
|
value: v.labelName
|
|
573
587
|
}, v.labelName);
|
|
574
|
-
}))), /*#__PURE__*/_react["default"].createElement(
|
|
588
|
+
}))), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
575
589
|
label: "Price"
|
|
576
590
|
}, /*#__PURE__*/_react["default"].createElement(InputGroup, {
|
|
577
591
|
compact: true
|
|
578
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
592
|
+
}, /*#__PURE__*/_react["default"].createElement(InputNumber, {
|
|
579
593
|
min: 0,
|
|
580
594
|
onChange: function onChange(value) {
|
|
581
595
|
setMinimum(value);
|
|
@@ -593,7 +607,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
593
607
|
lineHeight: '30px',
|
|
594
608
|
textAlign: 'center'
|
|
595
609
|
}
|
|
596
|
-
}, "~"), /*#__PURE__*/_react["default"].createElement(
|
|
610
|
+
}, "~"), /*#__PURE__*/_react["default"].createElement(InputNumber, {
|
|
597
611
|
min: 0,
|
|
598
612
|
onChange: function onChange(value) {
|
|
599
613
|
setMaximum(value);
|
|
@@ -605,18 +619,18 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
605
619
|
textAlign: 'center'
|
|
606
620
|
},
|
|
607
621
|
value: maximum
|
|
608
|
-
}))), /*#__PURE__*/_react["default"].createElement(
|
|
622
|
+
}))), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
609
623
|
label: "Product Name"
|
|
610
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
624
|
+
}, /*#__PURE__*/_react["default"].createElement(Input, {
|
|
611
625
|
onChange: function onChange(e) {
|
|
612
626
|
setProductName(e.currentTarget.value);
|
|
613
627
|
},
|
|
614
628
|
placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
|
|
615
629
|
size: "small",
|
|
616
630
|
value: productName
|
|
617
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
631
|
+
})), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
618
632
|
label: "Promotions"
|
|
619
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
633
|
+
}, /*#__PURE__*/_react["default"].createElement(Select, {
|
|
620
634
|
defaultValue: [],
|
|
621
635
|
onChange: function onChange(value, node) {
|
|
622
636
|
setPromotions({
|
|
@@ -635,7 +649,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
635
649
|
value: "Group By"
|
|
636
650
|
}, (0, _locale.i18n)('GROUP_BY')))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
637
651
|
className: "buttonStyle"
|
|
638
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
652
|
+
}, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
639
653
|
onClick: function onClick() {
|
|
640
654
|
paginationParams.current = 1;
|
|
641
655
|
loadGoods().then(function (res) {
|
|
@@ -656,14 +670,14 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
656
670
|
marginRight: 8
|
|
657
671
|
},
|
|
658
672
|
type: "primary"
|
|
659
|
-
}, (0, _locale.i18n)('SEARCH')), /*#__PURE__*/_react["default"].createElement(
|
|
673
|
+
}, (0, _locale.i18n)('SEARCH')), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
660
674
|
onClick: function onClick() {
|
|
661
675
|
reset();
|
|
662
676
|
},
|
|
663
677
|
size: "small"
|
|
664
678
|
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
665
679
|
className: "rightCot"
|
|
666
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
680
|
+
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
667
681
|
columns: columns,
|
|
668
682
|
dataSource: dataSource,
|
|
669
683
|
loading: loading,
|
|
@@ -9,8 +9,6 @@ exports["default"] = FunctionTable;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
13
|
|
|
16
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -158,7 +156,16 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
158
156
|
}
|
|
159
157
|
};
|
|
160
158
|
|
|
161
|
-
|
|
159
|
+
var antdLibrary;
|
|
160
|
+
|
|
161
|
+
try {
|
|
162
|
+
antdLibrary = require('antd4');
|
|
163
|
+
} catch (error) {
|
|
164
|
+
antdLibrary = require('antd');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
var Table = antdLibrary.Table; // import { commonFetch } from '../../../utils/commonUtil';
|
|
168
|
+
|
|
162
169
|
function FunctionTable(props) {
|
|
163
170
|
var _this = this;
|
|
164
171
|
|
|
@@ -220,7 +227,7 @@ function FunctionTable(props) {
|
|
|
220
227
|
style: {
|
|
221
228
|
height: 550
|
|
222
229
|
}
|
|
223
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
230
|
+
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
224
231
|
columns: columns,
|
|
225
232
|
dataSource: functions,
|
|
226
233
|
loading: loading,
|
|
@@ -7,13 +7,21 @@ exports["default"] = MiniAppApi;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _antd = require("antd");
|
|
11
|
-
|
|
12
10
|
var _const = require("./const");
|
|
13
11
|
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
13
|
|
|
16
|
-
var
|
|
14
|
+
var antdLibrary;
|
|
15
|
+
|
|
16
|
+
try {
|
|
17
|
+
antdLibrary = require('antd4');
|
|
18
|
+
} catch (error) {
|
|
19
|
+
antdLibrary = require('antd');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var Table = antdLibrary.Table,
|
|
23
|
+
Input = antdLibrary.Input;
|
|
24
|
+
var Search = Input.Search;
|
|
17
25
|
|
|
18
26
|
function MiniAppApi(_a) {
|
|
19
27
|
var _onChange = _a.onChange;
|
|
@@ -46,7 +54,7 @@ function MiniAppApi(_a) {
|
|
|
46
54
|
enterButton: true,
|
|
47
55
|
onSearch: function onSearch() {},
|
|
48
56
|
placeholder: "Api Name"
|
|
49
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
57
|
+
})), /*#__PURE__*/_react["default"].createElement(Table, {
|
|
50
58
|
bordered: false,
|
|
51
59
|
columns: columns,
|
|
52
60
|
dataSource: _const.source,
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = CustomTable;
|
|
9
9
|
|
|
10
|
-
var _antd = require("antd");
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
11
|
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -159,6 +157,16 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
159
157
|
};
|
|
160
158
|
|
|
161
159
|
// import { commonFetch } from '../../../utils/commonUtil';
|
|
160
|
+
var antdLibrary;
|
|
161
|
+
|
|
162
|
+
try {
|
|
163
|
+
antdLibrary = require('antd4');
|
|
164
|
+
} catch (error) {
|
|
165
|
+
antdLibrary = require('antd');
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
var Table = antdLibrary.Table;
|
|
169
|
+
|
|
162
170
|
function CustomTable(props) {
|
|
163
171
|
var _this = this;
|
|
164
172
|
|
|
@@ -235,7 +243,7 @@ function CustomTable(props) {
|
|
|
235
243
|
style: {
|
|
236
244
|
height: 550
|
|
237
245
|
}
|
|
238
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
246
|
+
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
239
247
|
bordered: false,
|
|
240
248
|
columns: columns,
|
|
241
249
|
dataSource: miniAppList,
|