Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2020-09-28 11:46:26 +08:00
72 changed files with 259 additions and 243 deletions
+5 -5
View File
@@ -14,7 +14,7 @@ app.use(Switch);
### 基础用法
通过`v-model`绑定开关的选中状态,`true`表示开,`false`表示关
通过 `v-model` 绑定开关的选中状态,`true` 表示开,`false` 表示关
```html
<van-switch v-model="checked" />
@@ -32,7 +32,7 @@ export default {
### 禁用状态
通过`disabled`属性来禁用开关,禁用状态下开关不可点击
通过 `disabled` 属性来禁用开关,禁用状态下开关不可点击
```html
<van-switch v-model="checked" disabled />
@@ -40,7 +40,7 @@ export default {
### 加载状态
通过`loading`属性设置开关为加载状态,加载状态下开关不可点击
通过 `loading` 属性设置开关为加载状态,加载状态下开关不可点击
```html
<van-switch v-model="checked" loading />
@@ -48,7 +48,7 @@ export default {
### 自定义大小
通过`size`属性自定义开关的大小
通过 `size` 属性自定义开关的大小
```html
<van-switch v-model="checked" size="24px" />
@@ -56,7 +56,7 @@ export default {
### 自定义颜色
`active-color`属性表示打开时的背景色,`inactive-color`表示关闭时的背景色
`active-color` 属性表示打开时的背景色,`inactive-color` 表示关闭时的背景色
```html
<van-switch v-model="checked" active-color="#07c160" inactive-color="#ee0a24" />