UNPKG

@vnxjs/plugin-platform-qq

Version:
46 lines (41 loc) 1.22 kB
import { needPromiseApis, components as components$1 } from '@vnxjs/plugin-platform-weapp/dist/runtime-utils'; import { processApis, mergeReconciler, mergeInternalComponents } from '@vnxjs/shared'; const asyncApis = new Set([ 'getQQRunData', 'requestWxPayment', 'setAvatar', 'shareInvite', 'updateBookshelfReadTime' ]); function initNativeApi(vnmf) { processApis(vnmf, qq, { needPromiseApis: new Set([...needPromiseApis, ...asyncApis]) }); vnmf.cloud = qq.cloud; } const components = { // ======== Adjust Properties ======== Button: { 'app-packagename': '', 'app-bundleid': '', 'app-connect-id': '', 'group-id': '', 'public-id': '', 'guild-id': '', 'share-type': '27', 'share-mode': '[\'qq\', \'qzone\']', 'aria-label': '', 'open-id': '', 'share-message-friend-info': '', bindAddFriend: '', bindAddGroupApp: '' } }; const hostConfig = { initNativeApi }; mergeReconciler(hostConfig); mergeInternalComponents(components$1); mergeInternalComponents(components); export { hostConfig }; //# sourceMappingURL=runtime.js.map