优化假期显示
parent
80d3bbe584
commit
d7ff4db1d3
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "bash-calendar",
|
||||
"description": "终端版万年历",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"author": "yutent <yutent.io@gmail.com>",
|
||||
"bin": {
|
||||
"calendar": "index.js",
|
||||
|
|
|
@ -164,7 +164,11 @@ function drawTbody(year, month) {
|
|||
case 1:
|
||||
let right = ' '
|
||||
if (tmp.custom) {
|
||||
right = chalk.blue(tmp.custom)
|
||||
if (tmp.custom === '班') {
|
||||
right = chalk.red(tmp.custom)
|
||||
} else {
|
||||
right = chalk.green.dim(tmp.custom)
|
||||
}
|
||||
}
|
||||
if (tmp.picked) {
|
||||
tr += ' ' + chalk.bgBlue.whiteBright.bold(' ' + tmp.day + ' ') + right + VLINE
|
||||
|
|
Loading…
Reference in New Issue