Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/runtime/components/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
(e: 'update:modelValue', payload: T): void
(e: 'change', payload: Event): void
}

export interface SliderSlots {
default(props?: {text: string | number}): any

Check failure on line 47 in src/runtime/components/Slider.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 22)

A space is required before '}'

Check failure on line 47 in src/runtime/components/Slider.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 22)

Requires a space before '}'

Check failure on line 47 in src/runtime/components/Slider.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 22)

A space is required after '{'

Check failure on line 47 in src/runtime/components/Slider.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 22)

Requires a space after '{'
}
</script>

<script setup lang="ts" generic="T extends number | number[]">
Expand Down Expand Up @@ -129,6 +133,9 @@
v-bind="(typeof tooltip === 'object' ? tooltip : {})"
>
<SliderThumb :class="ui.thumb({ class: props.ui?.thumb })" />
<template name="content" v-if="$slots.tooltip">

Check warning on line 136 in src/runtime/components/Slider.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 22)

Attribute "v-if" should go before "name"

Check failure on line 136 in src/runtime/components/Slider.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 22)

Unexpected useless attribute on `<template>`
<slot :text="thumbs > 1 ? String(sliderValue?.[thumb - 1]) : String(sliderValue)" />
</template>
</UTooltip>
<SliderThumb v-else :class="ui.thumb({ class: props.ui?.thumb })" />
</template>
Expand Down
Loading