opentiny / tiny-vue

TinyVue is an enterprise-class UI component library of OpenTiny community, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
https://opentiny.design/tiny-vue
MIT License
1.68k stars 266 forks source link

✨ [Feature]: ColorPicker support basic color and history color #490

Open kagol opened 1 year ago

kagol commented 1 year ago

What problem does this feature solve

在富文本编辑器等场景中使用 ColorPicker,用户可能希望能选择几个常见的特定颜色,并且希望多次选择的颜色色值是一样的。如果只能从颜色面板里选择颜色,可能很难选到两个一样的颜色,因此希望提供一些常见的固定颜色给用户选择。

大致效果如下:

image image image

What does the proposed API look like

最好是能抽取成单独的组件,用户可以自行定义和拼接,比如只要基本色或者只要高级色,或者两个都要。

GaoNeng-wWw commented 1 year ago

work in progress