mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
869cec59ba
* feat(input): migrate input component simply re #95 * feat(input): mainly complete input component & add more input tests * fix: address pr comments Co-authored-by: 陈婉玉 <simonaliachen@gmail.com>
29 lines
429 B
Vue
29 lines
429 B
Vue
<template>
|
|
<el-input
|
|
v-model="text"
|
|
type="text"
|
|
placeholder="请输入内容"
|
|
maxlength="10"
|
|
show-word-limit
|
|
/>
|
|
<div style="margin: 20px 0;"></div>
|
|
<el-input
|
|
v-model="textarea"
|
|
type="textarea"
|
|
placeholder="请输入内容"
|
|
maxlength="30"
|
|
show-word-limit
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
text: '',
|
|
textarea: '',
|
|
}
|
|
},
|
|
}
|
|
</script>
|