Skip to content

Commit

Permalink
docs(style): fixed #1076
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Sep 8, 2021
1 parent d50868c commit 84dba56
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,16 +437,6 @@ export default Breadcrumbs;

如果模块只有一个输出值,就使用`export default`,如果模块有多个输出值,就不使用`export default``export default`与普通的`export`不要同时使用。

不要在模块输入中使用通配符。因为这样可以确保你的模块之中,有一个默认输出(export default)。

```javascript
// bad
import * as myObject from './importModule';

// good
import myObject from './importModule';
```

如果模块默认输出一个函数,函数名的首字母应该小写。

```javascript
Expand Down

0 comments on commit 84dba56

Please sign in to comment.