You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TAutomatically replying with ChatGPT can be attempted, but it cannot be guaranteed to be completely accurate and may not fully address all issues. Please feel free to reply if you have any further questions or concerns.
此回复基于 ChatGPT 自动生成,可以尝试下方案,官方人员会在一定时间后继续继续处理。
🧐 问题描述 | Problem description
在defaultSettings.tsx中增加了响应式布局断点的配置。但是仍然时默认的配置。另外就是onBreakpoint在pro中是否还可以继续使用?
💻 示例代码 | Sample code
import { ProLayoutProps } from '@ant-design/pro-components';
/**
*/
const Settings: ProLayoutProps & {
pwa?: boolean;
logo?: string;
} = {
navTheme: 'light',
// 拂晓蓝
colorPrimary: '',
layout: 'mix',
contentWidth: 'Fluid',
fixedHeader: true,
fixSiderbar: true,
colorWeak: false,
title: '',
// pwa: true,
// logo: '',
iconfontUrl: '',
token: {
// bgLayout: 'rgb(10,80,9)',
header: {
colorBgHeader: '#ff7676'
},
sider: {
colorBgMenuItemCollapsedElevated:'red',
colorMenuBackground: '#2f323e',
colorTextMenu:'#fff',
colorBgMenuItemSelected:'rgb(103,182,255)',
colorTextMenuSelected:'#fff',
colorTextMenuItemHover:'#fff',
},
// 参见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
},
target: '_self',
headerRender: undefined,
// appList: [
// {
// title: '首页',
// url: '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',
// },
// {
// title: '用户管理',
// url: '/users',
// },
// {
// title: '系统设置',
// url: '/settings',
// }, {
// title: '跨站点导航栏列表',
// url: '/settings',
// },
// ],
// breakpoint:false,
// defaultCollapsed:true,
collapsed:false,
openKeys:[''],
// defaultValue
selectedKeys:[''],
collapsedWidth:0,
siderWidth:70,
breakpoint:'xxl',
};
export default Settings;
🚑 其他信息 | Other information
OS:umi4,antd Pro V6
Node:
浏览器 | browser:edge
The text was updated successfully, but these errors were encountered: