mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 13:33:30 +09:00
first
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
---
|
||||
state:
|
||||
textarea: ''
|
||||
disabled: true
|
||||
---
|
||||
|
||||
### Disabled
|
||||
|
||||
A `VTextarea` can be shown in a disabled state. For that, you need to wrap it
|
||||
inside a `<VControl />` component. Simply add the `disabled` attribute
|
||||
to the target textarea element.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
|
||||
const textarea = ref('')
|
||||
const disabled = ref(true)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VField>
|
||||
<VControl>
|
||||
<VTextarea
|
||||
v-model="textarea"
|
||||
rows="4"
|
||||
placeholder="A longer message..."
|
||||
:disabled="disabled"
|
||||
/>
|
||||
</VControl>
|
||||
</VField>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<VField>
|
||||
<VControl>
|
||||
<VTextarea
|
||||
v-model="frontmatter.state.textarea"
|
||||
rows="4"
|
||||
placeholder="A longer message..."
|
||||
:disabled="frontmatter.state.disabled"
|
||||
></VTextarea>
|
||||
</VControl>
|
||||
</VField>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user