This is an Vant SFC Playground. Click the vercel.app Or zhixiaoqiang.github.io link to view.
NOTE! The reason why this is designed to manually
import { injectVant }is to be more universally compatible with any component library, Not only Vant.
Try Vant in the Playground. Currently only Vant 3+ is supported
- โก๏ธ Vant 3+
- โก๏ธ PreLoad ImportsFile,Instantly display content(e0d5c6)
- ๐ค๐ป Free switch Vant/Vue version, and more
- ๐ ๏ธ Rich Features
- โ๏ธ Deploy on Netlify/vercel/GitHub Pages, zero-config
- ๐ก Support the Typescript
- ๐ Easy to create your own
- ๐คฉ Download project support generated package.json by user input (13ee3f)
- ๐ ๏ธ Smarter and more efficient npm scripts
coming soon
- ๐ ๏ธ Support Vant dark mode
- ๐ ๏ธ Support on-demand introduction
- ๐ ๏ธ CLI
- ๐ Fully Typed API
- ๐ Switch CDN
This SFC Playground has some additional tools already setup for you:
- pnpm as a packages manager
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
- Vant a Lightweight Mobile UI Components built on Vue
- @vue/repl for Vue SFC REPL as a Vue 3 component
- Click
Use this template, and clone your repodegit https://github.com/zhixiaoqiang/sfc-playground-vant#mainorgit clone https://github.com/zhixiaoqiang/sfc-playground-vant --depth 1. degit - Adjust the following files.
src
โโโ components
โ โโโ npm-version-switch
โ โโโ helps.ts # add version switch feature
โโโ config.ts # config welcome codeใCDNใadditionalFiles...
โโโ store.ts # includes base functions...then it'll be your repository totally.
To build the playground, run the following command:
pnpm buildTo develop the playground, run the following command:
pnpm dev- Execute
pnpm changesetto add a changeset. - Execute
pnpm changeset versionto changeCHANGELOG.md. - Execute
pnpm changeset publishto publishnpm library. [can skip] - Execute
git commit, this command will triggerlint-stagedandcommitzen. - Execute
git pushto triggerGithub Actionsorvercel Deploy
Please refer to CHANGELOG for details.
Inspired by Evan You's Vue SFC Playground
MIT