@kmkf-fe-packages/kmkf-work-order-service-component 0.9.1 → 0.9.2-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.
|
@@ -73,6 +73,8 @@ var isValidNumber = function isValidNumber(value) {
|
|
|
73
73
|
var parseExpression = function parseExpression(expression) {
|
|
74
74
|
// 使用正则表达式替换匹配的'+-'为'+0-'
|
|
75
75
|
expression = expression.replace(/\+\-/g, '+0-');
|
|
76
|
+
// 如果遇到-号前面没有数字,自动补0
|
|
77
|
+
expression = expression.replace(/(^|[-+*/(])\s*-\s*(?=\d)/g, '$10-');
|
|
76
78
|
var tokens = expression.match(/\d+\.\d+|\d+|[-+*/()]/g);
|
|
77
79
|
if (!tokens) {
|
|
78
80
|
throw new Error('表达式不合法');
|
|
@@ -696,7 +696,9 @@ var FormRender = function FormRender(props) {
|
|
|
696
696
|
id: uniqueKey,
|
|
697
697
|
name: name,
|
|
698
698
|
componentConfig: newComponentConfig,
|
|
699
|
-
effects: others,
|
|
699
|
+
effects: _objectSpread(_objectSpread({}, others), {}, {
|
|
700
|
+
env: plat.platform
|
|
701
|
+
}),
|
|
700
702
|
type: workOrderComponentType
|
|
701
703
|
});
|
|
702
704
|
if (Reflect.has(idConditionListMap, instance.id)) {
|
|
@@ -38,7 +38,10 @@ var RenderDetail = function RenderDetail(props) {
|
|
|
38
38
|
id: t.uniqueKey,
|
|
39
39
|
name: t.name,
|
|
40
40
|
componentConfig: t.componentConfig,
|
|
41
|
-
type: t.workOrderComponentType
|
|
41
|
+
type: t.workOrderComponentType,
|
|
42
|
+
effects: {
|
|
43
|
+
env: platform
|
|
44
|
+
}
|
|
42
45
|
});
|
|
43
46
|
// 淘宝端的买家昵称是需要亮灯展示的
|
|
44
47
|
if (platform === PlatForm.TB && ['ENTERPRISE_PAYMENT', 'BUYER_NICK_INPUT'].includes(t.workOrderComponentType)) {
|
|
@@ -55,7 +58,10 @@ var RenderDetail = function RenderDetail(props) {
|
|
|
55
58
|
id: t.uniqueKey,
|
|
56
59
|
name: t.name,
|
|
57
60
|
componentConfig: t.componentConfig,
|
|
58
|
-
type: t.workOrderComponentType
|
|
61
|
+
type: t.workOrderComponentType,
|
|
62
|
+
effects: {
|
|
63
|
+
env: platform
|
|
64
|
+
}
|
|
59
65
|
});
|
|
60
66
|
// 淘宝端的买家昵称是需要亮灯展示的
|
|
61
67
|
if (platform === PlatForm.TB && ['ENTERPRISE_PAYMENT', 'BUYER_NICK_INPUT'].includes(t.workOrderComponentType)) {
|
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.2-alpha.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.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "^0.9.2-alpha.0",
|
|
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.2-alpha.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": "a97b2d3f077885dd7693e37b71ea153202879633",
|
|
76
76
|
"gitHooks": {
|
|
77
77
|
"pre-commit": "lint-staged"
|
|
78
78
|
}
|