@kmkf-fe-packages/basic-components 2.0.12-beta.1 → 2.0.12-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +23 -8
- package/dist/index.js +23 -8
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -12243,17 +12243,26 @@ var columns$2 = [{
|
|
|
12243
12243
|
dataIndex: 'retailPrice',
|
|
12244
12244
|
title: "\u9500\u552E\u4EF7\u683C",
|
|
12245
12245
|
ellipsis: true,
|
|
12246
|
-
width: 100
|
|
12246
|
+
width: 100,
|
|
12247
|
+
render: function render(price) {
|
|
12248
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12249
|
+
}
|
|
12247
12250
|
}, {
|
|
12248
12251
|
dataIndex: 'marketPrice',
|
|
12249
12252
|
title: "\u5E02\u573A\u4EF7",
|
|
12250
12253
|
ellipsis: true,
|
|
12251
|
-
width: 100
|
|
12254
|
+
width: 100,
|
|
12255
|
+
render: function render(price) {
|
|
12256
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12257
|
+
}
|
|
12252
12258
|
}, {
|
|
12253
12259
|
dataIndex: 'costPrice',
|
|
12254
12260
|
title: "\u6210\u672C\u4EF7",
|
|
12255
12261
|
ellipsis: true,
|
|
12256
|
-
width: 100
|
|
12262
|
+
width: 100,
|
|
12263
|
+
render: function render(price) {
|
|
12264
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12265
|
+
}
|
|
12257
12266
|
}, {
|
|
12258
12267
|
dataIndex: 'skuType',
|
|
12259
12268
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
@@ -14413,7 +14422,10 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14413
14422
|
title: '原价',
|
|
14414
14423
|
width: 150,
|
|
14415
14424
|
ellipsis: true,
|
|
14416
|
-
align: 'center'
|
|
14425
|
+
align: 'center',
|
|
14426
|
+
render: function render(price) {
|
|
14427
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14428
|
+
}
|
|
14417
14429
|
}, {
|
|
14418
14430
|
dataIndex: 'salePrice',
|
|
14419
14431
|
title: '单价',
|
|
@@ -14431,7 +14443,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14431
14443
|
onChange: function onChange(num) {
|
|
14432
14444
|
return updateHandle(num, index, 'salePrice');
|
|
14433
14445
|
}
|
|
14434
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
14446
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14435
14447
|
}
|
|
14436
14448
|
}, {
|
|
14437
14449
|
dataIndex: 'qty',
|
|
@@ -14491,7 +14503,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14491
14503
|
}, {
|
|
14492
14504
|
dataIndex: 'outerOiId',
|
|
14493
14505
|
title: '子订单号',
|
|
14494
|
-
width:
|
|
14506
|
+
width: 240,
|
|
14495
14507
|
ellipsis: true,
|
|
14496
14508
|
align: 'center'
|
|
14497
14509
|
}],
|
|
@@ -14536,7 +14548,10 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14536
14548
|
title: '原价',
|
|
14537
14549
|
width: 150,
|
|
14538
14550
|
ellipsis: true,
|
|
14539
|
-
align: 'center'
|
|
14551
|
+
align: 'center',
|
|
14552
|
+
render: function render(price) {
|
|
14553
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14554
|
+
}
|
|
14540
14555
|
}, {
|
|
14541
14556
|
dataIndex: 'salePrice',
|
|
14542
14557
|
title: '单价',
|
|
@@ -14554,7 +14569,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14554
14569
|
onChange: function onChange(num) {
|
|
14555
14570
|
return updateHandle(num, index, 'salePrice');
|
|
14556
14571
|
}
|
|
14557
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
14572
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14558
14573
|
}
|
|
14559
14574
|
}, {
|
|
14560
14575
|
dataIndex: 'qty',
|
package/dist/index.js
CHANGED
|
@@ -12255,17 +12255,26 @@ var columns$2 = [{
|
|
|
12255
12255
|
dataIndex: 'retailPrice',
|
|
12256
12256
|
title: "\u9500\u552E\u4EF7\u683C",
|
|
12257
12257
|
ellipsis: true,
|
|
12258
|
-
width: 100
|
|
12258
|
+
width: 100,
|
|
12259
|
+
render: function render(price) {
|
|
12260
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12261
|
+
}
|
|
12259
12262
|
}, {
|
|
12260
12263
|
dataIndex: 'marketPrice',
|
|
12261
12264
|
title: "\u5E02\u573A\u4EF7",
|
|
12262
12265
|
ellipsis: true,
|
|
12263
|
-
width: 100
|
|
12266
|
+
width: 100,
|
|
12267
|
+
render: function render(price) {
|
|
12268
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12269
|
+
}
|
|
12264
12270
|
}, {
|
|
12265
12271
|
dataIndex: 'costPrice',
|
|
12266
12272
|
title: "\u6210\u672C\u4EF7",
|
|
12267
12273
|
ellipsis: true,
|
|
12268
|
-
width: 100
|
|
12274
|
+
width: 100,
|
|
12275
|
+
render: function render(price) {
|
|
12276
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12277
|
+
}
|
|
12269
12278
|
}, {
|
|
12270
12279
|
dataIndex: 'skuType',
|
|
12271
12280
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
@@ -14425,7 +14434,10 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14425
14434
|
title: '原价',
|
|
14426
14435
|
width: 150,
|
|
14427
14436
|
ellipsis: true,
|
|
14428
|
-
align: 'center'
|
|
14437
|
+
align: 'center',
|
|
14438
|
+
render: function render(price) {
|
|
14439
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14440
|
+
}
|
|
14429
14441
|
}, {
|
|
14430
14442
|
dataIndex: 'salePrice',
|
|
14431
14443
|
title: '单价',
|
|
@@ -14443,7 +14455,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14443
14455
|
onChange: function onChange(num) {
|
|
14444
14456
|
return updateHandle(num, index, 'salePrice');
|
|
14445
14457
|
}
|
|
14446
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14458
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14447
14459
|
}
|
|
14448
14460
|
}, {
|
|
14449
14461
|
dataIndex: 'qty',
|
|
@@ -14503,7 +14515,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14503
14515
|
}, {
|
|
14504
14516
|
dataIndex: 'outerOiId',
|
|
14505
14517
|
title: '子订单号',
|
|
14506
|
-
width:
|
|
14518
|
+
width: 240,
|
|
14507
14519
|
ellipsis: true,
|
|
14508
14520
|
align: 'center'
|
|
14509
14521
|
}],
|
|
@@ -14548,7 +14560,10 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14548
14560
|
title: '原价',
|
|
14549
14561
|
width: 150,
|
|
14550
14562
|
ellipsis: true,
|
|
14551
|
-
align: 'center'
|
|
14563
|
+
align: 'center',
|
|
14564
|
+
render: function render(price) {
|
|
14565
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14566
|
+
}
|
|
14552
14567
|
}, {
|
|
14553
14568
|
dataIndex: 'salePrice',
|
|
14554
14569
|
title: '单价',
|
|
@@ -14566,7 +14581,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14566
14581
|
onChange: function onChange(num) {
|
|
14567
14582
|
return updateHandle(num, index, 'salePrice');
|
|
14568
14583
|
}
|
|
14569
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14584
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14570
14585
|
}
|
|
14571
14586
|
}, {
|
|
14572
14587
|
dataIndex: 'qty',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.12-beta.
|
|
3
|
+
"version": "2.0.12-beta.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.2",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "633250aff84497bea16c4fe0ccddfbf99fe835ef"
|
|
69
69
|
}
|