Skip to content

Commit

Permalink
fix(components): [color-picker] expose color (element-plus#9797)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Sep 16, 2022
1 parent b63b3e1 commit 70c4688
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/color-picker/src/color-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,8 @@ watch(
provide(colorPickerContextKey, {
currentColor,
})
defineExpose({
color,
})
</script>

0 comments on commit 70c4688

Please sign in to comment.