@kmkf-fe-packages/basic-components 2.2.44-beta.23 → 2.2.44-beta.25
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 -9
- package/dist/index.js +35 -9
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -7996,13 +7996,14 @@ function ApaasPosting(props) {
|
|
|
7996
7996
|
});
|
|
7997
7997
|
}
|
|
7998
7998
|
|
|
7999
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7999
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8000
8000
|
function ApaasLogistics(props) {
|
|
8001
8001
|
var value = props.value,
|
|
8002
8002
|
onChange = props.onChange,
|
|
8003
8003
|
platformType = props.platformType,
|
|
8004
8004
|
_props$type = props.type,
|
|
8005
8005
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8006
|
+
placement = props.placement,
|
|
8006
8007
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8007
8008
|
var _useState = useState([]),
|
|
8008
8009
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8040,12 +8041,13 @@ function ApaasLogistics(props) {
|
|
|
8040
8041
|
return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8041
8042
|
value: value,
|
|
8042
8043
|
onChange: handleInputChange
|
|
8043
|
-
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2(
|
|
8044
|
+
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
8044
8045
|
value: value,
|
|
8045
8046
|
onChange: onChange,
|
|
8046
8047
|
options: option,
|
|
8047
|
-
virtual: true
|
|
8048
|
-
|
|
8048
|
+
virtual: true,
|
|
8049
|
+
placement: placement
|
|
8050
|
+
}, other));
|
|
8049
8051
|
}
|
|
8050
8052
|
|
|
8051
8053
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -9992,6 +9994,9 @@ var EditSplitRenderMap = {
|
|
|
9992
9994
|
updateHandle = _ref17.updateHandle,
|
|
9993
9995
|
disabled = _ref17.disabled;
|
|
9994
9996
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9997
|
+
getPopupContainer: function getPopupContainer() {
|
|
9998
|
+
return document.getElementById('subform');
|
|
9999
|
+
},
|
|
9995
10000
|
value: val,
|
|
9996
10001
|
allowClear: true,
|
|
9997
10002
|
showSearch: true,
|
|
@@ -10001,7 +10006,9 @@ var EditSplitRenderMap = {
|
|
|
10001
10006
|
disabled: t.isEdit || disabled,
|
|
10002
10007
|
filterOption: function filterOption(input, option) {
|
|
10003
10008
|
return option.label.includes(input);
|
|
10004
|
-
}
|
|
10009
|
+
},
|
|
10010
|
+
placement: "topLeft",
|
|
10011
|
+
listHeight: 120
|
|
10005
10012
|
});
|
|
10006
10013
|
},
|
|
10007
10014
|
//退货物流-物流公司
|
|
@@ -10012,6 +10019,9 @@ var EditSplitRenderMap = {
|
|
|
10012
10019
|
updateHandle = _ref18.updateHandle,
|
|
10013
10020
|
disabled = _ref18.disabled;
|
|
10014
10021
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10022
|
+
getPopupContainer: function getPopupContainer() {
|
|
10023
|
+
return document.getElementById('subform');
|
|
10024
|
+
},
|
|
10015
10025
|
value: val,
|
|
10016
10026
|
allowClear: true,
|
|
10017
10027
|
showSearch: true,
|
|
@@ -10021,7 +10031,9 @@ var EditSplitRenderMap = {
|
|
|
10021
10031
|
disabled: t.isEdit || disabled,
|
|
10022
10032
|
filterOption: function filterOption(input, option) {
|
|
10023
10033
|
return option.label.includes(input);
|
|
10024
|
-
}
|
|
10034
|
+
},
|
|
10035
|
+
placement: "topLeft",
|
|
10036
|
+
listHeight: 120
|
|
10025
10037
|
});
|
|
10026
10038
|
}
|
|
10027
10039
|
};
|
|
@@ -10582,6 +10594,9 @@ var SubForm = function SubForm(props) {
|
|
|
10582
10594
|
visible: open,
|
|
10583
10595
|
onVisibleChange: handleOpenChange
|
|
10584
10596
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10597
|
+
getPopupContainer: function getPopupContainer() {
|
|
10598
|
+
return document.getElementById('subform');
|
|
10599
|
+
},
|
|
10585
10600
|
value: undefined,
|
|
10586
10601
|
onChange: function onChange(val) {
|
|
10587
10602
|
onChangeInput(val);
|
|
@@ -10594,7 +10609,9 @@ var SubForm = function SubForm(props) {
|
|
|
10594
10609
|
},
|
|
10595
10610
|
filterOption: function filterOption(input, option) {
|
|
10596
10611
|
return option.label.includes(input);
|
|
10597
|
-
}
|
|
10612
|
+
},
|
|
10613
|
+
placement: "topLeft",
|
|
10614
|
+
listHeight: 120
|
|
10598
10615
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10599
10616
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10600
10617
|
allowClear: true,
|
|
@@ -12113,7 +12130,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12113
12130
|
}));
|
|
12114
12131
|
};
|
|
12115
12132
|
|
|
12116
|
-
var css_248z$7 = "#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";
|
|
12133
|
+
var css_248z$7 = "#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.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
|
|
12117
12134
|
styleInject(css_248z$7);
|
|
12118
12135
|
|
|
12119
12136
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12442,13 +12459,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12442
12459
|
var hasAttr = useMemo(function () {
|
|
12443
12460
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12444
12461
|
}, [hasPic, headerList]);
|
|
12462
|
+
var clearAll = function clearAll() {
|
|
12463
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12464
|
+
shopId: shopId,
|
|
12465
|
+
imgList: []
|
|
12466
|
+
});
|
|
12467
|
+
};
|
|
12445
12468
|
return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
12446
12469
|
className: "goods-title"
|
|
12447
12470
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
|
|
12448
12471
|
className: "goods-uploaded-state"
|
|
12449
12472
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
|
|
12450
12473
|
className: "goods-uploaded-count"
|
|
12451
|
-
}, imgList.length), "/", maxLength,
|
|
12474
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React.createElement("span", {
|
|
12475
|
+
className: 'clear-all',
|
|
12476
|
+
onClick: clearAll
|
|
12477
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
|
|
12452
12478
|
ref: boxRef,
|
|
12453
12479
|
id: "goods-wrap",
|
|
12454
12480
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
package/dist/index.js
CHANGED
|
@@ -8011,13 +8011,14 @@ function ApaasPosting(props) {
|
|
|
8011
8011
|
});
|
|
8012
8012
|
}
|
|
8013
8013
|
|
|
8014
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8014
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8015
8015
|
function ApaasLogistics(props) {
|
|
8016
8016
|
var value = props.value,
|
|
8017
8017
|
onChange = props.onChange,
|
|
8018
8018
|
platformType = props.platformType,
|
|
8019
8019
|
_props$type = props.type,
|
|
8020
8020
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8021
|
+
placement = props.placement,
|
|
8021
8022
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8022
8023
|
var _useState = React.useState([]),
|
|
8023
8024
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8055,12 +8056,13 @@ function ApaasLogistics(props) {
|
|
|
8055
8056
|
return type === 'input' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8056
8057
|
value: value,
|
|
8057
8058
|
onChange: handleInputChange
|
|
8058
|
-
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(
|
|
8059
|
+
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
8059
8060
|
value: value,
|
|
8060
8061
|
onChange: onChange,
|
|
8061
8062
|
options: option,
|
|
8062
|
-
virtual: true
|
|
8063
|
-
|
|
8063
|
+
virtual: true,
|
|
8064
|
+
placement: placement
|
|
8065
|
+
}, other));
|
|
8064
8066
|
}
|
|
8065
8067
|
|
|
8066
8068
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -10007,6 +10009,9 @@ var EditSplitRenderMap = {
|
|
|
10007
10009
|
updateHandle = _ref17.updateHandle,
|
|
10008
10010
|
disabled = _ref17.disabled;
|
|
10009
10011
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10012
|
+
getPopupContainer: function getPopupContainer() {
|
|
10013
|
+
return document.getElementById('subform');
|
|
10014
|
+
},
|
|
10010
10015
|
value: val,
|
|
10011
10016
|
allowClear: true,
|
|
10012
10017
|
showSearch: true,
|
|
@@ -10016,7 +10021,9 @@ var EditSplitRenderMap = {
|
|
|
10016
10021
|
disabled: t.isEdit || disabled,
|
|
10017
10022
|
filterOption: function filterOption(input, option) {
|
|
10018
10023
|
return option.label.includes(input);
|
|
10019
|
-
}
|
|
10024
|
+
},
|
|
10025
|
+
placement: "topLeft",
|
|
10026
|
+
listHeight: 120
|
|
10020
10027
|
});
|
|
10021
10028
|
},
|
|
10022
10029
|
//退货物流-物流公司
|
|
@@ -10027,6 +10034,9 @@ var EditSplitRenderMap = {
|
|
|
10027
10034
|
updateHandle = _ref18.updateHandle,
|
|
10028
10035
|
disabled = _ref18.disabled;
|
|
10029
10036
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10037
|
+
getPopupContainer: function getPopupContainer() {
|
|
10038
|
+
return document.getElementById('subform');
|
|
10039
|
+
},
|
|
10030
10040
|
value: val,
|
|
10031
10041
|
allowClear: true,
|
|
10032
10042
|
showSearch: true,
|
|
@@ -10036,7 +10046,9 @@ var EditSplitRenderMap = {
|
|
|
10036
10046
|
disabled: t.isEdit || disabled,
|
|
10037
10047
|
filterOption: function filterOption(input, option) {
|
|
10038
10048
|
return option.label.includes(input);
|
|
10039
|
-
}
|
|
10049
|
+
},
|
|
10050
|
+
placement: "topLeft",
|
|
10051
|
+
listHeight: 120
|
|
10040
10052
|
});
|
|
10041
10053
|
}
|
|
10042
10054
|
};
|
|
@@ -10597,6 +10609,9 @@ var SubForm = function SubForm(props) {
|
|
|
10597
10609
|
visible: open,
|
|
10598
10610
|
onVisibleChange: handleOpenChange
|
|
10599
10611
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10612
|
+
getPopupContainer: function getPopupContainer() {
|
|
10613
|
+
return document.getElementById('subform');
|
|
10614
|
+
},
|
|
10600
10615
|
value: undefined,
|
|
10601
10616
|
onChange: function onChange(val) {
|
|
10602
10617
|
onChangeInput(val);
|
|
@@ -10609,7 +10624,9 @@ var SubForm = function SubForm(props) {
|
|
|
10609
10624
|
},
|
|
10610
10625
|
filterOption: function filterOption(input, option) {
|
|
10611
10626
|
return option.label.includes(input);
|
|
10612
|
-
}
|
|
10627
|
+
},
|
|
10628
|
+
placement: "topLeft",
|
|
10629
|
+
listHeight: 120
|
|
10613
10630
|
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10614
10631
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10615
10632
|
allowClear: true,
|
|
@@ -12128,7 +12145,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12128
12145
|
}));
|
|
12129
12146
|
};
|
|
12130
12147
|
|
|
12131
|
-
var css_248z$7 = "#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";
|
|
12148
|
+
var css_248z$7 = "#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.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
|
|
12132
12149
|
styleInject(css_248z$7);
|
|
12133
12150
|
|
|
12134
12151
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12457,13 +12474,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12457
12474
|
var hasAttr = React.useMemo(function () {
|
|
12458
12475
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12459
12476
|
}, [hasPic, headerList]);
|
|
12477
|
+
var clearAll = function clearAll() {
|
|
12478
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12479
|
+
shopId: shopId,
|
|
12480
|
+
imgList: []
|
|
12481
|
+
});
|
|
12482
|
+
};
|
|
12460
12483
|
return /*#__PURE__*/React__default['default'].createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12461
12484
|
className: "goods-title"
|
|
12462
12485
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12463
12486
|
className: "goods-uploaded-state"
|
|
12464
12487
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12465
12488
|
className: "goods-uploaded-count"
|
|
12466
|
-
}, imgList.length), "/", maxLength,
|
|
12489
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12490
|
+
className: 'clear-all',
|
|
12491
|
+
onClick: clearAll
|
|
12492
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12467
12493
|
ref: boxRef,
|
|
12468
12494
|
id: "goods-wrap",
|
|
12469
12495
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.44-beta.
|
|
3
|
+
"version": "2.2.44-beta.25",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "59590b9f5c6271daf0f744218e1c93ff03bea5fe"
|
|
70
70
|
}
|