njleonzhang / vue-data-tables

A simple, customizable and pageable table with SSR support, based on vue2 and element-ui

Home Page:https://njleonzhang.github.io/vue-data-tables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

希望需求:动作列 buttons 添加 visible 属性

zaxlct opened this issue · comments

Please follow the issue template, or your issue may be closed automatically.

For bug report, provide the following section

buttons: [ 
    {
      handler?: (row) => void;   // 点击事件的 callback, 注意使用箭头函数,
      visible?: (row) => Boolean; // 类似 v-if 的功能
      label: String;             // 按钮的 label
    },
    ...
  ]

Online reproduce

It is important to provide an online sample to reproduce the issue.

Expected Behavior

Current Behavior

Steps to Reproduce

Detailed Description

For feature request, provide the following section

Motivation / Use Case

Expected Behavior

Other Information