Constructors
constructor
- new VantGrid(config: IContainerBase): VantGrid
-
Parameters
Properties
border
border: Boolean
center
center: Boolean
clickable
clickable: Boolean
columnNum
columnNum: Number
css
css: VantGridStyle
gridItems
gutter
gutter: number
iconSize
iconSize: number
onClickScript
onClickScript: string
square
square: Boolean
Methods
addItem
-
Parameters
-
-
foreUpdate: boolean = true
返回格子实例
buildDefalut
-
Returns void
clear
- clear(foreUpdate?: boolean): void
-
Parameters
-
foreUpdate: boolean = true
Returns void
Protected doDesigningDbClick
- doDesigningDbClick(): void
-
Returns void
doGetClassName
-
Returns any
doGetCss
- doGetCss(): VantGridStyle
-
Returns VantGridStyle
doGetMethods
- doGetMethods(): {} & { handleClick: any }
-
Returns {} & { handleClick: any }
doGetVueData
-
Returns object
doGetVueHtml
-
Returns string
getAttrEditors
- getAttrEditors(): AttributeEditorBase[]
-
Returns AttributeEditorBase[]
getItem
-
Parameters
getItems
-
格子数组
getItemsHtml
-
Returns string
removeItem
-
Parameters
-
-
foreUpdate: boolean = true
Returns void
Grid 宫格 参考 https://vant-contrib.gitee.io/vant/v2/#/zh-CN/grid