From e2774be47952ab2c19fa410519c368f9719e33fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=B0=8F=E9=BE=99?= Date: Sat, 7 Jan 2023 18:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=9B=B4=E6=AD=A3=20switc?= =?UTF-8?q?h=20=E7=BB=84=E4=BB=B6=E5=B1=9E=E6=80=A7=20value=20=E7=9A=84?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide/switch.md | 78 ++++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/docs/guide/switch.md b/docs/guide/switch.md index f4d99cc..e01bf86 100644 --- a/docs/guide/switch.md +++ b/docs/guide/switch.md @@ -20,62 +20,62 @@ ```html ``` ```less .wrap { - flex-direction: column; - .line { - flex-direction: row; - justify-content: space-between; - height: 100px; - border-bottom-color: #bbbec4; - border-bottom-width: 1px; - width: 100%; - align-items: center; - padding: 0 20px; - } + flex-direction: column; + .line { + flex-direction: row; + justify-content: space-between; + height: 100px; + border-bottom-color: #bbbec4; + border-bottom-width: 1px; + width: 100%; + align-items: center; + padding: 0 20px; + } } ``` ```javascript export default { - changeHandler(e) { - console.log('switch changed!', e); - } -} + changeHandler(e) { + console.log("switch changed!", e); + } +}; ``` ### API #### 组件属性 -| 属性 | 类型 | 默认值 | 说明 | -| -------- | ------- | ------ | ---------------------------------------------- | -| value | String | false | 组件当前状态 | -| open | Number | - | 开启状态显示的文字,支持图标库图标的html实体值 | -| close | Number | - | 关闭状态显示的文字,支持图标库图标的html实体值 | -| disabled | Boolean | false | 是否禁用 | -| name | String | - | 开关的名称 | +| 属性 | 类型 | 默认值 | 说明 | +| -------- | ------- | ------ | ------------------------------------------------ | +| value | Boolean | false | 组件当前状态 | +| open | Number | - | 开启状态显示的文字,支持图标库图标的 html 实体值 | +| close | Number | - | 关闭状态显示的文字,支持图标库图标的 html 实体值 | +| disabled | Boolean | false | 是否禁用 | +| name | String | - | 开关的名称 | #### 组件事件