(() => {
return isLabeledByFormItem.value ? formItem?.labelId : undefined
})
+const btnKls = computed(() => {
+ return [
+ ns.b('picker'),
+ ns.is('disabled', colorDisabled.value),
+ ns.bm('picker', colorSize.value),
+ ]
+})
+
function displayedRgb(color: Color, showAlpha: boolean) {
if (!(color instanceof Color)) {
throw new TypeError('color should be instance of _color Class')
@@ -324,6 +328,9 @@ provide(colorPickerContextKey, {
})
defineExpose({
+ /**
+ * @description current color object
+ */
color,
})