mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 19:41:57 +08:00
docs: 优化 layout 文档
This commit is contained in:
parent
c626d80950
commit
617a36e461
@ -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
|
||||
|
||||
|
@ -71,9 +71,6 @@ export default defineBuildConfig({
|
||||
['1', '有效的'],
|
||||
],
|
||||
},
|
||||
viteHtml: {
|
||||
template: 'hello.html',
|
||||
},
|
||||
dynamicImport: true,
|
||||
monacoEditor: {
|
||||
languages: ['javascript', 'typescript', 'html', 'json'],
|
||||
|
@ -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 />;
|
||||
|
Loading…
x
Reference in New Issue
Block a user