1.0.6 • Published 2 months ago

w-plot-vue v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

w-plot-vue

A plot component for vue(vue2).

language language npm version license gzip file size npm download npm download jsdelivr download

Documentation

To view documentation or get support, visit docs.

Example

To view some examples for more understanding, visit examples:

all components: web [source code]

Installation

Using npm(ES6 module):

Note: w-plot-vue is mainly dependent on w-component-vue and wsemi.

npm i w-plot-vue

Import all components:

//choose component
<w-plot-2d
    ...
></w-plot-2d>

//import
import WPlotVue from 'w-plot-vue'

//use
Vue.use(WPlotVue)

Import one component:

//choose component
<w-plot-2d
    ...
></w-plot-2d>

//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,
    },
    ...
}

In a browser(UMD module):

Note: umd file of w-plot-vue is mainly dependent on vue.

Necessary Add script for w-plot-vue.

<script src="https://cdn.jsdelivr.net/npm/w-plot-vue@1.0.6/dist/w-plot-vue.umd.js"></script>

Directly use:

//app and component
<div id="app">
    <w-plot-2d
        ...
    ></w-plot-2d>
</div>

//use
Vue.use(window['w-plot-vue'])

//new
new Vue({
    el: '#app',
    data: {
        ...
    }
})
1.0.6

2 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.0

5 months ago