We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
每个页面都要单独一个page.config.ts文件
在页面函数的静态属性上配置config
function Index() { return ( <View className='index'> <Text>1</Text> </View> ) } Index.config = { navigationBarBackgroundColor: '#ffffff', navigationBarTextStyle: 'black', navigationBarTitleText: '首页', backgroundColor: '#eeeeee', backgroundTextStyle: 'light' } export default Index
#7062 #9824 #7937
以前的版本好像支持过这个特性 #3054 (comment)
The text was updated successfully, but these errors were encountered:
defineAppConfig
definePageConfig
Taro v3.4 开始支持,新增两个编译时宏函数,文档:
Sorry, something went wrong.
No branches or pull requests
这个特性解决了什么问题?
每个页面都要单独一个page.config.ts文件
这个 API 长什么样?
在页面函数的静态属性上配置config
相关issue
#7062
#9824
#7937
以前的版本好像支持过这个特性
#3054 (comment)
The text was updated successfully, but these errors were encountered: