19 lines
351 B
Vue
19 lines
351 B
Vue
<script setup lang="ts">
|
|
import {
|
|
Switch,
|
|
SwitchContent,
|
|
SwitchControl,
|
|
SwitchThumb,
|
|
} from "@heroui-vue/components";
|
|
</script>
|
|
<template>
|
|
<Switch as-child>
|
|
<div data-custom="foo">
|
|
<SwitchContent>
|
|
<SwitchControl><SwitchThumb /></SwitchControl>
|
|
启用通知
|
|
</SwitchContent>
|
|
</div>
|
|
</Switch>
|
|
</template>
|