Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@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
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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.