mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
31 lines
516 B
Vue
31 lines
516 B
Vue
|
<template>
|
||
|
<el-input
|
||
|
v-model="text"
|
||
|
maxlength="10"
|
||
|
placeholder="Please input"
|
||
|
show-word-limit
|
||
|
type="text"
|
||
|
>
|
||
|
</el-input>
|
||
|
<div style="margin: 20px 0"></div>
|
||
|
<el-input
|
||
|
v-model="textarea"
|
||
|
maxlength="30"
|
||
|
placeholder="Please input"
|
||
|
show-word-limit
|
||
|
type="textarea"
|
||
|
/>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { defineComponent, ref } from 'vue'
|
||
|
export default defineComponent({
|
||
|
setup() {
|
||
|
return {
|
||
|
text: ref(''),
|
||
|
textarea: ref(''),
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
</script>
|