How to get Custom Editor Instance
未关闭
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 867
- PR 合并指标
- 30 天内没有已合并 PR
描述
I having an issue with the custom editor on how to pass the instance parameters, though it's working as expected in the render mode.
renderComponent: CustomComponent,
onComponentInitFunction(instance) {
console.log(`instance: `, instance);
instance.xyz = 'xzy'
instance.xx= 'xx'
},
editor: {
type: 'custom',
component: CustomEditorComponent,
/* issue is here, is there is anyway we can get the current instance and set some extra parameter? */
onComponentInitFunction(instace) {
instance.xyz = 'xzy'
instance.xx= 'xx'
}
Can we get the custom editor instance as it does for rendering?
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。