@kmkf-fe-packages/kmkf-work-order-service-component 0.9.1-alpha.0 → 0.9.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.
|
@@ -71,6 +71,8 @@ var isValidNumber = function isValidNumber(value) {
|
|
|
71
71
|
return !isNaN(value) && isFinite(value);
|
|
72
72
|
};
|
|
73
73
|
var parseExpression = function parseExpression(expression) {
|
|
74
|
+
// 使用正则表达式替换匹配的'+-'为'+0-'
|
|
75
|
+
expression = expression.replace(/\+\-/g, '+0-');
|
|
74
76
|
var tokens = expression.match(/\d+\.\d+|\d+|[-+*/()]/g);
|
|
75
77
|
if (!tokens) {
|
|
76
78
|
throw new Error('表达式不合法');
|
|
@@ -939,7 +939,8 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
939
939
|
} else if (nex.workOrderComponentType === 'INPUT') {
|
|
940
940
|
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), item.jsonMap["".concat(nex.uniqueKey, "_input")] || (config === null || config === void 0 ? void 0 : config.input)));
|
|
941
941
|
} else if (nex.workOrderComponentType === 'NUMERICAL_CALCULATION') {
|
|
942
|
-
|
|
942
|
+
var _item$jsonMap;
|
|
943
|
+
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), (_item$jsonMap = item.jsonMap["".concat(nex.uniqueKey, "_numericalCalculation")]) !== null && _item$jsonMap !== void 0 ? _item$jsonMap : config === null || config === void 0 ? void 0 : config.numericalCalculation));
|
|
943
944
|
} else if (nex.workOrderComponentType === 'TEXTAREA') {
|
|
944
945
|
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), item.jsonMap["".concat(nex.uniqueKey, "_textarea")] || (config === null || config === void 0 ? void 0 : config.textarea)));
|
|
945
946
|
} else if (nex.workOrderComponentType === 'SELECT') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "0.9.1
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/icons": "^4.7.0",
|
|
35
|
-
"@kmkf-fe-packages/basic-components": "^0.9.1
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "^0.9.1",
|
|
36
36
|
"@kmkf-fe-packages/kmkf-utils": "^0.8.19",
|
|
37
|
-
"@kmkf-fe-packages/services-components": "^0.9.1
|
|
37
|
+
"@kmkf-fe-packages/services-components": "^0.9.1",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "27f5904628141eb379d81b7bd8877c46c2634a57",
|
|
76
76
|
"gitHooks": {
|
|
77
77
|
"pre-commit": "lint-staged"
|
|
78
78
|
}
|