@kmkf-fe-packages/basic-components 0.26.1-beta.0 → 0.26.1-beta.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 -13
- package/dist/index.js +16 -13
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -9775,7 +9775,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9775
9775
|
var firstIn = useRef(true);
|
|
9776
9776
|
useEffect(function () {
|
|
9777
9777
|
//存入第一次的物流地址,防止非对接物流切换成对接物流后无法编辑
|
|
9778
|
-
if (firstIn.current &&
|
|
9778
|
+
if (firstIn.current && (value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
9779
9779
|
setInitCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
9780
9780
|
firstIn.current = false;
|
|
9781
9781
|
}
|
|
@@ -10065,7 +10065,7 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10065
10065
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, {
|
|
10066
10066
|
wrap: true
|
|
10067
10067
|
}, value.length > 1 ? (value || []).map(function (item, index) {
|
|
10068
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
10068
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
10069
10069
|
style: {
|
|
10070
10070
|
position: 'relative',
|
|
10071
10071
|
color: changeIndex === index ? '#4569d4' : 'black',
|
|
@@ -10083,17 +10083,20 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10083
10083
|
onClick: function onClick(e) {
|
|
10084
10084
|
return handleDelete(e, index);
|
|
10085
10085
|
}
|
|
10086
|
-
}) : null);
|
|
10087
|
-
}) : null),
|
|
10088
|
-
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10086
|
+
}) : null));
|
|
10087
|
+
}) : null), value.length > 1 ? (value || []).map(function (item, index) {
|
|
10088
|
+
return changeIndex === index ? /*#__PURE__*/React.createElement(LogisticsInterception, {
|
|
10089
|
+
key: "logistics-".concat(index),
|
|
10090
|
+
required: required,
|
|
10091
|
+
expressInterceptData: expressInterceptData,
|
|
10092
|
+
value: item,
|
|
10093
|
+
disabled: disabled,
|
|
10094
|
+
isEditing: false,
|
|
10095
|
+
onChange: function onChange(val) {
|
|
10096
|
+
return handleChange(val, index);
|
|
10097
|
+
}
|
|
10098
|
+
}) : null;
|
|
10099
|
+
}) : null);
|
|
10097
10100
|
};
|
|
10098
10101
|
|
|
10099
10102
|
var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
package/dist/index.js
CHANGED
|
@@ -9786,7 +9786,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9786
9786
|
var firstIn = React.useRef(true);
|
|
9787
9787
|
React.useEffect(function () {
|
|
9788
9788
|
//存入第一次的物流地址,防止非对接物流切换成对接物流后无法编辑
|
|
9789
|
-
if (firstIn.current &&
|
|
9789
|
+
if (firstIn.current && (value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
9790
9790
|
setInitCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
9791
9791
|
firstIn.current = false;
|
|
9792
9792
|
}
|
|
@@ -10076,7 +10076,7 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10076
10076
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
10077
10077
|
wrap: true
|
|
10078
10078
|
}, value.length > 1 ? (value || []).map(function (item, index) {
|
|
10079
|
-
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
10079
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
10080
10080
|
style: {
|
|
10081
10081
|
position: 'relative',
|
|
10082
10082
|
color: changeIndex === index ? '#4569d4' : 'black',
|
|
@@ -10094,17 +10094,20 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
10094
10094
|
onClick: function onClick(e) {
|
|
10095
10095
|
return handleDelete(e, index);
|
|
10096
10096
|
}
|
|
10097
|
-
}) : null);
|
|
10098
|
-
}) : null),
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10097
|
+
}) : null));
|
|
10098
|
+
}) : null), value.length > 1 ? (value || []).map(function (item, index) {
|
|
10099
|
+
return changeIndex === index ? /*#__PURE__*/React__default['default'].createElement(LogisticsInterception, {
|
|
10100
|
+
key: "logistics-".concat(index),
|
|
10101
|
+
required: required,
|
|
10102
|
+
expressInterceptData: expressInterceptData,
|
|
10103
|
+
value: item,
|
|
10104
|
+
disabled: disabled,
|
|
10105
|
+
isEditing: false,
|
|
10106
|
+
onChange: function onChange(val) {
|
|
10107
|
+
return handleChange(val, index);
|
|
10108
|
+
}
|
|
10109
|
+
}) : null;
|
|
10110
|
+
}) : null);
|
|
10108
10111
|
};
|
|
10109
10112
|
|
|
10110
10113
|
var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.26.1-beta.
|
|
3
|
+
"version": "0.26.1-beta.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.26.1-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.26.1-beta.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": "1c8d441453e71ad13b9f3d52f25bcd6d6b2a3635"
|
|
68
68
|
}
|