Skip to content

Commit

Permalink
2.3.7 release build, docs, changelog and events demo page updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gmsa committed Oct 31, 2019
1 parent eff01db commit 35a338a
Show file tree
Hide file tree
Showing 11 changed files with 675 additions and 380 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.3.7 (Oct 31, 2019)

* renamed 'resized' event emitted when the container changes size (browser window or other), introduced in #337, fixes #358
* bugfix on layout-ready event

## 2.3.6 (Sep 11, 2019)

* reverted grid item w and h previous rounding change, fixes #355
Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

vue-grid-layout是一个类似于[Gridster](http://dsmorse.github.io/gridster.js/)的栅格布局系统, 适用于Vue.js。 **灵感源自于 [React-Grid-Layout](https://github.com/STRML/react-grid-layout)**

### **当前版本:** 2.3.6 (支持 Vue 2.2+)
### **当前版本:** 2.3.7 (支持 Vue 2.2+)

### **Vue 2.1.10 及以下请使用 [2.1.3](https://github.com/jbaysolutions/vue-grid-layout/tree/2.1.3)**
### **Vue 1 请使用 [1.0.3](https://github.com/jbaysolutions/vue-grid-layout/tree/1.0.3)**
Expand Down
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

vue-grid-layout is a grid layout system, like [Gridster](http://dsmorse.github.io/gridster.js/), for Vue.js. **Heavily inspired in [React-Grid-Layout](https://github.com/STRML/react-grid-layout)**

### **Current version:** 2.3.6 (Supports Vue 2.2+)
### **Current version:** 2.3.7 (Supports Vue 2.2+)

### **For Vue 2.1.10 and below use version [2.1.3](https://github.com/jbaysolutions/vue-grid-layout/tree/2.1.3)**
### **For Vue 1 use version [1.0.3](https://github.com/jbaysolutions/vue-grid-layout/tree/1.0.3)**
Expand Down Expand Up @@ -481,6 +481,7 @@ Working example [here](https://jbaysolutions.github.io/vue-grid-layout/examples/
@resize="resizeEvent"
@move="moveEvent"
@resized="resizedEvent"
@container-resized="containerResizedEvent"
@moved="movedEvent">
{{item.i}}
</grid-item>
Expand Down Expand Up @@ -604,6 +605,27 @@ Working example [here](https://jbaysolutions.github.io/vue-grid-layout/examples/
},
```

* **containerResizedEvent**

Container Resized event

Every time the grid item/layout container changes size (browser window or other)

```javascript
/**
*
* @param i the item id/index
* @param newH new height in grid rows
* @param newW new width in grid columns
* @param newHPx new height in pixels
* @param newWPx new width in pixels
*
*/
containerResizedEvent: function(i, newH, newW, newHPx, newWPx){
console.log("CONTAINER RESIZED i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx);
},
```


## Contribute

Expand Down
499 changes: 316 additions & 183 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: 316 additions & 183 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.

6 changes: 4 additions & 2 deletions examples/02-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ new Vue({
console.log(msg);

},
containerResized: function(i, newH, newW, newHPx, newWPx){
console.log("### CONTAINER RESIZED i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx);
containerResizedEvent: function(i, newH, newW, newHPx, newWPx){
var msg = "CONTAINER RESIZED i=" + i + ", H=" + newH + ", W=" + newW + ", H(px)=" + newHPx + ", W(px)=" + newWPx;
this.eventLog.push(msg);
console.log(msg);
},
/**
*
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-grid-layout",
"version": "2.3.6",
"version": "2.3.7",
"description": "A draggable and resizable grid layout, as a Vue component.",
"keywords": [
"grid",
Expand All @@ -26,20 +26,20 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"element-resize-detector": "^1.1.10",
"interactjs": "^1.5.3"
"element-resize-detector": "^1.1.15",
"interactjs": "^1.6.3"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.4.1",
"@vue/cli-plugin-eslint": "^3.4.1",
"@vue/cli-service": "^3.4.1",
"@vue/eslint-config-standard": "^3.0.5",
"babel-plugin-transform-flow-comments": "^6.7.0",
"node-sass": "^4.9.0",
"node-sass": "^4.13.0",
"rimraf": "^2.6.2",
"sass-loader": "^7.0.1",
"vue": "^2.6.8",
"vue-template-compiler": "^2.5.17",
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10",
"webpack-bundle-analyzer": "^3.4.1"
}
}

0 comments on commit 35a338a

Please sign in to comment.