parent
e5903fe6fa
commit
f5b08ef7b5
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue