|
61 | 61 | :w="item.w" |
62 | 62 | :h="item.h" |
63 | 63 | :i="item.i" |
| 64 | + :min-x="item.minX" |
| 65 | + :max-x="item.maxX" |
| 66 | + :min-y="item.minY" |
| 67 | + :max-y="item.maxY" |
64 | 68 | @resize="resize" |
65 | 69 | @move="move" |
66 | 70 | @resized="resized" |
|
110 | 114 | //var eventBus = require('./eventBus'); |
111 | 115 |
|
112 | 116 | let testLayout = [ |
113 | | - {"x":0,"y":0,"w":2,"h":2,"i":"0", resizable: true, draggable: true, static: false}, |
| 117 | + {"x":0,"y":0,"w":2,"h":2,"i":"0", resizable: true, draggable: true, static: false, minY: 0, maxY: 2}, |
114 | 118 | {"x":2,"y":0,"w":2,"h":4,"i":"1", resizable: null, draggable: null, static: true}, |
115 | | - {"x":4,"y":0,"w":2,"h":5,"i":"2", resizable: false, draggable: false, static: false}, |
| 119 | + {"x":4,"y":0,"w":2,"h":5,"i":"2", resizable: false, draggable: false, static: false, minX: 4, maxX: 4}, |
116 | 120 | {"x":6,"y":0,"w":2,"h":3,"i":"3", resizable: false, draggable: false, static: false}, |
117 | 121 | {"x":8,"y":0,"w":2,"h":3,"i":"4", resizable: false, draggable: false, static: false}, |
118 | 122 | {"x":10,"y":0,"w":2,"h":3,"i":"5", resizable: false, draggable: false, static: false}, |
|
121 | 125 | {"x":4,"y":5,"w":2,"h":5,"i":"8", resizable: false, draggable: false, static: false}, |
122 | 126 | {"x":6,"y":3,"w":2,"h":4,"i":"9", resizable: false, draggable: false, static: true}, |
123 | 127 | {"x":8,"y":4,"w":2,"h":4,"i":"10", resizable: false, draggable: false, static: false}, |
124 | | - {"x":10,"y":4,"w":2,"h":4,"i":"11", resizable: false, draggable: false, static: false}, |
| 128 | + {"x":10,"y":4,"w":2,"h":4,"i":"11", resizable: false, draggable: false, static: false, minY: 4}, |
125 | 129 | {"x":0,"y":10,"w":2,"h":5,"i":"12", resizable: false, draggable: false, static: false}, |
126 | 130 | {"x":2,"y":10,"w":2,"h":5,"i":"13", resizable: false, draggable: false, static: false}, |
127 | 131 | {"x":4,"y":8,"w":2,"h":4,"i":"14", resizable: false, draggable: false, static: false}, |
|
0 commit comments