Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
[![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 | 是否显示抽屉组件 | |
placement | string | right | 抽屉的位置。有四个预置的选项: left ,right ,top ,bottom |
hasHeader | boolean | true | 是否显示抽屉的头部 |
title | string | 抽屉的头部的标题 | |
className | string | 抽屉容器的class, 用来自定义组件样式 | |
showMask | boolean | true | 是否显示遮罩 |
maskClosable | boolean | false | 点击遮罩是否可以关闭抽屉 |
zIndex | number | 100000 | 抽屉容器的层级,可以修改层级 |
showClose | boolean | false | 是否显示关闭按钮 |
width | number string | 抽屉的宽度 | |
height | number string | 抽屉的高度 | |
destroyOnClose | boolean | 关闭时候是否销毁抽屉的内容 |
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 7 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.