From 836070b1659698c6d246a636a1ce23708735e387 Mon Sep 17 00:00:00 2001 From: Lm2021 Date: Mon, 14 Nov 2022 21:15:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=95=E9=80=89=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=9B=BE=E7=89=87=E7=9A=84?= =?UTF-8?q?=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Form/src/components/RadioButtonGroup.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/Form/src/components/RadioButtonGroup.vue b/src/components/Form/src/components/RadioButtonGroup.vue index c2c7b22..79d8d89 100644 --- a/src/components/Form/src/components/RadioButtonGroup.vue +++ b/src/components/Form/src/components/RadioButtonGroup.vue @@ -5,7 +5,8 @@ @@ -16,8 +17,13 @@ import { isString } from '/@/utils/is'; import { useRuleFormItem } from '/@/hooks/component/useFormItem'; import { useAttrs } from '/@/hooks/core/useAttrs'; - - type OptionsItem = { label: string; value: string | number | boolean; disabled?: boolean }; + import { Icon } from '/@/components/Icon'; + type OptionsItem = { + icon?: string; + label?: string; + value: string | number | boolean; + disabled?: boolean; + }; type RadioItem = string | OptionsItem; export default defineComponent({ @@ -25,6 +31,7 @@ components: { RadioGroup: Radio.Group, RadioButton: Radio.Button, + Icon, }, props: { value: {