Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
一个基于react的抽屉组件,可以从上下左右这些侧面弹出一个层,显示特定的内容
<Drawer title={'basic drawer'} show={true} placement={'right'} onClose={this.fCloseDrawer}>
<div className="con">
<p>这是第一行文字</p>
<p>这是第二行文字</p>
<p>这是第三行文字,啦啦啦~</p>
</div>
</Drawer>
更多用法可以参考demo文件夹中的示例
Parameter | Type | Default | Description |
---|---|---|---|
show | string | true is show drawer, false is not | |
placement | string | right | Position of drawer. There are 4 pre-defined positions: left ,right ,top ,bottom |
hasHeader | boolean | true | whether to show header or not, true is show, false is not |
title | string | drawer's title showed in header | |
className | string | className on drawer's container, for customing drawer's style | |
showMask | boolean | 2000 | whether to show mask or not, true is show, false is not |
maskClosable | boolean | false | whether to close drawer or not, true is close, false is not |
zIndex | number | 100000 | drawer container's zIndex in css |
showClose | boolean | false | whether to show close button, true is show, false is not |
width | number string | drawer's width | |
height | number string | drawer's height | |
destroyOnClose | boolean | whether to destroy content in drawer, true is destory, false is not |
FAQs
[![npm version](https://img.shields.io/npm/v/ac-drawer.svg)](https://www.npmjs.com/package/ac-drawer) [![NPM downloads](http://img.shields.io/npm/dt/ac-drawer.svg?style=flat)](https://npmjs.org/package/ac-drawer)
The npm package ac-drawer receives a total of 14 weekly downloads. As such, ac-drawer popularity was classified as not popular.
We found that ac-drawer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.