mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
Enhance type hints for globally registered components (#7933)
* Enhance type hints for globally registered components * Refactor Codemirror props and language support * Update Signed-off-by: Ryan Wang <i@ryanc.cc> --------- Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
||||
} from "@halo-dev/components";
|
||||
import { useQuery } from "@tanstack/vue-query";
|
||||
import { computed, ref } from "vue";
|
||||
import PluginDetailModal from "../PluginDetailModal.vue";
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{ extensionDefinition: ExtensionDefinition }>(),
|
||||
|
||||
@@ -5,6 +5,12 @@ import { markRaw } from "vue";
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import PluginDetailModal from "./components/PluginDetailModal.vue";
|
||||
|
||||
declare module "vue" {
|
||||
interface GlobalComponents {
|
||||
PluginDetailModal: (typeof import("./components/PluginDetailModal.vue"))["default"];
|
||||
}
|
||||
}
|
||||
|
||||
export default definePlugin({
|
||||
components: {
|
||||
PluginDetailModal,
|
||||
|
||||
Reference in New Issue
Block a user