![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@beisen/multiitem
Advanced tools
cnpm install 或 npm install cnpm使用教程
npm run dev (开发环境打包 port:8080)
npm run test (测试用例)
npm run build (生产环境打包)
data:{
"status": "edit" //状态:"edit"或"show"
,"name":"北森学院" //title
,"pname":"北森" //父title
,"isActive":false //是否选中(暂时无用)
,"istips": true //(是否使用tips)
,itemClose: function(event, data){
console.log(data)
} //删除按钮回调
}
1.安装npm组件包
npm install @beisen/MultiItem --save-dev
2.引用组件
import MultiItem from "@beisen/MultiItem"
3.传入参数
data: {
"status": "edit"
,"name":"北森学院"
,"pname":"北森"
,"isActive":false
,"istips": true
,itemClose: function(event, data){
console.log(data)
}
}
render () {
return (
<MultiItem {...this.state.data} />
)
}
FAQs
## 项目运行
We found that @beisen/multiitem 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.