request-component-info.js 377 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6 7 8 9 10
import createCallbacks from 'uni-helpers/callbacks'

const requestComponentInfoCallbacks = createCallbacks('requestComponentInfo')

export function requestComponentInfo (pageInstance, queue, callback) {
  UniServiceJSBridge.publishHandler('requestComponentInfo', {
    reqId: requestComponentInfoCallbacks.push(callback),
    reqs: queue
  }, pageInstance.$page.id)
}