We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14ef911 commit b395c6eCopy full SHA for b395c6e
packages/core/src/pen/render.ts
@@ -3989,7 +3989,7 @@ export function calcInView(pen: Pen, calcChild = false) {
3989
pen.calculative.inView = false;
3990
}
3991
3992
- if(store.data.locked){
+ if(store.data.locked && pen.calculative.inView){
3993
pen.calculative.inView = hasPermission(pen, store.options.roles);
3994
3995
// TODO: 语义化上,用 onValue 更合适,但 onValue 会触发 echarts 图形的重绘,没有必要
@@ -4005,7 +4005,7 @@ function hasPermission(pen: Pen, roles: string[]) {
4005
if (pen.parentId) {
4006
return hasPermission(getParent(pen, false), roles);
4007
} else {
4008
- return true;
+ return pen.calculative.inView;
4009
4010
4011
if(!roles?.length){
0 commit comments