
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
基于 antd@4 版本开发
npm 或 yarn 安装
# npm
$ npm install easy-do-it --save
# yarn
$ yarn add easy-do-it
采用 babel-plugin-import 方式
[
'babel-plugin-import',
{
libraryName: 'easy-do-it',
camel2DashComponentName:false,
libraryDirectory: 'es',
style: false,
},
],
以下为在 umi 框架下配置按需加载,同时也配置 antd 的按需加载情况下,再配置一个 babel-plugin-import 时需要配置一个别名,可参考下面
extraBabelPlugins: [
[
'babel-plugin-import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
],
[
'babel-plugin-import',
{
libraryName: 'easy-do-it',
camel2DashComponentName:false,
libraryDirectory: 'es',
style: false,
},
'easy-do-it'
],
]
import React from 'react';
import { render } from 'react-dom';
import { ProForm } from 'easy-do-it';
const App = () => {
return (
<ProForm
max={5}
columns={[
{
type: 'Input',
colProps: {
span: 8,
},
formItemProps: {
label: '姓名',
name: 'name',
rules: [{ required: true, message: '请输入姓名!' }],
},
formItemChildProps: {
placeholder: '请输入',
},
}]}
/>
);
};
render(<App />, document.getElementById('root'));
FAQs
基于 antd@4 版本开发
We found that easy-do-it demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.