feat: 自定义颜色

This commit is contained in:
junjun 2022-05-26 18:24:17 +08:00
parent db215743e8
commit 57330d34df
2 changed files with 5 additions and 3 deletions

View File

@ -64,13 +64,13 @@
:key="index"
style="display: flex;align-items: center;margin: 2px 0;"
>
<span class="span-label" :title="item.name">{{ item.name }}</span>
<el-color-picker
v-model="item.color"
class="color-picker-style"
:predefine="predefineColors"
@change="switchCustomColor(index)"
/>
<span class="span-label" :title="item.name">{{ item.name }}</span>
</div>
</div>
@ -394,17 +394,18 @@ export default {
}
.span-label {
width: 100px;
width: 300px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
padding: 0 8px;
}
.custom-color-style {
height: 300px;
overflow-y: auto;
padding: 4px;
padding: 4px 12px;
border: 1px solid #e6e6e6;
}
</style>

View File

@ -1,3 +1,4 @@
<!--暂时没用但保留-->
<template>
<div style="width: 100%">
<el-col>