Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ac-drawer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-drawer

[![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)

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

ac-drawer

npm version NPM downloads

1. 简介

一个基于react的抽屉组件,可以从上下左右这些侧面弹出一个层,显示特定的内容

2. 安装

npm install ac-drawer -S

3. 使用

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文件夹中的示例

4. 预览

5. 参数

ParameterTypeDefaultDescription
showstringtrue is show drawer, false is not
placementstringrightPosition of drawer. There are 4 pre-defined positions: left,right,top,bottom
hasHeaderbooleantruewhether to show header or not, true is show, false is not
titlestringdrawer's title showed in header
classNamestringclassName on drawer's container, for customing drawer's style
showMaskboolean2000whether to show mask or not, true is show, false is not
maskClosablebooleanfalsewhether to close drawer or not, true is close, false is not
zIndexnumber100000drawer container's zIndex in css
showClosebooleanfalsewhether to show close button, true is show, false is not
widthnumber stringdrawer's width
heightnumber stringdrawer's height
destroyOnClosebooleanwhether to destroy content in drawer, true is destory, false is not

FAQs

Package last updated on 29 Nov 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc