@kmkf-fe-packages/basic-components 1.22.1-beta.25 → 1.22.1-beta.27

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 CHANGED
@@ -12628,13 +12628,39 @@ var getColumns = function getColumns(_ref) {
12628
12628
  title: "\u5546\u54C1\u6570\u91CF",
12629
12629
  align: 'center',
12630
12630
  ellipsis: true,
12631
- width: 100
12631
+ width: 100,
12632
+ render: function render(val, record, index) {
12633
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12634
+ style: {
12635
+ width: 70
12636
+ },
12637
+ value: val,
12638
+ min: 1,
12639
+ precision: 0,
12640
+ onChange: function onChange(num) {
12641
+ return updateHandle(num, index, 'goodsNumber');
12642
+ }
12643
+ }) : /*#__PURE__*/React.createElement("span", null, val);
12644
+ }
12632
12645
  }, {
12633
12646
  dataIndex: 'goodsPrice',
12634
12647
  title: "\u5546\u54C1\u5355\u4EF7",
12635
12648
  align: 'center',
12636
12649
  ellipsis: true,
12637
- width: 120
12650
+ width: 120,
12651
+ render: function render(val, record, index) {
12652
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12653
+ style: {
12654
+ width: 70
12655
+ },
12656
+ value: val,
12657
+ min: 0,
12658
+ precision: 2,
12659
+ onChange: function onChange(num) {
12660
+ return updateHandle(num, index, 'goodsPrice');
12661
+ }
12662
+ }) : /*#__PURE__*/React.createElement("span", null, val);
12663
+ }
12638
12664
  }, {
12639
12665
  dataIndex: 'shopPrice',
12640
12666
  title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
@@ -12658,7 +12684,20 @@ var getColumns = function getColumns(_ref) {
12658
12684
  title: "\u5B9E\u4ED8\u91D1\u989D",
12659
12685
  align: 'center',
12660
12686
  ellipsis: true,
12661
- width: 120
12687
+ width: 120,
12688
+ render: function render(val, record, index) {
12689
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12690
+ style: {
12691
+ width: 70
12692
+ },
12693
+ value: val,
12694
+ min: 0,
12695
+ precision: 2,
12696
+ onChange: function onChange(num) {
12697
+ return updateHandle(num, index, 'payment');
12698
+ }
12699
+ }) : /*#__PURE__*/React.createElement("span", null, val);
12700
+ }
12662
12701
  }, {
12663
12702
  dataIndex: 'tcSku',
12664
12703
  title: "\u5957\u9910SKU",
@@ -13755,8 +13794,8 @@ var GoodItem$1 = function GoodItem(props) {
13755
13794
  var currentCol = initBaseInfoColumns.find(function (item) {
13756
13795
  return item.dataIndex === col.dataIndex;
13757
13796
  });
13758
- return currentCol !== null && currentCol !== void 0 ? currentCol : col;
13759
- });
13797
+ return currentCol ? currentCol : undefined;
13798
+ }).filter(Boolean);
13760
13799
  }
13761
13800
  var columnList = [{
13762
13801
  dataIndex: '',
package/dist/index.js CHANGED
@@ -12640,13 +12640,39 @@ var getColumns = function getColumns(_ref) {
12640
12640
  title: "\u5546\u54C1\u6570\u91CF",
12641
12641
  align: 'center',
12642
12642
  ellipsis: true,
12643
- width: 100
12643
+ width: 100,
12644
+ render: function render(val, record, index) {
12645
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
12646
+ style: {
12647
+ width: 70
12648
+ },
12649
+ value: val,
12650
+ min: 1,
12651
+ precision: 0,
12652
+ onChange: function onChange(num) {
12653
+ return updateHandle(num, index, 'goodsNumber');
12654
+ }
12655
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
12656
+ }
12644
12657
  }, {
12645
12658
  dataIndex: 'goodsPrice',
12646
12659
  title: "\u5546\u54C1\u5355\u4EF7",
12647
12660
  align: 'center',
12648
12661
  ellipsis: true,
12649
- width: 120
12662
+ width: 120,
12663
+ render: function render(val, record, index) {
12664
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
12665
+ style: {
12666
+ width: 70
12667
+ },
12668
+ value: val,
12669
+ min: 0,
12670
+ precision: 2,
12671
+ onChange: function onChange(num) {
12672
+ return updateHandle(num, index, 'goodsPrice');
12673
+ }
12674
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
12675
+ }
12650
12676
  }, {
12651
12677
  dataIndex: 'shopPrice',
12652
12678
  title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
@@ -12670,7 +12696,20 @@ var getColumns = function getColumns(_ref) {
12670
12696
  title: "\u5B9E\u4ED8\u91D1\u989D",
12671
12697
  align: 'center',
12672
12698
  ellipsis: true,
12673
- width: 120
12699
+ width: 120,
12700
+ render: function render(val, record, index) {
12701
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
12702
+ style: {
12703
+ width: 70
12704
+ },
12705
+ value: val,
12706
+ min: 0,
12707
+ precision: 2,
12708
+ onChange: function onChange(num) {
12709
+ return updateHandle(num, index, 'payment');
12710
+ }
12711
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
12712
+ }
12674
12713
  }, {
12675
12714
  dataIndex: 'tcSku',
12676
12715
  title: "\u5957\u9910SKU",
@@ -13767,8 +13806,8 @@ var GoodItem$1 = function GoodItem(props) {
13767
13806
  var currentCol = initBaseInfoColumns.find(function (item) {
13768
13807
  return item.dataIndex === col.dataIndex;
13769
13808
  });
13770
- return currentCol !== null && currentCol !== void 0 ? currentCol : col;
13771
- });
13809
+ return currentCol ? currentCol : undefined;
13810
+ }).filter(Boolean);
13772
13811
  }
13773
13812
  var columnList = [{
13774
13813
  dataIndex: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "1.22.1-beta.25",
3
+ "version": "1.22.1-beta.27",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "51717efb58e6c93c06190729d1e0241fcdca1785"
68
+ "gitHead": "f9145447958ab0b77b8c25cb6dd67ceb990028d0"
69
69
  }