mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
23 lines
427 B
Vue
23 lines
427 B
Vue
<template>
|
|
<el-input
|
|
v-model="textarea1"
|
|
autosize
|
|
type="textarea"
|
|
placeholder="Please input"
|
|
/>
|
|
<div style="margin: 20px 0"></div>
|
|
<el-input
|
|
v-model="textarea2"
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
type="textarea"
|
|
placeholder="Please input"
|
|
>
|
|
</el-input>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
const textarea1 = ref('')
|
|
const textarea2 = ref('')
|
|
</script>
|