@redseed/redseed-ui-vue3 2.15.3 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<template>
|
|
5
|
+
<ul class="rsui-linked-list">
|
|
6
|
+
<slot></slot>
|
|
7
|
+
</ul>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<style lang="scss" scoped>
|
|
11
|
+
.rsui-linked-list {
|
|
12
|
+
list-style-type: none;
|
|
13
|
+
padding: 0;
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
status: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: 'default',
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const statusClass = computed(() => `rsui-linked-list-item__status--${props.status}`);
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<li class="rsui-linked-list-item">
|
|
16
|
+
<div class="rsui-linked-list-item__line"></div>
|
|
17
|
+
<div class="rsui-linked-list-item__status" :class="statusClass"></div>
|
|
18
|
+
<div class="rsui-linked-list-item__content">
|
|
19
|
+
<div class="rsui-linked-list-item__title">
|
|
20
|
+
<slot name="title"></slot>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="rsui-linked-list-item__body">
|
|
23
|
+
<slot name="body"></slot>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</li>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<style lang="scss" scoped>
|
|
30
|
+
.rsui-linked-list-item {
|
|
31
|
+
@apply pl-[30px] pb-[30px] relative;
|
|
32
|
+
&__line {
|
|
33
|
+
@apply absolute top-[10px] left-[4px] bg-[#eee] w-[2px] h-[calc(100%-10px)];
|
|
34
|
+
}
|
|
35
|
+
&__status {
|
|
36
|
+
@apply absolute top-[6.5px] left-0 z-[1] w-[10px] h-[10px] bg-[#eee] rounded-full border-white;
|
|
37
|
+
}
|
|
38
|
+
&:last-child {
|
|
39
|
+
@apply pb-0;
|
|
40
|
+
.rsui-linked-list-item__line {
|
|
41
|
+
@apply h-[calc(100%-10px)];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&__title {
|
|
45
|
+
@apply font-bold mb-[5px];
|
|
46
|
+
}
|
|
47
|
+
&__body {
|
|
48
|
+
@apply font-normal;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
</style>
|