Fritz Lin

Results 364 comments of Fritz Lin

嗯,vue-at确实可以提供一个方法来直接获取at信息,如: 1. `v-model="atList"` (×) ref: https://github.com/vuejs/awesome-vue/pull/1028#issuecomment-292839322 ```vue ``` 感觉这里使用`v-model`不合理,因为双向绑定不合理, 如果直接操作atList,编辑器中的text应如何变化?帮用户把所有的`@xx`移除掉? 2. `@change="handleAtChange"` (√) ```vue handleAtChange (data) { this.atList = data } ``` 3 `$refs.at.getAtList` (√) ```vue send () { this.$refs.at.getAtList()...

@KuiShang 噢抱歉哈哈,暂时还没空完善功能, 这个问题没事的,所以不管是1./2.,我原本就打算每次都是直接从完整的content重新匹配出atList, 所以不用担心增减不一致的问题 监听的事件直接是editor的input事件,所以不会错过什么

@raind33 可以的 有一个prop可以控制: https://fritx.github.io/vue-at/#/en/props ```html ```

@Lemo1437 hi,之前在 https://github.com/fritx/vue-at/issues/16#issuecomment-332897002 有讨论过 ~~可以暂时先试一下这种方式看行不行~~ (还是需要实现一下该功能) ```vue // ... async handleAt (chunk) { this.members = await fetchFromRemote(chunk) } ```

@overxue 请问你是怎么修改的呀,支持搜索列表对吧?

哦,原来你是这样的需求,因为我参考github这个评论框,也没有你说的这个效果,或许可以考虑加个prop支持?

hi @staiv1 , I can't reproduce it. (Screenshot above) What browser do you use? > space is always needed when i call an @event? What do you mean by "call...

nice 🍻 @huangruichang

- [x] getPrecedingRange bug ```js // http://stackoverflow.com/questions/15157435/get-last-character-before-caret-position-in-javascript export function getPrecedingRange() { const r = getRange() if (r) { const range = r.cloneRange() range.collapse(true) // 修复 "空格+表情+空格+@" range报错 应设(endContainer, 0) //...

- [x] vue2 => vue1: - [x] webpack boilerplate ```diff # package.json "peerDependencies": { - "vue": "2.x" + "vue": "1.x" }, "devDependencies": { "babel-core": "^6.0.0", "babel-loader": "^6.0.0", + "babel-plugin-transform-runtime": "^6.0.0",...