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

bee-collapse

Package Overview
Dependencies
Maintainers
17
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-collapse

Collapse ui component for react

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
17
Created
Source

bee-collapse

npm version Build Status Coverage Status devDependency Status NPM downloads Average time to resolve an issue Percentage of issues still open

react bee-collapse component for tinper-bee

在一个元素或者组件中添加折叠效果

使用方法

使用单独的Collapse包

组件引入

先进行下载bee-collapse包

npm install --save bee-collapse

组件调用

import Collapse from 'bee-collapse'
    
<Collapse in=true >
  折叠内容
</Collapse>
样式引入
  • 可以使用link引入build目录下Collapse.css
<link rel="stylesheet" href="./node_modules/bee-collapse/build/Collapse.css">
  • 可以在js中import样式
import "./node_modules/bee-collapse/src/Collapse.scss"
//或是
import "./node_modules/bee-collapse/build/Collapse.css"

API

参数说明类型默认值
in折叠的内容是否显示booleanfalse
unmountOnExit组件折叠时,是否从DOM元素删除该组件booleanfalse
transitionAppear组件内容初始化为显示时,是否添加动态效果booleanfalse
timeout设置超时时间,防止出现问题,其值可设置为>=动画时间number300
onEnter组件内容扩展之前调用的函数func-
onEntering组件内容扩展时调用的函数func-
onEntered组件内容扩展完成时调用的函数func-
onExit组件内容隐藏前调用的函数func-
onExiting组件内容隐藏时调用的函数func-
onExited组件内容隐藏后调用的函数func-
dimension折叠区展开效果是纵向的还是横向的(即height或者width改变)"height"或者"width"或者funcheight
开发调试
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-collapse
$ cd bee-collapse
$ npm install
$ npm run dev

Keywords

FAQs

Package last updated on 15 Jan 2021

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