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

关于每个页面都需要创建 config 文件的问题 #7937

Closed
Grewer opened this issue Oct 30, 2020 · 2 comments
Closed

关于每个页面都需要创建 config 文件的问题 #7937

Grewer opened this issue Oct 30, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Grewer
Copy link

Grewer commented Oct 30, 2020

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

文件夹繁琐, 不用创建多余文件,有需要的时候才会创建

这个 API 长什么样?

希望在 app.config.ts 里面可以有一个子页面配置的默认值,
如果我们需要子页面 config , 就像现在一样创建 config 文件,再 merge 得到最终 config,
如果不需要,则使用默认 config

或者像之前的 API 一样 ,写在 class 的 static 属性里面也行

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 26, 2021

duplicate #10348

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 26, 2021

Taro v3.4 开始支持,新增两个编译时宏函数,文档:

@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