mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 10:56:36 +00:00
27 lines
607 B
Vue
27 lines
607 B
Vue
<script setup lang="ts">
|
|
import { useCarousel } from './useCarousel'
|
|
import type { WithClassAsProps } from './interface'
|
|
|
|
const props = defineProps<WithClassAsProps>()
|
|
|
|
const { orientation, canScrollNext, scrollNext } = useCarousel()
|
|
</script>
|
|
|
|
<template>
|
|
<NcButton
|
|
:disabled="!canScrollNext"
|
|
type="secondary"
|
|
size="xsmall"
|
|
:class="{
|
|
'rotate-90': orientation === 'vertical',
|
|
[props.class]: props.class,
|
|
}"
|
|
class="absolute"
|
|
@click="scrollNext"
|
|
>
|
|
<slot>
|
|
<GeneralIcon icon="arrowRight" class="h-4 w-4 text-current" />
|
|
</slot>
|
|
</NcButton>
|
|
</template>
|