ci: babel/types

This commit is contained in:
就眠儀式 2022-02-22 14:36:46 +08:00
parent adb4591469
commit ff0f7fcbf0
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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;