...
|
...
|
@@ -51,7 +51,12 @@ |
|
|
type: String,
|
|
|
default: 'fav'
|
|
|
},
|
|
|
text: [String, Number],
|
|
|
text: {
|
|
|
type: [String, Number],
|
|
|
default() {
|
|
|
return '';
|
|
|
}
|
|
|
},
|
|
|
articleId: Number,
|
|
|
commentId: Number,
|
|
|
option: {
|
...
|
...
|
@@ -125,7 +130,7 @@ |
|
|
return style;
|
|
|
},
|
|
|
viewText() {
|
|
|
return `${this.editText === null ? this.text : this.editText}`;
|
|
|
return `${(this.editText === null ? this.text : this.editText)}`;
|
|
|
},
|
|
|
placText() {
|
|
|
if (!isNaN(Number(this.text)) && this.viewText.length) {
|
...
|
...
|
|