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.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-63.16%
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
showstring是否显示抽屉组件
placementstringright抽屉的位置。有四个预置的选项: left,right,top,bottom
hasHeaderbooleantrue是否显示抽屉的头部
titlestring抽屉的头部的标题
classNamestring抽屉容器的class, 用来自定义组件样式
showMaskbooleantrue是否显示遮罩
maskClosablebooleanfalse点击遮罩是否可以关闭抽屉
zIndexnumber100000抽屉容器的层级,可以修改层级
showClosebooleanfalse是否显示关闭按钮
widthnumber string抽屉的宽度
heightnumber string抽屉的高度
destroyOnCloseboolean关闭时候是否销毁抽屉的内容

FAQs

Package last updated on 17 Dec 2019

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