|
@@ -85,7 +85,7 @@ export default defineComponent({
|
|
eyeDropper
|
|
eyeDropper
|
|
.open()
|
|
.open()
|
|
.then((result: any) => {
|
|
.then((result: any) => {
|
|
- emit("change", result);
|
|
|
|
|
|
+ emit("change", result.sRGBHex);
|
|
})
|
|
})
|
|
.catch((e: any) => {
|
|
.catch((e: any) => {
|
|
console.log("e: ", e);
|
|
console.log("e: ", e);
|
|
@@ -102,19 +102,19 @@ export default defineComponent({
|
|
<div class="mt-15px flex items-center justify-between">
|
|
<div class="mt-15px flex items-center justify-between">
|
|
<Input
|
|
<Input
|
|
readonly
|
|
readonly
|
|
- value={colorObj.hex()}
|
|
|
|
- class="flex-1 bg-dark-300 h-36px hover:bg-dark-300 text-center"
|
|
|
|
bordered={false}
|
|
bordered={false}
|
|
|
|
+ value={colorObj.hex()}
|
|
|
|
+ class="flex-1 bg-[#3B3B3B] h-36px text-center cursor-pointer hover:opacity-80"
|
|
/>
|
|
/>
|
|
<Input
|
|
<Input
|
|
readonly
|
|
readonly
|
|
value={opacity}
|
|
value={opacity}
|
|
- class="w-60px ml-10px bg-dark-300 h-36px hover:bg-dark-300 text-center"
|
|
|
|
|
|
+ class="w-60px ml-10px bg-[#3B3B3B] h-36px text-center hover:opacity-80"
|
|
bordered={false}
|
|
bordered={false}
|
|
/>
|
|
/>
|
|
{state.showPicker && (
|
|
{state.showPicker && (
|
|
<IconPicker
|
|
<IconPicker
|
|
- class="ml-10px text-36px bg-dark-300 rounded-2px transition cursor-pointer !hidden hover:opacity-60"
|
|
|
|
|
|
+ class="ml-10px text-36px bg-[#3B3B3B] rounded-2px transition cursor-pointer hover:opacity-80"
|
|
onClick={pickColor}
|
|
onClick={pickColor}
|
|
/>
|
|
/>
|
|
)}
|
|
)}
|