docs: add vite faq

This commit is contained in:
chenjiahan
2020-12-17 19:41:23 +08:00
parent 3bfd52f174
commit 6fb4381220
2 changed files with 15 additions and 7 deletions

View File

@@ -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>
```