bugfix for header, adding store

main v1.2.2
HerrHase 5 days ago
parent be006029cb
commit 5b9d7246e2

@ -1,6 +1,6 @@
{
"name": "@tiny-components/sidebar-form",
"version": "1.2.1",
"version": "1.2.2",
"description": "sidebar to handle forms",
"repository": {
"type": "git",

@ -4,11 +4,23 @@
{ props.title }
</div>
<div class="bar__end">
<button class="button button--icon button--hover-icon-contrast m-top-3 m-bottom-3" type="button" onclick={ props.close }>
<button class="button button--icon button--hover-icon-contrast m-top-3 m-bottom-3" type="button" onclick={ () => { handleClose() } }>
<svg class="icon fill-danger" aria-hidden="true">
<use xlink:href="/symbol-defs.svg#icon-close"></use>
</svg>
</button>
</div>
</div>
</tiny-sidebar-form-header>
<script>
import { sidebarFormStore } from '@tiny-components/sidebar-form'
export default {
handleClose() {
sidebarFormStore.close(this.props.name)
}
}
</script>
</tiny-sidebar-form-header>

Loading…
Cancel
Save