Ver código fonte

docs: semi material update faq

yanqi.xu 3 anos atrás
pai
commit
a93469d424

+ 1 - 1
content/start/update-to-v2/index-en-US.md

@@ -243,7 +243,7 @@ import { IllustrationConstruction } from '@douyinfe/semi-illustrations';
 In 1.x, Semi uses source code publishing. It will not perform precompilation before performing npm publishing. The Scss and jsx/js of the component library will be compiled together with the business code. In 2.0, precompilation was performed before npm publishing. For ordinary users, precompilation can make Semi work out of the box: there is no need for users to compile Semi source files, and there is no need to introduce Semi plug-ins when using them. Since the compiled results are under lib/es, the reference path of the interface and language package has changed, but for component references, you do not need to change the original reference path (because package.json main attribute points to lib/es/index.js).
 
 ### The project wants to upgrade to 2.0, but the Semi material is used in the project. The material is based on 1.x Semi. Can it be used at the same time?
-Since Semi 2.0 does not have the same package name as 1.x, they will actually be two separate packages that do not affect each other.
+No, the css class name of semi2.x is the same as that of semi1.x, and using it at the same time will cause style conflicts. If you encounter similar problems, please initiate an oncall in the Feishu group, and there will be a dedicated person to deal with it.
 
 ### Why do CSS variables add semi prefixes?
 Due to the increasing number of business micro front-end application scenarios, in order to avoid naming conflicts with other library CSS variables and avoid the problem of mutual influence of styles.

+ 1 - 1
content/start/update-to-v2/index.md

@@ -256,7 +256,7 @@ import { IllustrationConstruction } from '@douyinfe/semi-illustrations';
 
 ### 项目希望升级至 2.0,但项目中使用了 Semi 物料,物料基于 1.x Semi,是否可同时使用?
 
-由于 Semi 2.0 的包名与 1.x 并不相同,所以实际上他们会成了两个单独的包,互不影响
+不可以,semi2.x的css类名与semi1.x的相同,同时使用会导致样式冲突。如遇到类似问题,请在飞书群里发起oncall,会有专人对接处理
 
 ### CSS 变量添加 semi 前缀的原因?