2.0.3 • Published 5 months ago

@wu-component/wu-color-picker v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

ColorPicker 颜色选择器

用于颜色选择,支持多种格式。

基础用法

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-color-picker id="colorPicker" />
    </div>
</template>
<script>
</script>

:::

默认值

支持 rgba 或十六进制颜色。

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-color-picker defaultvalue="rgba(19, 206, 102, 0.9)" id="colorPicker2" />
        <wu-plus-color-picker defaultvalue="#409EFF" id="colorPicker20" />
    </div>
</template>
<script>
</script>

:::

不同尺寸

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-color-picker size="medium" />
        <wu-plus-color-picker size="small" />
        <wu-plus-color-picker size="mini" />
    </div>
</template>
<script>
</script>

:::

禁用

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-color-picker id="colorPicker14" disabled="true" />
    </div>
</template>
<script>
</script>

:::

Attributes

参数说明类型可选值默认值
defaultvalue默认颜色值String--#ffffff
disabled禁用String--false

Event

事件名说明参数
change值修改(event: CustomEvent) => void
2.0.3

5 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.11.8

1 year ago

1.11.7

1 year ago

1.11.6

1 year ago

1.11.4

1 year ago

1.11.3

1 year ago

1.11.1

1 year ago

1.11.0

1 year ago

1.10.6

1 year ago

1.10.5

1 year ago

1.10.3

1 year ago

1.10.2

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.9.24

2 years ago

1.9.21

2 years ago

1.9.20

2 years ago

1.9.18

2 years ago

1.9.17

2 years ago

1.9.1

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.0.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago