@thienvu18/designable-formily-setters 2.0.1 → 2.0.2
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/esm/components/DataSourceSetter/DataSettingPanel.d.ts +8 -8
- package/esm/components/DataSourceSetter/DataSettingPanel.js +124 -52
- package/esm/components/DataSourceSetter/Header.d.ts +5 -5
- package/esm/components/DataSourceSetter/Header.js +16 -7
- package/esm/components/DataSourceSetter/Title.d.ts +5 -5
- package/esm/components/DataSourceSetter/Title.js +57 -44
- package/esm/components/DataSourceSetter/TreePanel.d.ts +10 -10
- package/esm/components/DataSourceSetter/TreePanel.js +129 -89
- package/esm/components/DataSourceSetter/index.d.ts +16 -16
- package/esm/components/DataSourceSetter/index.js +81 -24
- package/esm/components/DataSourceSetter/shared.d.ts +14 -7
- package/esm/components/DataSourceSetter/shared.js +39 -41
- package/esm/components/DataSourceSetter/styles.less +4 -3
- package/esm/components/DataSourceSetter/types.d.ts +12 -12
- package/esm/components/DataSourceSetter/types.js +1 -1
- package/esm/components/ReactionsSetter/FieldPropertySetter.d.ts +6 -6
- package/esm/components/ReactionsSetter/FieldPropertySetter.js +140 -63
- package/esm/components/ReactionsSetter/PathSelector.d.ts +10 -9
- package/esm/components/ReactionsSetter/PathSelector.js +97 -100
- package/esm/components/ReactionsSetter/declarations.d.ts +3 -3
- package/esm/components/ReactionsSetter/declarations.js +31 -18
- package/esm/components/ReactionsSetter/helpers.d.ts +20 -10
- package/esm/components/ReactionsSetter/helpers.js +10 -10
- package/esm/components/ReactionsSetter/index.d.ts +6 -6
- package/esm/components/ReactionsSetter/index.js +412 -230
- package/esm/components/ReactionsSetter/properties.d.ts +14 -11
- package/esm/components/ReactionsSetter/properties.js +49 -40
- package/esm/components/ReactionsSetter/styles.less +2 -2
- package/esm/components/ReactionsSetter/types.d.ts +11 -11
- package/esm/components/ReactionsSetter/types.js +1 -1
- package/esm/components/ValidatorSetter/index.d.ts +4 -4
- package/esm/components/ValidatorSetter/index.js +148 -125
- package/esm/components/index.d.ts +3 -3
- package/esm/components/index.js +3 -3
- package/esm/index.d.ts +2 -2
- package/esm/index.js +2 -2
- package/esm/locales/en-US.d.ts +92 -92
- package/esm/locales/en-US.js +96 -93
- package/esm/locales/index.d.ts +1 -1
- package/esm/locales/index.js +5 -5
- package/esm/locales/ko-KR.d.ts +92 -92
- package/esm/locales/ko-KR.js +94 -93
- package/esm/locales/zh-CN.d.ts +92 -92
- package/esm/locales/zh-CN.js +94 -93
- package/lib/components/DataSourceSetter/DataSettingPanel.d.ts +8 -8
- package/lib/components/DataSourceSetter/DataSettingPanel.js +129 -55
- package/lib/components/DataSourceSetter/Header.d.ts +5 -5
- package/lib/components/DataSourceSetter/Header.js +19 -10
- package/lib/components/DataSourceSetter/Title.d.ts +5 -5
- package/lib/components/DataSourceSetter/Title.js +70 -47
- package/lib/components/DataSourceSetter/TreePanel.d.ts +10 -10
- package/lib/components/DataSourceSetter/TreePanel.js +134 -92
- package/lib/components/DataSourceSetter/index.d.ts +16 -16
- package/lib/components/DataSourceSetter/index.js +94 -30
- package/lib/components/DataSourceSetter/shared.d.ts +14 -7
- package/lib/components/DataSourceSetter/shared.js +48 -47
- package/lib/components/DataSourceSetter/styles.less +4 -3
- package/lib/components/DataSourceSetter/types.d.ts +12 -12
- package/lib/components/DataSourceSetter/types.js +2 -2
- package/lib/components/ReactionsSetter/FieldPropertySetter.d.ts +6 -6
- package/lib/components/ReactionsSetter/FieldPropertySetter.js +150 -67
- package/lib/components/ReactionsSetter/PathSelector.d.ts +10 -9
- package/lib/components/ReactionsSetter/PathSelector.js +101 -104
- package/lib/components/ReactionsSetter/declarations.d.ts +3 -3
- package/lib/components/ReactionsSetter/declarations.js +35 -22
- package/lib/components/ReactionsSetter/helpers.d.ts +20 -10
- package/lib/components/ReactionsSetter/helpers.js +23 -13
- package/lib/components/ReactionsSetter/index.d.ts +6 -6
- package/lib/components/ReactionsSetter/index.js +434 -234
- package/lib/components/ReactionsSetter/properties.d.ts +14 -11
- package/lib/components/ReactionsSetter/properties.js +43 -43
- package/lib/components/ReactionsSetter/styles.less +2 -2
- package/lib/components/ReactionsSetter/types.d.ts +11 -11
- package/lib/components/ReactionsSetter/types.js +2 -2
- package/lib/components/ValidatorSetter/index.d.ts +4 -4
- package/lib/components/ValidatorSetter/index.js +151 -128
- package/lib/components/index.d.ts +3 -3
- package/lib/components/index.js +35 -19
- package/lib/index.d.ts +2 -2
- package/lib/index.js +34 -18
- package/lib/locales/en-US.d.ts +92 -92
- package/lib/locales/en-US.js +98 -95
- package/lib/locales/index.d.ts +1 -1
- package/lib/locales/index.js +16 -10
- package/lib/locales/ko-KR.d.ts +92 -92
- package/lib/locales/ko-KR.js +96 -95
- package/lib/locales/zh-CN.d.ts +92 -92
- package/lib/locales/zh-CN.js +96 -95
- package/package.json +5 -5
package/esm/locales/ko-KR.js
CHANGED
|
@@ -1,98 +1,99 @@
|
|
|
1
1
|
const ValidatorFormats = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
]
|
|
2
|
+
{ label: 'URL', value: 'url' },
|
|
3
|
+
{ label: '이메일', value: 'email' },
|
|
4
|
+
{ label: '숫자', value: 'number' },
|
|
5
|
+
{ label: '상수', value: 'integer' },
|
|
6
|
+
{ label: 'ID', value: 'idcard' },
|
|
7
|
+
{ label: '휴대폰 번호', value: 'phone' },
|
|
8
|
+
{ label: '통화', value: 'money' },
|
|
9
|
+
{ label: '중국', value: 'zh' },
|
|
10
|
+
{ label: '날짜', value: 'date' },
|
|
11
|
+
{ label: 'Zip', value: 'zip' },
|
|
12
|
+
]
|
|
13
13
|
export default {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
format: {
|
|
26
|
-
title: '포맷',
|
|
27
|
-
placeholder: '선택하세요',
|
|
28
|
-
dataSource: ValidatorFormats,
|
|
29
|
-
},
|
|
30
|
-
validator: {
|
|
31
|
-
title: '사용자 정의 유효성 검사 도구',
|
|
32
|
-
tooltip: '형식: function (value){ return "Error Message"}',
|
|
33
|
-
},
|
|
34
|
-
pattern: 'RegExp',
|
|
35
|
-
len: '길이 제한',
|
|
36
|
-
max: '길이/값 Lt',
|
|
37
|
-
min: '길이/값 Gt',
|
|
38
|
-
exclusiveMaximum: '길이/값 Lte',
|
|
39
|
-
exclusiveMinimum: '길이/값 Gte',
|
|
40
|
-
whitespace: '공백 없음',
|
|
41
|
-
required: '필수 항목',
|
|
42
|
-
message: {
|
|
43
|
-
title: '오류 메시지',
|
|
44
|
-
tooltip: '오류 메시지는 현재의 규칙 셋의 하나의 빌트인 규칙에 대해서만 적용됩니다. 여러 빌트인 규칙에 대한 오류 메시지를 사용자 정의해야 하는 경우 여러 규칙으로 분할하세요.',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
14
|
+
'ko-KR': {
|
|
15
|
+
settings: {
|
|
16
|
+
'x-validator': {
|
|
17
|
+
title: '유효성 검사 도구',
|
|
18
|
+
addValidatorRules: '유효성 검사 규칙 추가',
|
|
19
|
+
drawer: '규칙 수정',
|
|
20
|
+
triggerType: {
|
|
21
|
+
title: '트리거 타입',
|
|
22
|
+
placeholder: '선택하세요',
|
|
23
|
+
dataSource: ['onInput', 'onFocus', 'onBlur'],
|
|
47
24
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
addKeyValuePair: '키/값 쌍 추가',
|
|
53
|
-
configureDataSource: '구성',
|
|
54
|
-
dataSource: 'Options',
|
|
55
|
-
defaultTitle: '기본 제목',
|
|
56
|
-
dataSourceTree: 'Options 트리',
|
|
57
|
-
addNode: '노드 추가',
|
|
58
|
-
label: '레이블',
|
|
59
|
-
value: '값',
|
|
60
|
-
item: '아이템',
|
|
61
|
-
},
|
|
62
|
-
ReactionsSetter: {
|
|
63
|
-
configureReactions: '구성',
|
|
64
|
-
relationsFields: '관련 필드',
|
|
65
|
-
variableName: '변수 이름',
|
|
66
|
-
variableNameValidateMessage: '표준 변수 이름이 아닙니다.',
|
|
67
|
-
pleaseInput: '입력해주세요',
|
|
68
|
-
sourceField: 'Source Field',
|
|
69
|
-
sourceProperty: '필드 속성',
|
|
70
|
-
variableType: '변수 타입',
|
|
71
|
-
operations: '작업',
|
|
72
|
-
addRelationField: '관련 필드 추가',
|
|
73
|
-
propertyReactions: '구성 리엑션(자바스크립트 표현식만 지원함)',
|
|
74
|
-
actionReactions: '액션 리엑션(선택사항, 자바스크립트 구문을 지원함)',
|
|
75
|
-
visible: '보기/없음',
|
|
76
|
-
hidden: '보기/UI 숨기기',
|
|
77
|
-
display: '디스플레이',
|
|
78
|
-
pattern: '패턴',
|
|
79
|
-
title: '제목',
|
|
80
|
-
description: '설명',
|
|
81
|
-
value: '값',
|
|
82
|
-
initialValue: '초기값',
|
|
83
|
-
dataSource: 'Options',
|
|
84
|
-
required: '필수 항목',
|
|
85
|
-
component: '컴포넌트',
|
|
86
|
-
componentProps: '컴포넌트 속성',
|
|
87
|
-
decorator: '테코레이터',
|
|
88
|
-
decoratorProps: '테코레이터 속성',
|
|
89
|
-
pleaseSelect: '선택하세요',
|
|
90
|
-
expressionValueTypeIs: '표현식 값 타입은',
|
|
91
|
-
},
|
|
92
|
-
ValidatorSetter: {
|
|
93
|
-
pleaseSelect: '선택하세요',
|
|
94
|
-
formats: ValidatorFormats,
|
|
95
|
-
},
|
|
25
|
+
format: {
|
|
26
|
+
title: '포맷',
|
|
27
|
+
placeholder: '선택하세요',
|
|
28
|
+
dataSource: ValidatorFormats,
|
|
96
29
|
},
|
|
30
|
+
validator: {
|
|
31
|
+
title: '사용자 정의 유효성 검사 도구',
|
|
32
|
+
tooltip: '형식: function (value){ return "Error Message"}',
|
|
33
|
+
},
|
|
34
|
+
pattern: 'RegExp',
|
|
35
|
+
len: '길이 제한',
|
|
36
|
+
max: '길이/값 Lt',
|
|
37
|
+
min: '길이/값 Gt',
|
|
38
|
+
exclusiveMaximum: '길이/값 Lte',
|
|
39
|
+
exclusiveMinimum: '길이/값 Gte',
|
|
40
|
+
whitespace: '공백 없음',
|
|
41
|
+
required: '필수 항목',
|
|
42
|
+
message: {
|
|
43
|
+
title: '오류 메시지',
|
|
44
|
+
tooltip:
|
|
45
|
+
'오류 메시지는 현재의 규칙 셋의 하나의 빌트인 규칙에 대해서만 적용됩니다. 여러 빌트인 규칙에 대한 오류 메시지를 사용자 정의해야 하는 경우 여러 규칙으로 분할하세요.',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
SettingComponents: {
|
|
50
|
+
DataSourceSetter: {
|
|
51
|
+
nodeProperty: '노드 속성',
|
|
52
|
+
pleaseSelectNode: '왼쪽에 있는 트리에서 노드를 선택하세요.',
|
|
53
|
+
addKeyValuePair: '키/값 쌍 추가',
|
|
54
|
+
configureDataSource: '구성',
|
|
55
|
+
dataSource: 'Options',
|
|
56
|
+
defaultTitle: '기본 제목',
|
|
57
|
+
dataSourceTree: 'Options 트리',
|
|
58
|
+
addNode: '노드 추가',
|
|
59
|
+
label: '레이블',
|
|
60
|
+
value: '값',
|
|
61
|
+
item: '아이템',
|
|
62
|
+
},
|
|
63
|
+
ReactionsSetter: {
|
|
64
|
+
configureReactions: '구성',
|
|
65
|
+
relationsFields: '관련 필드',
|
|
66
|
+
variableName: '변수 이름',
|
|
67
|
+
variableNameValidateMessage: '표준 변수 이름이 아닙니다.',
|
|
68
|
+
pleaseInput: '입력해주세요',
|
|
69
|
+
sourceField: 'Source Field',
|
|
70
|
+
sourceProperty: '필드 속성',
|
|
71
|
+
variableType: '변수 타입',
|
|
72
|
+
operations: '작업',
|
|
73
|
+
addRelationField: '관련 필드 추가',
|
|
74
|
+
propertyReactions: '구성 리엑션(자바스크립트 표현식만 지원함)',
|
|
75
|
+
actionReactions: '액션 리엑션(선택사항, 자바스크립트 구문을 지원함)',
|
|
76
|
+
visible: '보기/없음',
|
|
77
|
+
hidden: '보기/UI 숨기기',
|
|
78
|
+
display: '디스플레이',
|
|
79
|
+
pattern: '패턴',
|
|
80
|
+
title: '제목',
|
|
81
|
+
description: '설명',
|
|
82
|
+
value: '값',
|
|
83
|
+
initialValue: '초기값',
|
|
84
|
+
dataSource: 'Options',
|
|
85
|
+
required: '필수 항목',
|
|
86
|
+
component: '컴포넌트',
|
|
87
|
+
componentProps: '컴포넌트 속성',
|
|
88
|
+
decorator: '테코레이터',
|
|
89
|
+
decoratorProps: '테코레이터 속성',
|
|
90
|
+
pleaseSelect: '선택하세요',
|
|
91
|
+
expressionValueTypeIs: '표현식 값 타입은',
|
|
92
|
+
},
|
|
93
|
+
ValidatorSetter: {
|
|
94
|
+
pleaseSelect: '선택하세요',
|
|
95
|
+
formats: ValidatorFormats,
|
|
96
|
+
},
|
|
97
97
|
},
|
|
98
|
-
}
|
|
98
|
+
},
|
|
99
|
+
}
|
package/esm/locales/zh-CN.d.ts
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
export default _default
|
|
2
|
+
'zh-CN': {
|
|
3
|
+
settings: {
|
|
4
|
+
'x-validator': {
|
|
5
|
+
title: string
|
|
6
|
+
addValidatorRules: string
|
|
7
|
+
drawer: string
|
|
8
|
+
triggerType: {
|
|
9
|
+
title: string
|
|
10
|
+
placeholder: string
|
|
11
|
+
dataSource: string[]
|
|
12
|
+
}
|
|
13
|
+
format: {
|
|
14
|
+
title: string
|
|
15
|
+
placeholder: string
|
|
16
|
+
dataSource: {
|
|
17
|
+
label: string
|
|
18
|
+
value: string
|
|
19
|
+
}[]
|
|
20
|
+
}
|
|
21
|
+
validator: {
|
|
22
|
+
title: string
|
|
23
|
+
tooltip: string
|
|
24
|
+
}
|
|
25
|
+
pattern: string
|
|
26
|
+
len: string
|
|
27
|
+
max: string
|
|
28
|
+
min: string
|
|
29
|
+
exclusiveMaximum: string
|
|
30
|
+
exclusiveMinimum: string
|
|
31
|
+
whitespace: string
|
|
32
|
+
required: string
|
|
33
|
+
message: {
|
|
34
|
+
title: string
|
|
35
|
+
tooltip: string
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
SettingComponents: {
|
|
40
|
+
DataSourceSetter: {
|
|
41
|
+
nodeProperty: string
|
|
42
|
+
pleaseSelectNode: string
|
|
43
|
+
addKeyValuePair: string
|
|
44
|
+
configureDataSource: string
|
|
45
|
+
dataSource: string
|
|
46
|
+
defaultTitle: string
|
|
47
|
+
dataSourceTree: string
|
|
48
|
+
addNode: string
|
|
49
|
+
label: string
|
|
50
|
+
value: string
|
|
51
|
+
item: string
|
|
52
|
+
}
|
|
53
|
+
ReactionsSetter: {
|
|
54
|
+
configureReactions: string
|
|
55
|
+
relationsFields: string
|
|
56
|
+
variableName: string
|
|
57
|
+
variableNameValidateMessage: string
|
|
58
|
+
pleaseInput: string
|
|
59
|
+
sourceField: string
|
|
60
|
+
sourceProperty: string
|
|
61
|
+
variableType: string
|
|
62
|
+
operations: string
|
|
63
|
+
addRelationField: string
|
|
64
|
+
propertyReactions: string
|
|
65
|
+
actionReactions: string
|
|
66
|
+
visible: string
|
|
67
|
+
hidden: string
|
|
68
|
+
display: string
|
|
69
|
+
pattern: string
|
|
70
|
+
title: string
|
|
71
|
+
description: string
|
|
72
|
+
value: string
|
|
73
|
+
initialValue: string
|
|
74
|
+
dataSource: string
|
|
75
|
+
required: string
|
|
76
|
+
component: string
|
|
77
|
+
componentProps: string
|
|
78
|
+
decorator: string
|
|
79
|
+
decoratorProps: string
|
|
80
|
+
pleaseSelect: string
|
|
81
|
+
expressionValueTypeIs: string
|
|
82
|
+
}
|
|
83
|
+
ValidatorSetter: {
|
|
84
|
+
pleaseSelect: string
|
|
85
|
+
formats: {
|
|
86
|
+
label: string
|
|
87
|
+
value: string
|
|
88
|
+
}[]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export default _default
|
package/esm/locales/zh-CN.js
CHANGED
|
@@ -1,98 +1,99 @@
|
|
|
1
1
|
const ValidatorFormats = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
]
|
|
2
|
+
{ label: 'URL地址', value: 'url' },
|
|
3
|
+
{ label: '邮箱格式', value: 'email' },
|
|
4
|
+
{ label: '数字格式', value: 'number' },
|
|
5
|
+
{ label: '整数格式', value: 'integer' },
|
|
6
|
+
{ label: '身份证格式', value: 'idcard' },
|
|
7
|
+
{ label: '手机号格式', value: 'phone' },
|
|
8
|
+
{ label: '货币格式', value: 'money' },
|
|
9
|
+
{ label: '中文格式', value: 'zh' },
|
|
10
|
+
{ label: '日期格式', value: 'date' },
|
|
11
|
+
{ label: '邮编格式', value: 'zip' },
|
|
12
|
+
]
|
|
13
13
|
export default {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
format: {
|
|
26
|
-
title: '格式校验',
|
|
27
|
-
placeholder: '请选择',
|
|
28
|
-
dataSource: ValidatorFormats,
|
|
29
|
-
},
|
|
30
|
-
validator: {
|
|
31
|
-
title: '自定义校验器',
|
|
32
|
-
tooltip: '格式: function (value){ return "Error Message"}',
|
|
33
|
-
},
|
|
34
|
-
pattern: '正则表达式',
|
|
35
|
-
len: '长度限制',
|
|
36
|
-
max: '长度/数值小于',
|
|
37
|
-
min: '长度/数值大于',
|
|
38
|
-
exclusiveMaximum: '长度/数值小于等于',
|
|
39
|
-
exclusiveMinimum: '长度/数值大于等于',
|
|
40
|
-
whitespace: '不允许空白符',
|
|
41
|
-
required: '是否必填',
|
|
42
|
-
message: {
|
|
43
|
-
title: '错误消息',
|
|
44
|
-
tooltip: '错误消息只对当前规则集的一个内置规则生效,如果需要对不同内置规则定制错误消息,请拆分成多条规则',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
14
|
+
'zh-CN': {
|
|
15
|
+
settings: {
|
|
16
|
+
'x-validator': {
|
|
17
|
+
title: '校验规则',
|
|
18
|
+
addValidatorRules: '添加校验规则',
|
|
19
|
+
drawer: '配置规则',
|
|
20
|
+
triggerType: {
|
|
21
|
+
title: '触发类型',
|
|
22
|
+
placeholder: '请选择',
|
|
23
|
+
dataSource: ['输入时', '聚焦时', '失焦时'],
|
|
47
24
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
addKeyValuePair: '添加键值对',
|
|
53
|
-
configureDataSource: '配置可选项',
|
|
54
|
-
dataSource: '可选项',
|
|
55
|
-
defaultTitle: '默认标题',
|
|
56
|
-
dataSourceTree: '可选项节点树',
|
|
57
|
-
addNode: '新增节点',
|
|
58
|
-
label: '键名',
|
|
59
|
-
value: '键值',
|
|
60
|
-
item: '选项',
|
|
61
|
-
},
|
|
62
|
-
ReactionsSetter: {
|
|
63
|
-
configureReactions: '配置响应器',
|
|
64
|
-
relationsFields: '依赖字段',
|
|
65
|
-
variableName: '变量名',
|
|
66
|
-
variableNameValidateMessage: '不符合变量命名规则',
|
|
67
|
-
pleaseInput: '请输入',
|
|
68
|
-
sourceField: '来源字段',
|
|
69
|
-
sourceProperty: '字段属性',
|
|
70
|
-
variableType: '变量类型',
|
|
71
|
-
operations: '操作',
|
|
72
|
-
addRelationField: '添加依赖字段',
|
|
73
|
-
propertyReactions: '属性响应(仅支持JS表达式)',
|
|
74
|
-
actionReactions: '动作响应(高级,可选,支持JS语句)',
|
|
75
|
-
visible: '显示/隐藏',
|
|
76
|
-
hidden: 'UI隐藏',
|
|
77
|
-
display: '展示状态',
|
|
78
|
-
pattern: 'UI形态',
|
|
79
|
-
title: '标题',
|
|
80
|
-
description: '描述',
|
|
81
|
-
value: '字段值',
|
|
82
|
-
initialValue: '默认值',
|
|
83
|
-
dataSource: '可选项',
|
|
84
|
-
required: '是否必填',
|
|
85
|
-
component: '组件',
|
|
86
|
-
componentProps: '组件属性',
|
|
87
|
-
decorator: '容器',
|
|
88
|
-
decoratorProps: '容器属性',
|
|
89
|
-
pleaseSelect: '请选择',
|
|
90
|
-
expressionValueTypeIs: '表达式值类型为',
|
|
91
|
-
},
|
|
92
|
-
ValidatorSetter: {
|
|
93
|
-
pleaseSelect: '请选择',
|
|
94
|
-
formats: ValidatorFormats,
|
|
95
|
-
},
|
|
25
|
+
format: {
|
|
26
|
+
title: '格式校验',
|
|
27
|
+
placeholder: '请选择',
|
|
28
|
+
dataSource: ValidatorFormats,
|
|
96
29
|
},
|
|
30
|
+
validator: {
|
|
31
|
+
title: '自定义校验器',
|
|
32
|
+
tooltip: '格式: function (value){ return "Error Message"}',
|
|
33
|
+
},
|
|
34
|
+
pattern: '正则表达式',
|
|
35
|
+
len: '长度限制',
|
|
36
|
+
max: '长度/数值小于',
|
|
37
|
+
min: '长度/数值大于',
|
|
38
|
+
exclusiveMaximum: '长度/数值小于等于',
|
|
39
|
+
exclusiveMinimum: '长度/数值大于等于',
|
|
40
|
+
whitespace: '不允许空白符',
|
|
41
|
+
required: '是否必填',
|
|
42
|
+
message: {
|
|
43
|
+
title: '错误消息',
|
|
44
|
+
tooltip:
|
|
45
|
+
'错误消息只对当前规则集的一个内置规则生效,如果需要对不同内置规则定制错误消息,请拆分成多条规则',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
SettingComponents: {
|
|
50
|
+
DataSourceSetter: {
|
|
51
|
+
nodeProperty: '节点属性',
|
|
52
|
+
pleaseSelectNode: '请先选择左侧树节点',
|
|
53
|
+
addKeyValuePair: '添加键值对',
|
|
54
|
+
configureDataSource: '配置可选项',
|
|
55
|
+
dataSource: '可选项',
|
|
56
|
+
defaultTitle: '默认标题',
|
|
57
|
+
dataSourceTree: '可选项节点树',
|
|
58
|
+
addNode: '新增节点',
|
|
59
|
+
label: '键名',
|
|
60
|
+
value: '键值',
|
|
61
|
+
item: '选项',
|
|
62
|
+
},
|
|
63
|
+
ReactionsSetter: {
|
|
64
|
+
configureReactions: '配置响应器',
|
|
65
|
+
relationsFields: '依赖字段',
|
|
66
|
+
variableName: '变量名',
|
|
67
|
+
variableNameValidateMessage: '不符合变量命名规则',
|
|
68
|
+
pleaseInput: '请输入',
|
|
69
|
+
sourceField: '来源字段',
|
|
70
|
+
sourceProperty: '字段属性',
|
|
71
|
+
variableType: '变量类型',
|
|
72
|
+
operations: '操作',
|
|
73
|
+
addRelationField: '添加依赖字段',
|
|
74
|
+
propertyReactions: '属性响应(仅支持JS表达式)',
|
|
75
|
+
actionReactions: '动作响应(高级,可选,支持JS语句)',
|
|
76
|
+
visible: '显示/隐藏',
|
|
77
|
+
hidden: 'UI隐藏',
|
|
78
|
+
display: '展示状态',
|
|
79
|
+
pattern: 'UI形态',
|
|
80
|
+
title: '标题',
|
|
81
|
+
description: '描述',
|
|
82
|
+
value: '字段值',
|
|
83
|
+
initialValue: '默认值',
|
|
84
|
+
dataSource: '可选项',
|
|
85
|
+
required: '是否必填',
|
|
86
|
+
component: '组件',
|
|
87
|
+
componentProps: '组件属性',
|
|
88
|
+
decorator: '容器',
|
|
89
|
+
decoratorProps: '容器属性',
|
|
90
|
+
pleaseSelect: '请选择',
|
|
91
|
+
expressionValueTypeIs: '表达式值类型为',
|
|
92
|
+
},
|
|
93
|
+
ValidatorSetter: {
|
|
94
|
+
pleaseSelect: '请选择',
|
|
95
|
+
formats: ValidatorFormats,
|
|
96
|
+
},
|
|
97
97
|
},
|
|
98
|
-
}
|
|
98
|
+
},
|
|
99
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import './
|
|
1
|
+
import { Form as FormCore } from '@formily/core'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import './styles.less'
|
|
4
|
+
import { ITreeDataSource } from './types'
|
|
5
5
|
export interface IDataSettingPanelProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
treeDataSource: ITreeDataSource
|
|
7
|
+
allowExtendOption?: boolean
|
|
8
|
+
effects?: (form: FormCore<any>) => void
|
|
9
9
|
}
|
|
10
|
-
export declare const DataSettingPanel: React.FC<IDataSettingPanelProps
|
|
10
|
+
export declare const DataSettingPanel: React.FC<IDataSettingPanelProps>
|