Skip to content

Commit

Permalink
add better customization
Browse files Browse the repository at this point in the history
  • Loading branch information
pmpc94 committed Nov 2, 2023
1 parent 183fe8d commit 3f6195e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ storiesOf("Components/Organisms/Details Expandable", module)
v-bind:data="data"
v-bind:label-font-size="fontSize"
>
<template v-slot="slotProps">
<input-ripe v-bind:value=slotProps.fieldValue></input-ripe>
</template>
<template v-slot:customer-address>
<input-ripe v-bind:style="'width: 50%'" v-bind:value="data.customer.address.city"></input-ripe>
</template>
Expand All @@ -54,8 +51,3 @@ storiesOf("Components/Organisms/Details Expandable", module)
</details-expandable-ripe>
`
}));





Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<div class="details-expandable-row" v-for="(value, name, subIndex) in section" v-bind:key="subIndex">
<label-ripe class="details-expandable-title" v-bind:text="capitalizeName(name)" v-bind:font-size="labelFontSize" />
<div class="details-expandable-value">
<slot v-bind:name="sectionName + '-' + name" v-bind:field-value="value" />
<slot v-bind:name="sectionName + '-' + name" v-bind:field-value="value"><input-ripe v-bind:value="value" />
</slot>
</div>
</div>
<icon class="details-expandable-caret" v-bind:icon="isExpanded[sectionName] ? 'chevron-up' : 'chevron-down'" />
Expand Down

0 comments on commit 3f6195e

Please sign in to comment.