Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
yh_vendor
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
于良
9 years ago
Commit
fabdba70c4c50280a8a5d80dd67384b9576036f5
1 parent
651acb15
日历优化 review by yewanwan
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
ios/YH_Vendor/Info.plist
js/components/calendar/Calendar.js
js/components/calendar/Day.js
js/components/calendar/Month.js
ios/YH_Vendor/Info.plist
View file @
fabdba7
...
...
@@ -21,7 +21,7 @@
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<string>
1.0.0.2016061
3
02
</string>
<string>
1.0.0.2016061
7
02
</string>
<key>
Fabric
</key>
<dict>
<key>
APIKey
</key>
...
...
js/components/calendar/Calendar.js
View file @
fabdba7
...
...
@@ -587,24 +587,25 @@ export default class Calendar extends Component {
const
styles
=
StyleSheet
.
create
({
buttonContainer
:
{
flexDirection
:
'row'
,
borderTopWidth
:
0.5
,
borderTopColor
:
'#B0B0B0'
,
backgroundColor
:
'white'
,
},
button
:
{
width
:
width
/
2
,
height
:
44
,
borderBottomWidth
:
0.5
,
borderBottomColor
:
'#B0B0B0'
,
alignSelf
:
'center'
,
alignItems
:
'center'
,
backgroundColor
:
'white'
,
borderTopWidth
:
0.5
,
borderTopColor
:
'#B0B0B0'
,
justifyContent
:
'center'
,
},
text
:
{
top
:
0.5
,
height
:
44
,
paddingTop
:
15
,
fontSize
:
14
,
color
:
'#444444'
,
textAlign
:
'center'
,
textAlignVertical
:
'center'
,
backgroundColor
:
'white'
,
},
seprator
:
{
width
:
0.5
,
...
...
js/components/calendar/Day.js
View file @
fabdba7
...
...
@@ -59,7 +59,7 @@ export default class Day extends Component {
return
(
<
TouchableOpacity
activeOpacity
=
{
disabled
?
1
:
1
}
style
=
{[
styles
.
common
,
{
backgroundColor
:
backColor
,
width
:
width
/
8
,
height
:
width
/
12
,
borderTopLeftRadius
,
borderBottomLeftRadius
,
borderTopRightRadius
,
borderBottomRightRadius
}]}
style
=
{[
styles
.
common
,
{
backgroundColor
:
backColor
,
width
:
Math
.
floor
(
width
/
8
)
,
height
:
width
/
12
,
borderTopLeftRadius
,
borderBottomLeftRadius
,
borderTopRightRadius
,
borderBottomRightRadius
}]}
onPress
=
{
onPress
}
>
<
Text
style
=
{{
color
:
textColor
}}
>
{
date
.
getDate
()}
<
/Text
>
<
/TouchableOpacity
>
...
...
js/components/calendar/Month.js
View file @
fabdba7
...
...
@@ -49,7 +49,7 @@ export default class Month extends Component {
if
(
this
.
props
.
selectMode
===
'month'
)
{
return
(
<
View
style
=
{
styles
.
monthContainer
}
>
<
View
style
=
{
[
styles
.
monthContainer
,
{
marginTop
:
-
5
}]
}
>
<
View
style
=
{
styles
.
monthDays
}
>
{
months
.
map
((
month
,
i
)
=>
{
return
(
...
...
@@ -68,7 +68,7 @@ export default class Month extends Component {
);
}
else
{
return
(
<
View
style
=
{
styles
.
monthContainer
}
>
<
View
style
=
{
[
styles
.
monthContainer
,
{
marginTop
:
-
15
}]
}
>
<
View
style
=
{
styles
.
monthWeeks
}
>
<
View
style
=
{[
styles
.
weekDay
,
{
borderColor
:
headerSepColor
,
width
:
width
/
8
,
height
:
width
/
8
}]}
>
<
Text
style
=
{{
color
:
bodyTextColor
}}
>
周
<
/Text
>
...
...
Please
register
or
login
to post a comment