
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@antdp/basic-layouts
Advanced tools
入口公共界面
$ npm i @antdp/basic-layouts # yarn add @antdp/basic-layouts
import React from 'react';
import BasicLayout from '@antdp/basic-layouts';
const Demo = (props) => {
return (
<BasicLayout
{...props}
projectName="Ant Design Pro"
/>
)
};
export default Demo
import BasicLayout from '@antdp/basic-layouts';
import { useIntl,SelectLang } from '@umijs/max';
const Demo = (props) => {
return (
<BasicLayout
{...props}
projectName="Ant Design Pro"
intlLanguage={useIntl()}
topRightLanguage={<SelectLang />}
/>
)
};
export default Demo
import BasicLayout from '@antdp/basic-layouts';
export default (props) => {
return (
<BasicLayout
{...props}
projectName="Ant Design Pro"
topRightMenu={[
{
title: '个人中心',
icon: <UserOutlined />,
onClick: () => {},
},
{
title: '个人设置',
link: '/setting/property',
icon: <SettingOutlined />,
},
{
divider: true,
},
{
title: '退出登录',
icon: <LogoutOutlined />,
onClick: () => {
logout();
},
},
]}
/>
)
};
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
logo | 项目logo | string | - |
projectName | 项目名称 | React.ReactNode | - |
children | 自定义内容 | React.ReactNode | - |
intlLanguage | 国际化语言转换方法 | IntlShape | |
topRightMenu | 头像下拉菜单 | TopRightMenuProps[] | - |
bodyPadding | 设置内容区域补白,默认 14px | number | - |
topRightLanguage | 顶部右方 | React.ReactNode | - |
siderWidth | 置最左边菜单宽度 | number | 180 |
profile | 用户信息显示 | {avatar?: string;name?: string} | - |
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
icon | 图标 | React.ReactNode | - |
title | 标题 | React.ReactNode | - |
link | 链接 | string | - |
divider | 是否有下划线 | boolean | - |
onClick | 点击事件 | IntlShape |
FAQs
The npm package @antdp/basic-layouts receives a total of 12 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 0 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.