(component): update

This commit is contained in:
就眠儀式
2022-10-15 16:24:08 +08:00
parent 4a0169e011
commit d933cbcd31
4 changed files with 39 additions and 708 deletions

View File

@@ -6,7 +6,17 @@ export default {
<script setup lang="ts">
import "./index.less";
import { withDefaults, provide, useSlots, ref, computed, VNode, Ref, Component, watch } from "vue";
import {
withDefaults,
provide,
useSlots,
ref,
computed,
VNode,
Ref,
Component,
watch,
} from "vue";
import CarouselItem from "../carouselItem/index.vue";
export interface CarouselProps {
@@ -14,9 +24,9 @@ export interface CarouselProps {
height?: string;
modelValue: string;
autoplay?: boolean;
arrow?: 'always' | 'hover' | 'none';
anim?: 'default' | 'updown' | 'fade';
indicator?: 'inside' | 'outside' | 'none';
arrow?: "always" | "hover" | "none";
anim?: "default" | "updown" | "fade";
indicator?: "inside" | "outside" | "none";
pauseOnHover?: boolean;
interval?: number;
}