@kmkf-fe-packages/basic-components 1.0.10-rc.4 → 1.0.10-rc.6
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 -5
- package/dist/index.js +10 -5
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -12919,9 +12919,11 @@ var index$1 = (function (props) {
|
|
|
12919
12919
|
_onChange = props.onChange,
|
|
12920
12920
|
disabled = props.disabled,
|
|
12921
12921
|
type = props.type;
|
|
12922
|
+
var onceRef = useRef(false);
|
|
12922
12923
|
useEffect(function () {
|
|
12923
12924
|
var _value$orders, _value$showOrderInfo;
|
|
12924
|
-
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
|
|
12925
|
+
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
|
|
12926
|
+
onceRef.current = true;
|
|
12925
12927
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
12926
12928
|
getOrderList(value.orderNo);
|
|
12927
12929
|
} else if (type === 'WLN_SYSTEM_ORDER') {
|
|
@@ -12930,7 +12932,7 @@ var index$1 = (function (props) {
|
|
|
12930
12932
|
getWdtOrderList(value.orderNo);
|
|
12931
12933
|
}
|
|
12932
12934
|
}
|
|
12933
|
-
}, [value
|
|
12935
|
+
}, [value, type]);
|
|
12934
12936
|
var columns = useMemo(function () {
|
|
12935
12937
|
var _columnsNameMap$type, _columnsNameMap$type2;
|
|
12936
12938
|
return [{
|
|
@@ -12973,7 +12975,8 @@ var index$1 = (function (props) {
|
|
|
12973
12975
|
})
|
|
12974
12976
|
}));
|
|
12975
12977
|
}
|
|
12976
|
-
|
|
12978
|
+
onceRef.current = false;
|
|
12979
|
+
case 7:
|
|
12977
12980
|
case "end":
|
|
12978
12981
|
return _context.stop();
|
|
12979
12982
|
}
|
|
@@ -13018,7 +13021,8 @@ var index$1 = (function (props) {
|
|
|
13018
13021
|
})
|
|
13019
13022
|
}));
|
|
13020
13023
|
}
|
|
13021
|
-
|
|
13024
|
+
onceRef.current = false;
|
|
13025
|
+
case 7:
|
|
13022
13026
|
case "end":
|
|
13023
13027
|
return _context2.stop();
|
|
13024
13028
|
}
|
|
@@ -13073,7 +13077,8 @@ var index$1 = (function (props) {
|
|
|
13073
13077
|
})
|
|
13074
13078
|
}));
|
|
13075
13079
|
}
|
|
13076
|
-
|
|
13080
|
+
onceRef.current = false;
|
|
13081
|
+
case 7:
|
|
13077
13082
|
case "end":
|
|
13078
13083
|
return _context3.stop();
|
|
13079
13084
|
}
|
package/dist/index.js
CHANGED
|
@@ -12931,9 +12931,11 @@ var index$1 = (function (props) {
|
|
|
12931
12931
|
_onChange = props.onChange,
|
|
12932
12932
|
disabled = props.disabled,
|
|
12933
12933
|
type = props.type;
|
|
12934
|
+
var onceRef = React.useRef(false);
|
|
12934
12935
|
React.useEffect(function () {
|
|
12935
12936
|
var _value$orders, _value$showOrderInfo;
|
|
12936
|
-
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
|
|
12937
|
+
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
|
|
12938
|
+
onceRef.current = true;
|
|
12937
12939
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
12938
12940
|
getOrderList(value.orderNo);
|
|
12939
12941
|
} else if (type === 'WLN_SYSTEM_ORDER') {
|
|
@@ -12942,7 +12944,7 @@ var index$1 = (function (props) {
|
|
|
12942
12944
|
getWdtOrderList(value.orderNo);
|
|
12943
12945
|
}
|
|
12944
12946
|
}
|
|
12945
|
-
}, [value
|
|
12947
|
+
}, [value, type]);
|
|
12946
12948
|
var columns = React.useMemo(function () {
|
|
12947
12949
|
var _columnsNameMap$type, _columnsNameMap$type2;
|
|
12948
12950
|
return [{
|
|
@@ -12985,7 +12987,8 @@ var index$1 = (function (props) {
|
|
|
12985
12987
|
})
|
|
12986
12988
|
}));
|
|
12987
12989
|
}
|
|
12988
|
-
|
|
12990
|
+
onceRef.current = false;
|
|
12991
|
+
case 7:
|
|
12989
12992
|
case "end":
|
|
12990
12993
|
return _context.stop();
|
|
12991
12994
|
}
|
|
@@ -13030,7 +13033,8 @@ var index$1 = (function (props) {
|
|
|
13030
13033
|
})
|
|
13031
13034
|
}));
|
|
13032
13035
|
}
|
|
13033
|
-
|
|
13036
|
+
onceRef.current = false;
|
|
13037
|
+
case 7:
|
|
13034
13038
|
case "end":
|
|
13035
13039
|
return _context2.stop();
|
|
13036
13040
|
}
|
|
@@ -13085,7 +13089,8 @@ var index$1 = (function (props) {
|
|
|
13085
13089
|
})
|
|
13086
13090
|
}));
|
|
13087
13091
|
}
|
|
13088
|
-
|
|
13092
|
+
onceRef.current = false;
|
|
13093
|
+
case 7:
|
|
13089
13094
|
case "end":
|
|
13090
13095
|
return _context3.stop();
|
|
13091
13096
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.0.10-rc.
|
|
3
|
+
"version": "1.0.10-rc.6",
|
|
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": "^1.0.10-rc.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^1.0.10-rc.5",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.8",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "a68994ea99ef0d86f0df5cf89a7cc5eb167e8e0f"
|
|
69
69
|
}
|