1.优化分类操作按钮

sws 2024-08-15
v1.0.0
sws 2024-08-15 10:03:19 +08:00
parent e5903fe6fa
commit f5b08ef7b5
4 changed files with 12 additions and 14 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<i class="iconfont hover" :class="className" :style="'font-size:' + size + 'px;' + (props.color.indexOf('#') !== -1 ? 'color:' + props.color : '') + styles" @click="onClick"> <i class="iconfont" :class="className" :style="'font-size:' + size + 'px;' + (props.color.indexOf('#') !== -1 ? 'color:' + props.color : '') + styles" @click="onClick">
<slot></slot> <slot></slot>
</i> </i>
</template> </template>
@ -15,10 +15,6 @@ const props = defineProps({
type: String, type: String,
default: '', default: '',
}, },
hoverColor: {
type: String,
default: '',
},
size: { size: {
type: String, type: String,
default: '', default: '',
@ -50,8 +46,5 @@ i.iconfont {
&:hover { &:hover {
opacity: 0.8; opacity: 0.8;
} }
&.hover:hover {
color: inherit;
}
} }
</style> </style>

View File

@ -6,6 +6,11 @@
.el-tree { .el-tree {
--el-tree-node-content-height: 40px; --el-tree-node-content-height: 40px;
} }
.category-oprate {
.icon:hover {
color: $cr-primary;
}
}
} }
.right-content { .right-content {
position: relative; position: relative;

View File

@ -26,10 +26,10 @@
<template #default="{ node, data }"> <template #default="{ node, data }">
<div class="custom-tree-node flex-row jc-sb gap-10 align-c w pr-10"> <div class="custom-tree-node flex-row jc-sb gap-10 align-c w pr-10">
<div class="flex-1 flex-width text-line-1 block">{{ data.name }}</div> <div class="flex-1 flex-width text-line-1 block">{{ data.name }}</div>
<div class="flex-row gap-10"> <div class="flex-row gap-10 cr-9 category-oprate">
<icon v-if="data.pid == 0" name="add" size="12" color="primary" @click="append_type_event(data)"></icon> <icon v-if="data.pid == 0" class="icon" name="add" size="12" @click="append_type_event(data)"></icon>
<icon name="edit" size="12" color="primary" @click="edit_type_event(data)"></icon> <icon class="icon" name="edit" size="12" @click="edit_type_event(data)"></icon>
<icon name="del" size="12" color="primary" @click="remove_type_event(node, data)"></icon> <icon class="icon" name="del" size="12" @click="remove_type_event(node, data)"></icon>
</div> </div>
</div> </div>
</template> </template>

View File

@ -73,8 +73,6 @@ div:focus {
// form // form
:root { :root {
--el-font-size-base: 12px; --el-font-size-base: 12px;
// input numberbox
--el-fill-color-light: #fff;
} }
.el-form { .el-form {
--el-form-label-font-size: var(--el-font-size-base); --el-form-label-font-size: var(--el-font-size-base);
@ -102,10 +100,12 @@ div:focus {
// numberbox // numberbox
.el-input-number { .el-input-number {
&__decrease { &__decrease {
background-color: #fff;
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
opacity: 0; opacity: 0;
} }
&__increase { &__increase {
background-color: #fff;
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
opacity: 0; opacity: 0;
} }