Skip to content

Commit dc9e09c

Browse files
committed
fix: add data attribute support in DialogOptions types
1 parent 01c1d8a commit dc9e09c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ export type DialogOptions = Omit<
8686
* 取消回调
8787
*/
8888
onCancel?: (e: React.SyntheticEvent) => void;
89+
/**
90+
* 透传 data- 属性
91+
*/
92+
[key: `data-${string}`]: any;
8993
};
9094

9195
/**

0 commit comments

Comments
 (0)