Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
bee-collapse
Advanced tools
react bee-collapse component for tinper-bee
在一个元素或者组件中添加折叠效果
先进行下载bee-collapse包
npm install --save bee-collapse
组件调用
import Collapse from 'bee-collapse'
<Collapse in=true >
折叠内容
</Collapse>
<link rel="stylesheet" href="./node_modules/bee-collapse/build/Collapse.css">
import "./node_modules/bee-collapse/src/Collapse.scss"
//或是
import "./node_modules/bee-collapse/build/Collapse.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
in | 折叠的内容是否显示 | boolean | false |
unmountOnExit | 组件折叠时,是否从DOM元素删除该组件 | boolean | false |
transitionAppear | 组件内容初始化为显示时,是否添加动态效果 | boolean | false |
timeout | 设置超时时间,防止出现问题,其值可设置为>=动画时间 | number | 300 |
onEnter | 组件内容扩展之前调用的函数 | func | - |
onEntering | 组件内容扩展时调用的函数 | func | - |
onEntered | 组件内容扩展完成时调用的函数 | func | - |
onExit | 组件内容隐藏前调用的函数 | func | - |
onExiting | 组件内容隐藏时调用的函数 | func | - |
onExited | 组件内容隐藏后调用的函数 | func | - |
dimension | 折叠区展开效果是纵向的还是横向的(即height或者width改变) | "height"或者"width"或者func | height |
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-collapse
$ cd bee-collapse
$ npm install
$ npm run dev
FAQs
Collapse ui component for react
The npm package bee-collapse receives a total of 11 weekly downloads. As such, bee-collapse popularity was classified as not popular.
We found that bee-collapse demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 open source maintainers 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.