Skip to content

Commit

Permalink
PATCH: BIMDataList fixes (#360)
Browse files Browse the repository at this point in the history
* add BIMDataList component

* fix doc list illustration

* document default slot

* provide index to bimdatalist slot

* document bimdatalist slot index

* fix doc

* fix css
  • Loading branch information
Kurtil committed May 27, 2024
1 parent 235ec50 commit 984ef8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions src/BIMDataComponents/BIMDataList/BIMDataList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export default {
margin: 0;
padding: 0;
list-style: none;
border: 1px solid #ccc;
width: 100%;
height: 100%;
Expand All @@ -100,19 +99,8 @@ export default {
position: relative;
&__element {
overflow: hidden;
position: absolute;
width: 100%;
}
&__placeholder {
background: repeating-linear-gradient(
#ffffff,
#ffffff calc(var(--bimdata-list--item-height, 30px) - 1px),
var(--color-silver, #000000)
calc(var(--bimdata-list--item-height, 30px) - 1px),
var(--color-silver, #000000) var(--bimdata-list--item-height, 30px)
);
}
}
</style>
4 changes: 2 additions & 2 deletions src/web/views/Components/List/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
:itemHeight="+itemHeight"
:offset="+offset"
>
<template #default="{ item, index }">
{{ item }}
<template #default="{ item }">
{{ item }}
</template>
</BIMDataList>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/web/views/Components/List/props-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default [
[ "Props", "Type", "Default value", "Description" ],
[
"items",
"any",
"Array<any>",
"REQUIRED",
"Items to display in the list.",
],
Expand Down

0 comments on commit 984ef8c

Please sign in to comment.