<textarea v-model="cureInfo.Symptom" id="symptomTxt" οninput="autoTextAreaHeight(this)" ></textarea>
js处理:
function autoTextAreaHeight(o) {
o.style.height = o.scrollTop + o.scrollHeight + "px";
}
$(function () {
var ele = document.getElementById("symptomTxt");
autoTextAreaHeight(ele);
})