Commit 1ee48817 authored by linxin's avatar linxin

add

parent f1095afd
......@@ -876,31 +876,34 @@ export default {
addRows (e) {
if (e) {
let addNum = Math.ceil(e.length / 16)
if (addNum === 0) {
this.$refs.myTestarea.rows = 1
} else if (addNum >= addNum - 1 && addNum < addNum + 1) {
this.$refs.myTestarea.rows = addNum + 1
}
// if (addNum === 0) {
// this.$refs.myTestarea.rows = 1
// } else if (addNum >= addNum - 1 && addNum < addNum + 1) {
// this.$refs.myTestarea.rows = addNum + 1
// }
this.$refs.myTestarea.rows = addNum
}
},
addRowsLive (e) {
if (e) {
let addNum = Math.ceil(e.length / 16)
if (addNum === 0) {
this.$refs.myTestareaLive.rows = 1
} else if (addNum >= addNum - 1 && addNum < addNum + 1) {
this.$refs.myTestareaLive.rows = addNum + 1
}
// if (addNum === 0) {
// this.$refs.myTestareaLive.rows = 1
// } else if (addNum >= addNum - 1 && addNum < addNum + 1) {
// this.$refs.myTestareaLive.rows = addNum + 1
// }
this.$refs.myTestareaLive.rows = addNum
}
},
addAddressRows (e) {
if (e) {
let addNum = Math.ceil(e.length / 16)
if (addNum === 0) {
this.$refs.address.rows = 1
} else if (addNum >= addNum - 1 && addNum < addNum + 1) {
this.$refs.address.rows = addNum + 1
}
// if (addNum === 0) {
// this.$refs.address.rows = 1
// } else if (addNum >= addNum - 1 && addNum < addNum + 1) {
this.$refs.address.rows = addNum + 1
// }
this.$refs.address.rows = addNum
}
},
handSubmit () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment