mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
perf: 取色器最近使用颜色支持透明度
This commit is contained in:
parent
f9568edb21
commit
d5da6f3a37
@ -63,10 +63,11 @@
|
|||||||
<div
|
<div
|
||||||
v-for="c in recentColors"
|
v-for="c in recentColors"
|
||||||
:key="c"
|
:key="c"
|
||||||
class="picker-presets-color"
|
class="picker-presets-color alpha"
|
||||||
:style="{ background: c }"
|
|
||||||
@click="selectPresetColor(c)"
|
@click="selectPresetColor(c)"
|
||||||
></div>
|
>
|
||||||
|
<div class="picker-presets-color-content" :style="{ background: c }"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -357,7 +358,7 @@ export default defineComponent({
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 22px;
|
font-size: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.input {
|
.input {
|
||||||
@ -376,6 +377,13 @@ export default defineComponent({
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
&.alpha {
|
||||||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADBJREFUOE9jfPbs2X8GPEBSUhKfNAPjqAHDIgz+//+PNx08f/4cfzoYNYCBceiHAQC5flV5JzgrxQAAAABJRU5ErkJggg==);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.picker-presets-color-content {
|
||||||
|
@include absolute-0();
|
||||||
}
|
}
|
||||||
.picker-gradient-presets {
|
.picker-gradient-presets {
|
||||||
@include flex-grid-layout();
|
@include flex-grid-layout();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user