mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(InputMenu/Progress/SelectMenu): clean interfaces for syntax highlight
This commit is contained in:
@@ -100,7 +100,7 @@ export type InputMenuEmits<T> = ComboboxRootEmits<T> & {
|
||||
|
||||
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
|
||||
'trailing'(props: { modelValue: T, open: boolean, ui: any }): any
|
||||
'empty'(props: { searchTerm?: string }): any
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<!-- eslint-disable vue/block-tag-newline -->
|
||||
<script lang="ts">
|
||||
import { tv, type VariantProps } from 'tailwind-variants'
|
||||
import type { ProgressRootProps, ProgressRootEmits } from 'radix-vue'
|
||||
@@ -42,6 +43,7 @@ export type ProgressSlots = {
|
||||
} & {
|
||||
[key: string]: (props: { step: number }) => any
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
@@ -92,7 +92,7 @@ export type SelectMenuEmits<T> = ComboboxRootEmits<T> & {
|
||||
|
||||
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
|
||||
'default'(props: { modelValue: T, open: boolean }): any
|
||||
'trailing'(props: { modelValue: T, open: boolean, ui: any }): any
|
||||
|
||||
Reference in New Issue
Block a user