Skip to content

Commit afba5e4

Browse files
committed
fix: icon update
1 parent ca1776b commit afba5e4

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

src/packages/checkbox/demos/taro/demo1.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Cell, Checkbox } from '@nutui/nutui-react-taro'
55

66
const Demo1 = () => {
77
const [checked] = useState(false)
8+
const fontSize = { fontSize: 12 }
89
return (
910
<>
1011
<Cell className="nut-cell">
@@ -23,8 +24,8 @@ const Demo1 = () => {
2324
alignItems: 'center',
2425
}}
2526
>
26-
<View style={{ fontSize: 12 }}>复选框</View>
27-
<View style={{ color: 'gray', fontSize: 12 }}>描述信息</View>
27+
<View style={fontSize}>复选框</View>
28+
<View style={{ color: 'gray', ...fontSize }}>描述信息</View>
2829
</View>
2930
}
3031
defaultChecked={!checked}
@@ -44,8 +45,8 @@ const Demo1 = () => {
4445
alignItems: 'center',
4546
}}
4647
>
47-
<View style={{ fontSize: 12 }}>复选框</View>
48-
<View style={{ color: 'gray', fontSize: 12 }}>描述信息</View>
48+
<View style={fontSize}>复选框</View>
49+
<View style={{ color: 'gray', ...fontSize }}>描述信息</View>
4950
</View>
5051
}
5152
defaultChecked={checked}
@@ -62,8 +63,8 @@ const Demo1 = () => {
6263
alignItems: 'center',
6364
}}
6465
>
65-
<View style={{ fontSize: 12 }}>复选框</View>
66-
<View style={{ fontSize: 12 }}>描述信息</View>
66+
<View style={fontSize}>复选框</View>
67+
<View style={fontSize}>描述信息</View>
6768
</View>
6869
}
6970
defaultChecked={checked}

src/packages/checkbox/demos/taro/demo13.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const Demo13 = () => {
3030
ref={checkboxgroup2Ref}
3131
direction="horizontal"
3232
defaultValue={checkboxgroup2}
33+
style={{ width: '50%' }}
3334
onChange={(value) => {
3435
if (value.length === 4) {
3536
setIndeterminate(false)
@@ -42,10 +43,18 @@ const Demo13 = () => {
4243
}
4344
}}
4445
>
45-
<Checkbox value="1">选项</Checkbox>
46-
<Checkbox value="2">选项</Checkbox>
47-
<Checkbox value="3">选项</Checkbox>
48-
<Checkbox value="4">选项</Checkbox>
46+
<Checkbox value="1" style={{ marginBottom: 10 }}>
47+
选项
48+
</Checkbox>
49+
<Checkbox value="2" style={{ marginBottom: 10 }}>
50+
选项
51+
</Checkbox>
52+
<Checkbox value="3" style={{ marginBottom: 10 }}>
53+
选项
54+
</Checkbox>
55+
<Checkbox value="4" style={{ marginBottom: 10 }}>
56+
选项
57+
</Checkbox>
4958
</Checkbox.Group>
5059
</Cell>
5160
</>

src/packages/checkboxgroup/checkboxgroup.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
.nut-checkbox {
3333
display: inline-flex;
34+
flex: 1;
3435
margin-right: 20px;
3536

3637
&-button-active {

0 commit comments

Comments
 (0)