From 12863fdb3b076a688799c597bbadf39735759eb9 Mon Sep 17 00:00:00 2001 From: Tony Han Date: Sun, 8 Jan 2023 20:50:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0TS=20=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=20(#10480)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/defaultSettings.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config/defaultSettings.ts b/config/defaultSettings.ts index 6bd3ddf8..b0711647 100644 --- a/config/defaultSettings.ts +++ b/config/defaultSettings.ts @@ -1,9 +1,9 @@ -import { Settings as LayoutSettings } from '@ant-design/pro-components'; +import { ProLayoutProps } from '@ant-design/pro-components'; /** * @name */ -const Settings: LayoutSettings & { +const Settings: ProLayoutProps & { pwa?: boolean; logo?: string; } = { @@ -16,9 +16,13 @@ const Settings: LayoutSettings & { fixSiderbar: true, colorWeak: false, title: 'Ant Design Pro', - pwa: false, + pwa: true, logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', iconfontUrl: '', + token: { + // 参见ts声明,demo 见文档,通过token 修改样式 + //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F + } }; -export default Settings; +export default Settings