Merge pull request #57 from ychy00001/main

bugfix #54
This commit is contained in:
Shawn Phang 2024-03-01 15:27:02 +08:00 committed by GitHub
commit a1c9d30857
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,9 @@ export default defineComponent({
onMounted(() => {
if (props.modelValue) {
state.innerColor = props.modelValue + (props.modelValue.length === 7 ? 'ff' : '')
let fixColor = props.modelValue + (props.modelValue.length === 7 ? 'ff' : '')
// @palxp/color-picker16
state.innerColor = fixColor.toLocaleUpperCase()
}
})
const dropColor = async (e: any) => {