This commit is contained in:
syuilo
2018-02-15 12:36:42 +09:00
parent b47fd29535
commit ca60469262
17 changed files with 716 additions and 647 deletions

View File

@@ -2,7 +2,7 @@ import Vue from 'vue';
export default function<T extends object>(data: {
name: string;
props: T;
props?: T;
}) {
return Vue.extend({
props: {
@@ -26,7 +26,7 @@ export default function<T extends object>(data: {
},
data() {
return {
props: data.props
props: data.props || {}
};
},
watch: {