mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
docs: 优化 layout 文档
This commit is contained in:
parent
1ef90899ec
commit
cf9e7618a9
@ -220,7 +220,13 @@ export const layout = (layoutConfig, { initialState }) => ({
|
|||||||
- **类型**:`String`
|
- **类型**:`String`
|
||||||
- **默认值**:默认提供 `fes.js` 的 Logo
|
- **默认值**:默认提供 `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
|
### multiTabs
|
||||||
|
|
||||||
|
@ -71,9 +71,6 @@ export default defineBuildConfig({
|
|||||||
['1', '有效的'],
|
['1', '有效的'],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
viteHtml: {
|
|
||||||
template: 'hello.html',
|
|
||||||
},
|
|
||||||
dynamicImport: true,
|
dynamicImport: true,
|
||||||
monacoEditor: {
|
monacoEditor: {
|
||||||
languages: ['javascript', 'typescript', 'html', 'json'],
|
languages: ['javascript', 'typescript', 'html', 'json'],
|
||||||
|
@ -23,6 +23,7 @@ export const beforeRender = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const layout = {
|
export const layout = {
|
||||||
|
logo: `${process.env.BASE_URL}wine-outline.svg`,
|
||||||
renderCustom: (props) => {
|
renderCustom: (props) => {
|
||||||
console.log(props);
|
console.log(props);
|
||||||
return <UserCenter />;
|
return <UserCenter />;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user