1.1.2 • Published 5 years ago
mf-components-business v1.1.2
Install
npm i mf-components-business
Usage
Full loading
// Import the package
import mfBusiness from 'mf-components-business'
// Import the stylesheet
import '../node_modules/mf-components-business/lib/style/root.css'
// Use components as plug-ins ( Options will be available shortly )
Vue.use(mfBusiness [, options ])
Demand loading
First, install the babel plugin
npm install babel-plugin-component -D
Then,edit .babelrc file
{
"presets": [
["es2015", { "modules": false }]
],
"plugins": [["component", [
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
]]]
}
Last
// export {
// mGantt,
// mKanban,
// mFullCalendar,
// mProductPlan
// }
import Vue from 'vue'
import { mFullCalendar } from 'mf-component-busines'
Vue.use(mFullCalendar [, options ])