21 lines
504 B
Vue
21 lines
504 B
Vue
<script setup lang="ts">
|
||
import { ref } from "vue";
|
||
import { Description, TextArea } from "@heroui-vue/components";
|
||
|
||
const value = ref("");
|
||
</script>
|
||
|
||
<template>
|
||
<div class="flex w-96 flex-col gap-2">
|
||
<TextArea
|
||
v-model="value"
|
||
aria-describedby="textarea-controlled-description"
|
||
aria-label="公告"
|
||
placeholder="撰写公告…"
|
||
/>
|
||
<Description id="textarea-controlled-description">
|
||
字符数: {{ value.length }} / 280
|
||
</Description>
|
||
</div>
|
||
</template>
|