mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): add validate-event for form types component (#8173)
* fix(components): add validate-event for form types component * chore: format code
This commit is contained in:
@@ -159,6 +159,7 @@ cascader/panel
|
||||
| teleported | whether cascader popup is teleported | boolean | true / false | true |
|
||||
| popper-append-to-body(deprecated) | whether to append the popper menu to body. If the positioning of the popper is wrong, you can try to set this prop to false | boolean | - | true |
|
||||
| tag-type | tag type | string | success/info/warning/danger | info |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Cascader Events
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ checkbox/with-border
|
||||
| name | native 'name' attribute | string | — | — |
|
||||
| checked | if the Checkbox is checked | boolean | — | false |
|
||||
| indeterminate | same as `indeterminate` in native checkbox | boolean | — | false |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Checkbox Events
|
||||
|
||||
@@ -114,6 +115,7 @@ checkbox/with-border
|
||||
| label | label for screen reader | string | — | — |
|
||||
| text-color | font color when button is active | string | — | #ffffff |
|
||||
| fill | border and background color when button is active | string | — | #409EFF |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Checkbox-group Events
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ color-picker/sizes
|
||||
| color-format | color format of v-model | string | hsl / hsv / hex / rgb | hex (when show-alpha is false)/ rgb (when show-alpha is true) |
|
||||
| popper-class | custom class name for ColorPicker's dropdown | string | — | — |
|
||||
| predefine | predefined color options | array | — | — |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Events
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ input-number/controlled
|
||||
| label | label text | string | — | — |
|
||||
| placeholder | placeholder in input | string | - | - |
|
||||
| value-on-clear **(\> 2.2.0)** | value should be set when input box is cleared | string / number / null | min/max | - |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Events
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ radio/with-borders
|
||||
| disabled | whether the nesting radios are disabled | boolean | — | false |
|
||||
| text-color | font color when button is active | string | — | #ffffff |
|
||||
| fill | border and background color when button is active | string | — | #409EFF |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Radio-group Events
|
||||
|
||||
|
||||
@@ -157,6 +157,7 @@ select-v2/remote-search
|
||||
| scrollbar-always-on | Controls whether the scrollbar is always displayed | boolean | - | false |
|
||||
| remote | whether search data from server | boolean | — | false |
|
||||
| remote-method | function that gets called when the input value changes. Its parameter is the current input value. To use this, `filterable` must be true | function(keyword: string) | — | — |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
<span style="display: none;">
|
||||
<!-- | default-first-option | 在输入框按下回车,选择第一个匹配项。需配合 `filterable` 或 `remote` 使用 | boolean | - | false |
|
||||
|
||||
@@ -146,6 +146,7 @@ If the binding value of Select is an object, make sure to assign `value-key` as
|
||||
| fit-input-width | whether the width of the dropdown is the same as the input | boolean | — | false |
|
||||
| suffix-icon | Custom suffix icon component | string / Component | — | ArrowUp |
|
||||
| tag-type | tag type | string | success/info/warning/danger | info |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Select Events
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ slider/show-marks
|
||||
| debounce | debounce delay when typing, in milliseconds, works when `show-input` is true | number | — | 300 |
|
||||
| tooltip-class | custom class name for the tooltip | string | — | — |
|
||||
| marks | marks, type of key must be `number` and must in closed interval `[min, max]`, each mark can custom style | object | — | — |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Events
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ transfer/prop-alias
|
||||
| props | prop aliases for data source | object`{key, label, disabled}` | — | — |
|
||||
| left-default-checked | key array of initially checked data items of the left list | array | — | [ ] |
|
||||
| right-default-checked | key array of initially checked data items of the right list | array | — | [ ] |
|
||||
| validate-event | whether to trigger form validation | boolean | - | true |
|
||||
|
||||
## Slots
|
||||
|
||||
|
||||
Reference in New Issue
Block a user