Добавила иконки

This commit is contained in:
Daria Golova
2023-07-04 15:17:30 +03:00
parent 6f8637c25d
commit 017f6a3085
5 changed files with 75 additions and 18 deletions

View File

@@ -6,23 +6,22 @@
:id="id",
@click="(e) => changeStylePage(e)"
rounded
padding="0px"
)
slot
sidebar-button-svg(:name-svg="icon", :active="active")
</template>
<script>
import SidebarButtonSvg from "@/components/SidebarButtonSvg.vue";
export default {
name: "ButtonSidebar",
components: { SidebarButtonSvg },
props: {
path: String,
id: String,
changeStylePage: Function,
active: Boolean,
},
data() {
return {
selectedStyle: false,
};
icon: String,
},
computed: {
checkActive() {
@@ -34,7 +33,7 @@ export default {
<style lang="sass" scoped>
.button
background-color: trnsparent
background-color: transparent
.active
background-color: var(--btn-blue-color-1)
color: var(--btn-blue-color)