Skip to content

Commit

Permalink
fix: icon update
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Nov 19, 2024
1 parent ca1776b commit afba5e4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
13 changes: 7 additions & 6 deletions src/packages/checkbox/demos/taro/demo1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Cell, Checkbox } from '@nutui/nutui-react-taro'

const Demo1 = () => {
const [checked] = useState(false)
const fontSize = { fontSize: 12 }
return (
<>
<Cell className="nut-cell">
Expand All @@ -23,8 +24,8 @@ const Demo1 = () => {
alignItems: 'center',
}}
>
<View style={{ fontSize: 12 }}>复选框</View>
<View style={{ color: 'gray', fontSize: 12 }}>描述信息</View>
<View style={fontSize}>复选框</View>
<View style={{ color: 'gray', ...fontSize }}>描述信息</View>
</View>
}
defaultChecked={!checked}
Expand All @@ -44,8 +45,8 @@ const Demo1 = () => {
alignItems: 'center',
}}
>
<View style={{ fontSize: 12 }}>复选框</View>
<View style={{ color: 'gray', fontSize: 12 }}>描述信息</View>
<View style={fontSize}>复选框</View>
<View style={{ color: 'gray', ...fontSize }}>描述信息</View>
</View>
}
defaultChecked={checked}
Expand All @@ -62,8 +63,8 @@ const Demo1 = () => {
alignItems: 'center',
}}
>
<View style={{ fontSize: 12 }}>复选框</View>
<View style={{ fontSize: 12 }}>描述信息</View>
<View style={fontSize}>复选框</View>
<View style={fontSize}>描述信息</View>
</View>
}
defaultChecked={checked}
Expand Down
17 changes: 13 additions & 4 deletions src/packages/checkbox/demos/taro/demo13.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Demo13 = () => {
ref={checkboxgroup2Ref}
direction="horizontal"
defaultValue={checkboxgroup2}
style={{ width: '50%' }}
onChange={(value) => {
if (value.length === 4) {
setIndeterminate(false)
Expand All @@ -42,10 +43,18 @@ const Demo13 = () => {
}
}}
>
<Checkbox value="1">选项</Checkbox>
<Checkbox value="2">选项</Checkbox>
<Checkbox value="3">选项</Checkbox>
<Checkbox value="4">选项</Checkbox>
<Checkbox value="1" style={{ marginBottom: 10 }}>
选项
</Checkbox>
<Checkbox value="2" style={{ marginBottom: 10 }}>
选项
</Checkbox>
<Checkbox value="3" style={{ marginBottom: 10 }}>
选项
</Checkbox>
<Checkbox value="4" style={{ marginBottom: 10 }}>
选项
</Checkbox>
</Checkbox.Group>
</Cell>
</>
Expand Down
1 change: 1 addition & 0 deletions src/packages/checkboxgroup/checkboxgroup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

.nut-checkbox {
display: inline-flex;
flex: 1;
margin-right: 20px;

&-button-active {
Expand Down

0 comments on commit afba5e4

Please sign in to comment.