mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 10:00:58 +08:00
25 lines
461 B
Vue
25 lines
461 B
Vue
<template>
|
|
<el-input
|
|
v-model="textarea1"
|
|
style="width: 240px"
|
|
autosize
|
|
type="textarea"
|
|
placeholder="Please input"
|
|
/>
|
|
<div style="margin: 20px 0" />
|
|
<el-input
|
|
v-model="textarea2"
|
|
style="width: 240px"
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
type="textarea"
|
|
placeholder="Please input"
|
|
/>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const textarea1 = ref('')
|
|
const textarea2 = ref('')
|
|
</script>
|