@kmkf-fe-packages/basic-components 0.23.1-alpha.0 → 0.23.1-beta.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.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, request as request$1, ExpressData, LogisticsAddressData, uuid, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, LogisticsAddressData, uuid, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import zhCN from 'antd/lib/locale/zh_CN';
8
8
  import pubsub from 'pubsub-js';
9
9
  import { cloneDeep } from 'lodash';
@@ -7359,6 +7359,7 @@ function ApaasRate(props) {
7359
7359
 
7360
7360
  AddressData.getInstance();
7361
7361
  BsAddressData.getInstance();
7362
+ WdtAddressData.getInstance();
7362
7363
  var Province = function Province(props) {
7363
7364
  var _props$type = props.type,
7364
7365
  type = _props$type === void 0 ? 'workOrder' : _props$type;
@@ -7376,7 +7377,11 @@ var Province = function Province(props) {
7376
7377
  while (1) switch (_context.prev = _context.next) {
7377
7378
  case 0:
7378
7379
  num++;
7379
- options = type !== 'bs' ? AddressData.getInstance().addressOptions || [] : BsAddressData.getInstance().addressOptions || [];
7380
+ options = ({
7381
+ bs: BsAddressData,
7382
+ wdt: WdtAddressData,
7383
+ workOrder: AddressData
7384
+ }[type] || AddressData).getInstance().addressOptions || [];
7380
7385
  if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7381
7386
  time.current = setTimeout(function () {
7382
7387
  initPageSource();
@@ -10339,6 +10344,7 @@ var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
10339
10344
  var GoodItem = function GoodItem(props) {
10340
10345
  var _props$value = props.value,
10341
10346
  value = _props$value === void 0 ? [] : _props$value,
10347
+ type = props.type,
10342
10348
  onChange = props.onChange,
10343
10349
  disabled = props.disabled,
10344
10350
  _props$showHeader = props.showHeader,
@@ -10386,105 +10392,186 @@ var GoodItem = function GoodItem(props) {
10386
10392
  onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
10387
10393
  }
10388
10394
  };
10395
+ var COLUMNS_MAP = function COLUMNS_MAP() {
10396
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
10397
+ return {
10398
+ DEFAULT: [{
10399
+ dataIndex: 'mark',
10400
+ title: "\u5546\u54C1\u6807\u8BB0",
10401
+ align: 'center',
10402
+ ellipsis: true,
10403
+ width: 70,
10404
+ render: function render(val, record, index) {
10405
+ return /*#__PURE__*/React.createElement(Select, {
10406
+ options: [{
10407
+ label: '是',
10408
+ value: '是'
10409
+ }, {
10410
+ label: '否',
10411
+ value: '否'
10412
+ }],
10413
+ disabled: disabled,
10414
+ value: val,
10415
+ onChange: function onChange(val) {
10416
+ return updateHandle(val, index, 'mark');
10417
+ }
10418
+ });
10419
+ }
10420
+ }, {
10421
+ dataIndex: 'skuName',
10422
+ title: "".concat(text, "sku\u540D\u79F0"),
10423
+ align: 'center',
10424
+ ellipsis: true,
10425
+ width: 250
10426
+ }, {
10427
+ dataIndex: 'sku',
10428
+ title: "".concat(text, "sku\u7F16\u7801"),
10429
+ align: 'center',
10430
+ ellipsis: true,
10431
+ width: 100
10432
+ }, {
10433
+ dataIndex: 'name',
10434
+ title: "".concat(text, "\u540D\u79F0"),
10435
+ align: 'center',
10436
+ ellipsis: true,
10437
+ width: 250
10438
+ }, {
10439
+ dataIndex: 'pic',
10440
+ title: "\u56FE\u7247",
10441
+ align: 'center',
10442
+ ellipsis: true,
10443
+ width: 100,
10444
+ render: function render(val) {
10445
+ return /*#__PURE__*/React.createElement(Image, {
10446
+ width: 60,
10447
+ src: val
10448
+ });
10449
+ }
10450
+ }, {
10451
+ dataIndex: 'code',
10452
+ title: "".concat(text, "\u7F16\u7801"),
10453
+ align: 'center',
10454
+ ellipsis: true,
10455
+ width: 100
10456
+ }, {
10457
+ dataIndex: 'money',
10458
+ title: "\u5B9E\u4ED8\u91D1\u989D",
10459
+ align: 'center',
10460
+ ellipsis: true,
10461
+ width: 100
10462
+ }, {
10463
+ dataIndex: 'number',
10464
+ title: "".concat(text, "\u6570\u91CF"),
10465
+ align: 'center',
10466
+ ellipsis: true,
10467
+ width: 100,
10468
+ render: function render(val, record, index) {
10469
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
10470
+ style: {
10471
+ width: 70
10472
+ },
10473
+ value: val,
10474
+ min: 0,
10475
+ precision: 0,
10476
+ onChange: function onChange(num) {
10477
+ return updateHandle(num, index, 'number');
10478
+ }
10479
+ }) : /*#__PURE__*/React.createElement("span", null, val);
10480
+ }
10481
+ }, {
10482
+ dataIndex: 'share',
10483
+ title: "\u5206\u644A\u4EF7",
10484
+ align: 'center',
10485
+ ellipsis: true,
10486
+ width: 70
10487
+ }, {
10488
+ dataIndex: 'type',
10489
+ title: "\u8D60\u54C1\u7C7B\u578B",
10490
+ align: 'center',
10491
+ ellipsis: true,
10492
+ width: 100
10493
+ }],
10494
+ WDT_REISSUE_GOODS: [{
10495
+ dataIndex: 'spuId',
10496
+ title: "SPUID",
10497
+ align: 'center',
10498
+ ellipsis: true,
10499
+ width: 70
10500
+ }, {
10501
+ dataIndex: 'spuSku',
10502
+ title: "SPU\u5546\u54C1\u7F16\u7801",
10503
+ align: 'center',
10504
+ ellipsis: true,
10505
+ width: 100
10506
+ }, {
10507
+ dataIndex: 'skuId',
10508
+ title: "".concat(text, "SKUID"),
10509
+ align: 'center',
10510
+ ellipsis: true,
10511
+ width: 100
10512
+ }, {
10513
+ dataIndex: 'name',
10514
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
10515
+ align: 'center',
10516
+ ellipsis: true,
10517
+ width: 250
10518
+ }, {
10519
+ dataIndex: 'sku',
10520
+ title: "".concat(text, "sku\u7F16\u7801"),
10521
+ align: 'center',
10522
+ ellipsis: true,
10523
+ width: 100
10524
+ }, {
10525
+ dataIndex: 'skuName',
10526
+ title: "".concat(text, "sku\u540D\u79F0"),
10527
+ align: 'center',
10528
+ ellipsis: true,
10529
+ width: 250
10530
+ }, {
10531
+ dataIndex: 'money',
10532
+ title: "\u5B9E\u4ED8\u91D1\u989D",
10533
+ align: 'center',
10534
+ ellipsis: true,
10535
+ width: 100
10536
+ }, {
10537
+ dataIndex: 'number',
10538
+ title: "".concat(text, "\u6570\u91CF"),
10539
+ align: 'center',
10540
+ ellipsis: true,
10541
+ width: 100,
10542
+ render: function render(val, record, index) {
10543
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
10544
+ style: {
10545
+ width: 70
10546
+ },
10547
+ value: val,
10548
+ min: 0,
10549
+ precision: 0,
10550
+ onChange: function onChange(num) {
10551
+ return updateHandle(num, index, 'number');
10552
+ }
10553
+ }) : /*#__PURE__*/React.createElement("span", null, val);
10554
+ }
10555
+ }, {
10556
+ dataIndex: 'share',
10557
+ title: "\u5206\u644A\u4EF7",
10558
+ align: 'center',
10559
+ ellipsis: true,
10560
+ width: 70
10561
+ }, {
10562
+ dataIndex: 'type',
10563
+ title: "\u8D60\u54C1\u7C7B\u578B",
10564
+ align: 'center',
10565
+ ellipsis: true,
10566
+ width: 100
10567
+ }]
10568
+ };
10569
+ };
10389
10570
  //商品信息
10390
10571
  var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
10391
10572
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
10392
- return [{
10393
- dataIndex: 'mark',
10394
- title: "\u5546\u54C1\u6807\u8BB0",
10395
- align: 'center',
10396
- ellipsis: true,
10397
- width: 70,
10398
- render: function render(val, record, index) {
10399
- return /*#__PURE__*/React.createElement(Select, {
10400
- options: [{
10401
- label: '是',
10402
- value: '是'
10403
- }, {
10404
- label: '否',
10405
- value: '否'
10406
- }],
10407
- disabled: disabled,
10408
- value: val,
10409
- onChange: function onChange(val) {
10410
- return updateHandle(val, index, 'mark');
10411
- }
10412
- });
10413
- }
10414
- }, {
10415
- dataIndex: 'skuName',
10416
- title: "".concat(text, "sku\u540D\u79F0"),
10417
- align: 'center',
10418
- ellipsis: true,
10419
- width: 250
10420
- }, {
10421
- dataIndex: 'sku',
10422
- title: "".concat(text, "sku\u7F16\u7801"),
10423
- align: 'center',
10424
- ellipsis: true,
10425
- width: 100
10426
- }, {
10427
- dataIndex: 'name',
10428
- title: "".concat(text, "\u540D\u79F0"),
10429
- align: 'center',
10430
- ellipsis: true,
10431
- width: 250
10432
- }, {
10433
- dataIndex: 'pic',
10434
- title: "\u56FE\u7247",
10435
- align: 'center',
10436
- ellipsis: true,
10437
- width: 100,
10438
- render: function render(val) {
10439
- return /*#__PURE__*/React.createElement(Image, {
10440
- width: 60,
10441
- src: val
10442
- });
10443
- }
10444
- }, {
10445
- dataIndex: 'code',
10446
- title: "".concat(text, "\u7F16\u7801"),
10447
- align: 'center',
10448
- ellipsis: true,
10449
- width: 100
10450
- }, {
10451
- dataIndex: 'money',
10452
- title: "\u5B9E\u4ED8\u91D1\u989D",
10453
- align: 'center',
10454
- ellipsis: true,
10455
- width: 100
10456
- }, {
10457
- dataIndex: 'number',
10458
- title: "".concat(text, "\u6570\u91CF"),
10459
- align: 'center',
10460
- ellipsis: true,
10461
- width: 100,
10462
- render: function render(val, record, index) {
10463
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
10464
- style: {
10465
- width: 70
10466
- },
10467
- value: val,
10468
- min: 0,
10469
- precision: 0,
10470
- onChange: function onChange(num) {
10471
- return updateHandle(num, index, 'number');
10472
- }
10473
- }) : /*#__PURE__*/React.createElement("span", null, val);
10474
- }
10475
- }, {
10476
- dataIndex: 'share',
10477
- title: "\u5206\u644A\u4EF7",
10478
- align: 'center',
10479
- ellipsis: true,
10480
- width: 70
10481
- }, {
10482
- dataIndex: 'type',
10483
- title: "\u8D60\u54C1\u7C7B\u578B",
10484
- align: 'center',
10485
- ellipsis: true,
10486
- width: 100
10487
- }];
10573
+ var COLUMNS_INFO = COLUMNS_MAP(text);
10574
+ return (COLUMNS_INFO === null || COLUMNS_INFO === void 0 ? void 0 : COLUMNS_INFO["".concat(type)]) || COLUMNS_INFO['DEFAULT'];
10488
10575
  };
