Skip to content

🐛 [Bug]: mention组件只能@一次,并且过滤不会终止 #1762

@tech-zjf

Description

@tech-zjf

Version

Vue Version

Link to minimal reproduction

mention组件

Step to reproduce

官网demo,目前的问题是输入@之后, 随便选择了一个,之后再输入@提示No suggestion matched,不清除作者设计组件的时候是只考虑只能@一个目标还是啥,看了下源码逻辑,是只要输入了@,那么后面输入的所有字符都会拿去过滤。

What is expected

【个人感觉不是很合理,是否可以@之后输入了一个空格 重置匹配 在下次输入@时候重新走之前的逻辑。】我自己的封装的组件逻辑是这么去写的。

What is actually happening

No response

Any additional comments (optional)

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions