Preview Updated 2026-05-10

Plugin pane

Plugin center pane with Card / Manifest / Permission / Marketplace tabs.

Basic usage

4 predefined tabs (ids: card, manifest, permission, marketplace). Each tab’s content is filled in by the consumer via the named slot #panel-{tabId} (Vue) / slots["panel-{tabId}"] (React). You can also override the default list via the tabs prop.

Source: plugins.html.

PluginCard 列表 / 网格视图。

Demo source
src/App.vue vue
<CfPluginPane>
<template #panel-card>...</template>
<template #panel-manifest>...</template>
</CfPluginPane>
src/App.tsx tsx
<CfPluginPane slots={{
'panel-card': <PanelA />,
'panel-manifest': <PanelB />,
}} />

API

PropTypeDefaultDescription
modelValue / valuestringFirst tab idActive tab
tabsTemplatePaneTab[]presetCustom tab list
size'sm' | 'md' | 'lg''md'

The preset tab id lists are exported as constants PROTOCOL_TABS / NETWORK_TABS / SQL_TABS, ready to reuse when customizing tabs.

Template components are a thin semantic wrapper over CfTabs. If you don’t need a predefined tab set, use CfTabs directly.

反馈与讨论

Plugin pane · Discussion

0
0 / 600
一键发送
正在加载评论...