mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 02:40:35 +01:00
chore(components): declare slots after emits
This commit is contained in:
@@ -34,15 +34,15 @@ export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'req
|
|||||||
ui?: Partial<typeof checkbox.slots>
|
ui?: Partial<typeof checkbox.slots>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CheckboxSlots {
|
|
||||||
label(props: { label?: string }): any
|
|
||||||
description(props: { description?: string }): any
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface CheckboxEmits {
|
export interface CheckboxEmits {
|
||||||
(e: 'update:modelValue', payload: boolean): void
|
(e: 'update:modelValue', payload: boolean): void
|
||||||
(e: 'change', payload: Event): void
|
(e: 'change', payload: Event): void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CheckboxSlots {
|
||||||
|
label(props: { label?: string }): any
|
||||||
|
description(props: { description?: string }): any
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
@@ -29,14 +29,14 @@ export interface ChipProps {
|
|||||||
ui?: Partial<typeof chip.slots>
|
ui?: Partial<typeof chip.slots>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ChipEmits {
|
||||||
|
(e: 'update:show', payload: boolean): void
|
||||||
|
}
|
||||||
|
|
||||||
export interface ChipSlots {
|
export interface ChipSlots {
|
||||||
default(props?: {}): any
|
default(props?: {}): any
|
||||||
content(props?: {}): any
|
content(props?: {}): any
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ChipEmits {
|
|
||||||
(e: 'update:show', payload: boolean): void
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
@@ -38,15 +38,15 @@ export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | '
|
|||||||
ui?: Partial<typeof switchTv.slots>
|
ui?: Partial<typeof switchTv.slots>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SwitchSlots {
|
|
||||||
label(props: { label?: string }): any
|
|
||||||
description(props: { description?: string }): any
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface SwitchEmits {
|
export interface SwitchEmits {
|
||||||
(e: 'update:modelValue', payload: boolean): void
|
(e: 'update:modelValue', payload: boolean): void
|
||||||
(e: 'change', payload: Event): void
|
(e: 'change', payload: Event): void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface SwitchSlots {
|
||||||
|
label(props: { label?: string }): any
|
||||||
|
description(props: { description?: string }): any
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
Reference in New Issue
Block a user