Interface: NDrawerWrapperContext
Properties
drawerFunc
drawerFunc: (props: NDrawerFuncProps) => { destroy: () => void }
Type declaration
(props): Object
Parameters
| Name | Type |
|---|---|
props | NDrawerFuncProps |
Returns
Object
| Name | Type |
|---|---|
destroy | () => void |
Defined in
dist/src/components/n-drawer/drawer-types.d.ts:12
showDrawer
showDrawer: (drawerComponent: VNode<RendererNode, RendererElement, { [key: string]: any; }>, props?: Record<string, any>, drawerProps?: Omit<Partial<ExtractPropTypes<{ afterVisibleChange: PropType<(visible: boolean) => void> ; autofocus: { default: any ; type: BooleanConstructor } ; bodyStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; class: VueTypeValidableDef<any> ; closable: { default: any ; type: BooleanConstructor } ; closeIcon: VueTypeValidableDef<any> ; contentWrapperStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; destroyOnClose: { default: any ; type: BooleanConstructor } ; drawerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; extra: VueTypeValidableDef<any> ; footer: VueTypeValidableDef<any> ; footerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; forceRender: { default: any ; type: BooleanConstructor } ; getContainer: VueTypeValidableDef<any> ; handle: VueTypeValidableDef<any> ; headerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; height: VueTypeDef<string | number> ; keyboard: { default: any ; type: BooleanConstructor } ; level: VueTypeValidableDef<any> ; levelMove: { type: PropType<ILevelMove | (e: { open: boolean ; target: HTMLElement }) => ILevelMove> } ; mask: { default: any ; type: BooleanConstructor } ; maskClosable: { default: any ; type: BooleanConstructor } ; maskStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; onAfterVisibleChange: PropType<(visible: boolean) => void> ; onClose: PropType<KeyboardEventHandler | MouseEventHandler> ; onUpdate:visible: PropType<(visible: boolean) => void> ; placement: VueTypeDef<"top" | "left" | "right" | "bottom"> ; prefixCls: StringConstructor ; push: VueTypeDef<boolean | PushState> ; size: { type: PropType<"default" | "large"> } ; style: { default: CSSProperties ; type: PropType<CSSProperties> } ; title: VueTypeValidableDef<any> ; visible: { default: any ; type: BooleanConstructor } ; width: VueTypeDef<string | number> ; wrapClassName: StringConstructor ; wrapStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; zIndex: NumberConstructor }>>, "visible" | "onUpdate:visible"> & Partial<NDrawerProps>) => { destroy: () => void }
Type declaration
(drawerComponent, props?, drawerProps?): Object
Parameters
| Name | Type |
|---|---|
drawerComponent | VNode<RendererNode, RendererElement, { [key: string]: any; }> |
props? | Record<string, any> |
drawerProps? | Omit<Partial<ExtractPropTypes<{ afterVisibleChange: PropType<(visible: boolean) => void> ; autofocus: { default: any ; type: BooleanConstructor } ; bodyStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; class: VueTypeValidableDef<any> ; closable: { default: any ; type: BooleanConstructor } ; closeIcon: VueTypeValidableDef<any> ; contentWrapperStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; destroyOnClose: { default: any ; type: BooleanConstructor } ; drawerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; extra: VueTypeValidableDef<any> ; footer: VueTypeValidableDef<any> ; footerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; forceRender: { default: any ; type: BooleanConstructor } ; getContainer: VueTypeValidableDef<any> ; handle: VueTypeValidableDef<any> ; headerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; height: VueTypeDef<string | number> ; keyboard: { default: any ; type: BooleanConstructor } ; level: VueTypeValidableDef<any> ; levelMove: { type: PropType<ILevelMove | (e: { open: boolean ; target: HTMLElement }) => ILevelMove> } ; mask: { default: any ; type: BooleanConstructor } ; maskClosable: { default: any ; type: BooleanConstructor } ; maskStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; onAfterVisibleChange: PropType<(visible: boolean) => void> ; onClose: PropType<KeyboardEventHandler | MouseEventHandler> ; onUpdate:visible: PropType<(visible: boolean) => void> ; placement: VueTypeDef<"top" | "left" | "right" | "bottom"> ; prefixCls: StringConstructor ; push: VueTypeDef<boolean | PushState> ; size: { type: PropType<"default" | "large"> } ; style: { default: CSSProperties ; type: PropType<CSSProperties> } ; title: VueTypeValidableDef<any> ; visible: { default: any ; type: BooleanConstructor } ; width: VueTypeDef<string | number> ; wrapClassName: StringConstructor ; wrapStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; zIndex: NumberConstructor }>>, "visible" | "onUpdate:visible"> & Partial<NDrawerProps> |
Returns
Object
| Name | Type |
|---|---|
destroy | () => void |
Defined in
dist/src/components/n-drawer/drawer-types.d.ts:15