naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

`<NColorPicker />` support `clearable`

Open puyuchun opened this issue 2 years ago • 4 comments

This function solves the problem (这个功能解决的问题)

目前Color Picker组件当颜色值没有的时候展示的是黑色,是否可以有没有颜色的效果以及可以预定义颜色。

Expected API (期望的 API)

1.当颜色没有的时候,给用户不同的展示效果,并且选择颜色的时候有清空的功能,类似于饿了么https://element.eleme.cn/#/zh-CN/component/color-picker 2.添加预定义颜色,有props可以预定义颜色值

puyuchun avatar Apr 24 '22 10:04 puyuchun

预设颜色

https://www.naiveui.com/zh-CN/os-theme/components/color-picker#swatches.vue

07akioni avatar Apr 26 '22 18:04 07akioni

可以考虑一下

07akioni avatar Apr 26 '22 18:04 07akioni

希望能提升这个需求的级别,选了颜色无法清空,不知道怎么处理

AnsGoo avatar Sep 17 '22 07:09 AnsGoo

你的邮件我已经收到,我会尽快阅读,并给你回复。

puyuchun avatar Sep 17 '22 07:09 puyuchun

<n-color-picker :actions="['clear']" />

jahnli avatar May 24 '23 12:05 jahnli

你的邮件我已经收到,我会尽快阅读,并给你回复。

puyuchun avatar May 24 '23 12:05 puyuchun

It already exists in the new version

jahnli avatar Mar 12 '24 13:03 jahnli

你的邮件我已经收到,我会尽快阅读,并给你回复。

puyuchun avatar Mar 12 '24 13:03 puyuchun