Работа над проектом

This commit is contained in:
Book Pauk
2022-08-26 17:37:41 +07:00
parent 2c51bfaf96
commit a1cdd6b116
8 changed files with 155 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div ref="btn" class="button clickable row justify-center items-center" @click="clickEffect">
<div class="row justify-center items-center no-wrap" :class="{'button-pressed': pressed}">
<q-icon :name="icon" :size="`${iconSize}px`" />
<i :class="icon" :style="`font-size: ${iconSize}px; margin-top: ${imt}px`" />
<slot></slot>
</div>
</div>
@@ -29,6 +29,7 @@ class DivBtn {
icon: { type: String, default: '' },
iconSize: { type: Number, default: 14 },
round: { type: Boolean },
imt: { type: Number, default: 0 },// icon margin top
};
pressed = false;