element/packages/col
2016-12-16 10:57:54 +08:00
..
src Col: remove vue jsx spread 2016-11-16 12:07:27 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +08:00
index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
package.json component README update and fix 2016-12-16 10:57:54 +08:00
README.md component README update and fix 2016-12-16 10:57:54 +08:00

element-col

A element-col component for Vue.js.

Demo

http://element-component.github.io/element-col

Installation

npm i element-col -D

Usage

import Vue from 'vue'
import ElCol from 'element-col'
import 'element-theme-default/dist/col.css'

Vue.use(ElCol)

or

import Vue from 'vue'
import ElCol from 'element-col'

Vue.component('el-col', ElCol)

Attributes

参数 说明 类型 可选值 默认值
span 栅格占据的列数 number
offset 栅格左侧的间隔格数 number 0
push 栅格向右移动格数 number 0
pull 栅格向左移动格数 number 0
xs <768px 响应式栅格数或者栅格属性对象 number/object (例如: {span: 4, offset: 4})
sm ≥768px 响应式栅格数或者栅格属性对象 number/object (例如: {span: 4, offset: 4})
md ≥992 响应式栅格数或者栅格属性对象 number/object (例如: {span: 4, offset: 4})
lg ≥1200 响应式栅格数或者栅格属性对象 number/object (例如: {span: 4, offset: 4})

Development

make dev

## test
make test

## build
make build

License

MIT