From 810b52d2acf35333bf6a1708bb9abed12c3032ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Sun, 29 May 2022 23:53:23 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(all):=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/colorPicker/index.vue | 4 ++-- package/component/src/component/select/index.vue | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/package/component/src/component/colorPicker/index.vue b/package/component/src/component/colorPicker/index.vue index 47884fd4..19b6dbed 100644 --- a/package/component/src/component/colorPicker/index.vue +++ b/package/component/src/component/colorPicker/index.vue @@ -11,14 +11,14 @@ import EyeDropper from "./EyeDropper.vue"; import { ref, computed, watch, onMounted } from "vue"; import { useEyeDropper } from "@vueuse/core"; -const emit = defineEmits(["update:modelValue"]); - export interface LayColorPicker { modelValue?: any; preset?: any; eyeDropper?: boolean; } +const emit = defineEmits(["update:modelValue"]); + const props = withDefaults(defineProps(), { modelValue: { r: 255, g: 255, b: 255, a: 1 }, preset: ["#009688", "#1e9fff", "#ffb800", "#ff5722", "#5fb878"], diff --git a/package/component/src/component/select/index.vue b/package/component/src/component/select/index.vue index 2f72316c..f68e82fb 100644 --- a/package/component/src/component/select/index.vue +++ b/package/component/src/component/select/index.vue @@ -31,7 +31,13 @@ export interface LaySelectProps { modelValue?: any; multiple?: boolean; create?: boolean; - items?: { label: string; value: any; key: string, disabled: boolean; keyword: string }[]; + items?: { + label: string; + value: any; + key: string; + disabled: boolean; + keyword: string; + }[]; } const selectRef = ref(); @@ -226,7 +232,7 @@ provide("keyword", txt); > - +