no message

Former-commit-id: 3d89a48b4812432b1d8fb172550496ec368fe7b4
Former-commit-id: 2dfe3f42701c9bcba739c617db883cef7b515bf1
Former-commit-id: cf80d852d653158aa395be003359b46830741bb4
This commit is contained in:
李杨
2018-01-29 16:33:42 +08:00
parent bb33401182
commit b9f740e983
9 changed files with 75 additions and 82 deletions

View File

@@ -4,10 +4,7 @@ export default {
layout: {
layout: [
{'x': 0, 'y': 0, 'w': 8, 'h': 9, 'i': '0'},
{'x': 8, 'y': 9, 'w': 4, 'h': 7, 'i': '1'},
{'x': 0, 'y': 9, 'w': 4, 'h': 7, 'i': '2'},
{'x': 8, 'y': 0, 'w': 4, 'h': 9, 'i': '3'},
{'x': 4, 'y': 9, 'w': 4, 'h': 7, 'i': '4'}
{'x': 8, 'y': 0, 'w': 4, 'h': 9, 'i': '1'}
],
colNum: 12,
rowHeight: 30,
@@ -21,6 +18,13 @@ export default {
}
},
methods: {
layoutUpdatedHandler (newLayout) {
console.group('layoutUpdatedHandler')
newLayout.forEach(e => {
console.log(`{'x': ${e.x}, 'y': ${e.y}, 'w': ${e.w}, 'h': ${e.h}, 'i': '${e.i}'},`)
})
console.groupEnd()
},
// 改变尺寸
resizeHandler (name) {
this.$nextTick(() => {