mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
docs: add vite faq
This commit is contained in:
@@ -33,13 +33,14 @@ The easiest way to use Vant is to include a CDN link in the html file, after whi
|
||||
template: `<van-button>Button</van-button>`,
|
||||
});
|
||||
app.use(vant);
|
||||
app.mount('#app');
|
||||
|
||||
// Register Lazyload directive
|
||||
app.use(vant.Lazyload);
|
||||
|
||||
// Call function component
|
||||
vant.Toast('Message');
|
||||
|
||||
// Register Lazyload directive
|
||||
app.use(vant.Lazyload);
|
||||
app.mount('#app');
|
||||
</script>
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user