From 73d3bf90de00acedb2ce2993a269178f2335ac77 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: Fri, 12 Aug 2022 15:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20=E6=96=B0=E5=A2=9E=20da?= =?UTF-8?q?te-picker=20=E7=BB=84=E4=BB=B6=20prefix-icon=20=E4=B8=8E=20suff?= =?UTF-8?q?ix-icon=20=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/datePicker/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/component/src/component/datePicker/index.vue b/package/component/src/component/datePicker/index.vue index d61040b1..94c9821b 100644 --- a/package/component/src/component/datePicker/index.vue +++ b/package/component/src/component/datePicker/index.vue @@ -14,7 +14,8 @@ :readonly="readonly" v-model="dateValue" :placeholder="placeholder" - prefix-icon="layui-icon-date" + :prefix-icon="prefixIcon" + :suffix-icon="suffixIcon" :disabled="disabled" v-if="!range" @change="onChange" @@ -130,6 +131,8 @@ export interface LayDatePickerProps { readonly?: boolean; allowClear?: boolean; size?: "lg" | "md" | "sm" | "xs"; + prefixIcon?: string; + suffixIcon?: string; } const props = withDefaults(defineProps(), { @@ -142,6 +145,8 @@ const props = withDefaults(defineProps(), { readonly: false, allowClear: false, size: "md", + prefixIcon: "layui-icon-date", + suffixIcon: "" }); const dropdownRef = ref(null);