vue-gutter-resize
For vue-gutter-resize, you can change the size of both neighbor dom by dragging gutter.
Usage
install
All import
Import as much as you need
Import by module
Column Gutter
Row Gutter
all gutter
column-gutter
props
- width:
String
- column-gutter width
:width="'800px'"
- height :
String
- column-gutter height
:height="'600px'"
- gutterSize :
String
- all gutter width
:gutterSize="'4px'"
- gutterSizes :
Array<String>
- each gutter width
- If gutterSize is specified, gutterSize takes precedence
:gutterSizes="['7px', '1rem']"
- color :
String
- all gutter color
:color="'green'"
- colors :
Array<String>
- each gutter clolr
- If color is specified, color takes precedence
:colors="['red', 'blue']"
- column :
Number
- column number
:column="3"
- columnSizes:
Array<Number>
- column size(total 100)
:columnSizes="[1, 2, 3]"
emit
- resize({ col }):
Object
- col :
Array<Number>
- each column width(total 100)
- col :
slot
Specified by col-n
row-gutter
props
- width:
String
- row-gutter width
:width="'800px'"
- height :
String
- row-gutter height
:height="'600px'"
- gutterSize :
String
- all gutter height
:gutterSize="'4px'"
- gutterSizes :
Array<String>
- each gutter height
- If gutterSize is specified, gutterSize takes precedence
:gutterSizes="['7px', '1rem']"
- color :
String
- all gutterの color
:color="'green'"
- colors :
Array<String>
- each gutter color
- If color is specified, color takes precedence
:colors="['red', 'blue']"
- row :
Number
- row number
:row="3"
- rowSizes:
Array<Number>
- row size(total 100)
:rowSizes="[1, 2, 3]"
emit
- resize({ row }):
Object
- row :
Array<Number>
- each column height(total 100)
- row :
slot
Specified by row-n