mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
[changelog] 2.0.0-beta.0
This commit is contained in:
@@ -88,7 +88,7 @@ module.exports = {
|
||||
```js
|
||||
// 接着你可以在代码中直接引入 Vant 组件
|
||||
// 插件会自动将代码转化为方式二中的按需引入形式
|
||||
import { Button, Cell } from 'vant';
|
||||
import { Button } from 'vant';
|
||||
```
|
||||
|
||||
> 如果你在使用 TypeScript,可以使用 [ts-import-plugin](https://github.com/Brooooooklyn/ts-import-plugin) 实现按需引入
|
||||
|
Reference in New Issue
Block a user