版本发布
This commit is contained in:
33
uni_modules/cool-ui/components/cl-timeline/cl-timeline.uvue
Normal file
33
uni_modules/cool-ui/components/cl-timeline/cl-timeline.uvue
Normal file
@@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<view class="cl-timeline" :class="[pt.classNames]">
|
||||
<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 = {
|
||||
classNames?: string;
|
||||
};
|
||||
|
||||
const pt = computed(() => parsePt<PassThrough>(props.pt));
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.cl-timeline {
|
||||
@apply flex flex-col py-2;
|
||||
}
|
||||
</style>
|
||||
8
uni_modules/cool-ui/components/cl-timeline/props.ts
Normal file
8
uni_modules/cool-ui/components/cl-timeline/props.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export type ClTimelinePassThrough = {
|
||||
classNames?: string;
|
||||
};
|
||||
|
||||
export type ClTimelineProps = {
|
||||
className?: string;
|
||||
pt?: ClTimelinePassThrough;
|
||||
};
|
||||
Reference in New Issue
Block a user