Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
499 changes: 410 additions & 89 deletions dist/vue-grid-layout.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-grid-layout.common.js.map

Large diffs are not rendered by default.

499 changes: 410 additions & 89 deletions dist/vue-grid-layout.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-grid-layout.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-grid-layout.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-grid-layout.umd.min.js.map

Large diffs are not rendered by default.

32,473 changes: 27,633 additions & 4,840 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/GridItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@
innerH: this.h
}
},
emits: ['container-resized','resize','resized'],
created () {
let self = this;

Expand Down Expand Up @@ -849,7 +850,7 @@
this.previousW = this.innerW;
this.previousH = this.innerH;

let newSize=this.$slots().default[0].elm.getBoundingClientRect();
let newSize=this.$refs.item.children[0].getBoundingClientRect();
let pos = this.calcWH(newSize.height, newSize.width, true);
if (pos.w < this.minW) {
pos.w = this.minW;
Expand Down
4 changes: 4 additions & 0 deletions src/components/GridLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
// layout: JSON.parse(JSON.stringify(this.value)),
};
},
emits: ['update:layout','layout-created','layout-before-mount','layout-mounted','layout-updated','layout-ready','breakpoint-changed'],
created () {
const self = this;

Expand Down Expand Up @@ -231,6 +232,9 @@
layout() {
this.layoutUpdate();
},
'layout.length': function() {
this.layoutUpdate();
},
colNum: function (val) {
this.eventBus.emit("setColNum", val);
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { App } from 'vue';
import GridItem from './GridItem.vue';
import GridLayout from './GridLayout.vue';

export { GridLayout, GridItem };
// export { GridLayout, GridItem };

const install = (app: App) => {
app.component('grid-layout', GridLayout)
app.component('grid-item', GridItem)
}

export default install;
export default { install, GridLayout, GridItem };