diff --git a/package.json b/package.json index 59130025..cb2d502d 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "@babel/core": "^7.15.8", "@babel/preset-env": "^7.15.8", "@babel/preset-typescript": "^7.15.0", + "@babel/types": "7.17.0", "@commitlint/cli": "^16.2.1", "@commitlint/config-conventional": "^16.2.1", "@rollup/plugin-babel": "^5.3.0", diff --git a/src/component/layer/index.ts b/src/component/layer/index.ts index 104b91e2..dfa979b1 100644 --- a/src/component/layer/index.ts +++ b/src/component/layer/index.ts @@ -1,9 +1,8 @@ import type { App } from "vue"; import { LayLayer } from "@layui/layer-vue"; -import type { IDefineComponent } from "../../types/index"; LayLayer.install = (app: App) => { - app.component(LayLayer.name || "LayLayer", LayLayer); + app.component(LayLayer.name, LayLayer); }; -export default LayLayer as IDefineComponent; +export default LayLayer;