21 lines
510 B
Vue
21 lines
510 B
Vue
<script setup lang="ts">
|
|
import {
|
|
CheckboxContent,
|
|
CheckboxControl,
|
|
CheckboxIndicator,
|
|
Checkbox,
|
|
} from "@heroui-vue/components";
|
|
</script>
|
|
<template>
|
|
<Checkbox id="custom">
|
|
<CheckboxContent>
|
|
<CheckboxControl class="bg-success-soft before:bg-success">
|
|
<CheckboxIndicator
|
|
class="**:data-[slot=checkbox-default-indicator--checkmark]:text-success-foreground"
|
|
/>
|
|
</CheckboxControl>
|
|
自定义样式复选框
|
|
</CheckboxContent>
|
|
</Checkbox>
|
|
</template>
|