milk-vue

0.9.3 • Public • Published

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

Please make sure to read the Contributing Guide before making a pull request.

Thanks

LICENSE

MIT

/milk-vue/

    Package Sidebar

    Install

    npm i milk-vue

    Weekly Downloads

    3

    Version

    0.9.3

    License

    MIT

    Last publish

    Collaborators

    • febobo