Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Object.assign(dataMap, _parent.$data);
// create new vue
new Vue({
parent: _parent,
el: el,
data: () => dataMap,
methods: methodsMap,
template: el.outerHTML
});
});
resolve();
});
};
new $gridManager(this.$el, this.option, query => {
typeof(this.callback) === 'function' && this.callback(query);
// 当前this指向的是 gridmanager
// _parent 指向的是调用 gridmanager 的 components
// GM.setScope 中需要传入的是当前实例化的table和所在域。而这域应该是_parent
$gridManager.setScope(this.$el, _parent);
});
},