ttl 提示

This commit is contained in:
Jesse-Ma
2022-12-06 10:55:14 +08:00
parent 4a8ff90081
commit 596a3c51d2
8 changed files with 48 additions and 17 deletions

View File

@@ -152,7 +152,7 @@
<Form :model="noteForm" :label-width="80">
<div id="wrapper" style="border-left: 0px solid #FF3366;">
<Input element-id="noteText" type="textarea" :border="false" v-model="noteForm.text" autofocus
:autosize="{ minRows: 30, maxRows: 20480 }" :placeholder="$t('content.noteTip')" @input="recordText"
:autosize="{ minRows: 30, maxRows: 409600 }" :placeholder="$t('content.noteTip')" @input="recordText"
@on-keydown="recordEventKdown"/>
</div>
</Form>
@@ -341,7 +341,7 @@ export default {
},
recordText() {
let text = this.noteForm.text;
if (text.length > 204800) {
if (text.length > 409600) {
this.errorInfo = this.$t('error.100012');
this.model.showError = true;
return;
@@ -370,7 +370,7 @@ export default {
let end = event.currentTarget.selectionEnd;
let text = event.currentTarget.value;
if (text.length > 204800) {
if (text.length > 409600) {
this.errorInfo = this.$t('error.100012');
this.model.showError = true;
return;
@@ -416,7 +416,7 @@ export default {
},
validateForm() {
let text = this.noteForm.text;
if (text.length > 204800) {
if (text.length > 409600) {
this.errorInfo = this.$t('error.100012');
this.model.showError = true;
return false;