docs: change controlled CommandDialog from prop to event (#533)
This commit is contained in:
parent
9ebbd30175
commit
3dd2fbda95
|
|
@ -101,7 +101,7 @@ watch(CmdJ, (v) => {
|
||||||
<span class="text-xs">⌘</span>J
|
<span class="text-xs">⌘</span>J
|
||||||
</kbd>
|
</kbd>
|
||||||
</p>
|
</p>
|
||||||
<CommandDialog :open="open" :on-open-change="handleOpenChange">
|
<CommandDialog :open="open" @update:open="handleOpenChange">
|
||||||
<CommandInput placeholder="Type a command or search..." />
|
<CommandInput placeholder="Type a command or search..." />
|
||||||
<CommandList>
|
<CommandList>
|
||||||
<CommandEmpty>No results found.</CommandEmpty>
|
<CommandEmpty>No results found.</CommandEmpty>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user