Replies: 1 comment 2 replies
-
看看在注册表配置满足需求嘛?: // registry.js
import { Materials } from '@opentiny/tiny-engine'
export default {
plugins: [
{
...Materials,
options: {
...Materials.options,
useBaseStyle: true, // 是否自动注入基础样式,
// 自动注入的区块基础样式
blockBaseStyle: {
className: 'block-base-style',
style: 'margin: 16px;'
},
// 自动注入的组件基础样式
componentBaseStyle: {
className: 'component-base-style',
style: 'margin: 8px;'
}
}
}
]
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
as title, div的样式不固定,需要按照条件去取全局样式或设置行内样式
Beta Was this translation helpful? Give feedback.
All reactions