@mijadesign/mjui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
23 lines (22 loc) • 861 B
TypeScript
import type { DialogProps as NutDialogProps } from '@nutui/nutui-react-taro';
import type { FunctionComponent } from 'react';
import { type ButtonProps } from '../button/button.taro';
type ContentAlignType = 'left' | 'right' | 'center';
interface DialogProps extends NutDialogProps {
confirmButtonProps: Partial<ButtonProps>;
cancelButtonProps: Partial<ButtonProps>;
/**
* 内容对齐类型
* @default left
*/
contentAlign: ContentAlignType
}
export declare const mjPrefix = "mj-dialog";
declare const Dialog: FunctionComponent<Partial<DialogProps>> & {
open: typeof open;
close: typeof close;
};
declare const open: (selector: string, options: Partial<DialogProps>) => void;
declare const close: typeof import("@nutui/nutui-react-taro/dist/es/packages/dialog/dialog").close;
export { Dialog };
export type { DialogProps };