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:
Ryan Wang
2025-11-14 14:51:55 +08:00
committed by GitHub
parent 2068b72e27
commit ede40ad698
37 changed files with 81 additions and 72 deletions

View File

@@ -4,6 +4,12 @@ import { definePlugin } from "@halo-dev/ui-shared";
import { markRaw } from "vue";
import WidgetCard from "./components/WidgetCard.vue";
declare module "vue" {
interface GlobalComponents {
WidgetCard: (typeof import("./components/WidgetCard.vue"))["default"];
}
}
export default definePlugin({
components: {
WidgetCard,

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
import HasPermission from "@/components/permission/HasPermission.vue";
import CommentDetailModal from "@console/modules/contents/comments/components/CommentDetailModal.vue";
import OwnerButton from "@console/modules/contents/comments/components/OwnerButton.vue";
import { useContentProviderExtensionPoint } from "@console/modules/contents/comments/composables/use-content-provider-extension-point";