arco-design-vue
arco-design-vue copied to clipboard
Mention组件使用prefix属性,值为"{{"时选中后的值会多一个{
- [ ] I'm sure this does not appear in the issue list of the repository
基本信息
- 依赖包名 及 版本: @arco-design/[email protected]
- 浏览器版本: chrome120.0.0.0
- 复现地址: https://arco.design/vue/component/mention#prefix
复现步骤
设置prefix=”{{“
异常显示
预期结果
好像只能使用单个字符?多个的情况都会出现以上情况,无论是什么字符,超出的都会追加到值后面
@flsion
@SunYuanOnly 我的建议是用{作为prefix,然后设置候选数据{label:'Bytedesign', value: '{Bytedesign}}',这样选择Bytedesign,插入的时候就是插入{Bytedesign}}
不过这确实也只是权宜之计
不过这确实也只是权宜之计
这是它的bug吗,还是说原本就是这样设计的?
@SunYuanOnly 显然是一个bug哈哈哈