Commit 87029650570e470431fb94d35a273c5d07a73135
1 parent
cebc6a59
fix(demo): account page form validation
修复账号管理页面对不可见表单域的验证问题
Showing
1 changed file
with
7 additions
and
7 deletions
src/views/demo/system/menu/menu.data.ts
... | ... | @@ -124,7 +124,7 @@ export const formSchema: FormSchema[] = [ |
124 | 124 | label: '图标', |
125 | 125 | component: 'IconPicker', |
126 | 126 | required: true, |
127 | - show: ({ values }) => !isButton(values.type), | |
127 | + ifShow: ({ values }) => !isButton(values.type), | |
128 | 128 | }, |
129 | 129 | |
130 | 130 | { |
... | ... | @@ -132,19 +132,19 @@ export const formSchema: FormSchema[] = [ |
132 | 132 | label: '路由地址', |
133 | 133 | component: 'Input', |
134 | 134 | required: true, |
135 | - show: ({ values }) => !isButton(values.type), | |
135 | + ifShow: ({ values }) => !isButton(values.type), | |
136 | 136 | }, |
137 | 137 | { |
138 | 138 | field: 'component', |
139 | 139 | label: '组件路径', |
140 | 140 | component: 'Input', |
141 | - show: ({ values }) => isMenu(values.type), | |
141 | + ifShow: ({ values }) => isMenu(values.type), | |
142 | 142 | }, |
143 | 143 | { |
144 | 144 | field: 'permission', |
145 | 145 | label: '权限标识', |
146 | 146 | component: 'Input', |
147 | - show: ({ values }) => !isDir(values.type), | |
147 | + ifShow: ({ values }) => !isDir(values.type), | |
148 | 148 | }, |
149 | 149 | { |
150 | 150 | field: 'status', |
... | ... | @@ -169,7 +169,7 @@ export const formSchema: FormSchema[] = [ |
169 | 169 | { label: '是', value: '1' }, |
170 | 170 | ], |
171 | 171 | }, |
172 | - show: ({ values }) => !isButton(values.type), | |
172 | + ifShow: ({ values }) => !isButton(values.type), | |
173 | 173 | }, |
174 | 174 | |
175 | 175 | { |
... | ... | @@ -183,7 +183,7 @@ export const formSchema: FormSchema[] = [ |
183 | 183 | { label: '是', value: '1' }, |
184 | 184 | ], |
185 | 185 | }, |
186 | - show: ({ values }) => isMenu(values.type), | |
186 | + ifShow: ({ values }) => isMenu(values.type), | |
187 | 187 | }, |
188 | 188 | |
189 | 189 | { |
... | ... | @@ -197,6 +197,6 @@ export const formSchema: FormSchema[] = [ |
197 | 197 | { label: '否', value: '1' }, |
198 | 198 | ], |
199 | 199 | }, |
200 | - show: ({ values }) => !isButton(values.type), | |
200 | + ifShow: ({ values }) => !isButton(values.type), | |
201 | 201 | }, |
202 | 202 | ]; | ... | ... |