@kmkf-fe-packages/basic-components 0.24.1-alpha.12 → 0.24.1-alpha.14
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 +7 -2
- package/dist/index.js +7 -2
- package/package.json +2 -2
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", {
|
|
@@ -10892,6 +10893,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10892
10893
|
return t.skuCode !== record.skuCode;
|
|
10893
10894
|
}));
|
|
10894
10895
|
};
|
|
10896
|
+
var innerWidth = window.innerWidth;
|
|
10895
10897
|
var showColumns = [{
|
|
10896
10898
|
dataIndex: '',
|
|
10897
10899
|
title: "\u64CD\u4F5C",
|
|
@@ -10950,7 +10952,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10950
10952
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
10951
10953
|
style: {
|
|
10952
10954
|
width: '100%',
|
|
10953
|
-
maxWidth:
|
|
10955
|
+
maxWidth: "".concat(innerWidth < 850 ? innerWidth : 850, "px")
|
|
10954
10956
|
}
|
|
10955
10957
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
10956
10958
|
columns: showColumns,
|
|
@@ -11057,6 +11059,9 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11057
11059
|
onChange: pageChange
|
|
11058
11060
|
}
|
|
11059
11061
|
}), /*#__PURE__*/React.createElement(Popover, {
|
|
11062
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
11063
|
+
return triggerNode.parentElement;
|
|
11064
|
+
},
|
|
11060
11065
|
content: showTable(),
|
|
11061
11066
|
title: "\u5DF2\u9009\u62E9".concat(selectIds.length, "\u4E2A\u5546\u54C1")
|
|
11062
11067
|
}, /*#__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", {
|
|
@@ -10903,6 +10904,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10903
10904
|
return t.skuCode !== record.skuCode;
|
|
10904
10905
|
}));
|
|
10905
10906
|
};
|
|
10907
|
+
var innerWidth = window.innerWidth;
|
|
10906
10908
|
var showColumns = [{
|
|
10907
10909
|
dataIndex: '',
|
|
10908
10910
|
title: "\u64CD\u4F5C",
|
|
@@ -10961,7 +10963,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
10961
10963
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10962
10964
|
style: {
|
|
10963
10965
|
width: '100%',
|
|
10964
|
-
maxWidth:
|
|
10966
|
+
maxWidth: "".concat(innerWidth < 850 ? innerWidth : 850, "px")
|
|
10965
10967
|
}
|
|
10966
10968
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
10967
10969
|
columns: showColumns,
|
|
@@ -11068,6 +11070,9 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11068
11070
|
onChange: pageChange
|
|
11069
11071
|
}
|
|
11070
11072
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
11073
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
11074
|
+
return triggerNode.parentElement;
|
|
11075
|
+
},
|
|
11071
11076
|
content: showTable(),
|
|
11072
11077
|
title: "\u5DF2\u9009\u62E9".concat(selectIds.length, "\u4E2A\u5546\u54C1")
|
|
11073
11078
|
}, /*#__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-alpha.
|
|
3
|
+
"version": "0.24.1-alpha.14",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "5dee76bec6e54726df15e48d5f246b02944454ea"
|
|
68
68
|
}
|