From 43b9d2a2e3e18730df18f839d7111de2d632afe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=84=A2=E9=B9=8F=E6=9D=83?= <490523604@qq.com> Date: Wed, 26 Jan 2022 08:30:08 +0000 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9B=B4=E6=8E=A5=E4=BD=BF?= =?UTF-8?q?=E7=94=A8icon=E5=B1=9E=E6=80=A7=E9=85=8D=E7=BD=AE=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/button/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/component/button/index.vue b/src/component/button/index.vue index eda5175f..f2ae0bee 100644 --- a/src/component/button/index.vue +++ b/src/component/button/index.vue @@ -17,6 +17,7 @@ export interface LayButtonProps { disabled?: boolean | string; loading?: boolean | string; nativeType?: "button" | "submit" | "reset"; + icon?: string; } const props = withDefaults(defineProps(), { @@ -25,6 +26,7 @@ const props = withDefaults(defineProps(), { loading: false, disabled: false, nativeType: "button", + icon: "", }); const emit = defineEmits(["click"]); @@ -58,6 +60,7 @@ const classes = computed(() => { :type="nativeType" @click="onClick" > +