修复一处样式
parent
0d35f290b7
commit
a1f5e065b4
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "bash-calendar",
|
"name": "bash-calendar",
|
||||||
"description": "终端版万年历",
|
"description": "终端版万年历",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"author": "yutent <yutent.io@gmail.com>",
|
"author": "yutent <yutent.io@gmail.com>",
|
||||||
"bin": {
|
"bin": {
|
||||||
"calendar": "index.js",
|
"calendar": "index.js",
|
||||||
|
|
|
@ -95,7 +95,7 @@ function drawThead(year, month) {
|
||||||
var dateStr = `${year}年${month + 1}月${' '.repeat(10)}${getHSEBYear(year, month)}`
|
var dateStr = `${year}年${month + 1}月${' '.repeat(10)}${getHSEBYear(year, month)}`
|
||||||
|
|
||||||
dateStr =
|
dateStr =
|
||||||
chalk.grey('| ') + chalk.cyan(dateStr) + ' '.repeat(75 - dateStr.length - 2) + chalk.grey('|')
|
chalk.grey('| ') + chalk.cyan(dateStr) + ' '.repeat(71 - dateStr.length - 2) + chalk.grey('|')
|
||||||
|
|
||||||
console.log(chalk.grey(' ' + '_'.repeat(76)))
|
console.log(chalk.grey(' ' + '_'.repeat(76)))
|
||||||
console.log(chalk.grey('|' + ' '.repeat(76) + '|'))
|
console.log(chalk.grey('|' + ' '.repeat(76) + '|'))
|
||||||
|
|
Loading…
Reference in New Issue