docs(switch): add document of switch component

This commit is contained in:
Sagi 2022-10-07 22:38:53 +08:00
parent 088c54147e
commit 99e980780e
1 changed files with 31 additions and 1 deletions

View File

@ -1 +1,31 @@
# Switch
# Switch 开关
Switch 组件用来切换数据状态。
## 基本用法
:::demo
```vue
<script setup lang="ts">
import { ref } from 'vue';
const status = ref(true);
</script>
<template>
<f-switch v-model="status"></f-switch>
</template>
```
:::
## 属性
| 属性名 | 类型 | 默认值 | 说明 |
| :----- | :------- | :----- | :------- |
| id | `string` | -- | 组件标识 |
## 插槽
::: tip
暂无内容
:::