configurable mentions placement
This commit is contained in:
parent
3abd357694
commit
9ea370033a
9 changed files with 75 additions and 53 deletions
|
|
@ -13,11 +13,6 @@ const MentionLink = {
|
|||
required: true,
|
||||
type: String
|
||||
},
|
||||
origattrs: {
|
||||
required: false,
|
||||
type: Object,
|
||||
default: {}
|
||||
},
|
||||
firstMention: {
|
||||
required: false,
|
||||
type: Boolean,
|
||||
|
|
@ -56,6 +51,12 @@ const MentionLink = {
|
|||
highlightClass () {
|
||||
if (this.highlight) return highlightClass(this.user)
|
||||
},
|
||||
oldPlace () {
|
||||
return this.mergedConfig.mentionsOldPlace
|
||||
},
|
||||
oldStyle () {
|
||||
return this.mergedConfig.mentionsOldStyle
|
||||
},
|
||||
style () {
|
||||
if (this.highlight) {
|
||||
const {
|
||||
|
|
@ -72,7 +73,8 @@ const MentionLink = {
|
|||
{
|
||||
'-you': this.isYou,
|
||||
'-highlighted': this.highlight,
|
||||
'-firstMention': this.firstMention
|
||||
'-firstMention': this.firstMention,
|
||||
'-oldStyle': this.oldStyle
|
||||
},
|
||||
this.highlightType
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue