Authored by 于良

日历优化 review by yewanwan

... ... @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.0.2016061302</string>
<string>1.0.0.2016061702</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
... ...
... ... @@ -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,
... ...
... ... @@ -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>
... ...
... ... @@ -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>
... ...