@kmkf-fe-packages/basic-components 0.25.0-alpha.0 → 0.25.0-alpha.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 +12 -7
- package/dist/index.js +12 -7
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -7389,11 +7389,14 @@ var Province = function Province(props) {
|
|
|
7389
7389
|
num++;
|
|
7390
7390
|
options = type !== 'bs' ? addressData.addressOptions || [] : bsAddressData.addressOptions || [];
|
|
7391
7391
|
if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
|
|
7392
|
+
getBsAddress();
|
|
7392
7393
|
time.current = setTimeout(function () {
|
|
7393
7394
|
initPageSource();
|
|
7394
7395
|
}, 1000);
|
|
7395
7396
|
}
|
|
7396
|
-
|
|
7397
|
+
if (options.length) {
|
|
7398
|
+
setOptions(options);
|
|
7399
|
+
}
|
|
7397
7400
|
case 4:
|
|
7398
7401
|
case "end":
|
|
7399
7402
|
return _context.stop();
|
|
@@ -10033,14 +10036,16 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10033
10036
|
newValue.splice(index, 1, val);
|
|
10034
10037
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10035
10038
|
};
|
|
10036
|
-
var handleDelete = function handleDelete(index) {
|
|
10039
|
+
var handleDelete = function handleDelete(e, index) {
|
|
10040
|
+
e.stopPropagation();
|
|
10037
10041
|
var newValue = cloneDeep(value);
|
|
10038
10042
|
newValue.splice(index, 1);
|
|
10039
10043
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10044
|
+
setChangeIndex(0);
|
|
10040
10045
|
};
|
|
10041
10046
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, {
|
|
10042
10047
|
wrap: true
|
|
10043
|
-
}, (value || []).map(function (item, index) {
|
|
10048
|
+
}, value.length > 1 ? (value || []).map(function (item, index) {
|
|
10044
10049
|
return /*#__PURE__*/React.createElement("span", {
|
|
10045
10050
|
style: {
|
|
10046
10051
|
position: 'relative',
|
|
@@ -10056,16 +10061,16 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10056
10061
|
right: '-7px',
|
|
10057
10062
|
top: '-10px'
|
|
10058
10063
|
},
|
|
10059
|
-
onClick: function onClick() {
|
|
10060
|
-
return handleDelete(index);
|
|
10064
|
+
onClick: function onClick(e) {
|
|
10065
|
+
return handleDelete(e, index);
|
|
10061
10066
|
}
|
|
10062
10067
|
}) : null);
|
|
10063
|
-
})), /*#__PURE__*/React.createElement(LogisticsInterception, {
|
|
10068
|
+
}) : null), /*#__PURE__*/React.createElement(LogisticsInterception, {
|
|
10064
10069
|
required: required,
|
|
10065
10070
|
expressInterceptData: expressInterceptData,
|
|
10066
10071
|
value: value[changeIndex],
|
|
10067
10072
|
disabled: disabled,
|
|
10068
|
-
isEditing:
|
|
10073
|
+
isEditing: false,
|
|
10069
10074
|
onChange: function onChange(val) {
|
|
10070
10075
|
return handleChange(val, changeIndex);
|
|
10071
10076
|
}
|
package/dist/index.js
CHANGED
|
@@ -7400,11 +7400,14 @@ var Province = function Province(props) {
|
|
|
7400
7400
|
num++;
|
|
7401
7401
|
options = type !== 'bs' ? addressData.addressOptions || [] : bsAddressData.addressOptions || [];
|
|
7402
7402
|
if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
|
|
7403
|
+
getBsAddress();
|
|
7403
7404
|
time.current = setTimeout(function () {
|
|
7404
7405
|
initPageSource();
|
|
7405
7406
|
}, 1000);
|
|
7406
7407
|
}
|
|
7407
|
-
|
|
7408
|
+
if (options.length) {
|
|
7409
|
+
setOptions(options);
|
|
7410
|
+
}
|
|
7408
7411
|
case 4:
|
|
7409
7412
|
case "end":
|
|
7410
7413
|
return _context.stop();
|
|
@@ -10044,14 +10047,16 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10044
10047
|
newValue.splice(index, 1, val);
|
|
10045
10048
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10046
10049
|
};
|
|
10047
|
-
var handleDelete = function handleDelete(index) {
|
|
10050
|
+
var handleDelete = function handleDelete(e, index) {
|
|
10051
|
+
e.stopPropagation();
|
|
10048
10052
|
var newValue = lodash.cloneDeep(value);
|
|
10049
10053
|
newValue.splice(index, 1);
|
|
10050
10054
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10055
|
+
setChangeIndex(0);
|
|
10051
10056
|
};
|
|
10052
10057
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
10053
10058
|
wrap: true
|
|
10054
|
-
}, (value || []).map(function (item, index) {
|
|
10059
|
+
}, value.length > 1 ? (value || []).map(function (item, index) {
|
|
10055
10060
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
10056
10061
|
style: {
|
|
10057
10062
|
position: 'relative',
|
|
@@ -10067,16 +10072,16 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10067
10072
|
right: '-7px',
|
|
10068
10073
|
top: '-10px'
|
|
10069
10074
|
},
|
|
10070
|
-
onClick: function onClick() {
|
|
10071
|
-
return handleDelete(index);
|
|
10075
|
+
onClick: function onClick(e) {
|
|
10076
|
+
return handleDelete(e, index);
|
|
10072
10077
|
}
|
|
10073
10078
|
}) : null);
|
|
10074
|
-
})), /*#__PURE__*/React__default['default'].createElement(LogisticsInterception, {
|
|
10079
|
+
}) : null), /*#__PURE__*/React__default['default'].createElement(LogisticsInterception, {
|
|
10075
10080
|
required: required,
|
|
10076
10081
|
expressInterceptData: expressInterceptData,
|
|
10077
10082
|
value: value[changeIndex],
|
|
10078
10083
|
disabled: disabled,
|
|
10079
|
-
isEditing:
|
|
10084
|
+
isEditing: false,
|
|
10080
10085
|
onChange: function onChange(val) {
|
|
10081
10086
|
return handleChange(val, changeIndex);
|
|
10082
10087
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.25.0-alpha.
|
|
3
|
+
"version": "0.25.0-alpha.1",
|
|
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": "14c977ae5d8e8f13d1517306002db80e78826748"
|
|
68
68
|
}
|