mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
feat: withInstall (#275)
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import { App } from "vue";
|
||||
import reSelector from "./src";
|
||||
import { withInstall } from "/@/utils";
|
||||
|
||||
/** 选择器组件 */
|
||||
export const ReSelector = Object.assign(reSelector, {
|
||||
install(app: App) {
|
||||
app.component(reSelector.name, reSelector);
|
||||
}
|
||||
});
|
||||
export const ReSelector = withInstall(reSelector);
|
||||
|
||||
export default ReSelector;
|
||||
|
||||
Reference in New Issue
Block a user