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

自定义组件前缀自定义,注册时当参数传 #13

Closed
minzhenyu opened this issue Apr 12, 2022 · 4 comments
Closed

自定义组件前缀自定义,注册时当参数传 #13

minzhenyu opened this issue Apr 12, 2022 · 4 comments

Comments

@minzhenyu
Copy link

npm-custom这个前缀能自定义吗,注册的时候传进来使用

文档里没写这块内容,很容易造成混淆,
使用时最外层不需要前缀,内部却需要也会混淆,希望能保持一致

@wibetter
Copy link
Collaborator

这么做就是为了避免自定义组件把Editor预置的组件给覆盖了

@minzhenyu
Copy link
Author

这个明白,我意思是前缀自己定义,做一些禁用的判断就好了,
或者文档里明确哪些禁用就行了,更或者触发禁用条件就报警告,然后统一默认npm-custom作为前缀

@wibetter
Copy link
Collaborator

详细的文档这周会抽空编写,预计下周五前会往外放哈,

@wibetter
Copy link
Collaborator

wibetter commented May 3, 2022

已剔除默认前缀,生效版本:1.3.7。

@wibetter wibetter closed this as completed May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants