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

bee-grid

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-grid

grid ui component for react

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

bee-grid

npm version Build Status devDependency Status

react bee-grid component for tinper-bee

栅格布局组件,包含container,row和col

使用方法

下载npm包
npm install --save bee-grid
import { Con, Row, Col } from 'bee-grid';

ReactDOM.render(
    <Con>
        <Row>
            <Col md={6} >
            </Col>
        </Row>
    </Con>,
    document.body);

样式引入
  • 可以使用link引入build目录下bee-grid.css
<link rel="stylesheet" href="./node_modules/build/bee-grid.css">
  • 可以在js中import样式
import "./node_modules/src/Grid.scss"
//或是
import "./node_modules/build/bee-grid.css"

API

Con组件

参数说明类型默认值
componentClass组件根元素element/ReactElementdiv
fluid是否为非定宽booleanfalse

Row组件

参数说明类型默认值
componentClass组件根元素element/ReactElementdiv

Col组件

参数说明类型默认值
xs移动设备显示列数(<768px)number-
sm小屏幕桌面设备显示列数(≥768px)number-
md中等屏幕设备显示列数(≥992px)number-
lg大屏幕设备显示列数(≥1200px)number-
xsPull移动屏幕设备到右边距列数number-
smPull小屏幕设备到右边距列数number-
mdPull中等屏幕设备到右边距列数number-
lgPull大屏幕设备到右边距列数number-
xsPush移动屏幕设备到左边距列数number-
smPush小屏幕设备到左边距列数number-
mdPush中等屏幕设备到左边距列数number-
lgPush大屏幕设备到左边距列数number-
xsOffset移动设备偏移列数number-
smOffset小屏幕设备偏移列数number-
mdOffset中等屏幕设备偏移列数number-
lgOffset大屏幕设备偏移列数number-
componentClass组件根元素element/ReactElementdiv

以上列数设置,只能设置1-12的数字。

开发调试
$ git clone https://github.com/tinper-bee/bee-col
$ cd bee-grid
$ npm install
$ npm run dev

Keywords

FAQs

Package last updated on 21 Oct 2016

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