docs: update

This commit is contained in:
就眠儀式
2022-03-18 14:48:38 +08:00
parent ae96c341f0
commit 9e0e918e0a
8 changed files with 35 additions and 16 deletions

View File

@@ -5,4 +5,4 @@ Component.install = (app: App) => {
app.component(Component.name, Component);
};
export default Component;
export default Component;

View File

@@ -6,8 +6,19 @@ export default {
<script setup lang="ts">
import "./index.less";
import { withDefaults, provide, useSlots, ref, computed, VNode, Ref, Component, watch, onMounted } from "vue";
import CarouselItem from "../carouselItem"
import {
withDefaults,
provide,
useSlots,
ref,
computed,
VNode,
Ref,
Component,
watch,
onMounted,
} from "vue";
import CarouselItem from "../carouselItem";
const slot = useSlots() as any;
const slots = slot.default && (slot.default() as any[]);

View File

@@ -14,7 +14,6 @@ const props = defineProps<{
const active = inject("active");
const slotsChange: Ref<boolean> = inject("slotsChange") as Ref<boolean>;
slotsChange.value = !slotsChange.value;
</script>
<template>