Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@antdp/basic-layouts
Advanced tools
入口公共界面
npm i @antdp/basic-layouts --save
import BasicLayout from '@antdp/basic-layouts';
import logo from './logo.svg';
export default (props) => {
return (
<BasicLayout
{...props}
projectName="Ant Design Pro2"
logo={logo}
/>
)
};
interface BaseLayoutProps {
/**
* 项目logo
*/
logo?: JSX.Element;
/**
* 项目名称
*/
projectName?: string;
/**
* 项目路由数据
*/
route: RouterData;
/**
* 设置最左边菜单宽度
*/
siderWidth?: number;
/**
* 用户信息显示
*/
profile?: {
/**
* 用户头像
*/
avatar?: string,
/**
* 用户名称/昵称
*/
name?: string,
};
/**
* 顶部右方菜单设置
*/
topRightMenu?: (MenuItemProps | { divider: boolean })[];
/**
* 设置内容区域补白,默认 14px
*/
bodyPadding?: number;
location: Location;
history: History;
staticContext?: any;
match: {
isExact: boolean;
params: any;
path: string;
url: string;
};
}
FAQs
The npm package @antdp/basic-layouts receives a total of 164 weekly downloads. As such, @antdp/basic-layouts popularity was classified as not popular.
We found that @antdp/basic-layouts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.