diff --git a/docs/component/form.md b/docs/component/form.md index fc7b99ec..0b9f5989 100644 --- a/docs/component/form.md +++ b/docs/component/form.md @@ -486,70 +486,10 @@ function handleValidate() { ::: -## 不对隐藏组件做校验 +## 不对隐藏组件做校验 1.6.0 在表单中,如果某个组件使用 `v-if` 隐藏,则不会对该组件进行校验。 -::: details 查看不对隐藏组件做校验示例 -::: code-group - -```html [vue] - - - - - - - 提交 - - -``` - -```typescript [typescript] - -``` - -```css [css] -.footer { - padding: 12px; -} -``` - -::: - ## 复杂表单 结合`Input 输入框`、`Textarea 输入框`、`Picker 选择器`、 `Calendar 日历选择器`、 `ColPicker 多列选择器`、`SelectPicker 单复选选择器`、`Cell 单元格` 和 `DatetimePicker 日期时间选择器`实现一个复杂表单。