For AI agents: the complete documentation index is available at https://docs.halo.run/llms.txt, the full documentation bundle is available at https://docs.halo.run/llms-full.txt, and this page is available as Markdown at https://docs.halo.run/developer-guide/plugin/api-reference/ui/components/plugin-detail-modal.md.

PluginDetailModal

此组件可以在 UI 部分的任意组件中打开插件的详情和设置弹窗,可以用于实现在不打断正常操作流程的情况下让用户查看和修改插件的详细信息。

使用方式

<script lang="ts" setup>
import { ref } from "vue";

const modalVisible = ref(false);

function onPluginDetailModalClose() {
  // Do something
}
</script>

<template>
  <PluginDetailModal
    v-if="modalVisible"
    @close="onPluginDetailModalClose"
    name="starter"
  />
</template>

Props

属性名类型默认值描述
namestring无,必填插件名称,即 plugin.yaml 中的 metadata.name