21 lines
544 B
Vue
21 lines
544 B
Vue
<script setup lang="ts">
|
|
import {
|
|
CheckboxContent,
|
|
CheckboxControl,
|
|
CheckboxIndicator,
|
|
Checkbox,
|
|
Description,
|
|
} from "@heroui-vue/components";
|
|
</script>
|
|
<template>
|
|
<Checkbox id="render-props-terms" v-slot="{ isSelected }">
|
|
<CheckboxContent>
|
|
<CheckboxControl><CheckboxIndicator /></CheckboxControl>
|
|
{{ isSelected ? "已同意条款" : "接受条款" }}
|
|
</CheckboxContent>
|
|
<Description>
|
|
{{ isSelected ? "感谢您的确认" : "请先阅读并接受条款" }}
|
|
</Description>
|
|
</Checkbox>
|
|
</template>
|