@formily-design/formily-antd 1.0.20 → 1.0.22

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.
@@ -10,6 +10,7 @@ exports.Cascader = {
10
10
  title: '选择时触发',
11
11
  tooltip: '点选每级菜单选项值都会发生变化',
12
12
  },
13
+ multiple: '多选',
13
14
  displayRender: {
14
15
  title: '渲染函数',
15
16
  tooltip: '选择后展示的渲染函数,默认为label => label.join("/") ',
@@ -19,6 +20,18 @@ exports.Cascader = {
19
20
  tooltip: '默认值:{ label: "label", value: "value", children: "children" }',
20
21
  },
21
22
  },
23
+ 'value-mapping-group': {
24
+ title: '数据映射',
25
+ fieldPath: '业务字段路径',
26
+ mappingPosition: '映射位置',
27
+ currentField: '当前字段',
28
+ siblingFields: '同级字段',
29
+ multipleOnlyCurrent: '多选模式仅支持映射到当前字段',
30
+ empty: '至少配置一个业务字段路径',
31
+ incomplete: '各级字段路径必须同时填写',
32
+ duplicate: '各级字段路径不能相同',
33
+ invalid: '请输入合法的相对字段路径',
34
+ },
22
35
  },
23
36
  },
24
37
  'en-US': {
@@ -29,6 +42,7 @@ exports.Cascader = {
29
42
  title: 'Change On Select',
30
43
  tooltip: 'Click on each level of menu option value will change',
31
44
  },
45
+ multiple: 'Multiple',
32
46
  displayRender: {
33
47
  title: 'Display Render',
34
48
  tooltip: 'The rendering function displayed after selection, the default is label => label.join("/") ',
@@ -38,6 +52,18 @@ exports.Cascader = {
38
52
  tooltip: 'Defaults:{ label: "label", value: "value", children: "children" }',
39
53
  },
40
54
  },
55
+ 'value-mapping-group': {
56
+ title: 'Data Mapping',
57
+ fieldPath: 'Business field path',
58
+ mappingPosition: 'Mapping position',
59
+ currentField: 'Current field',
60
+ siblingFields: 'Sibling fields',
61
+ multipleOnlyCurrent: 'Multiple mode only supports mapping to the current field',
62
+ empty: 'Configure at least one business field path',
63
+ incomplete: 'All field paths are required',
64
+ duplicate: 'Field paths must be different',
65
+ invalid: 'Enter a valid relative field path',
66
+ },
41
67
  },
42
68
  },
43
69
  'ko-KR': {
@@ -48,6 +74,7 @@ exports.Cascader = {
48
74
  title: '선택 시 변경',
49
75
  tooltip: '메뉴 옵션 값의 레벨을 클릭하면 변경됩니다.',
50
76
  },
77
+ multiple: '다중 선택',
51
78
  displayRender: {
52
79
  title: '디스플레이 렌더링',
53
80
  tooltip: '선택 후 실행되는 렌더링 함수로 기본 값은 label => label.join("/") ',
@@ -57,6 +84,18 @@ exports.Cascader = {
57
84
  tooltip: '기본 값:{ label: "label", value: "value", children: "children" }',
58
85
  },
59
86
  },
87
+ 'value-mapping-group': {
88
+ title: '데이터 매핑',
89
+ fieldPath: '업무 필드 경로',
90
+ mappingPosition: '매핑 위치',
91
+ currentField: '현재 필드',
92
+ siblingFields: '동급 필드',
93
+ multipleOnlyCurrent: '다중 선택 모드에서는 현재 필드 매핑만 지원됩니다',
94
+ empty: '하나 이상의 업무 필드 경로를 입력하세요',
95
+ incomplete: '모든 필드 경로를 입력하세요',
96
+ duplicate: '필드 경로는 달라야 합니다',
97
+ invalid: '올바른 상대 필드 경로를 입력하세요',
98
+ },
60
99
  },
61
100
  },
62
101
  };
@@ -79,11 +79,41 @@ exports.DatePicker = {
79
79
  exports.DateRangePicker = (0, core_1.createLocales)(exports.DatePicker, {
80
80
  'zh-CN': {
81
81
  title: '日期范围',
82
+ settings: {
83
+ 'value-mapping-group': {
84
+ title: '数据映射',
85
+ startPath: '开始字段路径',
86
+ endPath: '结束字段路径',
87
+ incomplete: '开始和结束字段路径必须同时填写',
88
+ duplicate: '开始和结束字段路径不能相同',
89
+ invalid: '请输入合法的相对字段路径',
90
+ },
91
+ },
82
92
  },
83
93
  'en-US': {
84
94
  title: 'DateRange',
95
+ settings: {
96
+ 'value-mapping-group': {
97
+ title: 'Data Mapping',
98
+ startPath: 'Start field path',
99
+ endPath: 'End field path',
100
+ incomplete: 'Both start and end field paths are required',
101
+ duplicate: 'Start and end field paths must be different',
102
+ invalid: 'Enter a valid relative field path',
103
+ },
104
+ },
85
105
  },
86
106
  'ko-KR': {
87
107
  title: '날짜범위 선택 상자',
108
+ settings: {
109
+ 'value-mapping-group': {
110
+ title: '데이터 매핑',
111
+ startPath: '시작 필드 경로',
112
+ endPath: '종료 필드 경로',
113
+ incomplete: '시작 및 종료 필드 경로를 모두 입력하세요',
114
+ duplicate: '시작 및 종료 필드 경로는 달라야 합니다',
115
+ invalid: '올바른 상대 필드 경로를 입력하세요',
116
+ },
117
+ },
88
118
  },
89
119
  });
@@ -17,6 +17,11 @@ exports.Cascader = {
17
17
  'x-decorator': 'FormItem',
18
18
  'x-component': 'Switch',
19
19
  },
20
+ multiple: {
21
+ type: 'boolean',
22
+ 'x-decorator': 'FormItem',
23
+ 'x-component': 'Switch',
24
+ },
20
25
  autoFocus: {
21
26
  type: 'boolean',
22
27
  'x-decorator': 'FormItem',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formily-design/formily-antd",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "license": "MIT",
5
5
  "main": "lib",
6
6
  "module": "esm",
@@ -24,7 +24,7 @@
24
24
  "start": "webpack-dev-server --config playground/webpack.dev.ts"
25
25
  },
26
26
  "devDependencies": {
27
- "@formily-design/react-settings-form": "1.0.20",
27
+ "@formily-design/react-settings-form": "1.0.22",
28
28
  "@formily/antd-v5": "^1.2.4",
29
29
  "@formily/core": "^2.0.2",
30
30
  "@formily/json-schema": "^2.0.2",
@@ -69,14 +69,14 @@
69
69
  "react-is": ">=16.8.0 || >=17.0.0"
70
70
  },
71
71
  "dependencies": {
72
- "@formily-design/core": "1.0.20",
73
- "@formily-design/formily-setters": "1.0.20",
74
- "@formily-design/formily-transformer": "1.0.20",
75
- "@formily-design/react": "1.0.20",
76
- "@formily-design/shared": "1.0.20"
72
+ "@formily-design/core": "1.0.22",
73
+ "@formily-design/formily-setters": "1.0.22",
74
+ "@formily-design/formily-transformer": "1.0.22",
75
+ "@formily-design/react": "1.0.22",
76
+ "@formily-design/shared": "1.0.22"
77
77
  },
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "c216e53994fe44a507f4360be8867c59b2f1b641"
81
+ "gitHead": "648b2e984e5823b5e712f4126ec7d675b7bc0f4e"
82
82
  }