@kmkf-fe-packages/basic-components 2.0.19-beta.55 → 2.0.19-beta.57
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
2
2
|
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography } from 'antd';
|
|
3
|
-
import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
|
|
3
|
+
import { EyeOutlined, DeleteOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } 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
6
|
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, servers, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
|
|
@@ -8019,6 +8019,33 @@ var SubForm = function SubForm(props) {
|
|
|
8019
8019
|
}));
|
|
8020
8020
|
};
|
|
8021
8021
|
|
|
8022
|
+
function CopyTextIcon(_ref) {
|
|
8023
|
+
var val = _ref.val;
|
|
8024
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8025
|
+
style: {
|
|
8026
|
+
display: 'flex',
|
|
8027
|
+
alignItems: 'center',
|
|
8028
|
+
justifyContent: 'center'
|
|
8029
|
+
}
|
|
8030
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8031
|
+
style: {
|
|
8032
|
+
marginRight: 8,
|
|
8033
|
+
overflow: 'hidden',
|
|
8034
|
+
textOverflow: 'ellipsis',
|
|
8035
|
+
whiteSpace: 'nowrap'
|
|
8036
|
+
}
|
|
8037
|
+
}, val), /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
8038
|
+
text: val,
|
|
8039
|
+
onCopy: function onCopy() {
|
|
8040
|
+
message.success('复制成功');
|
|
8041
|
+
}
|
|
8042
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, {
|
|
8043
|
+
style: {
|
|
8044
|
+
color: '#1890ff'
|
|
8045
|
+
}
|
|
8046
|
+
})));
|
|
8047
|
+
}
|
|
8048
|
+
|
|
8022
8049
|
var BuyerNick = function BuyerNick(props) {
|
|
8023
8050
|
var _props$value = props.value,
|
|
8024
8051
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -13786,7 +13813,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13786
13813
|
}, {
|
|
13787
13814
|
dataIndex: 'goodName',
|
|
13788
13815
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
13789
|
-
width: 200
|
|
13816
|
+
width: 200,
|
|
13817
|
+
render: function render(text) {
|
|
13818
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
13819
|
+
val: text
|
|
13820
|
+
});
|
|
13821
|
+
}
|
|
13790
13822
|
}, {
|
|
13791
13823
|
dataIndex: 'specId',
|
|
13792
13824
|
title: "SKUID",
|
|
@@ -13798,7 +13830,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13798
13830
|
}, {
|
|
13799
13831
|
dataIndex: 'specName',
|
|
13800
13832
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
13801
|
-
width: 250
|
|
13833
|
+
width: 250,
|
|
13834
|
+
render: function render(text) {
|
|
13835
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
13836
|
+
val: text
|
|
13837
|
+
});
|
|
13838
|
+
}
|
|
13802
13839
|
}, {
|
|
13803
13840
|
dataIndex: 'orderPrice',
|
|
13804
13841
|
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
@@ -13837,8 +13874,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13837
13874
|
dataIndex: 'goodName',
|
|
13838
13875
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13839
13876
|
align: 'center',
|
|
13840
|
-
|
|
13841
|
-
|
|
13877
|
+
width: 250,
|
|
13878
|
+
render: function render(text) {
|
|
13879
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
13880
|
+
val: text
|
|
13881
|
+
});
|
|
13882
|
+
}
|
|
13842
13883
|
}, {
|
|
13843
13884
|
dataIndex: 'specId',
|
|
13844
13885
|
title: "".concat(text, "SKUID"),
|
|
@@ -13855,8 +13896,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13855
13896
|
dataIndex: 'specName',
|
|
13856
13897
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13857
13898
|
align: 'center',
|
|
13858
|
-
|
|
13859
|
-
|
|
13899
|
+
width: 250,
|
|
13900
|
+
render: function render(text) {
|
|
13901
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
13902
|
+
val: text
|
|
13903
|
+
});
|
|
13904
|
+
}
|
|
13860
13905
|
}, {
|
|
13861
13906
|
dataIndex: 'orderPrice',
|
|
13862
13907
|
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
@@ -13927,8 +13972,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13927
13972
|
dataIndex: 'goodName',
|
|
13928
13973
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13929
13974
|
align: 'center',
|
|
13930
|
-
|
|
13931
|
-
|
|
13975
|
+
width: 250,
|
|
13976
|
+
render: function render(text) {
|
|
13977
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
13978
|
+
val: text
|
|
13979
|
+
});
|
|
13980
|
+
}
|
|
13932
13981
|
}, {
|
|
13933
13982
|
dataIndex: 'specId',
|
|
13934
13983
|
title: "".concat(text, "SKUID"),
|
|
@@ -13945,8 +13994,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13945
13994
|
dataIndex: 'specName',
|
|
13946
13995
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13947
13996
|
align: 'center',
|
|
13948
|
-
|
|
13949
|
-
|
|
13997
|
+
width: 250,
|
|
13998
|
+
render: function render(text) {
|
|
13999
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14000
|
+
val: text
|
|
14001
|
+
});
|
|
14002
|
+
}
|
|
13950
14003
|
}, {
|
|
13951
14004
|
dataIndex: 'num',
|
|
13952
14005
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
@@ -14051,8 +14104,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14051
14104
|
dataIndex: 'goodName',
|
|
14052
14105
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
14053
14106
|
align: 'center',
|
|
14054
|
-
|
|
14055
|
-
|
|
14107
|
+
width: 250,
|
|
14108
|
+
render: function render(text) {
|
|
14109
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14110
|
+
val: text
|
|
14111
|
+
});
|
|
14112
|
+
}
|
|
14056
14113
|
}, {
|
|
14057
14114
|
dataIndex: 'specId',
|
|
14058
14115
|
title: "".concat(text, "SKUID"),
|
|
@@ -14069,8 +14126,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14069
14126
|
dataIndex: 'specName',
|
|
14070
14127
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
14071
14128
|
align: 'center',
|
|
14072
|
-
|
|
14073
|
-
|
|
14129
|
+
width: 250,
|
|
14130
|
+
render: function render(text) {
|
|
14131
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14132
|
+
val: text
|
|
14133
|
+
});
|
|
14134
|
+
}
|
|
14074
14135
|
}, {
|
|
14075
14136
|
dataIndex: 'num',
|
|
14076
14137
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
@@ -15377,6 +15438,29 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
15377
15438
|
});
|
|
15378
15439
|
};
|
|
15379
15440
|
|
|
15441
|
+
function HoverTableRowDeleteIcon(_ref) {
|
|
15442
|
+
var index = _ref.index,
|
|
15443
|
+
hoveredRowIndex = _ref.hoveredRowIndex,
|
|
15444
|
+
handleClick = _ref.handleClick;
|
|
15445
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
15446
|
+
style: {
|
|
15447
|
+
display: hoveredRowIndex === index ? 'none' : 'inline'
|
|
15448
|
+
}
|
|
15449
|
+
}, index + 1), /*#__PURE__*/React.createElement("span", {
|
|
15450
|
+
style: {
|
|
15451
|
+
cursor: 'pointer'
|
|
15452
|
+
},
|
|
15453
|
+
onClick: handleClick,
|
|
15454
|
+
title: "\u5220\u9664"
|
|
15455
|
+
}, /*#__PURE__*/React.createElement(MinusCircleFilled, {
|
|
15456
|
+
style: {
|
|
15457
|
+
fontSize: 18,
|
|
15458
|
+
color: '#1890ff',
|
|
15459
|
+
display: hoveredRowIndex === index ? 'inline' : 'none'
|
|
15460
|
+
}
|
|
15461
|
+
})));
|
|
15462
|
+
}
|
|
15463
|
+
|
|
15380
15464
|
var GoodsModalMap = {
|
|
15381
15465
|
WDT_REISSUE_GOODS: WdtGoodsModal,
|
|
15382
15466
|
WDT_GOODS: WdtGoodsModal,
|
|
@@ -15524,6 +15608,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15524
15608
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
15525
15609
|
selectedRowKeys = _useState4[0],
|
|
15526
15610
|
setSelectedRowKeys = _useState4[1];
|
|
15611
|
+
var _useState5 = useState(null),
|
|
15612
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
15613
|
+
hoveredRowIndex = _useState6[0],
|
|
15614
|
+
setHoveredRowIndex = _useState6[1];
|
|
15527
15615
|
useEffect(function () {
|
|
15528
15616
|
setSelectedRowKeys([]);
|
|
15529
15617
|
}, [tableSelect, selectType]);
|
|
@@ -15661,7 +15749,13 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15661
15749
|
ellipsis: true,
|
|
15662
15750
|
width: 50,
|
|
15663
15751
|
render: function render(val, record, index) {
|
|
15664
|
-
return /*#__PURE__*/React.createElement(
|
|
15752
|
+
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
15753
|
+
index: index,
|
|
15754
|
+
hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
|
|
15755
|
+
handleClick: function handleClick() {
|
|
15756
|
+
return handleDelete(record, index);
|
|
15757
|
+
}
|
|
15758
|
+
});
|
|
15665
15759
|
}
|
|
15666
15760
|
}].concat(_toConsumableArray(baseInfoColumns));
|
|
15667
15761
|
if (!disabled) {
|
|
@@ -15682,7 +15776,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15682
15776
|
});
|
|
15683
15777
|
}
|
|
15684
15778
|
return columnList;
|
|
15685
|
-
}, [showHeader, value, disabled]);
|
|
15779
|
+
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
15686
15780
|
var orderColumns = useMemo(function () {
|
|
15687
15781
|
var columns = COLUMNS_MAP('', {
|
|
15688
15782
|
operate: false,
|
|
@@ -15878,6 +15972,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15878
15972
|
},
|
|
15879
15973
|
locale: {
|
|
15880
15974
|
emptyText: '暂无数据'
|
|
15975
|
+
},
|
|
15976
|
+
onRow: function onRow(_, index) {
|
|
15977
|
+
return {
|
|
15978
|
+
onMouseEnter: function onMouseEnter() {
|
|
15979
|
+
return setHoveredRowIndex(index);
|
|
15980
|
+
},
|
|
15981
|
+
onMouseLeave: function onMouseLeave() {
|
|
15982
|
+
return setHoveredRowIndex(null);
|
|
15983
|
+
}
|
|
15984
|
+
};
|
|
15881
15985
|
}
|
|
15882
15986
|
})), /*#__PURE__*/React.createElement(TheGoodsModal, {
|
|
15883
15987
|
ref: refModal,
|
|
@@ -19843,4 +19947,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19843
19947
|
})));
|
|
19844
19948
|
};
|
|
19845
19949
|
|
|
19846
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
|
|
19950
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$2 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
|
package/dist/index.js
CHANGED
|
@@ -8031,6 +8031,33 @@ var SubForm = function SubForm(props) {
|
|
|
8031
8031
|
}));
|
|
8032
8032
|
};
|
|
8033
8033
|
|
|
8034
|
+
function CopyTextIcon(_ref) {
|
|
8035
|
+
var val = _ref.val;
|
|
8036
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
8037
|
+
style: {
|
|
8038
|
+
display: 'flex',
|
|
8039
|
+
alignItems: 'center',
|
|
8040
|
+
justifyContent: 'center'
|
|
8041
|
+
}
|
|
8042
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
8043
|
+
style: {
|
|
8044
|
+
marginRight: 8,
|
|
8045
|
+
overflow: 'hidden',
|
|
8046
|
+
textOverflow: 'ellipsis',
|
|
8047
|
+
whiteSpace: 'nowrap'
|
|
8048
|
+
}
|
|
8049
|
+
}, val), /*#__PURE__*/React__default['default'].createElement(reactCopyToClipboard.CopyToClipboard, {
|
|
8050
|
+
text: val,
|
|
8051
|
+
onCopy: function onCopy() {
|
|
8052
|
+
antd.message.success('复制成功');
|
|
8053
|
+
}
|
|
8054
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.CopyOutlined, {
|
|
8055
|
+
style: {
|
|
8056
|
+
color: '#1890ff'
|
|
8057
|
+
}
|
|
8058
|
+
})));
|
|
8059
|
+
}
|
|
8060
|
+
|
|
8034
8061
|
var BuyerNick = function BuyerNick(props) {
|
|
8035
8062
|
var _props$value = props.value,
|
|
8036
8063
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -13798,7 +13825,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13798
13825
|
}, {
|
|
13799
13826
|
dataIndex: 'goodName',
|
|
13800
13827
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
13801
|
-
width: 200
|
|
13828
|
+
width: 200,
|
|
13829
|
+
render: function render(text) {
|
|
13830
|
+
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
13831
|
+
val: text
|
|
13832
|
+
});
|
|
13833
|
+
}
|
|
13802
13834
|
}, {
|
|
13803
13835
|
dataIndex: 'specId',
|
|
13804
13836
|
title: "SKUID",
|
|
@@ -13810,7 +13842,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13810
13842
|
}, {
|
|
13811
13843
|
dataIndex: 'specName',
|
|
13812
13844
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
13813
|
-
width: 250
|
|
13845
|
+
width: 250,
|
|
13846
|
+
render: function render(text) {
|
|
13847
|
+
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
13848
|
+
val: text
|
|
13849
|
+
});
|
|
13850
|
+
}
|
|
13814
13851
|
}, {
|
|
13815
13852
|
dataIndex: 'orderPrice',
|
|
13816
13853
|
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
@@ -13849,8 +13886,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13849
13886
|
dataIndex: 'goodName',
|
|
13850
13887
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13851
13888
|
align: 'center',
|
|
13852
|
-
|
|
13853
|
-
|
|
13889
|
+
width: 250,
|
|
13890
|
+
render: function render(text) {
|
|
13891
|
+
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
13892
|
+
val: text
|
|
13893
|
+
});
|
|
13894
|
+
}
|
|
13854
13895
|
}, {
|
|
13855
13896
|
dataIndex: 'specId',
|
|
13856
13897
|
title: "".concat(text, "SKUID"),
|
|
@@ -13867,8 +13908,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13867
13908
|
dataIndex: 'specName',
|
|
13868
13909
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13869
13910
|
align: 'center',
|
|
13870
|
-
|
|
13871
|
-
|
|
13911
|
+
width: 250,
|
|
13912
|
+
render: function render(text) {
|
|
13913
|
+
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
13914
|
+
val: text
|
|
13915
|
+
});
|
|
13916
|
+
}
|
|
13872
13917
|
}, {
|
|
13873
13918
|
dataIndex: 'orderPrice',
|
|
13874
13919
|
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
@@ -13939,8 +13984,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13939
13984
|
dataIndex: 'goodName',
|
|
13940
13985
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13941
13986
|
align: 'center',
|
|
13942
|
-
|
|
13943
|
-
|
|
13987
|
+
width: 250,
|
|
13988
|
+
render: function render(text) {
|
|
13989
|
+
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
13990
|
+
val: text
|
|
13991
|
+
});
|
|
13992
|
+
}
|
|
13944
13993
|
}, {
|
|
13945
13994
|
dataIndex: 'specId',
|
|
13946
13995
|
title: "".concat(text, "SKUID"),
|
|
@@ -13957,8 +14006,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13957
14006
|
dataIndex: 'specName',
|
|
13958
14007
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13959
14008
|
align: 'center',
|
|
13960
|
-
|
|
13961
|
-
|
|
14009
|
+
width: 250,
|
|
14010
|
+
render: function render(text) {
|
|
14011
|
+
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
14012
|
+
val: text
|
|
14013
|
+
});
|
|
14014
|
+
}
|
|
13962
14015
|
}, {
|
|
13963
14016
|
dataIndex: 'num',
|
|
13964
14017
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
@@ -14063,8 +14116,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14063
14116
|
dataIndex: 'goodName',
|
|
14064
14117
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
14065
14118
|
align: 'center',
|
|
14066
|
-
|
|
14067
|
-
|
|
14119
|
+
width: 250,
|
|
14120
|
+
render: function render(text) {
|
|
14121
|
+
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
14122
|
+
val: text
|
|
14123
|
+
});
|
|
14124
|
+
}
|
|
14068
14125
|
}, {
|
|
14069
14126
|
dataIndex: 'specId',
|
|
14070
14127
|
title: "".concat(text, "SKUID"),
|
|
@@ -14081,8 +14138,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14081
14138
|
dataIndex: 'specName',
|
|
14082
14139
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
14083
14140
|
align: 'center',
|
|
14084
|
-
|
|
14085
|
-
|
|
14141
|
+
width: 250,
|
|
14142
|
+
render: function render(text) {
|
|
14143
|
+
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
14144
|
+
val: text
|
|
14145
|
+
});
|
|
14146
|
+
}
|
|
14086
14147
|
}, {
|
|
14087
14148
|
dataIndex: 'num',
|
|
14088
14149
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
@@ -15389,6 +15450,29 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
15389
15450
|
});
|
|
15390
15451
|
};
|
|
15391
15452
|
|
|
15453
|
+
function HoverTableRowDeleteIcon(_ref) {
|
|
15454
|
+
var index = _ref.index,
|
|
15455
|
+
hoveredRowIndex = _ref.hoveredRowIndex,
|
|
15456
|
+
handleClick = _ref.handleClick;
|
|
15457
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15458
|
+
style: {
|
|
15459
|
+
display: hoveredRowIndex === index ? 'none' : 'inline'
|
|
15460
|
+
}
|
|
15461
|
+
}, index + 1), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15462
|
+
style: {
|
|
15463
|
+
cursor: 'pointer'
|
|
15464
|
+
},
|
|
15465
|
+
onClick: handleClick,
|
|
15466
|
+
title: "\u5220\u9664"
|
|
15467
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.MinusCircleFilled, {
|
|
15468
|
+
style: {
|
|
15469
|
+
fontSize: 18,
|
|
15470
|
+
color: '#1890ff',
|
|
15471
|
+
display: hoveredRowIndex === index ? 'inline' : 'none'
|
|
15472
|
+
}
|
|
15473
|
+
})));
|
|
15474
|
+
}
|
|
15475
|
+
|
|
15392
15476
|
var GoodsModalMap = {
|
|
15393
15477
|
WDT_REISSUE_GOODS: WdtGoodsModal,
|
|
15394
15478
|
WDT_GOODS: WdtGoodsModal,
|
|
@@ -15536,6 +15620,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15536
15620
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
15537
15621
|
selectedRowKeys = _useState4[0],
|
|
15538
15622
|
setSelectedRowKeys = _useState4[1];
|
|
15623
|
+
var _useState5 = React.useState(null),
|
|
15624
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
15625
|
+
hoveredRowIndex = _useState6[0],
|
|
15626
|
+
setHoveredRowIndex = _useState6[1];
|
|
15539
15627
|
React.useEffect(function () {
|
|
15540
15628
|
setSelectedRowKeys([]);
|
|
15541
15629
|
}, [tableSelect, selectType]);
|
|
@@ -15673,7 +15761,13 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15673
15761
|
ellipsis: true,
|
|
15674
15762
|
width: 50,
|
|
15675
15763
|
render: function render(val, record, index) {
|
|
15676
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
15764
|
+
return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
|
|
15765
|
+
index: index,
|
|
15766
|
+
hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
|
|
15767
|
+
handleClick: function handleClick() {
|
|
15768
|
+
return handleDelete(record, index);
|
|
15769
|
+
}
|
|
15770
|
+
});
|
|
15677
15771
|
}
|
|
15678
15772
|
}].concat(_toConsumableArray(baseInfoColumns));
|
|
15679
15773
|
if (!disabled) {
|
|
@@ -15694,7 +15788,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15694
15788
|
});
|
|
15695
15789
|
}
|
|
15696
15790
|
return columnList;
|
|
15697
|
-
}, [showHeader, value, disabled]);
|
|
15791
|
+
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
15698
15792
|
var orderColumns = React.useMemo(function () {
|
|
15699
15793
|
var columns = COLUMNS_MAP('', {
|
|
15700
15794
|
operate: false,
|
|
@@ -15890,6 +15984,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15890
15984
|
},
|
|
15891
15985
|
locale: {
|
|
15892
15986
|
emptyText: '暂无数据'
|
|
15987
|
+
},
|
|
15988
|
+
onRow: function onRow(_, index) {
|
|
15989
|
+
return {
|
|
15990
|
+
onMouseEnter: function onMouseEnter() {
|
|
15991
|
+
return setHoveredRowIndex(index);
|
|
15992
|
+
},
|
|
15993
|
+
onMouseLeave: function onMouseLeave() {
|
|
15994
|
+
return setHoveredRowIndex(null);
|
|
15995
|
+
}
|
|
15996
|
+
};
|
|
15893
15997
|
}
|
|
15894
15998
|
})), /*#__PURE__*/React__default['default'].createElement(TheGoodsModal, {
|
|
15895
15999
|
ref: refModal,
|
|
@@ -19890,6 +19994,7 @@ exports.CommonMultiStatus = CommonSystemOrder$1;
|
|
|
19890
19994
|
exports.CommonReturnGoods = CommonReturnGoods;
|
|
19891
19995
|
exports.CommonStatus = CommonStatus;
|
|
19892
19996
|
exports.CommonSystemOrder = CommonSystemOrder;
|
|
19997
|
+
exports.CopyTextIcon = CopyTextIcon;
|
|
19893
19998
|
exports.ExpressLogistics = ExpressLogistics;
|
|
19894
19999
|
exports.Goods = Goods;
|
|
19895
20000
|
exports.GoodsTable = index$2;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface HoverTableRowDeleteIconProps {
|
|
3
|
+
index: number;
|
|
4
|
+
hoveredRowIndex: number | null;
|
|
5
|
+
handleClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare function HoverTableRowDeleteIcon({ index, hoveredRowIndex, handleClick, }: HoverTableRowDeleteIconProps): React.JSX.Element;
|
|
8
|
+
export default HoverTableRowDeleteIcon;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { default as ApaasPosting } from './apaas/ApaasPosting';
|
|
|
17
17
|
export { default as ApaasLogistics } from './apaas/ApaasLogistics';
|
|
18
18
|
export { default as ApaasHoc } from './apaas/hoc/withFormItem';
|
|
19
19
|
export { default as SubForm } from './apaas/SubForm';
|
|
20
|
+
export { default as CopyTextIcon } from './apaas/CopyTextIcon';
|
|
20
21
|
export { default as BuyerNick } from './business/BuyerNick';
|
|
21
22
|
export { default as TradeId } from './business/TradeId';
|
|
22
23
|
export { default as ShopName } from './business/ShopName';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.19-beta.
|
|
3
|
+
"version": "2.0.19-beta.57",
|
|
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": "
|
|
68
|
+
"gitHead": "920a9949d8a22b607bfec6bba8c1692f0a7966f9"
|
|
69
69
|
}
|