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

table中关于表头tip使用的建议 #496

Open
acelan86 opened this issue Jul 6, 2015 · 4 comments
Open

table中关于表头tip使用的建议 #496

acelan86 opened this issue Jul 6, 2015 · 4 comments

Comments

@acelan86
Copy link

acelan86 commented Jul 6, 2015

1、作为table fields的一个配置项,用到Tip的时候是不是智能的主动require('esui/Tip')一下好些,不然会出现tip无法渲染的情况
2、Tip自身是支持title,conent的,而到了table里面就不支持传递{title:xxx, content:xxxx}作为参数了,只能是字符串或者function, 可能会造成使用上的不方便。

@otakustay
Copy link
Member

  1. Tip其实挺大的,主要因为Overlay这个东西,我不知道主动做一下require是不是会让不想用的人觉得更大了
  2. 这个我很同意

@acelan86
Copy link
Author

acelan86 commented Jul 6, 2015

用hasTip判断,或者fields.tip是否设置来判断是否require

@otakustay
Copy link
Member

做不到,require必须是静态的…不然Table的渲染要改成异步了

在 2015年7月6日,下午5:34,acelan86 [email protected] 写道:

用hasTip判断,或者fields.tip是否设置来判断是否require


Reply to this email directly or view it on GitHub.

@acelan86
Copy link
Author

acelan86 commented Jul 6, 2015

哦~没仔细看实现,那我先自己记录下,防止同学们使用的时候遇到问题不明真相,真正商业系统一般我们不考虑那么一点点代码量,更注重的是开发效率跟易用性,多谢灰大~

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

2 participants