-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xinshu.sxs
committed
Aug 1, 2022
1 parent
be9b88e
commit defdbee
Showing
23 changed files
with
1,923 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
{ "plugins": ["./scripts/umi.js"] } | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.wrapper { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
<calendar | ||
className="wrapper" | ||
startDate="{{startDate}}" | ||
endDate="{{endDate}}" | ||
date="{{date}}" | ||
holidayList="{{holidayList}}" | ||
customDateList="{{customDateList}}" | ||
disableDates="{{disableDates}}" | ||
onChange="onChange" | ||
selectionMode="range" | ||
showConfirmButton="{{true}}" | ||
onClose="onClose" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
Page({ | ||
data: { | ||
startDate: '2022-07-01', | ||
endDate: '2022-10-26', | ||
date: '2022-08-01', | ||
holidayList: [ | ||
{ | ||
name: '国庆', | ||
range: ['2022-10-01', '2022-10-07'], | ||
type: 'holiday', | ||
day: '2022-10-01' | ||
} | ||
], | ||
customDateList: [ | ||
{ | ||
date: '2022-07-17', | ||
text: '未出账', | ||
color: '#999999' | ||
}, | ||
{ | ||
date: '2022-07-18', | ||
text: '未出账', | ||
color: '#999999' | ||
}, | ||
{ | ||
date: '2022-07-19', | ||
text: '未出账', | ||
color: '#999999' | ||
}, | ||
{ | ||
date: '2022-07-20', | ||
text: '未出账', | ||
color: '#999999' | ||
}, | ||
{ | ||
date: '2022-07-21', | ||
text: '未出账', | ||
color: '#999999' | ||
}, | ||
{ | ||
date: '2022-08-25', | ||
text: '+100', | ||
color: '#F93A4A' | ||
}, | ||
{ | ||
date: '2022-08-24', | ||
text: '+100', | ||
color: '#F93A4A' | ||
}, | ||
{ | ||
date: '2022-08-23', | ||
text: '+100', | ||
color: '#F93A4A' | ||
}, | ||
{ | ||
date: '2022-08-22', | ||
text: '+100', | ||
color: '#F93A4A' | ||
}, | ||
{ | ||
date: '2022-08-21', | ||
text: '+100', | ||
color: '#F93A4A' | ||
}, | ||
{ | ||
date: '2022-08-20', | ||
text: '-100', | ||
color: '#00B578' | ||
}, | ||
{ | ||
date: '2022-08-19', | ||
text: '-100', | ||
color: '#00B578' | ||
}, | ||
{ | ||
date: '2022-08-18', | ||
text: '-100', | ||
color: '#00B578' | ||
}, | ||
{ | ||
date: '2022-08-17', | ||
text: '-100', | ||
color: '#00B578' | ||
}, | ||
{ | ||
date: '2022-08-16', | ||
text: '-100', | ||
color: '#00B578' | ||
}, | ||
], | ||
disableDates: [ | ||
'2022-09-11', | ||
'2022-09-12', | ||
'2022-09-13', | ||
'2022-09-14', | ||
'2022-09-15', | ||
] | ||
}, | ||
onChange (date) { | ||
my.alert({ | ||
content: date | ||
}) | ||
}, | ||
onClose () { | ||
my.alert({ | ||
content: '组件关闭' | ||
}) | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"defaultTitle": "Calendar", | ||
"usingComponents": { | ||
"calendar": "../../../src/Calendar/index" | ||
}, | ||
"allowsBounceVertical": "NO" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.