Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

快捷菜单问题 #164

Closed
icewindboy opened this issue Jul 25, 2019 · 3 comments

Comments

@icewindboy
Copy link

commented Jul 25, 2019

描述 Describe

表体有菜单设置 :context-menu="{body:{options:menus}}",响应函数如下
contextClick(params, event) {
let { menu } = params;
let $grid = this.$refs.grid;
// $grid.insert({
// id: --id,
// source: "1",
// parentId: id,
// urgency: "50"
// });
this.tasks.push({
id: --id,
source: "1",
parentId: id,
urgency: "50"
});
},

用insert插入数据导致在插入行上点右键提示错误: Cannot read property 'row' of undefined,
在表体空白点没错误。

如果用直接push,在插入行上右键能继续弹出菜单, 但getInsertRecords()获取不到记录

@icewindboy

This comment has been minimized.

Copy link
Author

commented Jul 27, 2019

更新到了1.11.1
现在表体空白的话,无法弹出菜单
有记录时,在记录行才能弹出菜单

测试链接:
https://jsfiddle.net/icewindboy/9t1rja5o/38/

@icewindboy

This comment has been minimized.

Copy link
Author

commented Jul 27, 2019

已看到更新,这速度,,
我超喜欢这里。。

@icewindboy icewindboy closed this Jul 27, 2019

@icewindboy

This comment has been minimized.

Copy link
Author

commented Jul 27, 2019

https://jsfiddle.net/icewindboy/9t1rja5o/38/

新问题:
查询出数据全选删除
需要点两次查询界面数据才会刷新
官网例子也存在这个问题

@icewindboy icewindboy reopened this Jul 27, 2019

@icewindboy icewindboy closed this Jul 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.