mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 11:23:29 +09:00
44 lines
769 B
Markdown
44 lines
769 B
Markdown
### Loading
|
|
|
|
A `VTextarea` can be shown in a loading state. For that, you need to wrap
|
|
it inside a control element. Then, simply add the `loading` prop to the
|
|
wrapping `<VControl />` component.
|
|
Please refer to the code example for more details about usage.
|
|
|
|
<!--code-->
|
|
|
|
```vue
|
|
<script setup lang="ts">
|
|
|
|
const textarea = ref('')
|
|
const loading = ref(true)
|
|
</script>
|
|
|
|
<template>
|
|
<VField>
|
|
<VControl :loading="loading">
|
|
<VTextarea
|
|
v-model="textarea"
|
|
rows="4"
|
|
placeholder="A longer message..."
|
|
/>
|
|
</VControl>
|
|
</VField>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|
|
|
|
<!--example-->
|
|
|
|
<VField>
|
|
<VControl loading>
|
|
<VTextarea
|
|
rows="4"
|
|
placeholder="A longer message..."
|
|
></VTextarea>
|
|
</VControl>
|
|
</VField>
|
|
|
|
<!--/example-->
|