修复 src 结构

This commit is contained in:
就眠儀式
2022-01-22 21:30:17 +08:00
parent 96bb84020b
commit d0debbb1b2
186 changed files with 251 additions and 251 deletions

View File

@@ -0,0 +1,59 @@
.layui-timeline {
padding-left: 5px;
}
.layui-timeline-item {
position: relative;
padding-bottom: 20px;
}
.layui-timeline-axis {
position: absolute;
left: -5px;
top: 0;
z-index: 10;
width: 20px;
height: 20px;
line-height: 20px;
background-color: #fff;
color: #5fb878;
border-radius: 50%;
text-align: center;
cursor: pointer;
}
.layui-timeline-axis:hover {
color: #ff5722;
}
.layui-timeline-item:before {
content: "";
position: absolute;
left: 5px;
top: 0;
z-index: 0;
width: 1px;
height: 100%;
}
.layui-timeline-item:first-child:before {
display: block;
}
.layui-timeline-item:last-child:before {
display: none;
}
.layui-timeline-content {
padding-left: 25px;
}
.layui-timeline-title {
position: relative;
margin-bottom: 10px;
line-height: 22px;
}
.layui-timeline-item:before {
background-color: #eee;
}

View File

@@ -0,0 +1,9 @@
import type { App } from "vue";
import Component from "./index.vue";
import type { IDefineComponent } from "../type/index";
Component.install = (app: App) => {
app.component(Component.name || "LayTimeline", Component);
};
export default Component as IDefineComponent;

View File

@@ -0,0 +1,15 @@
<script lang="ts">
export default {
name: "LayTimeline",
};
</script>
<script setup lang="ts">
import "./index.less";
</script>
<template>
<ul class="layui-timeline">
<slot></slot>
</ul>
</template>