mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 11:33:42 +09:00
first
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
### 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-->
|
||||
Reference in New Issue
Block a user