chore(InputMenu/Progress/SelectMenu): clean interfaces for syntax highlight

This commit is contained in:
Benjamin Canac
2024-09-24 12:41:42 +02:00
parent 09d453b5cf
commit 5e55e15ddf
3 changed files with 4 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ export type InputMenuEmits<T> = ComboboxRootEmits<T> & {
type SlotProps<T> = (props: { item: T, index: number }) => any type SlotProps<T> = (props: { item: T, index: number }) => any
export type InputMenuSlots<T> = { export interface InputMenuSlots<T> {
'leading'(props: { modelValue: T, open: boolean, ui: any }): any 'leading'(props: { modelValue: T, open: boolean, ui: any }): any
'trailing'(props: { modelValue: T, open: boolean, ui: any }): any 'trailing'(props: { modelValue: T, open: boolean, ui: any }): any
'empty'(props: { searchTerm?: string }): any 'empty'(props: { searchTerm?: string }): any

View File

@@ -1,3 +1,4 @@
<!-- eslint-disable vue/block-tag-newline -->
<script lang="ts"> <script lang="ts">
import { tv, type VariantProps } from 'tailwind-variants' import { tv, type VariantProps } from 'tailwind-variants'
import type { ProgressRootProps, ProgressRootEmits } from 'radix-vue' import type { ProgressRootProps, ProgressRootEmits } from 'radix-vue'
@@ -42,6 +43,7 @@ export type ProgressSlots = {
} & { } & {
[key: string]: (props: { step: number }) => any [key: string]: (props: { step: number }) => any
} }
</script> </script>
<script setup lang="ts"> <script setup lang="ts">

View File

@@ -92,7 +92,7 @@ export type SelectMenuEmits<T> = ComboboxRootEmits<T> & {
type SlotProps<T> = (props: { item: T, index: number }) => any type SlotProps<T> = (props: { item: T, index: number }) => any
export type SelectMenuSlots<T> = { export interface SelectMenuSlots<T> {
'leading'(props: { modelValue: T, open: boolean, ui: any }): any 'leading'(props: { modelValue: T, open: boolean, ui: any }): any
'default'(props: { modelValue: T, open: boolean }): any 'default'(props: { modelValue: T, open: boolean }): any
'trailing'(props: { modelValue: T, open: boolean, ui: any }): any 'trailing'(props: { modelValue: T, open: boolean, ui: any }): any