Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
[![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)
一个基于react的抽屉组件,可以从上下左右这些侧面弹出一个层,显示特定的内容
npm install ac-drawer -S
import Drawer from 'ac-drawer';
import 'ac-drawer/dist/ac-drawer.css';
<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 3 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.