From 8819af083c80389453153c2b5f84b3bd1e408ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Fri, 2 Jul 2021 15:45:22 +0800 Subject: [PATCH] types(action-item): set `label` optional --- CHANGELOG.zh_CN.md | 1 + src/components/Table/src/types/tableAction.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 188545cb2..2a64b8de9 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -23,6 +23,7 @@ - **Table** 修复启用`clickToRowSelect`时,点击行不会触发`selection-change`事件的问题 - **Table** 修复全局配置`fetchSetting`可能会被局部配置意外修改的问题 - **Form** 修复`submitButtonOptions`和`resetButtonOptions`的类型定义 +- **PopconfirmButton** 移除`Button`上多余的`title` ## 2.5.2(2021-06-27) diff --git a/src/components/Table/src/types/tableAction.ts b/src/components/Table/src/types/tableAction.ts index 0fd837fdd..3566d240a 100644 --- a/src/components/Table/src/types/tableAction.ts +++ b/src/components/Table/src/types/tableAction.ts @@ -3,7 +3,7 @@ import { TooltipProps } from 'ant-design-vue/es/tooltip/Tooltip'; import { RoleEnum } from '/@/enums/roleEnum'; export interface ActionItem extends ButtonProps { onClick?: Fn; - label: string; + label?: string; color?: 'success' | 'error' | 'warning'; icon?: string; popConfirm?: PopConfirm;