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

TFormOptionModel没有空值情况的处理 #10

Open
cn1001wang opened this issue Apr 23, 2021 · 1 comment
Open

TFormOptionModel没有空值情况的处理 #10

cn1001wang opened this issue Apr 23, 2021 · 1 comment

Comments

@cn1001wang
Copy link

image

      `    if (row.options == null || row.options.isEmpty) return;`

代码中当options长度为0的时候,可以加一个当前无可选项的提示吗
我还是初学者,有什么不对请指出,另外调试是不是直接打开example中的程序就可以了。
ps: 我提交了一个PR

@cn1001wang
Copy link
Author

cn1001wang commented Apr 23, 2021

有一个需求,虽然不影响使用,由于我是从前端转过来的,写dart就是感觉每次要写很长一段。
需不需要在一开始的时候,提供配置初始化样式,因为比如设计稿给出的input是多大字号,什么颜色,向右还是向左对齐,不同页面也一般是固定。现在我的解决办法是建立一个变量textConfig,每次传入 fieldConfig: textConfig,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant