mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
feat: withInstall (#275)
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import { App } from "vue";
|
||||
import { withInstall } from "/@/utils";
|
||||
import reBarcode from "./src/index.vue";
|
||||
|
||||
/** 条形码组件 */
|
||||
export const ReBarcode = Object.assign(reBarcode, {
|
||||
install(app: App) {
|
||||
app.component(reBarcode.name, reBarcode);
|
||||
}
|
||||
});
|
||||
export const ReBarcode = withInstall(reBarcode);
|
||||
|
||||
export default ReBarcode;
|
||||
|
||||
Reference in New Issue
Block a user