Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/src/components/mcp-server-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ const handlePluginAdd = (plugin: PluginInfo) => {
| loading | `boolean` | `false` | 已安装插件加载状态 |
| marketLoading | `boolean` | `false` | 市场插件加载状态 |


## Slots

| 插槽名称 | 描述 | 默认内容 |
| ----------------- | -------------------------------- | ----------------------- |
| `header-actions` | 头部右侧操作区插槽 | 无 |

## Events

| 事件名 | 说明 | 回调参数 |
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/mcp-server-picker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ const SelectDropStyle = {
<div class="mcp-server-picker__header">
<div class="mcp-server-picker__header-left">{{ props.title }}</div>
<div class="mcp-server-picker__header-right">
<slot name="header-actions" />
<div v-if="props.showCustomAddButton" class="mcp-server-picker__header-right-item" @click="handleCustomAdd">
<IconPlus class="mcp-server-picker__icon" />
<span>{{ props.customAddButtonText }}</span>
Expand Down
Loading