perf: 优化工具栏样式

This commit is contained in:
奔跑的面条 2022-09-19 19:34:32 +08:00
parent 352a97d5c1
commit 55119bee93

View File

@ -19,7 +19,7 @@
placement="left"
>
<template #trigger>
<div class="btn-item" :class="[btnList.length - 1 === index && 'go-mt-0']">
<div class="btn-item">
<n-button v-if="item.type === TypeEnum.BUTTON" :circle="isAside" secondary @click="item.handle">
<template #icon>
<n-icon size="22" v-if="isAside">
@ -175,6 +175,9 @@ $asideBottom: 70px;
transition: height ease 0.4s;
.btn-item {
margin-bottom: 10px;
&:first-of-type {
margin-bottom: 0;
}
@include deep() {
.n-button__icon {
margin-right: 4px;