From 78b43c6d11397c97e108c75b6a3b97fc78a1f280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 24 May 2023 15:10:40 +0300 Subject: [PATCH] Update #3965 - For ColorPicker --- .../lib/colorpicker/BaseColorPicker.vue | 91 +++++++++++++++++++ components/lib/colorpicker/ColorPicker.d.ts | 9 +- components/lib/colorpicker/ColorPicker.vue | 42 +++------ 3 files changed, 109 insertions(+), 33 deletions(-) create mode 100644 components/lib/colorpicker/BaseColorPicker.vue diff --git a/components/lib/colorpicker/BaseColorPicker.vue b/components/lib/colorpicker/BaseColorPicker.vue new file mode 100644 index 000000000..a5b12c034 --- /dev/null +++ b/components/lib/colorpicker/BaseColorPicker.vue @@ -0,0 +1,91 @@ + diff --git a/components/lib/colorpicker/ColorPicker.d.ts b/components/lib/colorpicker/ColorPicker.d.ts index 0b0e75dc9..d4ebb031f 100755 --- a/components/lib/colorpicker/ColorPicker.d.ts +++ b/components/lib/colorpicker/ColorPicker.d.ts @@ -66,7 +66,7 @@ export interface ColorPickerPassThroughOptions { /** * Uses to pass attributes to the color handler's DOM element. */ - colorHandler?: ColorPickerPassThroughOptionType; + colorHandle?: ColorPickerPassThroughOptionType; /** * Uses to pass attributes to the hue's DOM element. */ @@ -74,7 +74,7 @@ export interface ColorPickerPassThroughOptions { /** * Uses to pass attributes to the hue handler's DOM element. */ - hueHandler?: ColorPickerPassThroughOptionType; + hueHandle: ColorPickerPassThroughOptionType; } /** @@ -151,6 +151,11 @@ export interface ColorPickerProps { * @type {ColorPickerPassThroughOptions} */ pt?: ColorPickerPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } export interface ColorPickerSlots {} diff --git a/components/lib/colorpicker/ColorPicker.vue b/components/lib/colorpicker/ColorPicker.vue index f4694ad53..d1f06d326 100755 --- a/components/lib/colorpicker/ColorPicker.vue +++ b/components/lib/colorpicker/ColorPicker.vue @@ -1,17 +1,17 @@