Skip to content

Commit 468e6eb

Browse files
committed
fix: update Dialog types for button props data attributes
1 parent cc86e72 commit 468e6eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/bui-core/src/Dialog/Dialog.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export interface DialogProps extends Omit<ModalProps, 'title' | 'content'> {
3939
/**
4040
* 透传给内部Button组件的属性
4141
*/
42-
okButtonProps?: Partial<ButtonProps>;
42+
okButtonProps?: Partial<ButtonProps> & Record<`data-${string}`, string>;
4343
/**
4444
* 透传给内部Button组件的属性
4545
*/
46-
cancelButtonProps?: Partial<ButtonProps>;
46+
cancelButtonProps?: Partial<ButtonProps> & Record<`data-${string}`, string>;
4747
/**
4848
* 确认按钮文本内容
4949
*/

0 commit comments

Comments
 (0)