forked from opentiny/tiny-vue
32 lines
458 B
Vue
32 lines
458 B
Vue
<template>
|
|
<div class="demo-input">
|
|
<tiny-input
|
|
type="textarea"
|
|
v-model="textarea"
|
|
:autosize="{ minRows: 2, maxRows: 5 }"
|
|
:hover-expand="true"
|
|
></tiny-input>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { Input } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyInput: Input
|
|
},
|
|
data() {
|
|
return {
|
|
textarea: ''
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.demo-input .tiny-textarea {
|
|
width: 400px;
|
|
}
|
|
</style>
|