update 0.13.3

This commit is contained in:
yehuozhili
2022-04-07 00:11:31 +08:00
parent bc2004f704
commit 0c9309956c
14 changed files with 58 additions and 18 deletions

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-03-14 05:40:37
* @LastEditors: yehuozhili
* @LastEditTime: 2022-04-01 14:29:39
* @LastEditTime: 2022-04-06 22:07:33
* @FilePath: \dooringx\packages\dooringx-lib\src\components\preview.tsx
*/
import Container from './container';
@@ -64,6 +64,10 @@ function Preview(props: PreviewProps): ReactElement {
// 设置全局
const global = props.config.getStore().getData().globalState;
const bodyColor = global?.bodyColor;
const title = global?.title;
if (title) {
document.title = title;
}
if (bodyColor) {
document.body.style.backgroundColor = bodyColor;
}