@kmkf-fe-packages/basic-components 0.24.1-alpha.0 → 0.24.1-alpha.4
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 +10 -4
- package/dist/index.js +10 -4
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -7755,7 +7755,7 @@ function ApaasAddress(props) {
|
|
|
7755
7755
|
};
|
|
7756
7756
|
var handleParseLogistics = function handleParseLogistics(val) {
|
|
7757
7757
|
var params = {
|
|
7758
|
-
detail: val === null || val === void 0 ? void 0 : val.addressDetail,
|
|
7758
|
+
detail: (val === null || val === void 0 ? void 0 : val.addressDetail) || (val === null || val === void 0 ? void 0 : val.name),
|
|
7759
7759
|
address: []
|
|
7760
7760
|
};
|
|
7761
7761
|
var addressData = type === 'bs' ? BsAddressData.getInstance() : AddressData.getInstance();
|
|
@@ -8953,7 +8953,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
8953
8953
|
imgList: []
|
|
8954
8954
|
} : _props$value,
|
|
8955
8955
|
_props$maxLength = props.maxLength,
|
|
8956
|
-
maxLength = _props$maxLength === void 0 ?
|
|
8956
|
+
maxLength = _props$maxLength === void 0 ? 20 : _props$maxLength,
|
|
8957
8957
|
onChange = props.onChange,
|
|
8958
8958
|
_props$type = props.type,
|
|
8959
8959
|
type = _props$type === void 0 ? 2 : _props$type,
|
|
@@ -9176,7 +9176,13 @@ var GoodItem = function GoodItem(props) {
|
|
|
9176
9176
|
}];
|
|
9177
9177
|
var hasPic = headerList.includes('picUrl');
|
|
9178
9178
|
var hasAttr = hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
9179
|
-
return /*#__PURE__*/React.createElement("
|
|
9179
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
9180
|
+
className: "goods-title"
|
|
9181
|
+
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
|
|
9182
|
+
className: "goods-uploaded-state"
|
|
9183
|
+
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
|
|
9184
|
+
className: "goods-uploaded-count"
|
|
9185
|
+
}, imgList.length), "/", maxLength, "\u4E2A\u5B9D\u8D1D"), /*#__PURE__*/React.createElement("div", {
|
|
9180
9186
|
ref: boxRef,
|
|
9181
9187
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
9182
9188
|
}, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (img, index) {
|
|
@@ -9254,7 +9260,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
9254
9260
|
ref: skuRef,
|
|
9255
9261
|
userNick: userNick,
|
|
9256
9262
|
type: type
|
|
9257
|
-
}));
|
|
9263
|
+
})));
|
|
9258
9264
|
};
|
|
9259
9265
|
|
|
9260
9266
|
var TBGoodSerial = function TBGoodSerial(props) {
|
package/dist/index.js
CHANGED
|
@@ -7766,7 +7766,7 @@ function ApaasAddress(props) {
|
|
|
7766
7766
|
};
|
|
7767
7767
|
var handleParseLogistics = function handleParseLogistics(val) {
|
|
7768
7768
|
var params = {
|
|
7769
|
-
detail: val === null || val === void 0 ? void 0 : val.addressDetail,
|
|
7769
|
+
detail: (val === null || val === void 0 ? void 0 : val.addressDetail) || (val === null || val === void 0 ? void 0 : val.name),
|
|
7770
7770
|
address: []
|
|
7771
7771
|
};
|
|
7772
7772
|
var addressData = type === 'bs' ? kmkfUtils.BsAddressData.getInstance() : kmkfUtils.AddressData.getInstance();
|
|
@@ -8964,7 +8964,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
8964
8964
|
imgList: []
|
|
8965
8965
|
} : _props$value,
|
|
8966
8966
|
_props$maxLength = props.maxLength,
|
|
8967
|
-
maxLength = _props$maxLength === void 0 ?
|
|
8967
|
+
maxLength = _props$maxLength === void 0 ? 20 : _props$maxLength,
|
|
8968
8968
|
onChange = props.onChange,
|
|
8969
8969
|
_props$type = props.type,
|
|
8970
8970
|
type = _props$type === void 0 ? 2 : _props$type,
|
|
@@ -9187,7 +9187,13 @@ var GoodItem = function GoodItem(props) {
|
|
|
9187
9187
|
}];
|
|
9188
9188
|
var hasPic = headerList.includes('picUrl');
|
|
9189
9189
|
var hasAttr = hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
9190
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
9190
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, imgList.length === 0 ? /*#__PURE__*/React__default['default'].createElement("p", {
|
|
9191
|
+
className: "goods-title"
|
|
9192
|
+
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React__default['default'].createElement("p", {
|
|
9193
|
+
className: "goods-uploaded-state"
|
|
9194
|
+
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
9195
|
+
className: "goods-uploaded-count"
|
|
9196
|
+
}, imgList.length), "/", maxLength, "\u4E2A\u5B9D\u8D1D"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9191
9197
|
ref: boxRef,
|
|
9192
9198
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
9193
9199
|
}, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (img, index) {
|
|
@@ -9265,7 +9271,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
9265
9271
|
ref: skuRef,
|
|
9266
9272
|
userNick: userNick,
|
|
9267
9273
|
type: type
|
|
9268
|
-
}));
|
|
9274
|
+
})));
|
|
9269
9275
|
};
|
|
9270
9276
|
|
|
9271
9277
|
var TBGoodSerial = function TBGoodSerial(props) {
|
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.4",
|
|
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-alpha.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.24.1-alpha.4",
|
|
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": "8b1fad185651cc39d945fa3a0a869f843d4c392b"
|
|
68
68
|
}
|