Skip to content

Home > @jview/utils > withInstall

withInstall() function

给一个组件加上 install 方法,让它能够作为插件被使用

Signature:

typescript
export declare function withInstall<T>(comp: T, onAfterInstall?: (app: App) => void): SFCWithInstall<T>;

Parameters

Parameter

Type

Description

comp

T

组件对象

onAfterInstall

(app: App) => void

(Optional)

Returns:

SFCWithInstall<T>