This is an Vant SFC Playground. Detail vercel.app Or zhixiaoqiang.github.io
Try Vant in the Playground. Currently only Vant 3+ is supported
- ⚡️ Vant 3+
- 🤙🏻 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
coming soon
- 🛠️ Support Vant dark mode
- 🛠️ Support on-demand introduction
- 🛠️ CLI
- 🔑 Fully Typed APIs
- 🛠️ Support Vant dark mode
- 😃 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 repogit clone https://github.com/zhixiaoqiang/sfc-playground-vant --depth 1
. - config
src/config.ts
、src/store.ts
andsrc/components/npm-version-switch/helps.ts
.
then it'll be your repository totally.
To build the playground, run the following command:
pnpm build
To develop the playground, run the following command:
pnpm dev
- Execute
pnpm changeset
to add a changeset. - Execute
pnpm changeset version
to changeCHANGELOG.md
. - Execute
pnpm changeset publish
to publishnpm library
. [can skip] - Execute
git commit
, this command will triggerlint-staged
andcommitzen
. - Execute
git push
to triggerGithub Actions
orvercel Deploy
Please refer to CHANGELOG for details.
MIT