Исправила базовые кнопки

This commit is contained in:
Daria Golova
2023-07-12 16:13:11 +03:00
parent 73b40e4b0e
commit 7458a1dd32
22 changed files with 171 additions and 213 deletions

View File

@@ -3,7 +3,7 @@
:label="miniSize || round ? '' : label",
no-caps,
:class="btnClass"
:style="{width: miniSize ? '40px' : width, 'min-width': (miniSize || round) && '0px', ...btnStyle}",
:style="{width: miniSize ? '40px' : width, 'min-width': width, ...btnHeight}",
:round="miniSize || round",
:padding="computedPadding",
:disable="disable"
@@ -40,7 +40,7 @@ export default {
[this.type]: true,
};
},
btnStyle() {
btnHeight() {
if (this.size === "L")
return {
height: "48px",
@@ -51,6 +51,13 @@ export default {
"min-height": "40px",
};
},
btnWidth() {
return !this.width === "auto"
? {
"min-width": this.width,
}
: {};
},
miniSize() {
return this.type === "mini";
},