@kmkf-fe-packages/basic-components 0.8.7-alpha.11 → 0.8.7-alpha.16
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 +35 -28
- package/dist/index.js +35 -28
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -9705,10 +9705,20 @@ var columns = [{
|
|
|
9705
9705
|
render: function render(val, record, index) {
|
|
9706
9706
|
return /*#__PURE__*/React.createElement("div", {
|
|
9707
9707
|
style: {
|
|
9708
|
-
width: '
|
|
9708
|
+
width: '30px'
|
|
9709
9709
|
}
|
|
9710
9710
|
}, index + 1);
|
|
9711
9711
|
}
|
|
9712
|
+
}, {
|
|
9713
|
+
dataIndex: 'skuName',
|
|
9714
|
+
title: '商品sku名称',
|
|
9715
|
+
with: 200,
|
|
9716
|
+
ellipsis: true
|
|
9717
|
+
}, {
|
|
9718
|
+
dataIndex: 'skuCode',
|
|
9719
|
+
title: '商品sku编码',
|
|
9720
|
+
with: 200,
|
|
9721
|
+
ellipsis: true
|
|
9712
9722
|
}, {
|
|
9713
9723
|
dataIndex: 'name',
|
|
9714
9724
|
title: '商品名称',
|
|
@@ -9719,11 +9729,6 @@ var columns = [{
|
|
|
9719
9729
|
title: '商品id',
|
|
9720
9730
|
with: 200,
|
|
9721
9731
|
ellipsis: true
|
|
9722
|
-
}, {
|
|
9723
|
-
dataIndex: 'skuName',
|
|
9724
|
-
title: '商品sku名称',
|
|
9725
|
-
with: 200,
|
|
9726
|
-
ellipsis: true
|
|
9727
9732
|
}, {
|
|
9728
9733
|
dataIndex: 'code',
|
|
9729
9734
|
title: '商品编码',
|
|
@@ -9736,11 +9741,6 @@ var columns = [{
|
|
|
9736
9741
|
}
|
|
9737
9742
|
}, val);
|
|
9738
9743
|
}
|
|
9739
|
-
}, {
|
|
9740
|
-
dataIndex: 'skuCode',
|
|
9741
|
-
title: '商品sku编码',
|
|
9742
|
-
with: 200,
|
|
9743
|
-
ellipsis: true
|
|
9744
9744
|
}, {
|
|
9745
9745
|
dataIndex: 'marketPrice',
|
|
9746
9746
|
title: '市场价',
|
|
@@ -9897,14 +9897,21 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9897
9897
|
};
|
|
9898
9898
|
var onFinish = function onFinish(value) {
|
|
9899
9899
|
var newFilterList = [];
|
|
9900
|
-
Object.
|
|
9901
|
-
|
|
9902
|
-
newFilterList = allList.filter(function (item) {
|
|
9903
|
-
return item[key].indexOf(value[key]) > -1;
|
|
9904
|
-
});
|
|
9905
|
-
}
|
|
9900
|
+
var hasValue = Object.values(value).some(function (t) {
|
|
9901
|
+
return !!t;
|
|
9906
9902
|
});
|
|
9907
|
-
|
|
9903
|
+
if (hasValue) {
|
|
9904
|
+
Object.keys(value).forEach(function (key) {
|
|
9905
|
+
if (value[key]) {
|
|
9906
|
+
newFilterList = allList.filter(function (item) {
|
|
9907
|
+
return item[key].indexOf(value[key]) > -1;
|
|
9908
|
+
});
|
|
9909
|
+
}
|
|
9910
|
+
});
|
|
9911
|
+
initData(newFilterList);
|
|
9912
|
+
} else {
|
|
9913
|
+
initData(allList);
|
|
9914
|
+
}
|
|
9908
9915
|
};
|
|
9909
9916
|
var onReset = function onReset() {
|
|
9910
9917
|
form.resetFields();
|
|
@@ -9926,33 +9933,33 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9926
9933
|
form: form,
|
|
9927
9934
|
onFinish: onFinish
|
|
9928
9935
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
9929
|
-
name: "
|
|
9936
|
+
name: "skuName"
|
|
9930
9937
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
9931
|
-
placeholder: "\u5546\
|
|
9938
|
+
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
9932
9939
|
allowClear: true,
|
|
9933
9940
|
style: {
|
|
9934
9941
|
width: 150
|
|
9935
9942
|
}
|
|
9936
9943
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
9937
|
-
name: "
|
|
9944
|
+
name: "skuCode"
|
|
9938
9945
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
9939
|
-
placeholder: "\u5546\
|
|
9946
|
+
placeholder: "\u5546\u54C1sku\u7F16\u7801",
|
|
9940
9947
|
allowClear: true,
|
|
9941
9948
|
style: {
|
|
9942
9949
|
width: 150
|
|
9943
9950
|
}
|
|
9944
9951
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
9945
|
-
name: "
|
|
9952
|
+
name: "name"
|
|
9946
9953
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
9947
|
-
placeholder: "\u5546\
|
|
9954
|
+
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
9948
9955
|
allowClear: true,
|
|
9949
9956
|
style: {
|
|
9950
9957
|
width: 150
|
|
9951
9958
|
}
|
|
9952
9959
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
9953
|
-
name: "
|
|
9960
|
+
name: "code"
|
|
9954
9961
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
9955
|
-
placeholder: "\u5546\
|
|
9962
|
+
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
9956
9963
|
allowClear: true,
|
|
9957
9964
|
style: {
|
|
9958
9965
|
width: 150
|
|
@@ -10048,7 +10055,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
10048
10055
|
title: "\u5546\u54C1\u6807\u8BB0",
|
|
10049
10056
|
align: 'center',
|
|
10050
10057
|
ellipsis: true,
|
|
10051
|
-
width:
|
|
10058
|
+
width: 70,
|
|
10052
10059
|
render: function render(val, record, index) {
|
|
10053
10060
|
return /*#__PURE__*/React.createElement(Select, {
|
|
10054
10061
|
options: [{
|
|
@@ -10082,7 +10089,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
10082
10089
|
title: "".concat(text, "\u540D\u79F0"),
|
|
10083
10090
|
align: 'center',
|
|
10084
10091
|
ellipsis: true,
|
|
10085
|
-
width:
|
|
10092
|
+
width: 250
|
|
10086
10093
|
}, {
|
|
10087
10094
|
dataIndex: 'code',
|
|
10088
10095
|
title: "".concat(text, "\u7F16\u7801"),
|
package/dist/index.js
CHANGED
|
@@ -9716,10 +9716,20 @@ var columns = [{
|
|
|
9716
9716
|
render: function render(val, record, index) {
|
|
9717
9717
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9718
9718
|
style: {
|
|
9719
|
-
width: '
|
|
9719
|
+
width: '30px'
|
|
9720
9720
|
}
|
|
9721
9721
|
}, index + 1);
|
|
9722
9722
|
}
|
|
9723
|
+
}, {
|
|
9724
|
+
dataIndex: 'skuName',
|
|
9725
|
+
title: '商品sku名称',
|
|
9726
|
+
with: 200,
|
|
9727
|
+
ellipsis: true
|
|
9728
|
+
}, {
|
|
9729
|
+
dataIndex: 'skuCode',
|
|
9730
|
+
title: '商品sku编码',
|
|
9731
|
+
with: 200,
|
|
9732
|
+
ellipsis: true
|
|
9723
9733
|
}, {
|
|
9724
9734
|
dataIndex: 'name',
|
|
9725
9735
|
title: '商品名称',
|
|
@@ -9730,11 +9740,6 @@ var columns = [{
|
|
|
9730
9740
|
title: '商品id',
|
|
9731
9741
|
with: 200,
|
|
9732
9742
|
ellipsis: true
|
|
9733
|
-
}, {
|
|
9734
|
-
dataIndex: 'skuName',
|
|
9735
|
-
title: '商品sku名称',
|
|
9736
|
-
with: 200,
|
|
9737
|
-
ellipsis: true
|
|
9738
9743
|
}, {
|
|
9739
9744
|
dataIndex: 'code',
|
|
9740
9745
|
title: '商品编码',
|
|
@@ -9747,11 +9752,6 @@ var columns = [{
|
|
|
9747
9752
|
}
|
|
9748
9753
|
}, val);
|
|
9749
9754
|
}
|
|
9750
|
-
}, {
|
|
9751
|
-
dataIndex: 'skuCode',
|
|
9752
|
-
title: '商品sku编码',
|
|
9753
|
-
with: 200,
|
|
9754
|
-
ellipsis: true
|
|
9755
9755
|
}, {
|
|
9756
9756
|
dataIndex: 'marketPrice',
|
|
9757
9757
|
title: '市场价',
|
|
@@ -9908,14 +9908,21 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9908
9908
|
};
|
|
9909
9909
|
var onFinish = function onFinish(value) {
|
|
9910
9910
|
var newFilterList = [];
|
|
9911
|
-
Object.
|
|
9912
|
-
|
|
9913
|
-
newFilterList = allList.filter(function (item) {
|
|
9914
|
-
return item[key].indexOf(value[key]) > -1;
|
|
9915
|
-
});
|
|
9916
|
-
}
|
|
9911
|
+
var hasValue = Object.values(value).some(function (t) {
|
|
9912
|
+
return !!t;
|
|
9917
9913
|
});
|
|
9918
|
-
|
|
9914
|
+
if (hasValue) {
|
|
9915
|
+
Object.keys(value).forEach(function (key) {
|
|
9916
|
+
if (value[key]) {
|
|
9917
|
+
newFilterList = allList.filter(function (item) {
|
|
9918
|
+
return item[key].indexOf(value[key]) > -1;
|
|
9919
|
+
});
|
|
9920
|
+
}
|
|
9921
|
+
});
|
|
9922
|
+
initData(newFilterList);
|
|
9923
|
+
} else {
|
|
9924
|
+
initData(allList);
|
|
9925
|
+
}
|
|
9919
9926
|
};
|
|
9920
9927
|
var onReset = function onReset() {
|
|
9921
9928
|
form.resetFields();
|
|
@@ -9937,33 +9944,33 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9937
9944
|
form: form,
|
|
9938
9945
|
onFinish: onFinish
|
|
9939
9946
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
9940
|
-
name: "
|
|
9947
|
+
name: "skuName"
|
|
9941
9948
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9942
|
-
placeholder: "\u5546\
|
|
9949
|
+
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
9943
9950
|
allowClear: true,
|
|
9944
9951
|
style: {
|
|
9945
9952
|
width: 150
|
|
9946
9953
|
}
|
|
9947
9954
|
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
9948
|
-
name: "
|
|
9955
|
+
name: "skuCode"
|
|
9949
9956
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9950
|
-
placeholder: "\u5546\
|
|
9957
|
+
placeholder: "\u5546\u54C1sku\u7F16\u7801",
|
|
9951
9958
|
allowClear: true,
|
|
9952
9959
|
style: {
|
|
9953
9960
|
width: 150
|
|
9954
9961
|
}
|
|
9955
9962
|
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
9956
|
-
name: "
|
|
9963
|
+
name: "name"
|
|
9957
9964
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9958
|
-
placeholder: "\u5546\
|
|
9965
|
+
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
9959
9966
|
allowClear: true,
|
|
9960
9967
|
style: {
|
|
9961
9968
|
width: 150
|
|
9962
9969
|
}
|
|
9963
9970
|
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
9964
|
-
name: "
|
|
9971
|
+
name: "code"
|
|
9965
9972
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9966
|
-
placeholder: "\u5546\
|
|
9973
|
+
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
9967
9974
|
allowClear: true,
|
|
9968
9975
|
style: {
|
|
9969
9976
|
width: 150
|
|
@@ -10059,7 +10066,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
10059
10066
|
title: "\u5546\u54C1\u6807\u8BB0",
|
|
10060
10067
|
align: 'center',
|
|
10061
10068
|
ellipsis: true,
|
|
10062
|
-
width:
|
|
10069
|
+
width: 70,
|
|
10063
10070
|
render: function render(val, record, index) {
|
|
10064
10071
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
10065
10072
|
options: [{
|
|
@@ -10093,7 +10100,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
10093
10100
|
title: "".concat(text, "\u540D\u79F0"),
|
|
10094
10101
|
align: 'center',
|
|
10095
10102
|
ellipsis: true,
|
|
10096
|
-
width:
|
|
10103
|
+
width: 250
|
|
10097
10104
|
}, {
|
|
10098
10105
|
dataIndex: 'code',
|
|
10099
10106
|
title: "".concat(text, "\u7F16\u7801"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.8.7-alpha.
|
|
3
|
+
"version": "0.8.7-alpha.16",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "0e72729e981f3b20c08a80e187e99504d5dc14fd"
|
|
62
62
|
}
|