FatSwitch 开关
@wakeadmin/components 移植了 element-plus 的 el-switch 组件。如果你想要在 element-ui 中使用 inline-prompt、loading、beforeChange 等特性,可以使用这个组件。
查看代码
vue
<template>
<FatSwitch v-model="active" />
</template>
<script setup>
import { FatSwitch } from '@wakeadmin/components';
import { ref } from 'vue';
const active = ref(true);
</script>
API
注意事项
size 仅支持默认和 small