Browse Source

types(action-item): set `label` optional

无木 3 years ago
parent
commit
8819af083c
2 changed files with 2 additions and 1 deletions
  1. 1 0
      CHANGELOG.zh_CN.md
  2. 1 1
      src/components/Table/src/types/tableAction.ts

+ 1 - 0
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)
 

+ 1 - 1
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;