设置了autoSize 的 maxRows的值,textArea并没有maxHeight element-botchanged the title[Bug Report] el-input textarea type autosize maxRows prop does not work. 多行文本输入框设置autosize最大行数失效Feb 17, 2021 Translation of this issue:
官方说了autosize只对textarea 生效,想自适应的话可以传个对象{minRows:2,maxRows:6} 有用 回复 小老虎: 传对象 会出来滚动条呀 回复2019-12-11 holon: @小老虎 请问,你是怎么解决传对象出现滚动条的,我也遇到这个问题了 回复2020-10-27 查看全部 1 个回答 推荐问题 省市区街道数据在哪里可以下载?
autosize="{ minRows: 2, maxRows: 4}"placeholder="请输入角色功能简述"></el-input></el-form-item><el-form-itemprop="id"><el-inputtype="hidden"v-model="form.roleId"autocomplete="off"></el-input></el-form-item></el-form><divslot="footer"class="dialog-footer"><el-button@click="...
if (!autosize || type !== 'textarea') return; // 如果 autosize 是 false,或者当前不是文本域,也直接返回 const minRows = autosize.minRows; // 最少行数 const maxRows = autosize.maxRows; // 最大行数 this.textareaStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows); /...