File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mp-colorui" ,
3
- "version" : " 0.5.1 " ,
3
+ "version" : " 0.5.2 " ,
4
4
"description" : " MP ColorUI 是一款基于 Taro 框架并且联合 Color-UI CSS 库开发的多端 UI 组件库(支持小程序端和H5端)" ,
5
5
"keywords" : [
6
6
" taro" ,
Original file line number Diff line number Diff line change @@ -23,20 +23,20 @@ import ClSwiperAction from '../../components/swiperAction/index';
23
23
import ClActionSheet from '../../components/actionSheet/index' ;
24
24
import ClCurtain from '../../components/curtain/index' ;
25
25
import ClTabs from '../../components/tabs'
26
+ import ClRadio from '../../components/radio' ;
26
27
27
28
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' )
29
37
return (
30
38
< 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 } />
40
40
</ View >
41
41
)
42
42
}
You can’t perform that action at this time.
0 commit comments