chore: 自定义success按钮样式

This commit is contained in:
dap
2024-10-30 15:27:39 +08:00
parent b9edb5d493
commit 2400e8f729
5 changed files with 31 additions and 27 deletions

View File

@@ -159,7 +159,7 @@ function setExpandOrCollapse(expand: boolean) {
{{ $t('pages.common.edit') }}
</ghost-button>
<ghost-button
class="btn-add"
class="btn-success"
v-access:code="['system:dept:add']"
@click="handleSubAdd(row)"
>
@@ -185,15 +185,3 @@ function setExpandOrCollapse(expand: boolean) {
<DeptDrawer @reload="tableApi.query()" />
</Page>
</template>
<style lang="scss" scoped>
.btn-add {
color: hsl(var(--success)) !important;
border-color: hsl(var(--success)) !important;
&:hover {
color: hsl(var(--success) / 50%) !important;
border-color: hsl(var(--success) / 50%) !important;
}
}
</style>