|
|
@@ -4,7 +4,7 @@
|
|
|
style="margin: 0 -10px;"
|
|
|
:layout="layout"
|
|
|
:col-num="12"
|
|
|
- :row-height="30"
|
|
|
+ :row-height="10"
|
|
|
:is-draggable="editable"
|
|
|
:is-resizable="editable"
|
|
|
:is-mirrored="false"
|
|
|
@@ -32,21 +32,23 @@
|
|
|
|
|
|
<script>
|
|
|
import { GridLayout, GridItem } from 'vue-grid-layout';
|
|
|
-import UserWidget from '../widgets/UserWidget';
|
|
|
-import LineChartWidget from '../widgets/LineChartWidget';
|
|
|
-import BarChartWidget from '../widgets/BarChartWidget';
|
|
|
-import PieChartWidget from '../widgets/PieChartWidget';
|
|
|
+import Video1 from '../widgets/Video1';
|
|
|
+import Video2 from '../widgets/Video2';
|
|
|
+import Video3 from '../widgets/Video3';
|
|
|
+import Video4 from '../widgets/Video4';
|
|
|
|
|
|
export default {
|
|
|
created() {},
|
|
|
data() {
|
|
|
return {
|
|
|
layout: [
|
|
|
- { x: 0, y: 0, w: 6, h: 4, i: '0', name: 'UserWidget' },
|
|
|
- { x: 6, y: 0, w: 6, h: 4, i: '1', name: 'UserWidget' },
|
|
|
- { x: 0, y: 4, w: 6, h: 6, i: '2', name: 'BarChartWidget' },
|
|
|
- { x: 0, y: 10, w: 6, h: 6, i: '3', name: 'LineChartWidget' },
|
|
|
- { x: 6, y: 4, w: 6, h: 12, i: '4', name: 'PieChartWidget' }
|
|
|
+ { x: 0, y: 0, w: 4, h: 13.5, i: '0', name: 'Video3' },
|
|
|
+ { x: 0, y: 0, w: 4, h: 12.5, i: '0', name: 'Video1' },
|
|
|
+ { x: 4, y: 4, w: 4, h: 12.5, i: '3', name: 'Video4' },
|
|
|
+ { x: 8, y: 4, w: 3, h: 19, i: '1', name: 'Video2' },
|
|
|
+ { x: 4, y: 12.5, w: 4, h: 12.5, i: '4', name: 'Video1' }
|
|
|
+ // { x: 0, y: 12.5, w: 4, h: 12.5, i: '5', name: 'Video4' }
|
|
|
+ // { x: 8, y: 0, w: 4, h: 13.5, i: '6', name: 'Video3' }
|
|
|
],
|
|
|
editable: false
|
|
|
};
|
|
|
@@ -58,12 +60,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- GridLayout,
|
|
|
- GridItem,
|
|
|
- UserWidget,
|
|
|
- LineChartWidget,
|
|
|
- BarChartWidget,
|
|
|
- PieChartWidget
|
|
|
+ Video1,
|
|
|
+ Video2,
|
|
|
+ Video3,
|
|
|
+ Video4
|
|
|
}
|
|
|
};
|
|
|
</script>
|