@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
64 lines (63 loc) • 2.67 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { ConfigurableProps } from '@vexip-ui/config';
import { DrawerSlots } from './symbol';
export declare const drawerProps: {
inherit: PropType<boolean>;
locale: PropType<Partial<{
confirm: string;
cancel: string;
}>>;
transfer: PropType<string | boolean>;
active: PropType<boolean>;
width: PropType<string | number>;
height: PropType<string | number>;
placement: PropType<"bottom" | "top" | "right" | "left">;
title: PropType<string>;
closable: PropType<boolean>;
inner: PropType<boolean>;
maskClose: PropType<boolean>;
drawerClass: PropType<string | Record<string, any> | (string | Record<string, any>)[]>;
hideMask: PropType<boolean>;
onBeforeClose: PropType<(isConfirm?: boolean) => any>;
resizable: PropType<boolean>;
autoRemove: PropType<boolean>;
footer: PropType<boolean>;
confirmText: PropType<string>;
cancelText: PropType<string>;
loading: PropType<boolean>;
confirmType: PropType<"default" | "success" | "error" | "warning" | "info" | "primary">;
cancelType: PropType<"default" | "success" | "error" | "warning" | "info" | "primary">;
actionSize: PropType<"default" | "small" | "large">;
undivided: PropType<boolean>;
disableEsc: PropType<boolean>;
slots: PropType<DrawerSlots>;
onToggle: PropType<((active: boolean) => void) | ((active: boolean) => void)[]>;
onClose: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
onShow: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
onHide: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
onResizeStart: PropType<((rect: {
width: number;
height: number;
}) => void) | ((rect: {
width: number;
height: number;
}) => void)[]>;
onResizeMove: PropType<((rect: {
width: number;
height: number;
}) => void) | ((rect: {
width: number;
height: number;
}) => void)[]>;
onResizeEnd: PropType<((rect: {
width: number;
height: number;
}) => void) | ((rect: {
width: number;
height: number;
}) => void)[]>;
onConfirm: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
onCancel: PropType<import('@vexip-ui/config').AnyFunction | import('@vexip-ui/config').AnyFunction[]>;
};
export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
export type DrawerCProps = ConfigurableProps<DrawerProps, never, 'onBeforeClose'>;