GithubHelp home page GithubHelp logo

mysongce / vant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from youzan/vant

0.0 2.0 0.0 8.59 MB

A Vue.js 2.0 Mobile UI From YouZan

Home Page: https://www.youzanyun.com/zanui/vue

License: Other

JavaScript 51.58% Shell 0.99% Vue 32.10% CSS 15.32%

vant's Introduction

有赞logo

项目logo

A Vue.js 2.0 Mobile UI at YouZan

Build Status Coverage Status npm version downloads

访问中文版

Install

npm i -S vant

Usage

Use babel-plugin-import (Recommended)

// .babelrc or babel-loader option
{
  "plugins": [
    ["import", { "libraryName": "vant", "style": true }]
  ]
}

Then you can import components from vant, equivalent to import manually below.

// import js and css modularly, parsed by babel-plugin-import
import { Button } from 'vant';

Manually import

import { Button } from 'vant';
import 'vant/lib/vant-css/button.css';

Import all components

import Vue from 'vue';
import vant from 'vant';
import 'vant/lib/vant-css/index.css';

Vue.use(vant);

Development

Start development mode:

npm run dev

Visit http://localhost:8080 to see an example of all components.

Preview

You can scan the following QR code to access the demo:

zanui_vue_mobile_qrcode

LICENSE

MIT

vant's People

Contributors

airyland avatar boseny avatar chenjiahan avatar cookfront avatar pangxie1991 avatar radicalviva avatar raistlin916 avatar tinysymphony avatar tsxuehu avatar w91 avatar zwkang avatar

Watchers

 avatar  avatar

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.