Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zaihui/hui-design",
"version": "0.0.1-beta.85",
"version": "0.0.1-beta.86",
"description": "小程序组件库",
"templateInfo": {
"name": "mobx",
Expand Down
6 changes: 4 additions & 2 deletions src/components/Radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ const HuiRadio: React.FC<HuiRadioProps> = (props) => {
return (
<View
{...props}
className={cx(`${prefix} ${className || ''}`, { disabled })}
className={cx(`${prefix} ${className || ''}`, {
disabled: finalDisabled,
})}
style={style}
>
<View
className={cx(`${prefix}-icon`, { checked, disabled })}
className={cx(`${prefix}-icon`, { checked, disabled: finalDisabled })}
style={iconStyle}
>
<View className='inner' style={iconInnerStyle} />
Expand Down
13 changes: 13 additions & 0 deletions src/pages/Radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@ const RadioPage: React.FC = () => {
<Radio value='demo5' checked={false} disabled />
</RadioSample>
</GroupSection>
<GroupSection title='单选框组合'>
<Radio.Group disabled>
<RadioSample title='单选1'>
<Radio value='group1' checked />
</RadioSample>
<RadioSample title='单选2'>
<Radio value='group2' />
</RadioSample>
<RadioSample title='单选3'>
<Radio value='group3' />
</RadioSample>
</Radio.Group>
</GroupSection>
</View>
</View>
)
Expand Down
Loading