Skip to content

如何修改全局组件 如 editor-plugin 中的 代码提示 #6664

Closed Answered by hyzx86
hyzx86 asked this question in Q&A
Discussion options

You must be logged in to vote

已解决 😘

addSchemaFilter((schema: Schema, renderer: RendererConfig, props?: any) => {
  console.log('addSchemaFilter props: ', props);
  console.log('addSchemaFilter renderer: ', renderer);
  console.log('addSchemaFilter schema: ', schema);
  if (renderer.type == 'js-editor') {
    schema.label = schema.label + '11111';
    debugger;
  }
  return schema;
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hyzx86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant