(component): 颜色选择器取色器

This commit is contained in:
sight
2022-04-29 06:14:31 +08:00
parent ab40116673
commit 53697131b6
3 changed files with 75 additions and 1 deletions

View File

@@ -54,6 +54,31 @@ export default {
:::
::: title 取色器
:::
::: demo
<template>
<lay-color-picker v-model="color" eyeDropper></lay-color-picker>
</template>
<script>
import { ref } from "vue";
export default {
setup() {
const color = ref("#009688");
return {
color
}
}
}
</script>
:::
::: title Icon Picker 属性
:::
@@ -63,6 +88,7 @@ export default {
| ---------- | -------- | --- |
| v-model | 选中色 | -- |
| preset | 预设颜色 | -- |
| eyeDropper | 取色器 | Boolean |
:::