|
@@ -35,7 +35,7 @@
|
|
|
resize="none"
|
|
|
:maxlength="999"
|
|
|
:autosize="{ minRows: 1, maxRows: 6 }"
|
|
|
- @input="valChange"
|
|
|
+ @input="textChange"
|
|
|
></el-input>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -76,6 +76,10 @@ export default {
|
|
|
valChange() {
|
|
|
this.$emit("input", this.inputValue);
|
|
|
this.$emit("change", this.inputValue);
|
|
|
+ },
|
|
|
+ textChange() {
|
|
|
+ this.inputValue = this.inputValue.replace(/\n/g, "");
|
|
|
+ this.valChange();
|
|
|
}
|
|
|
}
|
|
|
};
|