xiaoluoboding / vue-command-palette

⌨️ A fast, composable, unstyled command palette interface for Vue.
https://vue-command-palette.vercel.app
MIT License
530 stars 26 forks source link

feat: ts support and name change #6

Closed productdevbook closed 1 year ago

productdevbook commented 1 year ago

close #5

<template>
  <CommandDialog :visible="visible" theme="custom">
    <template #header>
      <CommandInput placeholder="Type a command or search..." />
    </template>
    <template #body>
      <CommandList>
        <CommandEmpty>No results found.</CommandEmpty>

        <CommandGroup heading="Letters">
          <CommandItem>a</CommandItem>
          <CommandItem>b</CommandItem>
          <CommandSeparator />
          <CommandItem>c</CommandItem>
        </CommandGroup>

        <CommandItem>Apple</CommandItem>
      </CommandList>
    </template>
  </CommandDialog>
</template>

new name change . delete

and volar support auto

image

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
vue-command-palette ✅ Ready (Inspect) Visit Preview Dec 6, 2022 at 3:12PM (UTC)
xiaoluoboding commented 1 year ago

Hey @productdevbook

Thank you for resolving the TS problem, awesome work.

Is there a way to write it that solves the TS problem while using Namespaced Components?

My original idea was to use Namespaced Components to implement it.

productdevbook commented 1 year ago

I'm taking a look now, maybe

productdevbook commented 1 year ago

No, this does not seem possible, there is no point in forcing the structure.

It is better to proceed this way.

RomainLanz commented 1 year ago

Hey, both of you 👋🏻

Is there any way I can help to have this PR merged and released?

xiaoluoboding commented 1 year ago

PRs welcome

RomainLanz commented 1 year ago

I mean, is there any change needed in this PR?

productdevbook commented 1 year ago

no, it just needs to accept the structure

BayBreezy commented 1 year ago

Question.. is this a thing? Seeing that it was closed and something got deleted... Some TS help in Volar with this would be nice