ant-design / pro-editor

🕹️ The Ultimate Editor UI Framework and Components
https://pro-editor.antdigital.dev
MIT License
199 stars 25 forks source link

getPrefix 需要改造 #118

Closed ONLY-yours closed 7 months ago

ONLY-yours commented 9 months ago

目前 getPrefix 取的方法有好几个,一个是 theme 下面,一个是 utils 下面,而且都是写死的 studio 前缀

需要改造统一为 继承 antd 的 prefix ,然后在后面加 -studio,即getPrefix-studio

现在写死后用户无法通过任何方法去改动并且覆盖样式(less这种特别hack的除外),最好在 Editor Provider 上提供一个能力支持,类似 ProComponents

arvinxx commented 9 months ago

getPrefix 应该拿到的是 editor吧,不是 studio ?

ONLY-yours commented 9 months ago

getPrefix 应该拿到的是 editor吧,不是 studio ?

现在代码里面看到是 studio 后面确定下要改成 editor 么?还是 studio? image

arvinxx commented 9 months ago

全改成 editor 吧。TechUI Studio 里的prefix 是 studio。可以用这个方式确认 prefix 链路的有效性。

改完以后中间会出问题的地方,就是要修复的位置

cc @rdmclin2

rdmclin2 commented 7 months ago

https://github.com/ant-design/pro-editor/pull/152

fixed