29996
This commit is contained in:
@@ -164,18 +164,20 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirm () {
|
confirm () {
|
||||||
if (!this.content) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.currIndex >= 0) {
|
if (this.currIndex >= 0) {
|
||||||
this.richList[this.currIndex].value = this.content
|
if (!this.content) {
|
||||||
|
this.richList.splice(this.currIndex, 1)
|
||||||
} else {
|
} else {
|
||||||
|
this.richList[this.currIndex].value = this.content
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (this.content) {
|
||||||
this.richList.push({
|
this.richList.push({
|
||||||
type: 'text',
|
type: 'text',
|
||||||
value: this.content
|
value: this.content
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.isShowText = false
|
this.isShowText = false
|
||||||
this.content = ''
|
this.content = ''
|
||||||
|
|||||||
@@ -174,18 +174,20 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirm () {
|
confirm () {
|
||||||
if (!this.content) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.currIndex >= 0) {
|
if (this.currIndex >= 0) {
|
||||||
this.richList[this.currIndex].value = this.content
|
if (!this.content) {
|
||||||
|
this.richList.splice(this.currIndex, 1)
|
||||||
} else {
|
} else {
|
||||||
|
this.richList[this.currIndex].value = this.content
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (this.content) {
|
||||||
this.richList.push({
|
this.richList.push({
|
||||||
type: 'text',
|
type: 'text',
|
||||||
value: this.content
|
value: this.content
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.isShowText = false
|
this.isShowText = false
|
||||||
this.content = ''
|
this.content = ''
|
||||||
|
|||||||
@@ -195,18 +195,20 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirm () {
|
confirm () {
|
||||||
if (!this.content) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.currIndex >= 0) {
|
if (this.currIndex >= 0) {
|
||||||
this.richList[this.currIndex].value = this.content
|
if (!this.content) {
|
||||||
|
this.richList.splice(this.currIndex, 1)
|
||||||
} else {
|
} else {
|
||||||
|
this.richList[this.currIndex].value = this.content
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (this.content) {
|
||||||
this.richList.push({
|
this.richList.push({
|
||||||
type: 'text',
|
type: 'text',
|
||||||
value: this.content
|
value: this.content
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.isShowText = false
|
this.isShowText = false
|
||||||
this.content = ''
|
this.content = ''
|
||||||
|
|||||||
@@ -165,18 +165,20 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirm () {
|
confirm () {
|
||||||
if (!this.content) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.currIndex >= 0) {
|
if (this.currIndex >= 0) {
|
||||||
this.richList[this.currIndex].value = this.content
|
if (!this.content) {
|
||||||
|
this.richList.splice(this.currIndex, 1)
|
||||||
} else {
|
} else {
|
||||||
|
this.richList[this.currIndex].value = this.content
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (this.content) {
|
||||||
this.richList.push({
|
this.richList.push({
|
||||||
type: 'text',
|
type: 'text',
|
||||||
value: this.content
|
value: this.content
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.isShowText = false
|
this.isShowText = false
|
||||||
this.content = ''
|
this.content = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user