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

关于plugin 机制 #58

Open
eyunfeis opened this issue Aug 6, 2013 · 1 comment
Open

关于plugin 机制 #58

eyunfeis opened this issue Aug 6, 2013 · 1 comment

Comments

@eyunfeis
Copy link

eyunfeis commented Aug 6, 2013

希望能为组件提供一个plugin机制,类似YUI 的插件机制,这种方法使得组件可在实例化过程中自由组合功能,而不是在类定义一开始就确定,防止组件的核心代码过于庞大,在一些复杂组件等场景下面会比较实用,如:表格、文件上传组件。
表格的可选功能:
chekcbox
排序
edit

文件上传的可选功能:
图片拖拽排序
总进度条

这些功能在不同的业务场景下可能会有多种组件,如异步上传,有些场景不需要拖拽排序及总进度条, 有些场景需要拖拽排序,不需要总进度条,有些场景不需要排序,需要总进度条,有些两种都需要,等等, 插件机制在这种情况下可以提供一种很灵活的处理机制.

@lifesinger
Copy link
Member

感谢小新提出,这个我们考虑下

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