@redseed/redseed-ui-vue3 2.18.6 → 2.18.7
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/package.json
CHANGED
|
@@ -7,11 +7,15 @@ const props = defineProps({
|
|
|
7
7
|
default: () =>[],
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
|
+
|
|
11
|
+
function isLastItem(item) {
|
|
12
|
+
return props.items.indexOf(item) === props.items.length - 1;
|
|
13
|
+
}
|
|
10
14
|
</script>
|
|
11
15
|
|
|
12
16
|
<template>
|
|
13
17
|
<ul class="rsui-linked-list">
|
|
14
|
-
<LinkedListItem v-for="item in props.items" :key="item.id" :status="item.status">
|
|
18
|
+
<LinkedListItem v-for="item in props.items" :key="item.id" :status="item.status" :show-line="!isLastItem(item)">
|
|
15
19
|
<template #title>{{ item.title }}</template>
|
|
16
20
|
<template #body>{{ item.body }}</template>
|
|
17
21
|
</LinkedListItem>
|
|
@@ -5,6 +5,10 @@ const props = defineProps({
|
|
|
5
5
|
status: {
|
|
6
6
|
type: String,
|
|
7
7
|
default: 'default',
|
|
8
|
+
},
|
|
9
|
+
showLine: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true,
|
|
8
12
|
}
|
|
9
13
|
});
|
|
10
14
|
|
|
@@ -13,7 +17,7 @@ const statusClass = computed(() => `rsui-linked-list-item--${props.status}`);
|
|
|
13
17
|
|
|
14
18
|
<template>
|
|
15
19
|
<li class="rsui-linked-list-item" :class="statusClass">
|
|
16
|
-
<div class="rsui-linked-list-item__line"></div>
|
|
20
|
+
<div v-if="showLine" class="rsui-linked-list-item__line"></div>
|
|
17
21
|
<div class="rsui-linked-list-item__status"></div>
|
|
18
22
|
<div class="rsui-linked-list-item__content">
|
|
19
23
|
<div class="rsui-linked-list-item__title">
|