perf: remove unless code

This commit is contained in:
vben
2021-02-09 23:06:00 +08:00
parent 2b466eaf9a
commit 23657547ab
31 changed files with 108 additions and 170 deletions

View File

@@ -1,13 +1,4 @@
import type { VNodeChild } from 'vue';
import type { App } from 'vue';
export function withInstall(...components: any[]) {
components.forEach((comp) => {
comp.install = (app: App) => {
app.component(comp.displayName || comp.name, comp);
};
});
}
export function convertToUnit(
str: string | number | null | undefined,