A plot component for vue(vue2).
npm install w-plot-vuew-component-vue and wsemi.
alias
npm i w-plot-vue
`
Import all components:
`alias
//choose component
...
>
//import
import WPlotVue from 'w-plot-vue'
//use
Vue.use(WPlotVue)
`
Import one component:
`alias
//choose component
...
>
//import
import WPlot2d from 'w-plot-vue/src/components/WPlot2d.vue'
//component
Vue.component('w-plot-2d',WPlot2d)
//or
export default {
components: {
WPlot2d,
//or
'w-plot-2d': WPlot2d,
},
...
}
`
$3
> Note: umd file of w-plot-vue is mainly dependent on vue.
[Necessary] Add script for w-plot-vue.
`alias
`
Directly use:
`alias
//app and component
...
>
//use
Vue.use(window['w-plot-vue'])
//new
new Vue({
el: '#app',
data: {
...
}
})
``