Commit 3a900032 authored by Jiewei Qian's avatar Jiewei Qian Committed by cinwell.li

doc: fix wrong indent in select.md (#4972)

parent 4a68400c
...@@ -57,15 +57,15 @@ Switch is used for switching between two opposing states. ...@@ -57,15 +57,15 @@ Switch is used for switching between two opposing states.
:::demo You can set `on-value` and `off-value` attributes. They both receive a `Boolean`, `String` or `Number` typed value. :::demo You can set `on-value` and `off-value` attributes. They both receive a `Boolean`, `String` or `Number` typed value.
```html ```html
<el-tooltip :content="'Switch value: ' + value3" placement="top"> <el-tooltip :content="'Switch value: ' + value3" placement="top">
<el-switch <el-switch
v-model="value3" v-model="value3"
on-color="#13ce66" on-color="#13ce66"
off-color="#ff4949" off-color="#ff4949"
on-value="100" on-value="100"
off-value="0"> off-value="0">
</el-switch> </el-switch>
</el-tooltip> </el-tooltip>
<script> <script>
export default { export default {
......
...@@ -57,15 +57,15 @@ ...@@ -57,15 +57,15 @@
:::demo 设置`on-value``off-value`属性,接受`Boolean`, `String``Number`类型的值。 :::demo 设置`on-value``off-value`属性,接受`Boolean`, `String``Number`类型的值。
```html ```html
<el-tooltip :content="'Switch value: ' + value3" placement="top"> <el-tooltip :content="'Switch value: ' + value3" placement="top">
<el-switch <el-switch
v-model="value3" v-model="value3"
on-color="#13ce66" on-color="#13ce66"
off-color="#ff4949" off-color="#ff4949"
on-value="100" on-value="100"
off-value="0"> off-value="0">
</el-switch> </el-switch>
</el-tooltip> </el-tooltip>
<script> <script>
export default { export default {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment