Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
02f67dd3
Commit
02f67dd3
authored
Nov 10, 2017
by
ProgramerGuy
Committed by
杨奕
Nov 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update switch.md
parent
3764f1a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
28 deletions
+30
-28
examples/docs/es/switch.md
examples/docs/es/switch.md
+30
-28
No files found.
examples/docs/es/switch.md
View file @
02f67dd3
...
...
@@ -24,10 +24,11 @@
## Switch
Switch
is used for switching between two opposing state
s.
Switch
es utilizdo para realizar cambios entre dos estados opuesto
s.
### Basic usage
:::demo Bind
`v-model`
to a
`Boolean`
typed variable. The
`active-color`
and
`inactive-color`
attribute decides the background color in two states.
### Uso básico
:::demo Enlaza
`v-model`
a una variable de tipo
`Boolean`
. Los atributos
`active-color`
y
`inactive-color`
deciden el color de fondo en cada estado.
```
html
<el-switch
v-model=
"value1"
>
...
...
@@ -51,8 +52,8 @@ Switch is used for switching between two opposing states.
```
:::
### Text
descriptio
n
:::demo
You can add
`active-text`
and
`inactive-text`
attribute to show text
s.
### Text
o de descripció
n
:::demo
Puedes agregar los atributos
`active-text`
y
`inactive-text`
para mostrar los texto
s.
```
html
<el-switch
...
...
@@ -82,9 +83,9 @@ Switch is used for switching between two opposing states.
```
:::
###
Extended value type
s
###
Tipos de valores extendido
s
:::demo
You can set
`active-value`
and
`inactive-value`
attributes. They both receive a
`Boolean`
,
`String`
or
`Number`
typed value
.
:::demo
Puedes establecer los atributos
`active-value`
y
`inactive-value`
. Ambos reciben valores de tipo
`Boolean`
,
`String`
o
`Number`
.
```
html
<el-tooltip
:content=
"'Switch value: ' + value5"
placement=
"top"
>
...
...
@@ -112,7 +113,7 @@ Switch is used for switching between two opposing states.
### Disabled
:::demo A
dding the
`disabled`
attribute disables
Switch.
:::demo A
gregar el atributo
`disabled`
desactiva el componente
Switch.
```
html
<el-switch
...
...
@@ -137,29 +138,30 @@ Switch is used for switching between two opposing states.
```
:::
### At
tribute
s
### At
ributo
s
At
tribute | Description | Type | Accepted Values | Default
At
ributo | Descripción | Tipo | Valores aceptados | Por defecto
----| ----| ----| ----|----
disabled | whether Switch is disabled | boolean | — | false
width |
width of
Switch | number | — | 40
active-icon-class |
class name of the icon displayed when in
`on`
state, overrides
`active-text`
| string | — | —
inactive-icon-class |
class name of the icon displayed when in
`off`
state, overrides
`inactive-text`
| string | — | —
active-text | text
displayed when in
`on`
state
| string | — | —
inactive-text | text
displayed when in
`off`
state
| string | — | —
active-value |
switch value when in
`on`
state
| boolean / string / number | — | true
inactive-value |
switch value when in
`off`
state
| boolean / string / number | — | false
active-color |
background color when in
`on`
state
| string | — | #409EFF
inactive-color |
background color when in
`off`
state
| string | — | #C0CCDA
name|
input name of
Switch | string | — | —
### Events
Event Name | Description | Parameters
width |
ancho del componente
Switch | number | — | 40
active-icon-class |
nombre de la clase del icono mostrado en el estado
`on`
, sobreescribe
`active-text`
| string | — | —
inactive-icon-class |
nombre de la clase del icono mostrado en el estado
`off`
, sobreescribe
`inactive-text`
| string | — | —
active-text | text
o mostrado en el estado
`on`
| string | — | —
inactive-text | text
o mostrado en el estado
`off`
| string | — | —
active-value |
cambia su valor cuando se encuentra en el estado
`on`
| boolean / string / number | — | true
inactive-value |
cambia su valor cuando se encuentra en el estado
`off`
| boolean / string / number | — | false
active-color |
color de fondo cuando se encuentra en el estado
`on`
| string | — | #409EFF
inactive-color |
color de fondo cuando se encuentra en el estado
`off`
| string | — | #C0CCDA
name|
nombre de entrada del componente
Switch | string | — | —
### Event
o
s
Nombre del evento | Descripción | Parametro
---- | ----| ----
change | triggers when value changes | value after changing
change | se dispara cuando el valor cambia | valor
después de cambiar
### Met
hod
s
Met
hod | Description | Parameters
### Met
odo
s
Met
odo | Descripción | Parametro
------|--------|-------
focus | foc
us the Switch component
| —
focus | foc
o al componente Switch
| —
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment