checkList: ['seleccionado y deshabilitado','Opción A'],
// checkList2: ['Option A'],
// checkList2: ['Opción A'],
checked: true,
checked: true,
checked1: false,
checked1: false,
checked2: true,
checked2: true,
...
@@ -45,18 +45,18 @@
...
@@ -45,18 +45,18 @@
## Checkbox
## Checkbox
A group of options for multiple choices.
Un grupo de opciones para manejar múltiples elecciones.
### Basic usage
### Uso básico
Checkbox can be used alone to switch between two states.
Checkbox puede ser usado para alternar entre dos estados.
:::demo Define `v-model`(bind variable) in `el-checkbox`. The default value is a `Boolean` for single `checkbox`, and it becomes `true` when selected. Content inside the `el-checkbox` tag will become the description following the button of the checkbox.
:::demo Define `v-model`(enlaza la variable) en `el-checkbox`. El valor por defecto es un `Boolean` para un `checkbox`, y se convierte en `true` cuando este es seleccionado. El contenido dentro del tag `el-checkbox` se convierte en la descripción al costado del botón del checkbox.
It is used for multiple checkboxes which are bound in one group, and indicates whether one option is selected by checking if it is checked.
Es usado por multiples checkboxes los cuales están enlazados a un grupo, indica si una opción está seleccionada verificando si esta está marcada.
:::demo `checkbox-group` element can manage multiple checkboxes in one group by using `v-model` which is bound as an `Array`. Inside the `el-checkbox` element, `label` is the value of the checkbox. If no content is nested in that tag, `label` will be rendered as the description following the button of the checkbox. `label` also corresponds with the element values in the array. It is selected if the specified value exists in the array, and vice versa.
:::demo El elemento `checkbox-group` puede manejar multiples checkboxes en un grupo usando `v-model` el cuál está enlazado a un `Array`. Dentro del elemento `el-checkbox`, `label` es el valor del checkbox. Si en ese tag no hay contenido anidado, `label` va a ser mostrado como la descripción al lado del botón del checkbox. `label` también se corresponde con los valores del array. Es seleccionado si el valor especificado existe en el array y viceversa.
@@ -65,11 +65,11 @@ You can expand multiple panels
...
@@ -65,11 +65,11 @@ You can expand multiple panels
```
```
:::
:::
### Accordion
### Acordeón
In accordion mode, only one panel can be expanded at once
En modo acordeón sólo un panel puede ser expandido a la vez
:::demo Activate accordion mode using the `accordion` attribute.
:::demo Activa el modo acordeón usado el atributo `accordion`.
```html
```html
<el-collapsev-model="activeName"accordion>
<el-collapsev-model="activeName"accordion>
<el-collapse-itemtitle="Consistency"name="1">
<el-collapse-itemtitle="Consistency"name="1">
...
@@ -102,9 +102,9 @@ In accordion mode, only one panel can be expanded at once
...
@@ -102,9 +102,9 @@ In accordion mode, only one panel can be expanded at once
```
```
:::
:::
### Custom title
### Título personalizado
Besides using the `title` attribute, you can customize panel title with named slots, which makes adding custom content, e.g. icons, possible.
Además de usar el atributo `title`, se puede personalizar el título del panel con named slots, esto hace posible agregar contenido personalizado, por ejemplo: iconos.
:::demo
:::demo
```html
```html
...
@@ -133,19 +133,20 @@ Besides using the `title` attribute, you can customize panel title with named sl
...
@@ -133,19 +133,20 @@ Besides using the `title` attribute, you can customize panel title with named sl