1.0.2 • Published 5 years ago

ng2-grid-layout v1.0.2

Weekly downloads
21
License
-
Repository
-
Last release
5 years ago

Ng2GridLayout

This project was generated with Angular CLI version 6.2.8.

#Registory https://github.com/MusixNotMusic/ng2-grid-layout

Development server

ng serve #启动项目

Build Lib

    ng build grid-layout #构建lib

layout

(layout)
+---------------------------------------------------------------------------------------------------+ -
|   +----------+   +-----------+                                                                    | | 
|   |          |   |  <--w-->  |                                                                    | |
|   |          |   |           |                                                                    | |
|   +----------+   +-----------+                                                                    | H
|   +----------+         (grid)                                                                     | |
|   |          |                                                                                    | |
|   |          |                                                                                    | |
|   +----------+                                                                                    | |
+---------------------------------------------------------------------------------------------------+ -
|<------------------------------------browser width------------------------------------------------>|

NgGridLayout.Component

参数类型默认值含义
colNumnumber12允许每列最多排序个数
rowHeightnumber30行高度
maxRowsnumberInfinity最大行数
marginArray <number>10,10栅格之间距离
isDraggablebooleantrue可拖拽
isResizablebooleantrue可伸缩
useCssTransformsbooleantrue使用css3动画 transform
verticalCompactbooleantrue对齐方式
layoutArray <object>具体布局数据
responsivebooleantrue响应式
breakpointsobject{ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }响应式设备宽度
colsobject{ lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }响应式 对应colNum值

NgGridItem.Component

参数类型默认值含义
componentDataobject动态组件数据{component: xxx, data:xxx}
isDraggableboolean栅格是否drag
isResizableboolean栅格是否resize
minHnumber1栅格最小高度
minWnumber1栅格最小宽度
maxHnumberInfinity栅格最大高度
maxWnumberInfinity栅格最大宽度
xnumber栅格位于layout(布局)图中的x轴位置
ynumber栅格位于layout(布局)图中的y轴位置
wnumber栅格 在 layout(布局)图中的 单位 宽度
hnumber栅格 在 layout(布局)图中的 单位 高度
inumberlayout中记录的索引index
rowHeightnumber10单位行高
staticbooleanfalse栅格是否静止
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.1-s

5 years ago

0.0.0

5 years ago