@momo-kits/date-picker 0.0.55-beta.21 → 0.0.56-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/datePicker/DatePicker.js
CHANGED
|
@@ -594,9 +594,9 @@ class DatePicker extends Component {
|
|
|
594
594
|
const { description, descriptionStyle, renderDescription } = this.props;
|
|
595
595
|
if (renderDescription) return renderDescription;
|
|
596
596
|
return description ? (
|
|
597
|
-
<Text
|
|
597
|
+
<Text style={[{ marginBottom: Spacing.S }, descriptionStyle]}>
|
|
598
598
|
{description}
|
|
599
|
-
</Text
|
|
599
|
+
</Text>
|
|
600
600
|
) : null;
|
|
601
601
|
};
|
|
602
602
|
|
|
@@ -64,14 +64,14 @@ const DatePickerInput = ({
|
|
|
64
64
|
ValueUtil.extractStyle(style),
|
|
65
65
|
otherStyle,
|
|
66
66
|
]}>
|
|
67
|
-
<Text
|
|
67
|
+
<Text
|
|
68
68
|
style={[
|
|
69
69
|
styles.defaultText,
|
|
70
70
|
ValueUtil.extractStyle(textStyle),
|
|
71
71
|
isEmpty(selected) ? { color: Colors.black_09 } : {},
|
|
72
72
|
]}>
|
|
73
73
|
{isEmpty(selected) ? format : selected}
|
|
74
|
-
</Text
|
|
74
|
+
</Text>
|
|
75
75
|
{showRightIcon ? (
|
|
76
76
|
<Image
|
|
77
77
|
source={icon || IconSource.ic_calendar}
|
package/datePicker/ListPicker.js
CHANGED
|
@@ -63,9 +63,9 @@ export default class ListPicker extends Component {
|
|
|
63
63
|
|
|
64
64
|
renderRight = () => (
|
|
65
65
|
<TouchableOpacity onPress={this.onPressChoose}>
|
|
66
|
-
<Text
|
|
66
|
+
<Text style={{ fontWeight: 'bold', color: Colors.pink_05 }}>
|
|
67
67
|
{SwitchLanguage.save}
|
|
68
|
-
</Text
|
|
68
|
+
</Text>
|
|
69
69
|
</TouchableOpacity>
|
|
70
70
|
);
|
|
71
71
|
|
|
@@ -187,7 +187,7 @@ export default class WheelPicker extends Component {
|
|
|
187
187
|
const { preFix, bottomOffset } = this.props;
|
|
188
188
|
return (
|
|
189
189
|
<View style={{ flex: 1, height: heightContain + 40 }}>
|
|
190
|
-
<Text
|
|
190
|
+
<Text
|
|
191
191
|
weight="bold"
|
|
192
192
|
style={{
|
|
193
193
|
color: Colors.black_17,
|
|
@@ -195,7 +195,7 @@ export default class WheelPicker extends Component {
|
|
|
195
195
|
marginBottom: 3,
|
|
196
196
|
}}>
|
|
197
197
|
{DatePickerHelper.capitalizeFirstLetter(preFix || '')}
|
|
198
|
-
</Text
|
|
198
|
+
</Text>
|
|
199
199
|
<View
|
|
200
200
|
style={{
|
|
201
201
|
flex: 1,
|