Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-picker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
react-native-picker
Commits
15671885
Commit
15671885
authored
Sep 20, 2016
by
xwenliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data structure
parent
c3d620bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
5 deletions
+74
-5
README.md
README.md
+74
-5
No files found.
README.md
View file @
15671885
...
...
@@ -111,18 +111,87 @@ A Native Picker with high performance
-
two wheel
```
javascript
pickerData
=
{
a
:
[
1
,
2
,
3
,
4
],
b
:
[
5
,
6
,
7
,
8
],
pickerData
=
[
{
value
:
'
a
'
,
child
:
[
1
,
2
,
3
,
4
]
},
{
value
:
'
b
'
,
child
:
[
5
,
6
,
7
,
8
]
},
...
}
;
]
;
selectedValue
=
[
'
a
'
,
2
];
```
-
three wheel
```
javascript
pickerData
=
{
pickerData
=
[
{
value
:
'
a
'
,
child
:
[
{
value
:
'
a1
'
,
child
:
[
1
,
2
,
3
,
4
]
},
{
value
:
'
a2
'
,
child
:
[
5
,
6
,
7
,
8
]
},
{
value
:
'
a3
'
,
child
:
[
9
,
10
,
11
,
12
]
}
]
},
{
value
:
'
b
'
,
child
:
[
{
value
:
'
b1
'
,
child
:
[
11
,
22
,
33
,
44
]
},
{
value
:
'
b2
'
,
child
:
[
55
,
66
,
77
,
88
]
},
{
value
:
'
b3
'
,
child
:
[
99
,
1010
,
1111
,
1212
]
}
]
},
{
value
:
'
c
'
,
child
:
[
{
value
:
'
c1
'
,
child
:
[
'
a
'
,
'
b
'
,
'
c
'
]
},
{
value
:
'
c2
'
,
child
:
[
'
aa
'
,
'
bb
'
,
'
cc
'
]
},
{
value
:
'
c3
'
,
child
:
[
'
aaa
'
,
'
bbb
'
,
'
ccc
'
]
}
]
}
]
//以前两轮
{
a
:
[
1
,
2
,
3
,
4
],
b
:
[
5
,
6
,
7
,
8
],
...
}
//以前三轮
{
a
:
{
a1
:
[
1
,
2
,
3
,
4
],
a2
:
[
5
,
6
,
7
,
8
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment