Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #144 from bensladden/interactjs
Browse files Browse the repository at this point in the history
Interactjs
  • Loading branch information
bensladden authored May 31, 2020
2 parents bdd3ca0 + 8e493cd commit 96bde65
Show file tree
Hide file tree
Showing 13 changed files with 16,750 additions and 11,030 deletions.
13,635 changes: 8,229 additions & 5,406 deletions dist/vue-responsive-dash.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-responsive-dash.common.js.map

Large diffs are not rendered by default.

13,635 changes: 8,229 additions & 5,406 deletions dist/vue-responsive-dash.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-responsive-dash.umd.js.map

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions dist/vue-responsive-dash.umd.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ There are also slots around the item for custom drag icons (again see examples)
| resizeHandleSize | `Number` | false | `8` | The area where resize can be selected on the item |
| draggableZIndex | `Number` | false | `1` | The zIndex applied to the draggable area to make sure it is above the items in the slot |
| resizableZIndex | `Number` | false | `1` | The zIndex applied to each resizeable area to make sure it is above the items in the main slot |
| moveHold | `Number` | false | `0` | The amount of time in ms required to hold the item before it can be moved |
| resizeHold | `Number` | false | `0` | The amount of time in ms required to hold the item before it can be resized |

### Events
| Name | Description |
Expand Down
56 changes: 42 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-responsive-dash",
"version": "0.3.30",
"version": "0.4.00",
"keywords": [
"vuejs",
"vue",
Expand Down Expand Up @@ -38,6 +38,7 @@
},
"license": "MIT",
"devDependencies": {
"@interactjs/types": "^1.9.14",
"@types/jest": "^25.2.1",
"@vue/cli-plugin-babel": "^4.3.1",
"@vue/cli-plugin-eslint": "^4.3.1",
Expand All @@ -64,8 +65,10 @@
"vue": "^2.6.11"
},
"dependencies": {
"@interactjs/actions": "^1.9.14",
"@interactjs/auto-start": "^1.9.14",
"@interactjs/interact": "^1.9.14",
"ste-simple-events": "^1.6.11",
"vue-displace": "^0.2.7",
"vue-element-resize-detector": "^1.0.6"
}
}
3 changes: 3 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
:resizable="resizable"
:draggable="draggable"
:maxWidth="3"
:moveHold="moveHold"
>
<div class="content">{{ JSON.stringify(item, null, 2) }}</div>
</Dash-Item>
Expand Down Expand Up @@ -53,6 +54,7 @@
<button @click="enableRowHeightLimits = !enableRowHeightLimits">
Toggle Row Height Limits ({{ enableRowHeightLimits }})
</button>
<input type="number" min="0" max="5000" v-model.number="moveHold" />
</div>
</template>

Expand All @@ -73,6 +75,7 @@ export default {
compact: true,
draggable: true,
resizable: true,
moveHold: 0,
margin: { x: 20, y: 20 },
layouts: [
{
Expand Down
Loading

0 comments on commit 96bde65

Please sign in to comment.