bugfix for header, adding store

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

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

@ -4,11 +4,23 @@
{ props.title } { props.title }
</div> </div>
<div class="bar__end"> <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"> <svg class="icon fill-danger" aria-hidden="true">
<use xlink:href="/symbol-defs.svg#icon-close"></use> <use xlink:href="/symbol-defs.svg#icon-close"></use>
</svg> </svg>
</button> </button>
</div> </div>
</div> </div>
<script>
import { sidebarFormStore } from '@tiny-components/sidebar-form'
export default {
handleClose() {
sidebarFormStore.close(this.props.name)
}
}
</script>
</tiny-sidebar-form-header> </tiny-sidebar-form-header>
Loading…
Cancel
Save