Skip to content

Commit

Permalink
chore(scripts): 更新new-component脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxinssfd committed Jun 29, 2023
1 parent 569f647 commit 46d6eed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/new-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ function initDoc(): InitRes {
const content = `
---
category: Components
title: ${config.componentName}
subtitle: ${config.componentName}
title: ${config.componentName} ${config.componentName}
atomId: ${config.componentName}
demo:
cols: 2
group:
Expand Down Expand Up @@ -172,7 +172,7 @@ function appendIndex() {
Path.resolve(config.componentsPath, 'index.ts'),
tsContent,
);
const scssContent = `@import './${config.name}';`;
const scssContent = `\n@import './${config.name}';`;
Fse.appendFileSync(
Path.resolve(config.componentsPath, 'index.scss'),
scssContent,
Expand Down

0 comments on commit 46d6eed

Please sign in to comment.