提交 5d554d24 编写于 作者: D DCloud_LXH

fix: createSelectorQuery exec return

上级 a5e95f2c
......@@ -92,6 +92,7 @@ class SelectorQuery {
this._page = page
this._queue = []
this._queueCb = []
this._nodesRef = null
}
exec (callback) {
......@@ -110,6 +111,8 @@ class SelectorQuery {
})
isFn(callback) && callback.call(this, res)
})
return this._nodesRef
}
['in'] (component) {
......@@ -119,15 +122,15 @@ class SelectorQuery {
}
select (selector) {
return new NodesRef(this, this._component, selector, true)
return (this._nodesRef = new NodesRef(this, this._component, selector, true))
}
selectAll (selector) {
return new NodesRef(this, this._component, selector, false)
return (this._nodesRef = new NodesRef(this, this._component, selector, false))
}
selectViewport () {
return new NodesRef(this, 0, '', true)
return (this._nodesRef = new NodesRef(this, 0, '', true))
}
_push (selector, component, single, fields, callback) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册