GithubHelp home page GithubHelp logo

jiangbee / vant-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vant-ui/vant-demo

0.0 0.0 0.0 960 KB

Collection of vant demos.

Home Page: https://youzan.github.io/vant/#/zh-CN/demo

License: MIT License

JavaScript 23.24% HTML 11.03% Vue 64.73% TypeScript 1.00%

vant-demo's Introduction

Vant-demo

Vant 示例工程,基于 vue-cli 3 搭建。

目录

base

base 工程示范了如何用 vant 搭建几个简单的电商页面,包含如下功能:

  • 基于 vant 搭建
  • 基于 vue-router 的单页面应用
  • 组件按需引入
  • 视图异步加载

rem

rem 工程在 base 工程的基础上增加了移动端 rem 适配的配置。

theme

theme 工程在 base 工程的基础上增加了自定义主题色的配置。

typescript

基于 typescript 的工程,使用 ts-import-plugin 实现组件按需引入。

预览

demos

开发命令

# 安装依赖
npm install

# 本地开发
# 通过 localhost:8080 访问页面
npm run serve

# 生产环境构建
npm run build

# 代码格式校验
npm run lint

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.