Skip to content
New issue

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

建议将taro-vue中单独页面的页面配置文件合并到.vue文件中 #7062

Closed
yangtenghuan opened this issue Jul 15, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@yangtenghuan
Copy link

这个特性解决了什么问题?

目前页面文件如home.vue,通过新建home.config.js 来配置,项目目录构成显得繁杂而无必要,因为一般情况下每个页面的config.js文件中代码量极少

这个 API 长什么样?

完全可以在home.vue中使用单独标签填写配置,比如:

<template>
</template>

<script>
</script>

<style>
</style>

<config>
{
  "navigationBarTitleText": "首页",
  "enablePullDownRefresh": true
}
</config>

<!-- generated by taro-issues. 请勿修改或删除此行注释 --><!--labels=enhancement-->
@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 26, 2021

duplicate #10348

@Chen-jj Chen-jj closed this as completed Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants