/milk-vue

milk-vue

Primary LanguageJavaScriptOtherNOASSERTION

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