提交 ace3289a 编写于 作者: d-u-a's avatar d-u-a

fix: 支付宝小程序 page-meta 组件 root-font-size 属性无效问题,直接使用支付宝内置的page-meta

上级 42f49d01
......@@ -125,18 +125,24 @@ export default {
methods: {
setNavigationBarTitle () {
uni.setNavigationBarTitle({
// #ifndef MP
__page__: this.__$page,
// #endif
title: this.title
})
},
setNavigationBarLoading () {
uni[(this.loading ? 'show' : 'hide') + 'NavigationBarLoading']({
// #ifndef MP
__page__: this.__$page
// #endif
})
},
setNavigationBarColor () {
uni.setNavigationBarColor({
// #ifndef MP
__page__: this.__$page,
// #endif
frontColor: this.frontColor,
backgroundColor: this.backgroundColor,
animation: {
......
......@@ -463,7 +463,10 @@ function initAutoImportComponents (easycom = {}) {
}
initBuiltInEasycom(BUILT_IN_EASYCOMS, usingAutoImportComponents)
// 目前仅 mp-weixin 内置支持 page-meta 等组件
if (process.env.UNI_PLATFORM !== 'mp-weixin') {
if (process.env.UNI_PLATFORM === 'mp-weixin') {
} else if (process.env.UNI_PLATFORM === 'mp-alipay') {
initBuiltInEasycom(BUILT_IN_COMPONENTS_ALIPAY, usingAutoImportComponents)
} else {
initBuiltInEasycom(BUILT_IN_COMPONENTS, usingAutoImportComponents)
}
......@@ -530,6 +533,7 @@ function parseUsingAutoImportComponents (usingAutoImportComponents) {
}
const BUILT_IN_COMPONENTS = ['page-meta', 'navigation-bar', 'uni-match-media']
const BUILT_IN_COMPONENTS_ALIPAY = ['navigation-bar']
const BUILT_IN_EASYCOMS = ['unicloud-db', 'uniad', 'ad-rewarded-video', 'ad-fullscreen-video', 'ad-interstitial',
'ad-interactive'
......
......@@ -77,7 +77,8 @@ const tags = {
'ix-native-grid',
'ix-native-list',
'mkt',
'page-container'
'page-container',
'page-meta'
]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册