Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Dec 18, 2024
1 parent 185770d commit 78b3b9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/CodemirrorEditor/EditorHeader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function customStyle() {
}, 50)
}
const pickColorsContainer = useTemplateRef(`pickColorsContainer`)
const pickColorsContainer = useTemplateRef<HTMLElement | undefined>('pickColorsContainer')
const format = ref<Format>(`rgb`)
const formatOptions = ref<Format[]>([`rgb`, `hex`, `hsl`, `hsv`])
</script>
Expand Down Expand Up @@ -294,8 +294,9 @@ const formatOptions = ref<Format[]>([`rgb`, `hex`, `hsl`, `hsv`])
show-alpha
:format="format" :format-options="formatOptions"
:theme="store.isDark ? 'dark' : 'light'"
:popup-container="pickColorsContainer!"
:popup-container="pickColorsContainer"
@change="store.colorChanged"
v-if="pickColorsContainer"
/>
</div>
</div>
Expand Down

0 comments on commit 78b3b9b

Please sign in to comment.