Skip to content

Commit 346a5ce

Browse files
committed
fix: modal types error #2790
1 parent 4851d10 commit 346a5ce

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

types/modal.d.ts

+4-7
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

55
import { AntdComponent } from './component';
6-
import { VNode } from 'vue';
7-
import { TreeNode } from './tree-node';
8-
import { Button } from './button/button';
96

107
export interface ModalOptions {
118
/**
@@ -84,13 +81,13 @@ export interface ModalOptions {
8481
* The ok button props
8582
* @type object
8683
*/
87-
okButtonProps?: Button;
84+
okButtonProps?: Record<string, any>;
8885

8986
/**
9087
* The cancel button props
9188
* @type object
9289
*/
93-
cancelButtonProps?: Button;
90+
cancelButtonProps?: Record<string, any>;
9491

9592
/**
9693
* Title
@@ -251,13 +248,13 @@ export declare class Modal extends AntdComponent {
251248
* The ok button props, follow jsx rules
252249
* @type object
253250
*/
254-
okButtonProps: { props: Button; on: {} };
251+
okButtonProps: Record<string, any>;
255252

256253
/**
257254
* The cancel button props, follow jsx rules
258255
* @type object
259256
*/
260-
cancelButtonProps: { props: Button; on: {} };
257+
cancelButtonProps: Record<string, any>;
261258

262259
/**
263260
* The modal dialog's title

0 commit comments

Comments
 (0)