Files
WAI_Project_UNIX/uni_modules/cool-ui/components/cl-timeline/cl-timeline.uvue
2025-08-19 18:11:00 +08:00

34 lines
513 B
Plaintext

<template>
<view class="cl-timeline" :class="[pt.className]">
<slot></slot>
</view>
</template>
<script setup lang="ts">
import { computed } from "vue";
import { parsePt } from "@/cool";
defineOptions({
name: "cl-timeline"
});
const props = defineProps({
pt: {
type: Object,
default: () => ({})
}
});
type PassThrough = {
className?: string;
};
const pt = computed(() => parsePt<PassThrough>(props.pt));
</script>
<style lang="scss" scoped>
.cl-timeline {
@apply flex flex-col py-2;
}
</style>