UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

110 lines (109 loc) 4.67 kB
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">; confirmProps: PropType<{} & { size?: "default" | "small" | "large" | undefined; inherit?: boolean | undefined; type?: "default" | "success" | "error" | "warning" | "info" | "primary" | undefined; color?: string | undefined; loading?: boolean | undefined; icon?: any; slots?: import('../button').ButtonSlots | undefined; circle?: boolean | undefined; text?: boolean | undefined; onClick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[] | undefined; disabled?: boolean | undefined; ghost?: boolean | undefined; tag?: string | undefined; badge?: string | number | undefined; dashed?: boolean | undefined; simple?: boolean | undefined; loadingIcon?: any; block?: boolean | undefined; noPulse?: boolean | undefined; loadingEffect?: string | undefined; buttonType?: "button" | "reset" | "submit" | undefined; }>; cancelType: PropType<"default" | "success" | "error" | "warning" | "info" | "primary">; cancelProps: PropType<{} & { size?: "default" | "small" | "large" | undefined; inherit?: boolean | undefined; type?: "default" | "success" | "error" | "warning" | "info" | "primary" | undefined; color?: string | undefined; loading?: boolean | undefined; icon?: any; slots?: import('../button').ButtonSlots | undefined; circle?: boolean | undefined; text?: boolean | undefined; onClick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[] | undefined; disabled?: boolean | undefined; ghost?: boolean | undefined; tag?: string | undefined; badge?: string | number | undefined; dashed?: boolean | undefined; simple?: boolean | undefined; loadingIcon?: any; block?: boolean | undefined; noPulse?: boolean | undefined; loadingEffect?: string | undefined; buttonType?: "button" | "reset" | "submit" | undefined; }>; 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'>;