@momo-kits/calendar 0.0.55-beta.5 → 0.0.55-beta.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/CalendarPro.js +39 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/calendar",
3
- "version": "0.0.55-beta.5",
3
+ "version": "0.0.55-beta.6",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {
@@ -251,44 +251,46 @@ export default class CalendarPro extends Component {
251
251
  onPressNextArrow={this.onPressNextArrow}
252
252
  />
253
253
  <View style={styles.blueSeperator} />
254
- <View style={styles.viewDay}>
255
- {[1, 2, 3, 4, 5, 6, 7].map((item) => (
256
- <Text
257
- style={[
258
- styles.textDay,
259
- {
260
- color:
261
- item === 6 || item === 7
262
- ? Colors.red_05
263
- : Colors.black_12,
264
- },
265
- ]}
266
- key={item}>
267
- {Util.mapWeeKDate(item)}
268
- </Text>
269
- ))}
254
+ <View style={{ paddingHorizontal: Spacing.M }}>
255
+ <View style={styles.viewDay}>
256
+ {[1, 2, 3, 4, 5, 6, 7].map((item) => (
257
+ <Text
258
+ style={[
259
+ styles.textDay,
260
+ {
261
+ color:
262
+ item === 6 || item === 7
263
+ ? Colors.red_05
264
+ : Colors.black_12,
265
+ },
266
+ ]}
267
+ key={item}>
268
+ {Util.mapWeeKDate(item)}
269
+ </Text>
270
+ ))}
271
+ </View>
272
+ <MonthList
273
+ ref="MonthList"
274
+ today={this.today}
275
+ minDate={this.minDate}
276
+ maxDate={this.maxDate}
277
+ startDate={startDate}
278
+ endDate={endDate}
279
+ onChoose={this.onChoose}
280
+ i18n={i18n}
281
+ onScrollCalendar={this.onScrollCalendar}
282
+ isShowLunar={!isOffLunar && showLunar}
283
+ isDoubleDateMode={isDoubleDateMode}
284
+ tabSelected={tabSelected}
285
+ lunarConverter={this.converter}
286
+ holidays={holidays}
287
+ selectedDate={this.selectedDate}
288
+ priceList={priceListFormat}
289
+ labelFrom={labelFrom}
290
+ labelTo={labelTo}
291
+ isHideLabel={isHideLabel}
292
+ />
270
293
  </View>
271
- <MonthList
272
- ref="MonthList"
273
- today={this.today}
274
- minDate={this.minDate}
275
- maxDate={this.maxDate}
276
- startDate={startDate}
277
- endDate={endDate}
278
- onChoose={this.onChoose}
279
- i18n={i18n}
280
- onScrollCalendar={this.onScrollCalendar}
281
- isShowLunar={!isOffLunar && showLunar}
282
- isDoubleDateMode={isDoubleDateMode}
283
- tabSelected={tabSelected}
284
- lunarConverter={this.converter}
285
- holidays={holidays}
286
- selectedDate={this.selectedDate}
287
- priceList={priceListFormat}
288
- labelFrom={labelFrom}
289
- labelTo={labelTo}
290
- isHideLabel={isHideLabel}
291
- />
292
294
  </View>
293
295
  {!isOffLunar && (
294
296
  <View style={styles.viewLunar}>