This commit is contained in:
2022-12-09 16:41:41 +08:00
parent c1cce5a7c2
commit ff7aa8774f
2003 changed files with 156639 additions and 140 deletions

View File

@@ -0,0 +1,29 @@
<script lang="ts">
export default {
name: "LayTimeline",
};
</script>
<script setup lang="ts">
import "./index.less";
import { computed, withDefaults } from "vue";
export interface TimelineProps {
direction?: "horizontal" | "vertical";
}
const props = withDefaults(defineProps<TimelineProps>(), {
direction: "vertical",
});
const timeLineClass = computed(() => [
"layui-timeline",
props.direction === "horizontal" ? "layui-timeline-horizontal" : "",
]);
</script>
<template>
<ul :class="timeLineClass">
<slot></slot>
</ul>
</template>