docs: 优化 layout 文档

This commit is contained in:
winixt 2023-08-03 16:41:03 +08:00
parent 1ef90899ec
commit cf9e7618a9
3 changed files with 8 additions and 4 deletions

View File

@ -220,7 +220,13 @@ export const layout = (layoutConfig, { initialState }) => ({
- **类型**`String`
- **默认值**:默认提供 `fes.js` 的 Logo
- **详情**Logo 的链接
- **详情**Logo 的链接,例如在 public/logo.png 放了一个 logo可以这么配置([BASE_URL 来自这里](../../../guide/env#process-env))
```js
export const layout = {
logo: `${process.env.BASE_URL}logo.png`,
};
```
### multiTabs

View File

@ -71,9 +71,6 @@ export default defineBuildConfig({
['1', '有效的'],
],
},
viteHtml: {
template: 'hello.html',
},
dynamicImport: true,
monacoEditor: {
languages: ['javascript', 'typescript', 'html', 'json'],

View File

@ -23,6 +23,7 @@ export const beforeRender = {
};
export const layout = {
logo: `${process.env.BASE_URL}wine-outline.svg`,
renderCustom: (props) => {
console.log(props);
return <UserCenter />;