This commit is contained in:
syuilo
2018-02-24 03:03:26 +09:00
parent df8a2aea35
commit cf1f2562d7
4 changed files with 34 additions and 13 deletions

View File

@ -25,7 +25,6 @@ export default function<T extends object>(data: {
};
},
created() {
if (this.widget.data == null) this.widget.data = {};
if (this.props) {
Object.keys(this.props).forEach(prop => {
if (this.widget.data.hasOwnProperty(prop)) {