提交 9e2aa20d 编写于 作者: Z zuihou

fix(form): radioButtonGroup value support boolean

上级 1a429dd4
......@@ -17,7 +17,7 @@
import { isString } from '/@/utils/is';
import { useRuleFormItem } from '/@/hooks/component/useFormItem';
import { useAttrs } from '/@/hooks/core/useAttrs';
type OptionsItem = { label: string; value: string | number; disabled?: boolean };
type OptionsItem = { label: string; value: string | number | boolean; disabled?: boolean };
type RadioItem = string | OptionsItem;
export default defineComponent({
......@@ -28,7 +28,7 @@
},
props: {
value: {
type: [String, Number] as PropType<string | number>,
type: [String, Number, Boolean] as PropType<string | number | boolean>,
},
options: {
type: Array as PropType<RadioItem[]>,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册