Skip to content

Commit

Permalink
Fix to component item type
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Rembacz committed Nov 27, 2018
1 parent 31a0501 commit 2fa12a7
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 20 deletions.
14 changes: 7 additions & 7 deletions dist/vue-responsive-grid-layout.common.js

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

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

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/vue-responsive-grid-layout.umd.js

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

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import {Component, Vue} from 'vue-property-decorator';
import VueResponsiveGridLayout from './components/VueResponsiveGridLayout.vue';
import VueGridItem from './components/VueGridItem.vue';
import ComponentItem from './components/ComponentItem.vue';
import {namespace} from 'vuex-class';
import {Breakpoint, ResponsiveLayout} from './lib/responsiveUtils';
import {Layout} from './lib/utils';
Expand All @@ -51,6 +52,7 @@ const layoutModule = namespace('layout');
components: {
VueResponsiveGridLayout,
VueGridItem,
ComponentItem,
},
})
export default class App extends Vue {
Expand Down
14 changes: 14 additions & 0 deletions src/components/ComponentItem.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<template>
<div>
Test
</div>
</template>

<script lang="ts">
import {Component, Vue} from 'vue-property-decorator';
@Component
export default class ComponentItem extends Vue {
public name: string = 'ComponentItem';
}
</script>
4 changes: 2 additions & 2 deletions src/components/VueGridItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ export default class GridItem extends Vue {
// Child
@Prop({
type: Vue,
type: String || Object || Function,
required: false,
})
public component: Vue;
public component: '';
@Prop({
type: Object,
Expand Down

0 comments on commit 2fa12a7

Please sign in to comment.