workflow-editor 0.9.68-boe7 → 0.9.68-boe8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow-editor",
|
|
3
|
-
"version": "0.9.68-
|
|
3
|
+
"version": "0.9.68-boe8",
|
|
4
4
|
"description": "流程编辑器",
|
|
5
5
|
"main": "lib/workflow-editor.umd.min.js",
|
|
6
6
|
"private": false,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"eslint": "5.16.0",
|
|
35
35
|
"eslint-plugin-vue": "5.2.2",
|
|
36
36
|
"imatrix-ui": "2.8.24",
|
|
37
|
-
"node-sass": "4.
|
|
37
|
+
"node-sass": "^4.14.1",
|
|
38
38
|
"nprogress": "^0.2.0",
|
|
39
39
|
"sass-loader": "^7.1.0",
|
|
40
40
|
"sessionstorage": "^0.1.0",
|
|
@@ -15,8 +15,9 @@ function getLeafPropRule(editField, dataTypeMap) {
|
|
|
15
15
|
rule.type = 'number'
|
|
16
16
|
}
|
|
17
17
|
rule.message = editField.label + ' ' + getI18n().t('workflowEditorMessage.requiredAndMustBeADate')
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
} else if (dataType === 'INTEGER' || dataType === 'LONG') {
|
|
19
|
+
// 匹配整数或整数字符串
|
|
20
|
+
rule.pattern = new RegExp('^-?\\d+$')
|
|
20
21
|
rule.message = editField.label + ' ' + getI18n().t('workflowEditorMessage.requiredAndMustBeAnInteger')
|
|
21
22
|
} else if (dataType === 'FLOAT' || dataType === 'DOUBLE') {
|
|
22
23
|
rule.pattern = new RegExp('^(-?\\d+)(\\.\\d+)?$')
|
|
@@ -516,7 +517,7 @@ function underscoreName(name) {
|
|
|
516
517
|
// }
|
|
517
518
|
// return name.replace(/([A-Z])/g, '_$1').toLowerCase()
|
|
518
519
|
}
|
|
519
|
-
// 下划线命名改为驼峰命名,例如:hello_word->
|
|
520
|
+
// 下划线命名改为驼峰命名,例如:hello_word->helloWord
|
|
520
521
|
// function camelName(name) {
|
|
521
522
|
// if (name.indexOf('_') < 0) {
|
|
522
523
|
// // 如果不包括下划线不需要转换
|