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

看源码el-table和el-table-column属性和事件绑定太麻烦了,有简单方式 #47

Open
liu-xinhui opened this issue Apr 22, 2019 · 2 comments

Comments

@liu-xinhui
Copy link

所有属性和事件一次性绑定

单个组件绑定时
<el-table
          v-bind="$attrs"
          v-on="$listeners">
</el-table>
多个组件绑定时
<el-table
          v-bind="tableProps">
        <el-table-column
               v-bind="tableColumnProps"/>
</el-table>
@zollero
Copy link
Owner

zollero commented Apr 22, 2019

好建议

@scottjeremy
Copy link

好建议,少了很多代码
但是会有部分功能不行,例如table里的选择框事件:@selection-change="handleSelectionChange"
还是得重新定义然后抛出去

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

3 participants