<script setup lang="ts">
import { ref } from "vue";
import { Switch, Button } from "@reglow/reui";
const checked = ref(false);
</script>
<template>
<div class="flex items-center gap-4">
<Switch v-model="checked" />
<span class="text-sm text-muted-foreground">{{ checked ? "开" : "关" }}</span>
<div class="flex gap-2">
<Button size="small" @click="checked = true">开启</Button>
<Button size="small" variant="outline" @click="checked = false">关闭</Button>
</div>
</div>
</template>