@kmkf-fe-packages/basic-components 0.24.1-alpha.8 → 0.24.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 +16 -4
- package/dist/index.js +16 -4
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -8951,7 +8951,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
8951
8951
|
}));
|
|
8952
8952
|
};
|
|
8953
8953
|
|
|
8954
|
-
var css_248z$6 = ".goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n.goodsBox.single-row .good-item.rich-item.with-pic,\n.goodsBox.single-row .good-item.rich-item.with-attr,\n.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n.good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n.good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n.good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n.good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n.good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n.good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n.good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n.good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n.good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.good-item.rich-item .good-attrs div {\n display: flex;\n}\n.good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
8954
|
+
var css_248z$6 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
8955
8955
|
styleInject(css_248z$6);
|
|
8956
8956
|
|
|
8957
8957
|
var GoodItem = function GoodItem(props) {
|
|
@@ -9194,6 +9194,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
9194
9194
|
className: "goods-uploaded-count"
|
|
9195
9195
|
}, imgList.length), "/", maxLength, "\u4E2A\u5B9D\u8D1D"), /*#__PURE__*/React.createElement("div", {
|
|
9196
9196
|
ref: boxRef,
|
|
9197
|
+
id: "goods-wrap",
|
|
9197
9198
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
9198
9199
|
}, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (img, index) {
|
|
9199
9200
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -10947,7 +10948,12 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10947
10948
|
}, val);
|
|
10948
10949
|
}
|
|
10949
10950
|
}];
|
|
10950
|
-
return selectList.length ? /*#__PURE__*/React.createElement(
|
|
10951
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
10952
|
+
style: {
|
|
10953
|
+
width: '100%',
|
|
10954
|
+
maxWidth: '387px'
|
|
10955
|
+
}
|
|
10956
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
10951
10957
|
columns: showColumns,
|
|
10952
10958
|
rowKey: 'skuCode',
|
|
10953
10959
|
dataSource: selectList,
|
|
@@ -10961,7 +10967,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10961
10967
|
pageSize: pageSize,
|
|
10962
10968
|
showSizeChanger: false
|
|
10963
10969
|
}
|
|
10964
|
-
}) : null;
|
|
10970
|
+
})) : null;
|
|
10965
10971
|
};
|
|
10966
10972
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
10967
10973
|
title: '选择商品',
|
|
@@ -10973,7 +10979,10 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10973
10979
|
_onCancel();
|
|
10974
10980
|
},
|
|
10975
10981
|
onOk: onOk,
|
|
10976
|
-
wrapClassName: "goodModal"
|
|
10982
|
+
wrapClassName: "goodModal",
|
|
10983
|
+
style: {
|
|
10984
|
+
top: 20
|
|
10985
|
+
}
|
|
10977
10986
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
10978
10987
|
layout: "inline",
|
|
10979
10988
|
form: form,
|
|
@@ -11049,6 +11058,9 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11049
11058
|
onChange: pageChange
|
|
11050
11059
|
}
|
|
11051
11060
|
}), /*#__PURE__*/React.createElement(Popover, {
|
|
11061
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
11062
|
+
return triggerNode.parentElement;
|
|
11063
|
+
},
|
|
11052
11064
|
content: showTable(),
|
|
11053
11065
|
title: "\u5DF2\u9009\u62E9".concat(selectIds.length, "\u4E2A\u5546\u54C1")
|
|
11054
11066
|
}, /*#__PURE__*/React.createElement(Button, {
|
package/dist/index.js
CHANGED
|
@@ -8962,7 +8962,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
8962
8962
|
}));
|
|
8963
8963
|
};
|
|
8964
8964
|
|
|
8965
|
-
var css_248z$6 = ".goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n.goodsBox.single-row .good-item.rich-item.with-pic,\n.goodsBox.single-row .good-item.rich-item.with-attr,\n.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n.good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n.good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n.good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n.good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n.good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n.good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n.good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n.good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n.good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.good-item.rich-item .good-attrs div {\n display: flex;\n}\n.good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
8965
|
+
var css_248z$6 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
8966
8966
|
styleInject(css_248z$6);
|
|
8967
8967
|
|
|
8968
8968
|
var GoodItem = function GoodItem(props) {
|
|
@@ -9205,6 +9205,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
9205
9205
|
className: "goods-uploaded-count"
|
|
9206
9206
|
}, imgList.length), "/", maxLength, "\u4E2A\u5B9D\u8D1D"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9207
9207
|
ref: boxRef,
|
|
9208
|
+
id: "goods-wrap",
|
|
9208
9209
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
9209
9210
|
}, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (img, index) {
|
|
9210
9211
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -10958,7 +10959,12 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10958
10959
|
}, val);
|
|
10959
10960
|
}
|
|
10960
10961
|
}];
|
|
10961
|
-
return selectList.length ? /*#__PURE__*/React__default['default'].createElement(
|
|
10962
|
+
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10963
|
+
style: {
|
|
10964
|
+
width: '100%',
|
|
10965
|
+
maxWidth: '387px'
|
|
10966
|
+
}
|
|
10967
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
10962
10968
|
columns: showColumns,
|
|
10963
10969
|
rowKey: 'skuCode',
|
|
10964
10970
|
dataSource: selectList,
|
|
@@ -10972,7 +10978,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10972
10978
|
pageSize: pageSize,
|
|
10973
10979
|
showSizeChanger: false
|
|
10974
10980
|
}
|
|
10975
|
-
}) : null;
|
|
10981
|
+
})) : null;
|
|
10976
10982
|
};
|
|
10977
10983
|
return /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
10978
10984
|
title: '选择商品',
|
|
@@ -10984,7 +10990,10 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10984
10990
|
_onCancel();
|
|
10985
10991
|
},
|
|
10986
10992
|
onOk: onOk,
|
|
10987
|
-
wrapClassName: "goodModal"
|
|
10993
|
+
wrapClassName: "goodModal",
|
|
10994
|
+
style: {
|
|
10995
|
+
top: 20
|
|
10996
|
+
}
|
|
10988
10997
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
10989
10998
|
layout: "inline",
|
|
10990
10999
|
form: form,
|
|
@@ -11060,6 +11069,9 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11060
11069
|
onChange: pageChange
|
|
11061
11070
|
}
|
|
11062
11071
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
11072
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
11073
|
+
return triggerNode.parentElement;
|
|
11074
|
+
},
|
|
11063
11075
|
content: showTable(),
|
|
11064
11076
|
title: "\u5DF2\u9009\u62E9".concat(selectIds.length, "\u4E2A\u5546\u54C1")
|
|
11065
11077
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.24.1
|
|
3
|
+
"version": "0.24.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.24.1
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.24.1",
|
|
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": "
|
|
67
|
+
"gitHead": "1574e8b0d511d79bf4a92f7d614a226b67fc8640"
|
|
68
68
|
}
|