diff --git a/packages/crud/src/components/adv/search.tsx b/packages/crud/src/components/adv/search.tsx index f93f000..b94300c 100644 --- a/packages/crud/src/components/adv/search.tsx +++ b/packages/crud/src/components/adv/search.tsx @@ -1,4 +1,4 @@ -import { defineComponent, h, inject, mergeProps, nextTick, PropType, reactive, ref } from "vue"; +import { defineComponent, h, inject, mergeProps, nextTick, type PropType, reactive, ref } from "vue"; import { Close } from "@element-plus/icons-vue"; import { useBrowser, useConfig, useCore } from "../../hooks"; import { renderNode } from "../../utils/vnode"; diff --git a/packages/crud/src/components/form/helper/plugins.ts b/packages/crud/src/components/form/helper/plugins.ts index 2c797f7..f0a37e6 100644 --- a/packages/crud/src/components/form/helper/plugins.ts +++ b/packages/crud/src/components/form/helper/plugins.ts @@ -1,4 +1,4 @@ -import { Ref, WatchStopHandle, getCurrentInstance, watch } from "vue"; +import { type Ref, type WatchStopHandle, getCurrentInstance, watch } from "vue"; import { useConfig } from "../../../hooks"; import { uniqueFns } from "../../../utils"; diff --git a/packages/crud/src/hooks/crud.ts b/packages/crud/src/hooks/crud.ts index 8dceb92..5570134 100644 --- a/packages/crud/src/hooks/crud.ts +++ b/packages/crud/src/hooks/crud.ts @@ -1,6 +1,6 @@ import { assign } from "lodash-es"; import { TestService } from "../test/service"; -import { watch, ref, nextTick, getCurrentInstance, Ref, inject, provide } from "vue"; +import { watch, ref, nextTick, getCurrentInstance, type Ref, inject, provide } from "vue"; // 获取上级 function useParent(name: string, r: Ref) { diff --git a/packages/crud/src/utils/global.ts b/packages/crud/src/utils/global.ts index df11c25..83b7b0b 100644 --- a/packages/crud/src/utils/global.ts +++ b/packages/crud/src/utils/global.ts @@ -1,5 +1,5 @@ // @ts-nocheck -import { App } from "vue"; +import { type App } from "vue"; export default { get vue(): App { diff --git a/packages/crud/src/utils/vnode.tsx b/packages/crud/src/utils/vnode.tsx index 64eb587..c4d8448 100644 --- a/packages/crud/src/utils/vnode.tsx +++ b/packages/crud/src/utils/vnode.tsx @@ -1,4 +1,4 @@ -import { h, resolveComponent, toRaw, VNode } from "vue"; +import { h, resolveComponent, toRaw, type VNode } from "vue"; import { isObject } from "./index"; import { parseExtensionComponent } from "./parse"; import global from "./global";