Skip to content

Commit 6b9d94f

Browse files
committed
0.5.2版本更新
1 parent 78af116 commit 6b9d94f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mp-colorui",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"description": "MP ColorUI 是一款基于 Taro 框架并且联合 Color-UI CSS 库开发的多端 UI 组件库(支持小程序端和H5端)",
55
"keywords": [
66
"taro",

src/pages/index/index.tsx

+10-10
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ import ClSwiperAction from '../../components/swiperAction/index';
2323
import ClActionSheet from '../../components/actionSheet/index';
2424
import ClCurtain from '../../components/curtain/index';
2525
import ClTabs from '../../components/tabs'
26+
import ClRadio from '../../components/radio';
2627

2728
export default function Index() {
28-
const tabs = [...Array(50)].map((key, index) => ({ name: 'tab-' + index, id: 'id-' + index }))
29+
const radioGroup = [{
30+
key: '男生',
31+
value: 'male'
32+
}, {
33+
key: '女生',
34+
value: 'female'
35+
}]
36+
const [checkedValue, setCheckedValue] = useState('male')
2937
return (
3038
<View>
31-
<ClVerticalTab tabs={tabs} height={1000}>
32-
<View>
33-
{tabs.map((item) => (
34-
<View id={item.id} key={item.name}>
35-
<ClVerticalTabCell>{item.name}</ClVerticalTabCell>
36-
</View>
37-
))}
38-
</View>
39-
</ClVerticalTab>
39+
<ClRadio type='normal' title='normal' radioGroup={radioGroup} checkedValue={checkedValue} />
4040
</View>
4141
)
4242
}

0 commit comments

Comments
 (0)