mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* 修改switch的model说明 * fix(docs): change switch docs #930 * fix(docs) change switch docs #930 * fix(docs): change switch docs #930 * Update website/docs/fr-FR/switch.md Co-authored-by: Enguerrand des Vaux <enguerrand@des-vaux.fr> Co-authored-by: 无星 <32910694@qq.com> Co-authored-by: Enguerrand des Vaux <enguerrand@des-vaux.fr>
This commit is contained in:
@@ -143,7 +143,7 @@ Switch is used for switching between two opposing states.
|
||||
|
||||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
|-----| ----| ----| ----|---- |
|
||||
| value / v-model | binding value | boolean / string / number | — | — |
|
||||
| value / v-model | binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type | boolean / string / number | — | — |
|
||||
| disabled | whether Switch is disabled | boolean | — | false |
|
||||
| loading | whether Switch is in loading state | boolean | — | false |
|
||||
| width | width of Switch | number | — | 40 |
|
||||
|
||||
@@ -144,7 +144,7 @@ Switch es utilizado para realizar cambios entre dos estados opuestos.
|
||||
|
||||
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
|
||||
| ------------------- | ---------------------------------------- | ------------------------- | ----------------- | ----------- |
|
||||
| value / v-model | valor enlazado | boolean / string / number | — | — |
|
||||
| value / v-model |valor vinculante, debe ser equivalente al `active-value` o al `inactive-value`. El tipo por defecto es el tipo `boolean`. | boolean / string / number | — | — |
|
||||
| disabled | si Switch esta deshabilitado | boolean | — | false |
|
||||
| loading | whether Switch is in loading state | boolean | — | false |
|
||||
| width | ancho del componente Switch | number | — | 40 |
|
||||
|
||||
@@ -145,7 +145,7 @@ Switch est utilisé pour choisir entre deux états opposés.
|
||||
|
||||
| Attribut | Description | Type | Valeurs acceptées | Défaut |
|
||||
| ----| ----| ----| ----|---- |
|
||||
| value / v-model | La valeur liée. | boolean / string / number | — | — |
|
||||
| value / v-model | Valeur liée. Elle doit être équivalente à `active-value` ou `inactive-value`, par défaut elle est de type `boolean`. | boolean / string / number | — | — |
|
||||
| disabled | Si le switch est désactivé. | boolean | — | false |
|
||||
| loading | whether Switch is in loading state | boolean | — | false |
|
||||
| width | Largeur du switch. | number | — | 40 |
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
|-----| ----| ----| ----|---- |
|
||||
| value / v-model | バインディング値 | boolean / string / number | — | — |
|
||||
| value / v-model | バインド値は、"active-value "または "inactive-value "と等しくなければなりません。デフォルトの型は "boolean "です。 | boolean / string / number | — | — |
|
||||
| disabled | スイッチが無効になっているかどうか | boolean | — | false |
|
||||
| loading | スイッチがロード中になっているかどうか | boolean | — | false |
|
||||
| width | スイッチの幅 | number | — | 40 |
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
||||
|---------- |-------- |---------- |------------- |-------- |
|
||||
| value / v-model | 绑定值 | boolean / string / number | — | — |
|
||||
| value / v-model | 绑定值,必须等于`active-value`或`inactive-value`,默认为`Boolean`类型 | boolean / string / number | — | — |
|
||||
| disabled | 是否禁用 | boolean | — | false |
|
||||
| loading | 是否显示加载中 | boolean | — | false |
|
||||
| width | switch 的宽度(像素) | number | — | 40 |
|
||||
|
||||
Reference in New Issue
Block a user