File tree Expand file tree Collapse file tree
packages/components/src/mcp-server-picker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,6 +80,13 @@ const handlePluginAdd = (plugin: PluginInfo) => {
8080| loading | ` boolean ` | ` false ` | 已安装插件加载状态 |
8181| marketLoading | ` boolean ` | ` false ` | 市场插件加载状态 |
8282
83+
84+ ## Slots
85+
86+ | 插槽名称 | 描述 | 默认内容 |
87+ | ----------------- | -------------------------------- | ----------------------- |
88+ | ` header-actions ` | 头部右侧操作区插槽 | 无 |
89+
8390## Events
8491
8592| 事件名 | 说明 | 回调参数 |
Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ const SelectDropStyle = {
303303 <div class =" mcp-server-picker__header" >
304304 <div class =" mcp-server-picker__header-left" >{{ props.title }}</div >
305305 <div class =" mcp-server-picker__header-right" >
306+ <slot name =" header-actions" />
306307 <div v-if =" props.showCustomAddButton" class =" mcp-server-picker__header-right-item" @click =" handleCustomAdd" >
307308 <IconPlus class="mcp-server-picker__icon" />
308309 <span >{{ props.customAddButtonText }}</span >
You can’t perform that action at this time.
0 commit comments