docs: prettier all markdown files
This commit is contained in:
+17
-17
@@ -27,10 +27,10 @@ Vue.use(SwitchCell);
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
checked: true
|
||||
}
|
||||
}
|
||||
}
|
||||
checked: true,
|
||||
};
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
### Disabled
|
||||
@@ -58,21 +58,21 @@ use `loading` property to keep component in loading state
|
||||
### Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | on-off state of the switch | *any* | `false` |
|
||||
| title | the left side title | *string* | `''` |
|
||||
| border | whether to show cell border | *boolean* | `true` |
|
||||
| cell-size | Cell size,can be set to `large` | *string* | - |
|
||||
| loading | whether switch is loading | *boolean* | `false` |
|
||||
| disabled | whether to disable switch | *boolean* | `false` |
|
||||
| size | Size of switch | *number \| string* | `24px` |
|
||||
| active-color | Background of switch color when active | *string* | `#1989fa` |
|
||||
| inactive-color | Background of switch color when inactive | *string* | `white` |
|
||||
| active-value | Value when active | *any* | `true` |
|
||||
| inactive-value | Value when inactive | *any* | `false` |
|
||||
| --- | --- | --- | --- |
|
||||
| v-model | on-off state of the switch | _any_ | `false` |
|
||||
| title | the left side title | _string_ | `''` |
|
||||
| border | whether to show cell border | _boolean_ | `true` |
|
||||
| cell-size | Cell size,can be set to `large` | _string_ | - |
|
||||
| loading | whether switch is loading | _boolean_ | `false` |
|
||||
| disabled | whether to disable switch | _boolean_ | `false` |
|
||||
| size | Size of switch | _number \| string_ | `24px` |
|
||||
| active-color | Background of switch color when active | _string_ | `#1989fa` |
|
||||
| inactive-color | Background of switch color when inactive | _string_ | `white` |
|
||||
| active-value | Value when active | _any_ | `true` |
|
||||
| inactive-value | Value when inactive | _any_ | `false` |
|
||||
|
||||
### Events
|
||||
|
||||
| Event | Description | Arguments |
|
||||
|------|------|------|
|
||||
| --- | --- | --- |
|
||||
| change | triggered when the on-off state is changed | checked: switch is on or not |
|
||||
|
||||
@@ -27,10 +27,10 @@ Vue.use(SwitchCell);
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
checked: true
|
||||
}
|
||||
}
|
||||
}
|
||||
checked: true,
|
||||
};
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
### 禁用状态
|
||||
@@ -58,21 +58,21 @@ export default {
|
||||
### Props
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|------|------|------|------|
|
||||
| v-model | 开关状态 | *any* | `false` |
|
||||
| title | 左侧标题 | *string* | `''` |
|
||||
| border | 是否展示单元格内边框 | *boolean* | `true` |
|
||||
| cell-size | 单元格大小,可选值为 `large` | *string* | - |
|
||||
| loading | 是否为加载状态 | *boolean* | `false` |
|
||||
| disabled | 是否为禁用状态 | *boolean* | `false` |
|
||||
| size | 开关尺寸 | *number \| string* | `24px` |
|
||||
| active-color | 开关时的背景色 | *string* | `#1989fa` |
|
||||
| inactive-color | 开关时的背景色 | *string* | `white` |
|
||||
| active-value | 打开时的值 | *any* | `true` |
|
||||
| inactive-value | 关闭时的值 | *any* | `false` |
|
||||
| --- | --- | --- | --- |
|
||||
| v-model | 开关状态 | _any_ | `false` |
|
||||
| title | 左侧标题 | _string_ | `''` |
|
||||
| border | 是否展示单元格内边框 | _boolean_ | `true` |
|
||||
| cell-size | 单元格大小,可选值为 `large` | _string_ | - |
|
||||
| loading | 是否为加载状态 | _boolean_ | `false` |
|
||||
| disabled | 是否为禁用状态 | _boolean_ | `false` |
|
||||
| size | 开关尺寸 | _number \| string_ | `24px` |
|
||||
| active-color | 开关时的背景色 | _string_ | `#1989fa` |
|
||||
| inactive-color | 开关时的背景色 | _string_ | `white` |
|
||||
| active-value | 打开时的值 | _any_ | `true` |
|
||||
| inactive-value | 关闭时的值 | _any_ | `false` |
|
||||
|
||||
### Events
|
||||
|
||||
| 事件名 | 说明 | 回调参数 |
|
||||
|------|------|------|
|
||||
| 事件名 | 说明 | 回调参数 |
|
||||
| ------ | ---------------- | --------------------- |
|
||||
| change | 开关状态切换回调 | checked: 是否选中开关 |
|
||||
|
||||
Reference in New Issue
Block a user