Awesome Open Source
Awesome Open Source

logo logo

Docs

中文版

Install

npm i milk-vue

Quickstart

1. Use babel-plugin-import (Recommended)

# Install babel-plugin-import
npm i babel-plugin-import -D
// set babel config in .babelrc or babel-loader
{
  "plugins": [
    ["import", { "libraryName": "milk-vue", "style": true }]
  ]
}

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

import { Button } from 'milk-vue';

2. Manually import

import { Button } from 'milk-vue/lib/button';

3. Import all components

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

Vue.use(Milk);

Contribution

Contributioner

Thanks

LICENSE

MIT


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,891
vue (4,376
ant-design (112