Loading

Ant Design Vue table行点击事件

  <a-table :rowKey="(record) => record.id" :pagination="pageInfo" :customRow="rowClick" :columns="columns" :data-source="data">
   </a-table>

...

methods: {
        rowClick(record, index) {
            let that = this;
            return {
                onClick: (event) => {
                   //Do something
                },
            };
        }
}
posted @ 2021-06-04 14:22  算了个球  阅读(1467)  评论(0编辑  收藏  举报