mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
24 lines
416 B
Vue
24 lines
416 B
Vue
<template>
|
|
<el-input
|
|
v-model="text"
|
|
maxlength="10"
|
|
placeholder="Please input"
|
|
show-word-limit
|
|
type="text"
|
|
/>
|
|
<div style="margin: 20px 0" />
|
|
<el-input
|
|
v-model="textarea"
|
|
maxlength="30"
|
|
placeholder="Please input"
|
|
show-word-limit
|
|
type="textarea"
|
|
/>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
const text = ref('')
|
|
const textarea = ref('')
|
|
</script>
|