From 719ad34a94a89da0f265555ea9e685b363c0855b Mon Sep 17 00:00:00 2001 From: yuhengshen Date: Mon, 28 Nov 2022 23:40:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index bd22cdb..e26f0f1 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,5 +1,5 @@ import { h, unref } from 'vue'; -import type { App, Plugin } from 'vue'; +import type { App, Plugin, Component } from 'vue'; import { NIcon, NTag } from 'naive-ui'; import { PageEnum } from '@/enums/pageEnum'; import { isObject } from './is/index'; @@ -144,7 +144,7 @@ export function filterRouter(routerMap: Array) { }); } -export const withInstall = (component: T, alias?: string) => { +export const withInstall = (component: T, alias?: string) => { const comp = component as any; comp.install = (app: App) => { app.component(comp.name || comp.displayName, component); @@ -187,7 +187,7 @@ export function getTreeAll(data: any[]): any[] { } // dynamic use hook props -export function getDynamicProps(props: T): Partial { +export function getDynamicProps(props: T): Partial { const ret: Recordable = {}; Object.keys(props).map((key) => {