mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +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
|
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
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user