Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

组件工具支持一份模板输出两个平台的模板 #8

Open
longerian opened this issue Mar 5, 2018 · 0 comments
Open

组件工具支持一份模板输出两个平台的模板 #8

longerian opened this issue Mar 5, 2018 · 0 comments
Assignees
Labels

Comments

@longerian
Copy link
Contributor

背景

有的属性两端需求不一样,比如对于背景色,为了提升性能,Android需要尽量少,iOS为了需要补充。为了防止多份模板,需要支持一份文件,两次输出。

方案

  1. 增加命名控件:android, iphone
  2. 带android的输出到Android,带iphone的输出到iphone目录,否则只输出一份共用的。
@longerian longerian self-assigned this Mar 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant