@kmkf-fe-packages/basic-components 0.24.2-beta.1 → 0.24.2-beta.3

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
@@ -11094,11 +11094,11 @@ var columns$1 = [{
11094
11094
  }, {
11095
11095
  dataIndex: 'goodName',
11096
11096
  title: '商品名称',
11097
- width: 200,
11097
+ width: 250,
11098
11098
  ellipsis: true
11099
11099
  }, {
11100
11100
  dataIndex: 'goodNo',
11101
- title: '商品spu编码',
11101
+ title: '商品SPU编码',
11102
11102
  width: 200,
11103
11103
  ellipsis: true
11104
11104
  }, {
@@ -11109,17 +11109,17 @@ var columns$1 = [{
11109
11109
  }, {
11110
11110
  dataIndex: 'specCount',
11111
11111
  title: '规格数',
11112
- width: 160,
11112
+ width: 100,
11113
11113
  ellipsis: true
11114
11114
  }];
11115
11115
  var expandedColumns = [{
11116
11116
  dataIndex: 'specName',
11117
- title: '商品sku名称',
11117
+ title: '商品SKU名称',
11118
11118
  width: 200,
11119
11119
  ellipsis: true
11120
11120
  }, {
11121
11121
  dataIndex: 'specNo',
11122
- title: '商品sku编码',
11122
+ title: '商品SKU编码',
11123
11123
  width: 200,
11124
11124
  ellipsis: true
11125
11125
  }, {
@@ -11371,6 +11371,8 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11371
11371
  var displaySelectedColumns = [{
11372
11372
  dataIndex: 'operation',
11373
11373
  title: '',
11374
+ ellipsis: true,
11375
+ width: 50,
11374
11376
  render: function render(_, record, index) {
11375
11377
  return /*#__PURE__*/React.createElement(DeleteOutlined, {
11376
11378
  onClick: function onClick() {
@@ -11381,6 +11383,7 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11381
11383
  }, {
11382
11384
  dataIndex: 'index',
11383
11385
  title: 'NO',
11386
+ width: 100,
11384
11387
  render: function render(val, record, index) {
11385
11388
  return /*#__PURE__*/React.createElement("div", {
11386
11389
  style: {
@@ -11388,6 +11391,16 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11388
11391
  }
11389
11392
  }, index + 1);
11390
11393
  }
11394
+ }, {
11395
+ dataIndex: 'goodName',
11396
+ title: '商品名称',
11397
+ width: 250,
11398
+ ellipsis: true
11399
+ }, {
11400
+ dataIndex: 'goodNo',
11401
+ title: "SPU\u5546\u54C1\u7F16\u7801",
11402
+ ellipsis: true,
11403
+ width: 200
11391
11404
  }];
11392
11405
  var expandedRowSelection = {
11393
11406
  fixed: true,
@@ -11464,14 +11477,17 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11464
11477
  })), /*#__PURE__*/React.createElement(Form.Item, {
11465
11478
  name: "code"
11466
11479
  }, /*#__PURE__*/React.createElement(Input, {
11467
- placeholder: "\u5546\u54C1\u7F16\u7801",
11480
+ placeholder: "\u5546\u54C1SPU\u7F16\u7801",
11468
11481
  allowClear: true,
11469
11482
  style: {
11470
11483
  width: 150
11471
11484
  }
11472
11485
  })), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Button, {
11473
11486
  type: "primary",
11474
- htmlType: "submit"
11487
+ htmlType: "submit",
11488
+ style: {
11489
+ marginRight: '8px'
11490
+ }
11475
11491
  }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
11476
11492
  onClick: onReset
11477
11493
  }, "\u91CD\u7F6E"))), /*#__PURE__*/React.createElement("div", {
@@ -11484,7 +11500,7 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11484
11500
  dataSource: goodList,
11485
11501
  loading: loading,
11486
11502
  scroll: {
11487
- x: true,
11503
+ x: '100%',
11488
11504
  y: 250
11489
11505
  },
11490
11506
  expandable: {
@@ -11498,13 +11514,17 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11498
11514
  pageSizeOptions: [],
11499
11515
  onChange: pageChange
11500
11516
  }
11501
- })), !!selectList.length && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, "\u5DF2\u7ECF\u9009\u62E9\u5546\u54C1\uFF08", selectList.length, "\uFF09"), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Table, {
11517
+ })), !!selectList.length && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, "\u5DF2\u7ECF\u9009\u62E9\u5546\u54C1\uFF08", selectList.length, "\uFF09"), /*#__PURE__*/React.createElement("div", {
11518
+ style: {
11519
+ marginTop: '16px'
11520
+ }
11521
+ }, /*#__PURE__*/React.createElement(Table, {
11502
11522
  rowKey: 'specId',
11503
11523
  columns: [].concat(displaySelectedColumns, expandedColumns),
11504
11524
  dataSource: displaySelectList,
11505
11525
  pagination: false,
11506
11526
  scroll: {
11507
- x: true,
11527
+ x: '100%',
11508
11528
  y: 250
11509
11529
  },
11510
11530
  style: {
@@ -11590,7 +11610,7 @@ var GoodItem$1 = function GoodItem(props) {
11590
11610
  title: "SPU\u5546\u54C1\u7F16\u7801",
11591
11611
  align: 'center',
11592
11612
  ellipsis: true,
11593
- width: 100
11613
+ width: 180
11594
11614
  }, {
11595
11615
  dataIndex: 'goodName',
11596
11616
  title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
@@ -11608,7 +11628,7 @@ var GoodItem$1 = function GoodItem(props) {
11608
11628
  title: "".concat(text, "sku\u7F16\u7801"),
11609
11629
  align: 'center',
11610
11630
  ellipsis: true,
11611
- width: 100
11631
+ width: 180
11612
11632
  }, {
11613
11633
  dataIndex: 'specName',
11614
11634
  title: "".concat(text, "sku\u540D\u79F0"),
package/dist/index.js CHANGED
@@ -11105,11 +11105,11 @@ var columns$1 = [{
11105
11105
  }, {
11106
11106
  dataIndex: 'goodName',
11107
11107
  title: '商品名称',
11108
- width: 200,
11108
+ width: 250,
11109
11109
  ellipsis: true
11110
11110
  }, {
11111
11111
  dataIndex: 'goodNo',
11112
- title: '商品spu编码',
11112
+ title: '商品SPU编码',
11113
11113
  width: 200,
11114
11114
  ellipsis: true
11115
11115
  }, {
@@ -11120,17 +11120,17 @@ var columns$1 = [{
11120
11120
  }, {
11121
11121
  dataIndex: 'specCount',
11122
11122
  title: '规格数',
11123
- width: 160,
11123
+ width: 100,
11124
11124
  ellipsis: true
11125
11125
  }];
11126
11126
  var expandedColumns = [{
11127
11127
  dataIndex: 'specName',
11128
- title: '商品sku名称',
11128
+ title: '商品SKU名称',
11129
11129
  width: 200,
11130
11130
  ellipsis: true
11131
11131
  }, {
11132
11132
  dataIndex: 'specNo',
11133
- title: '商品sku编码',
11133
+ title: '商品SKU编码',
11134
11134
  width: 200,
11135
11135
  ellipsis: true
11136
11136
  }, {
@@ -11382,6 +11382,8 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11382
11382
  var displaySelectedColumns = [{
11383
11383
  dataIndex: 'operation',
11384
11384
  title: '',
11385
+ ellipsis: true,
11386
+ width: 50,
11385
11387
  render: function render(_, record, index) {
11386
11388
  return /*#__PURE__*/React__default['default'].createElement(icons.DeleteOutlined, {
11387
11389
  onClick: function onClick() {
@@ -11392,6 +11394,7 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11392
11394
  }, {
11393
11395
  dataIndex: 'index',
11394
11396
  title: 'NO',
11397
+ width: 100,
11395
11398
  render: function render(val, record, index) {
11396
11399
  return /*#__PURE__*/React__default['default'].createElement("div", {
11397
11400
  style: {
@@ -11399,6 +11402,16 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11399
11402
  }
11400
11403
  }, index + 1);
11401
11404
  }
11405
+ }, {
11406
+ dataIndex: 'goodName',
11407
+ title: '商品名称',
11408
+ width: 250,
11409
+ ellipsis: true
11410
+ }, {
11411
+ dataIndex: 'goodNo',
11412
+ title: "SPU\u5546\u54C1\u7F16\u7801",
11413
+ ellipsis: true,
11414
+ width: 200
11402
11415
  }];
11403
11416
  var expandedRowSelection = {
11404
11417
  fixed: true,
@@ -11475,14 +11488,17 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11475
11488
  })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
11476
11489
  name: "code"
11477
11490
  }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11478
- placeholder: "\u5546\u54C1\u7F16\u7801",
11491
+ placeholder: "\u5546\u54C1SPU\u7F16\u7801",
11479
11492
  allowClear: true,
11480
11493
  style: {
11481
11494
  width: 150
11482
11495
  }
11483
11496
  })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
11484
11497
  type: "primary",
11485
- htmlType: "submit"
11498
+ htmlType: "submit",
11499
+ style: {
11500
+ marginRight: '8px'
11501
+ }
11486
11502
  }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
11487
11503
  onClick: onReset
11488
11504
  }, "\u91CD\u7F6E"))), /*#__PURE__*/React__default['default'].createElement("div", {
@@ -11495,7 +11511,7 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11495
11511
  dataSource: goodList,
11496
11512
  loading: loading,
11497
11513
  scroll: {
11498
- x: true,
11514
+ x: '100%',
11499
11515
  y: 250
11500
11516
  },
11501
11517
  expandable: {
@@ -11509,13 +11525,17 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11509
11525
  pageSizeOptions: [],
11510
11526
  onChange: pageChange
11511
11527
  }
11512
- })), !!selectList.length && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, "\u5DF2\u7ECF\u9009\u62E9\u5546\u54C1\uFF08", selectList.length, "\uFF09"), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
11528
+ })), !!selectList.length && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, "\u5DF2\u7ECF\u9009\u62E9\u5546\u54C1\uFF08", selectList.length, "\uFF09"), /*#__PURE__*/React__default['default'].createElement("div", {
11529
+ style: {
11530
+ marginTop: '16px'
11531
+ }
11532
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
11513
11533
  rowKey: 'specId',
11514
11534
  columns: [].concat(displaySelectedColumns, expandedColumns),
11515
11535
  dataSource: displaySelectList,
11516
11536
  pagination: false,
11517
11537
  scroll: {
11518
- x: true,
11538
+ x: '100%',
11519
11539
  y: 250
11520
11540
  },
11521
11541
  style: {
@@ -11601,7 +11621,7 @@ var GoodItem$1 = function GoodItem(props) {
11601
11621
  title: "SPU\u5546\u54C1\u7F16\u7801",
11602
11622
  align: 'center',
11603
11623
  ellipsis: true,
11604
- width: 100
11624
+ width: 180
11605
11625
  }, {
11606
11626
  dataIndex: 'goodName',
11607
11627
  title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
@@ -11619,7 +11639,7 @@ var GoodItem$1 = function GoodItem(props) {
11619
11639
  title: "".concat(text, "sku\u7F16\u7801"),
11620
11640
  align: 'center',
11621
11641
  ellipsis: true,
11622
- width: 100
11642
+ width: 180
11623
11643
  }, {
11624
11644
  dataIndex: 'specName',
11625
11645
  title: "".concat(text, "sku\u540D\u79F0"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.24.2-beta.1",
3
+ "version": "0.24.2-beta.3",
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": "^0.24.2-beta.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.24.2-beta.2",
24
24
  "ahooks": "^3.7.4",
25
25
  "kmkf-monitor": "^0.8.8",
26
26
  "lodash": "^4.17.21",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "6814711ba1b3f235edaeb64b899e3fcd23def8f8"
67
+ "gitHead": "ec5ebf0389e4f6694624f5d130a7f915245d3789"
68
68
  }