File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 21
21
<input type =" checkbox" v-model =" draggable" /> Draggable
22
22
<input type =" checkbox" v-model =" resizable" /> Resizable
23
23
<br />
24
+ Row Height: <input type =" number" v-model =" rowHeight" />
25
+ <br />
24
26
<grid-layout
25
27
:layout =" layout"
26
28
:col-num =" 12"
27
- :row-height =" 30 "
29
+ :row-height =" rowHeight "
28
30
:is-draggable =" draggable"
29
31
:is-resizable =" resizable"
30
32
:vertical-compact =" true"
93
95
layout: JSON .parse (JSON .stringify (testLayout)),
94
96
draggable: true ,
95
97
resizable: true ,
98
+ rowHeight: 30 ,
96
99
colNum: 0 ,
97
100
index: 0
98
101
}
Original file line number Diff line number Diff line change 202
202
eventBus .$on (' setResizable' , function (isResizable ) {
203
203
self .isResizable = isResizable;
204
204
});
205
- /* eventBus.$on('setRowHeight', function(rowHeight) {
206
- this .rowHeight = rowHeight;
205
+ eventBus .$on (' setRowHeight' , function (rowHeight ) {
206
+ self .rowHeight = rowHeight;
207
207
});
208
- eventBus.$on('setColNum', function(colNum) {
209
- this .cols = colNum;
208
+ /* eventBus.$on('setColNum', function(colNum) {
209
+ self .cols = colNum;
210
210
});*/
211
211
var direction = (document .dir != undefined ) ?
212
212
document .dir :
275
275
});
276
276
}
277
277
},
278
+ rowHeight : function () {
279
+ this .createStyle ();
280
+ },
278
281
cols : function () {
279
282
this .createStyle ();
280
283
},
Original file line number Diff line number Diff line change 152
152
layout : function () {
153
153
this .layoutUpdate ();
154
154
},
155
+ rowHeight : function () {
156
+ eventBus .$emit (" setRowHeight" , this .rowHeight );
157
+ },
155
158
isDraggable : function () {
156
159
eventBus .$emit (" setDraggable" , this .isDraggable );
157
160
},
You can’t perform that action at this time.
0 commit comments