Skip to content

Commit

Permalink
refactor(list-item): renamed item slot to content
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-solanki committed Feb 21, 2023
1 parent 6640591 commit ebb3774
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/guide/components/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ Moreover, you can also use `append-icon` & `prepend-icon` prop to add icon outsi
::::

<!-- 👉 Slots -->
::::card Slot
::::card Slots

You can use default slot to render the `ASelect` options.

:::code DemoSelectSlot
<<< @/components/demos/select/DemoSelectSlot.vue{19-29}
:::code DemoSelectSlots
<<< @/components/demos/select/DemoSelectSlots.vue{19-29}
:::

::::
Expand Down
2 changes: 1 addition & 1 deletion packages/anu-vue/src/components/list-item/AListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const { styles, classes } = getLayerClasses(
</slot>
<!-- 👉 Slot: default slot -->
<slot
name="item"
name="content"
:item="props"
:attrs="$attrs"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/anu-vue/src/components/list-item/slots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const listItemSlots = {
item: Object as unknown as ListItemProps,
attrs: Object as unknown,
},
item: {
content: {
item: Object as unknown as ListItemProps,
attrs: Object as unknown,
},
Expand Down

0 comments on commit ebb3774

Please sign in to comment.