mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(dep): 数据源源方法依赖收集,数据源类内定义的方法需要被收集
This commit is contained in:
parent
58a34b0ad6
commit
c8870c5c12
@ -189,7 +189,7 @@ export const createDataSourceMethodTarget = (ds: DataSourceSchema, initialDeps:
|
||||
// 使用data-source-method-select 可以配置出来
|
||||
if (!Array.isArray(value) || value[0] !== ds.id) return false;
|
||||
|
||||
return Boolean(ds?.methods?.find((method) => method.name === value[1]));
|
||||
return true;
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user