Commit 34a069c5 authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加swooshColor属性

parent e47473b1
......@@ -36,12 +36,24 @@ interface RadioProps {
* 是否选中的,一般用于单独使用时,默认 false
*/
checked?: boolean;
/**
* 勾子颜色,默认 #FFFFFF
*/
swooshColor?: string;
children?: React.ReactNode;
}
const Radio = (props: RadioProps) => {
const { value, color, size, disabled, checked, children } = props;
const {
value,
color,
size,
disabled,
checked,
swooshColor = '#FFFFFF',
children,
} = props;
const myStyle = useAppStyle(styles);
const appTheme = useTheme() as ThemeStyle;
......@@ -102,7 +114,7 @@ const Radio = (props: RadioProps) => {
<Icons
name="check"
size={finalSize! - 4}
color={!finalDisabled ? '#FFFFFF' : '#c8c9cc'}
color={!finalDisabled ? swooshColor : '#c8c9cc'}
style={{
opacity: isCheck ? 1 : 0,
}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment