mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Create component for the filter buttons
This commit is contained in:
parent
e7d43e5019
commit
22f06de83d
56
webapp/components/FilterMenu/HeaderButton.vue
Normal file
56
webapp/components/FilterMenu/HeaderButton.vue
Normal file
@ -0,0 +1,56 @@
|
||||
<template>
|
||||
<span>
|
||||
<base-button
|
||||
class="my-filter-button my-filter-button-selected"
|
||||
right
|
||||
@click="clickButton"
|
||||
filled
|
||||
>
|
||||
{{ title }}
|
||||
</base-button>
|
||||
<base-button
|
||||
class="filter-remove"
|
||||
@click="clickRemove"
|
||||
icon="close"
|
||||
:title="titleRemove"
|
||||
size="small"
|
||||
circle
|
||||
filled
|
||||
/>
|
||||
</span>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'HeaderButton',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
clickButton: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
titleRemove: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
clickRemove: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.my-filter-button-selected {
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.base-button.filter-remove {
|
||||
position: relative;
|
||||
margin-left: -31px;
|
||||
top: -5px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
</style>
|
||||
Loading…
x
Reference in New Issue
Block a user