@Becavalier
This commit is contained in:
梁灏 2017-04-20 09:46:11 +08:00
parent a5594091a0
commit 6d89ed9619
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,9 @@
this.updateChildren(); this.updateChildren();
}, },
updated () { updated () {
this.updateChildren(); this.$nextTick(() => {
this.updateChildren();
});
}, },
methods: { methods: {
updateChildren () { updateChildren () {

View file

@ -6,7 +6,7 @@
const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g; const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
export default function(Vue) { export default function() {
// const { hasOwn } = Vue.util; // const { hasOwn } = Vue.util;
function hasOwn (obj, key) { function hasOwn (obj, key) {
return Object.prototype.hasOwnProperty.call(obj, key); return Object.prototype.hasOwnProperty.call(obj, key);