提交 7c169c9d 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

feat(x): createSelectorQuery 类型补充 #3263

上级 faa368f0
import type { SelectorQueryRequest } from '@dcloudio/uni-api'
import type {
CreateSelectorQuery,
NodeField,
NodesRef,
SelectorQuery,
SelectorQueryNodeInfoCallback,
NodeField as _NodeField,
NodeInfo as _NodeInfo,
} from '@dcloudio/uni-app-x/types/uni'
import { getCurrentPage } from '@dcloudio/uni-core'
......@@ -16,6 +16,10 @@ type NodeInfo = Partial<
}
>
type NodeField = _NodeField & {
node?: boolean
}
function isVueComponent(comp: any) {
const has$instance = typeof comp.$ === 'object'
const has$el = typeof comp.$el === 'object'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册