2020-08-13 11:47:56 +08:00
|
|
|
<template>
|
|
|
|
<article>
|
|
|
|
<section>
|
|
|
|
<veui-checkbox v-model="readonly">
|
|
|
|
Read-only
|
|
|
|
</veui-checkbox>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<div>
|
|
|
|
<veui-textarea
|
|
|
|
rows="2"
|
|
|
|
:readonly="readonly"
|
|
|
|
value="Normal"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<veui-textarea
|
|
|
|
rows="2"
|
|
|
|
:readonly="readonly"
|
|
|
|
ui="s"
|
|
|
|
value="Small"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { Textarea, Checkbox } from 'veui'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
'veui-textarea': Textarea,
|
|
|
|
'veui-checkbox': Checkbox
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
readonly: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-09-15 20:03:51 +08:00
|
|
|
<style lang="less" scoped>
|
2020-08-13 11:47:56 +08:00
|
|
|
section {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
</style>
|