UNPKG

@fesjs/fes-design

Version:
82 lines (81 loc) 2.64 kB
import type { DefineComponent, PropType } from 'vue'; import type { ExtractPublicPropTypes } from '../_util/interface'; export type DrawerPlacement = 'top' | 'right' | 'bottom' | 'left'; export declare const drawerProps: { readonly show: BooleanConstructor; readonly displayDirective: { readonly type: PropType<"show" | "if">; readonly default: "show"; }; readonly closable: { readonly type: BooleanConstructor; readonly default: true; }; readonly mask: { readonly type: BooleanConstructor; readonly default: true; }; readonly maskClosable: { readonly type: BooleanConstructor; readonly default: true; }; readonly escClosable: { readonly type: BooleanConstructor; readonly default: true; }; readonly operable: { readonly type: BooleanConstructor; readonly default: false; }; readonly title: StringConstructor; readonly okText: StringConstructor; readonly okLoading: BooleanConstructor; readonly cancelText: StringConstructor; readonly showCancel: { readonly type: BooleanConstructor; readonly default: true; }; readonly dimension: { readonly type: PropType<string | number>; }; readonly width: { readonly type: PropType<string | number>; }; readonly height: { readonly type: PropType<string | number>; }; readonly footer: { readonly type: BooleanConstructor; readonly default: false; }; readonly footerBorder: { readonly type: BooleanConstructor; readonly default: false; }; readonly getContainer: { readonly type: FunctionConstructor; }; readonly placement: { readonly type: PropType<DrawerPlacement>; readonly default: "right"; }; readonly contentClass: StringConstructor; readonly wrapperClass: StringConstructor; readonly resizable: { readonly type: BooleanConstructor; readonly default: false; }; readonly resizeMax: { readonly type: PropType<string | number>; }; readonly resizeMin: { readonly type: PropType<string | number>; }; }; export type DrawerProps = ExtractPublicPropTypes<typeof drawerProps>; export type DrawerInnerProps = Parameters<DefineComponent<typeof drawerProps>['setup']>[0]; export declare const UPDATE_SHOW_EVENT = "update:show"; export declare const OK_EVENT = "ok"; export declare const CANCEL_EVENT = "cancel"; export declare const AFTER_ENTER_EVENT = "after-enter"; export declare const AFTER_LEAVE_EVENT = "after-leave";