Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@beisen-platform/dropdown
Advanced tools
cnpm install 或 npm install cnpm使用教程
npm run dev (开发环境打包 port:8080)
npm run test (测试用例)
npm run build (生产环境打包)
const props = {
/**
* input框前的文字标识,可为空
*/
title: '测试',
/**
* 下拉菜单为单选或者多选
* true 多选
* false 单选(默认)
*/
multiple: true,
/**
* 是否显示搜索框
*/
hasSearch: false,
hiddenTip: false,
/**
* 信息是否左右显示
*/
sideTip: false,
/**
* 限制选择数量
* 当超过该数量后,其它的则禁用
*/
limitCount: 5,
/**
* 每项的内容
*/
children: [
{
value: 0,
text: '查看详情',
isActive: false,
isChecked: true,
tipText: "哎哎多撒多撒<br/>多撒多撒多所" //如果有该字段,则鼠标移入文字会一直显示tip,tip内容为该字段内容
}
],
/**
* 是否显示
*/
hidden: false,
/**
* 是否使用模板下拉(空内容的弹层)
*/
templateDrop: true,
/**
* 自定义模板弹层内容
*/
templateComponent: [<div onClick={this.clickLi}>111</div>, <div>111</div>],
/**
* 弹层宽度
* 外部传入,最小为170px
*/
dropdownWidth: '500px',
/**
* 弹层最大高度
*/
maxHeight: '',
/**
* 点击后事件回调
* @param event 事件
* @param val 抛出的值(单选为对象,多选为数组)
*/
onClick: function (event, val, sortVal) { console.log(val); }
}
1.安装npm组件包
npm install @beisen/drop-down --save-dev
2.引用组件
import DropDown from "@beisen/drop-down"
传入参数
该参数为上述参数,传入方式使用: {...参数}
render () {
return (
<DropDown {...data} />
)
}
FAQs
The npm package @beisen-platform/dropdown receives a total of 3 weekly downloads. As such, @beisen-platform/dropdown popularity was classified as not popular.
We found that @beisen-platform/dropdown 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.