Skip to content

Commit 63e0365

Browse files
committed
style: 格式化代码
1 parent 80ed2da commit 63e0365

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

build/vite-plugin-about/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"outDir": "./lib"
1010
},
1111
"include": ["./src/**/*.ts", "../../build/vite.config.base.ts"],
12-
"exclude": ["lib", "node_modules"],
12+
"exclude": ["lib", "node_modules"]
1313
}

build/vite.config.base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
* import pkg from './package.json' with {type: 'json'}
1313
* ```
1414
*/
15-
export function buildPostBanner(pkg: unknown) {
16-
return (chunk: {isEntry: boolean}): string => {
15+
export function buildPostBanner(pkg: { name: string; version: string; homepage: string; license: string }) {
16+
return (chunk: { isEntry: boolean }): string => {
1717
if (chunk.isEntry) {
1818
return `/*!
1919
* ${pkg.name} v${pkg.version}
2020
* ${pkg.homepage}
2121
* ${pkg.license} licensed
2222
*/`;
23-
}else {
23+
} else {
2424
return '';
2525
}
2626
};

packages/admin/src/pages/roles/roles.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ export function Roles(props: Props): JSX.Element {
8989
header={currentID.getValue() ? l.t('_p.editItem') : l.t('_p.newItem')}
9090
footer={
9191
<>
92-
<Dialog.CancelButton value="cancel" onclick={save}>{l.t('_c.cancel')}</Dialog.CancelButton>
92+
<Dialog.CancelButton value="cancel" onclick={save}>
93+
{l.t('_c.cancel')}
94+
</Dialog.CancelButton>
9395
<Dialog.AcceptButton value="accept">{l.t('_c.ok')}</Dialog.AcceptButton>
9496
</>
9597
}

0 commit comments

Comments
 (0)