
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
bee-loading
Advanced tools
![]() | ![]() | ![]() | ![]() | ![]() |
|---|---|---|---|---|
| IE 11+ ✔ | Chrome 31.0+ ✔ |
react bee-loading component for tinper-bee
some description...
先进行下载bee-loading包
npm install --save bee-loading
组件调用
import Loading from 'bee-loading';
class LoadingDemo extends Component{
constructor(props) {
super(props);
this.state = {
showRotate: false
}
}
handleShow = () => {
this.setState({
showRotate: true
})
setTimeout(() => {
this.setState({
showRotate: false
})
}, 5000)
}
render() {
return (
<div>
<Button
colors="primary"
onClick={this.handleShow}>
点击显示默认loading
</Button>
<Loading
showBackDrop={true}
show={this.state.showRotate}
/>
</div>
)
}
}
<link rel="stylesheet" href="./node_modules/bee-loading/build/Loading.css">
import "./node_modules/bee-loading/src/Loading.scss"
//或是
import "./node_modules/bee-loading/build/Loding.css"
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| loadingType | 类型(rotate line) | string | rotate |
| size | 加载大小(lg md sm) | string | md |
| color | 颜色(primary success``warning) | string | '' |
| container | 渲染到的容器 | node | body |
| showBackDrop | 是否显示遮罩 | boolean | true |
| fullScreen | 是否全屏显示,或者只传入fullScreen即可 | boolean | false |
| wrapperClassName | 容器样式 | string | '' |
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-loading
$ cd bee-loading
$ npm install
$ npm run dev
FAQs
Loading ui component for react
The npm package bee-loading receives a total of 163 weekly downloads. As such, bee-loading popularity was classified as not popular.
We found that bee-loading 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.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.