Skip to content

命令面板分组

@astryxdesign/core v0.7.1 · CommandPaletteGroup

使用方法 ​

在结果里加一行小标题,把命令分成几段。要放在 CommandPaletteList 里面用。

ts
import { CommandPaletteGroup } from '@astryx-vue/core/CommandPalette'

示例 ​

常见的用法和不同的状态。

基础

Go to Home
Go to Dashboard
New File
Save All

用 CommandPaletteGroup 自己拼,把一条条命令按标题分组。想把相关的命令拆成带标题的几段时用它。