Skip to content

Commit c826be9

Browse files
committed
first working version with move and resize
1 parent 5e8a235 commit c826be9

13 files changed

+1139
-330
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"stage-1"
55
],
66
"plugins": [
7+
"transform-flow-comments"
78
]
89
}

index.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<body>
1010
<h1>Vue Grid</h1>
1111
<div id="app">
12-
<pre>{{ $data | json }}</pre>
12+
<!--<pre>{{ $data | json }}</pre>-->
1313
<div>
14-
<div class="layoutJSON">
14+
<!--<div class="layoutJSON">
1515
Displayed as <code>[x, y, w, h]</code>:
1616
<div class="columns">
1717
<div class="layoutItem" v-for="item in initialLayout">
1818
<b>{{item.i}}</b>: [{{item.x}}, {{item.y}}, {{item.w}}, {{item.h}}]
1919
</div>
2020
</div>
21-
</div>
21+
</div>-->
2222
<div class="layoutJSON">
2323
<b>COMPACTED: </b>Displayed as <code>[x, y, w, h]</code>:
2424
<div class="columns">
@@ -28,12 +28,16 @@ <h1>Vue Grid</h1>
2828
</div>
2929
</div>
3030
</div>
31-
<grid-layout :layouts="layout" :cols="12" :row-height="30" :is-draggable="true"></grid-layout>
31+
<div id="content">
32+
<!--<responsive-grid-layout :layout.sync="layout" :layouts="layouts" :row-height="30" :is-draggable="true" :vertical-compact="true">
33+
<text-item v-for="item in layout" :text="item.i" :slot="item.i"></text-item>
34+
</responsive-grid-layout>-->
35+
<grid-layout :layout.sync="layout" :cols="12" :row-height="30" :is-draggable="true" :vertical-compact="true">
36+
<!--<text-item v-for="item in layout" :text="item.i" name="{{item.id}}"></text-item>-->
37+
</grid-layout>
38+
</div>
3239

3340
</div>
34-
<!--<script src="node_modules/vue/dist/vue.js"></script>-->
3541
<script src="build/bundle.js"></script>
36-
<!--<script src="dist/vue-spinner.js"></script>
37-
<script src="example/app.js"></script>-->
3842
</body>
3943
</html>

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"main": "src/app.js",
1616
"scripts": {
17-
"dev": "webpack-dev-server --inline --hot --quiet",
17+
"dev": "webpack-dev-server --inline --hot ",
1818
"build": "NODE_ENV=production webpack --progress --hide-modules",
1919
"dist": "webpack --progress --hide-modules --config webpack.build.js && NODE_ENV=production webpack --progress --hide-modules --config webpack.build.min.js"
2020
},
@@ -25,22 +25,23 @@
2525
"author": "Gustavo Santos (JBay Solutions) <[email protected]> (http://www.jbaysolutions.com)",
2626
"devDependencies": {
2727
"vue": "^1.0.24",
28-
"babel-core": "^6.1.21",
28+
"babel-cli": "^6.5.1",
29+
"babel-core": "^6.x",
2930
"babel-eslint": "^4.1.8",
30-
"babel-loader": "^6.1.0",
31+
"babel-loader": "^6.x",
3132
"babel-plugin-transform-runtime": "^6.1.18",
33+
"babel-plugin-transform-flow-comments": "^6.7.0",
34+
"babel-plugin-typecheck": "^3.6.1",
3235
"babel-preset-es2015": "^6.5.0",
3336
"babel-preset-es2015-loose": "^7.0.0",
3437
"babel-preset-stage-1": "^6.5.0",
35-
"babel-runtime": "^6.0.0",
3638
"css-loader": "^0.23.1",
3739
"style-loader": "^0.13.1",
3840
"stylus-loader": "^1.2.1",
3941
"vue-hot-reload-api": "^1.3.2",
4042
"vue-html-loader": "^1.2.2",
4143
"vue-style-loader": "^1.0.0",
4244
"vue-loader": "^8.5.2",
43-
"vue-drag-and-drop": "^2.0.0",
4445
"lodash": "^4.13.1",
4546
"webpack": "^1.13.1",
4647
"webpack-dev-server": "^1.14.1",

0 commit comments

Comments
 (0)