docs: import quick start document (#10945)

This commit is contained in:
neverland
2022-08-21 09:52:09 +08:00
committed by GitHub
parent ec1d32db4a
commit b4072ef2bd
4 changed files with 69 additions and 73 deletions
+4
View File
@@ -67,10 +67,14 @@ pnpm add vant
```js
import { createApp } from 'vue';
// 1. Import the components you need
import { Button } from 'vant';
// 2. Import the components style
import 'vant/lib/index.css';
const app = createApp();
// 3. Register the components you need
app.use(Button);
```