mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] fix manually import
This commit is contained in:
parent
bdd68060b4
commit
6ac8a8d2c0
@ -62,7 +62,7 @@ import { Button } from 'vant';
|
||||
#### 2. Manually import
|
||||
|
||||
```js
|
||||
import { Button } from 'vant/lib/button';
|
||||
import Button from 'vant/lib/button';
|
||||
import 'vant/lib/vant-css/base.css';
|
||||
import 'vant/lib/vant-css/button.css';
|
||||
```
|
||||
|
@ -59,7 +59,7 @@ import { Button } from 'vant';
|
||||
#### 方式二. 按需引入组件
|
||||
|
||||
```js
|
||||
import { Button } from 'vant/lib/button';
|
||||
import Button from 'vant/lib/button';
|
||||
import 'vant/lib/vant-css/base.css';
|
||||
import 'vant/lib/vant-css/button.css';
|
||||
```
|
||||
|
@ -34,7 +34,7 @@ import { Button } from 'vant';
|
||||
#### 2. Manually import
|
||||
|
||||
```js
|
||||
import { Button } from 'vant/lib/button';
|
||||
import Button from 'vant/lib/button';
|
||||
import 'vant/lib/vant-css/base.css';
|
||||
import 'vant/lib/vant-css/button.css';
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ import { Button } from 'vant';
|
||||
#### 方式二. 按需引入组件
|
||||
|
||||
```js
|
||||
import { Button } from 'vant/lib/button';
|
||||
import Button from 'vant/lib/button';
|
||||
import 'vant/lib/vant-css/base.css';
|
||||
import 'vant/lib/vant-css/button.css';
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user