diff --git a/web/src/components/table/fieldRender/index.vue b/web/src/components/table/fieldRender/index.vue index 0228a40a..884d65c3 100644 --- a/web/src/components/table/fieldRender/index.vue +++ b/web/src/components/table/fieldRender/index.vue @@ -74,60 +74,75 @@
diff --git a/web/types/table.d.ts b/web/types/table.d.ts index d5df5e1a..7e9d7e6c 100644 --- a/web/types/table.d.ts +++ b/web/types/table.d.ts @@ -112,6 +112,8 @@ declare global { icon: string popconfirm?: any disabledTip?: boolean + // 按钮是否显示,请返回布尔值 + display?: (row: TableRow, field: TableColumn) => boolean } /* 表格行 */