fix: modal types error #2790
parent
4851d10f60
commit
346a5ce2ba
|
@ -3,9 +3,6 @@
|
||||||
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
||||||
|
|
||||||
import { AntdComponent } from './component';
|
import { AntdComponent } from './component';
|
||||||
import { VNode } from 'vue';
|
|
||||||
import { TreeNode } from './tree-node';
|
|
||||||
import { Button } from './button/button';
|
|
||||||
|
|
||||||
export interface ModalOptions {
|
export interface ModalOptions {
|
||||||
/**
|
/**
|
||||||
|
@ -84,13 +81,13 @@ export interface ModalOptions {
|
||||||
* The ok button props
|
* The ok button props
|
||||||
* @type object
|
* @type object
|
||||||
*/
|
*/
|
||||||
okButtonProps?: Button;
|
okButtonProps?: Record<string, any>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The cancel button props
|
* The cancel button props
|
||||||
* @type object
|
* @type object
|
||||||
*/
|
*/
|
||||||
cancelButtonProps?: Button;
|
cancelButtonProps?: Record<string, any>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Title
|
* Title
|
||||||
|
@ -251,13 +248,13 @@ export declare class Modal extends AntdComponent {
|
||||||
* The ok button props, follow jsx rules
|
* The ok button props, follow jsx rules
|
||||||
* @type object
|
* @type object
|
||||||
*/
|
*/
|
||||||
okButtonProps: { props: Button; on: {} };
|
okButtonProps: Record<string, any>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The cancel button props, follow jsx rules
|
* The cancel button props, follow jsx rules
|
||||||
* @type object
|
* @type object
|
||||||
*/
|
*/
|
||||||
cancelButtonProps: { props: Button; on: {} };
|
cancelButtonProps: Record<string, any>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The modal dialog's title
|
* The modal dialog's title
|
||||||
|
|
Loading…
Reference in New Issue