10489
10576
  var newColumns = useMemo(function () {
10490
10577
  var columnList = [{
package/dist/index.js CHANGED
@@ -7370,6 +7370,7 @@ function ApaasRate(props) {
7370
7370
 
7371
7371
  kmkfUtils.AddressData.getInstance();
7372
7372
  kmkfUtils.BsAddressData.getInstance();
7373
+ kmkfUtils.WdtAddressData.getInstance();
7373
7374
  var Province = function Province(props) {
7374
7375
  var _props$type = props.type,
7375
7376
  type = _props$type === void 0 ? 'workOrder' : _props$type;
@@ -7387,7 +7388,11 @@ var Province = function Province(props) {
7387
7388
  while (1) switch (_context.prev = _context.next) {
7388
7389
  case 0:
7389
7390
  num++;
7390
- options = type !== 'bs' ? kmkfUtils.AddressData.getInstance().addressOptions || [] : kmkfUtils.BsAddressData.getInstance().addressOptions || [];
7391
+ options = ({
7392
+ bs: kmkfUtils.BsAddressData,
7393
+ wdt: kmkfUtils.WdtAddressData,
7394
+ workOrder: kmkfUtils.AddressData
7395
+ }[type] || kmkfUtils.AddressData).getInstance().addressOptions || [];
7391
7396
  if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7392
7397
  time.current = setTimeout(function () {
7393
7398
  initPageSource();
@@ -10350,6 +10355,7 @@ var GoodsModal$2 = /*#__PURE__*/React.forwardRef(GoodsModal$1);
10350
10355
  var GoodItem = function GoodItem(props) {
10351
10356
  var _props$value = props.value,
10352
10357
  value = _props$value === void 0 ? [] : _props$value,
10358
+ type = props.type,
10353
10359
  onChange = props.onChange,
10354
10360
  disabled = props.disabled,
10355
10361
  _props$showHeader = props.showHeader,
@@ -10397,105 +10403,186 @@ var GoodItem = function GoodItem(props) {
10397
10403
  onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
10398
10404
  }
10399
10405
  };
10406
+ var COLUMNS_MAP = function COLUMNS_MAP() {
10407
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
10408
+ return {
10409
+ DEFAULT: [{
10410
+ dataIndex: 'mark',
10411
+ title: "\u5546\u54C1\u6807\u8BB0",
10412
+ align: 'center',
10413
+ ellipsis: true,
10414
+ width: 70,
10415
+ render: function render(val, record, index) {
10416
+ return /*#__PURE__*/React__default['default'].createElement(antd.Select, {
10417
+ options: [{
10418
+ label: '是',
10419
+ value: '是'
10420
+ }, {
10421
+ label: '否',
10422
+ value: '否'
10423
+ }],
10424
+ disabled: disabled,
10425
+ value: val,
10426
+ onChange: function onChange(val) {
10427
+ return updateHandle(val, index, 'mark');
10428
+ }
10429
+ });
10430
+ }
10431
+ }, {
10432
+ dataIndex: 'skuName',
10433
+ title: "".concat(text, "sku\u540D\u79F0"),
10434
+ align: 'center',
10435
+ ellipsis: true,
10436
+ width: 250
10437
+ }, {
10438
+ dataIndex: 'sku',
10439
+ title: "".concat(text, "sku\u7F16\u7801"),
10440
+ align: 'center',
10441
+ ellipsis: true,
10442
+ width: 100
10443
+ }, {
10444
+ dataIndex: 'name',
10445
+ title: "".concat(text, "\u540D\u79F0"),
10446
+ align: 'center',
10447
+ ellipsis: true,
10448
+ width: 250
10449
+ }, {
10450
+ dataIndex: 'pic',
10451
+ title: "\u56FE\u7247",
10452
+ align: 'center',
10453
+ ellipsis: true,
10454
+ width: 100,
10455
+ render: function render(val) {
10456
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
10457
+ width: 60,
10458
+ src: val
10459
+ });
10460
+ }
10461
+ }, {
10462
+ dataIndex: 'code',
10463
+ title: "".concat(text, "\u7F16\u7801"),
10464
+ align: 'center',
10465
+ ellipsis: true,
10466
+ width: 100
10467
+ }, {
10468
+ dataIndex: 'money',
10469
+ title: "\u5B9E\u4ED8\u91D1\u989D",
10470
+ align: 'center',
10471
+ ellipsis: true,
10472
+ width: 100
10473
+ }, {
10474
+ dataIndex: 'number',
10475
+ title: "".concat(text, "\u6570\u91CF"),
10476
+ align: 'center',
10477
+ ellipsis: true,
10478
+ width: 100,
10479
+ render: function render(val, record, index) {
10480
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
10481
+ style: {
10482
+ width: 70
10483
+ },
10484
+ value: val,
10485
+ min: 0,
10486
+ precision: 0,
10487
+ onChange: function onChange(num) {
10488
+ return updateHandle(num, index, 'number');
10489
+ }
10490
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
10491
+ }
10492
+ }, {
10493
+ dataIndex: 'share',
10494
+ title: "\u5206\u644A\u4EF7",
10495
+ align: 'center',
10496
+ ellipsis: true,
10497
+ width: 70
10498
+ }, {
10499
+ dataIndex: 'type',
10500
+ title: "\u8D60\u54C1\u7C7B\u578B",
10501
+ align: 'center',
10502
+ ellipsis: true,
10503
+ width: 100
10504
+ }],
10505
+ WDT_REISSUE_GOODS: [{
10506
+ dataIndex: 'spuId',
10507
+ title: "SPUID",
10508
+ align: 'center',
10509
+ ellipsis: true,
10510
+ width: 70
10511
+ }, {
10512
+ dataIndex: 'spuSku',
10513
+ title: "SPU\u5546\u54C1\u7F16\u7801",
10514
+ align: 'center',
10515
+ ellipsis: true,
10516
+ width: 100
10517
+ }, {
10518
+ dataIndex: 'skuId',
10519
+ title: "".concat(text, "SKUID"),
10520
+ align: 'center',
10521
+ ellipsis: true,
10522
+ width: 100
10523
+ }, {
10524
+ dataIndex: 'name',
10525
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
10526
+ align: 'center',
10527
+ ellipsis: true,
10528
+ width: 250
10529
+ }, {
10530
+ dataIndex: 'sku',
10531
+ title: "".concat(text, "sku\u7F16\u7801"),
10532
+ align: 'center',
10533
+ ellipsis: true,
10534
+ width: 100
10535
+ }, {
10536
+ dataIndex: 'skuName',
10537
+ title: "".concat(text, "sku\u540D\u79F0"),
10538
+ align: 'center',
10539
+ ellipsis: true,
10540
+ width: 250
10541
+ }, {
10542
+ dataIndex: 'money',
10543
+ title: "\u5B9E\u4ED8\u91D1\u989D",
10544
+ align: 'center',
10545
+ ellipsis: true,
10546
+ width: 100
10547
+ }, {
10548
+ dataIndex: 'number',
10549
+ title: "".concat(text, "\u6570\u91CF"),
10550
+ align: 'center',
10551
+ ellipsis: true,
10552
+ width: 100,
10553
+ render: function render(val, record, index) {
10554
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
10555
+ style: {
10556
+ width: 70
10557
+ },
10558
+ value: val,
10559
+ min: 0,
10560
+ precision: 0,
10561
+ onChange: function onChange(num) {
10562
+ return updateHandle(num, index, 'number');
10563
+ }
10564
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
10565
+ }
10566
+ }, {
10567
+ dataIndex: 'share',
10568
+ title: "\u5206\u644A\u4EF7",
10569
+ align: 'center',
10570
+ ellipsis: true,
10571
+ width: 70
10572
+ }, {
10573
+ dataIndex: 'type',
10574
+ title: "\u8D60\u54C1\u7C7B\u578B",
10575
+ align: 'center',
10576
+ ellipsis: true,
10577
+ width: 100
10578
+ }]
10579
+ };
10580
+ };
10400
10581
  //商品信息
10401
10582
  var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
10402
10583
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
10403
- return [{
10404
- dataIndex: 'mark',
10405
- title: "\u5546\u54C1\u6807\u8BB0",
10406
- align: 'center',
10407
- ellipsis: true,
10408
- width: 70,
10409
- render: function render(val, record, index) {
10410
- return /*#__PURE__*/React__default['default'].createElement(antd.Select, {
10411
- options: [{
10412
- label: '是',
10413
- value: '是'
10414
- }, {
10415
- label: '否',
10416
- value: '否'
10417
- }],
10418
- disabled: disabled,
10419
- value: val,
10420
- onChange: function onChange(val) {
10421
- return updateHandle(val, index, 'mark');
10422
- }
10423
- });
10424
- }
10425
- }, {
10426
- dataIndex: 'skuName',
10427
- title: "".concat(text, "sku\u540D\u79F0"),
10428
- align: 'center',
10429
- ellipsis: true,
10430
- width: 250
10431
- }, {
10432
- dataIndex: 'sku',
10433
- title: "".concat(text, "sku\u7F16\u7801"),
10434
- align: 'center',
10435
- ellipsis: true,
10436
- width: 100
10437
- }, {
10438
- dataIndex: 'name',
10439
- title: "".concat(text, "\u540D\u79F0"),
10440
- align: 'center',
10441
- ellipsis: true,
10442
- width: 250
10443
- }, {
10444
- dataIndex: 'pic',
10445
- title: "\u56FE\u7247",
10446
- align: 'center',
10447
- ellipsis: true,
10448
- width: 100,
10449
- render: function render(val) {
10450
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
10451
- width: 60,
10452
- src: val
10453
- });
10454
- }
10455
- }, {
10456
- dataIndex: 'code',
10457
- title: "".concat(text, "\u7F16\u7801"),
10458
- align: 'center',
10459
- ellipsis: true,
10460
- width: 100
10461
- }, {
10462
- dataIndex: 'money',
10463
- title: "\u5B9E\u4ED8\u91D1\u989D",
10464
- align: 'center',
10465
- ellipsis: true,
10466
- width: 100
10467
- }, {
10468
- dataIndex: 'number',
10469
- title: "".concat(text, "\u6570\u91CF"),
10470
- align: 'center',
10471
- ellipsis: true,
10472
- width: 100,
10473
- render: function render(val, record, index) {
10474
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
10475
- style: {
10476
- width: 70
10477
- },
10478
- value: val,
10479
- min: 0,
10480
- precision: 0,
10481
- onChange: function onChange(num) {
10482
- return updateHandle(num, index, 'number');
10483
- }
10484
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
10485
- }
10486
- }, {
10487
- dataIndex: 'share',
10488
- title: "\u5206\u644A\u4EF7",
10489
- align: 'center',
10490
- ellipsis: true,
10491
- width: 70
10492
- }, {
10493
- dataIndex: 'type',
10494
- title: "\u8D60\u54C1\u7C7B\u578B",
10495
- align: 'center',
10496
- ellipsis: true,
10497
- width: 100
10498
- }];
10584
+ var COLUMNS_INFO = COLUMNS_MAP(text);
10585
+ return (COLUMNS_INFO === null || COLUMNS_INFO === void 0 ? void 0 : COLUMNS_INFO["".concat(type)]) || COLUMNS_INFO['DEFAULT'];
10499
10586
  };
10500
10587
  var newColumns = React.useMemo(function () {
10501
10588
  var columnList = [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.23.1-alpha.0",
3
+ "version": "0.23.1-beta.1",
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.23.1-alpha.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.1",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "39fd1618947535a2a9186aa7f29dcd366ae0694a"
64
+ "gitHead": "7767b6fb6b50a7f3db6e12b0d6b5bcf643e5e89e"
65
65
  }