w-component-vue
A simple component for vue(vue2).
135,320
5
| Install | |
|---|---|
npm install w-component-vue |
|
| Latest Version: | 2.5.31 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Oct 19, 2026 |
| Links: | GitHub · npm |
Maintainer: semisphere
w-component-vue
A simple component for vue(vue2).
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):
npm i w-component-vue
Import all components:
//choose component
<w-text
...
></w-text>
//import
import WComponentVue from 'w-component-vue'
//use
Vue.use(WComponentVue)
Import one component:
//choose component
<w-text
...
></w-text>
//import
import WText from 'w-component-vue/src/components/WText.vue'
//component
Vue.component('w-text',WText)
//or
export default {
components: {
WText,
//or
'w-text': WText,
},
...
}
In a browser(UMD module):
Add script for vue.
<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.min.js"></script>
[Optional] Add link for icon.
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@7.2.96/css/materialdesignicons.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css" rel="stylesheet">
Add script for w-component-vue.
<script src="https://cdn.jsdelivr.net/npm/w-component-vue@2.5.31/dist/w-component-vue.umd.js"></script>
Directly use:
//app and component
<div id="app">
<w-text
...
></w-text>
</div>
//use
Vue.use(window['w-component-vue'])
//new
new Vue({
el: '#app',
data: {
...
}
})
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 2.5.31 | MIT | |
| 2.5.30 | MIT | |
| 2.5.29 | MIT | |
| 2.5.28 | MIT | |
| 2.5.27 | MIT | |
| 2.5.26 | MIT | |
| 2.5.25 | MIT | |
| 2.5.24 | MIT | |
| 2.5.23 | MIT | |
| 2.5.22 | MIT | |
| 2.5.21 | MIT | |
| 2.5.20 | MIT | |
| 2.5.19 | MIT | |
| 2.5.18 | MIT | |
| 2.5.17 | MIT | |
| 2.5.16 | MIT | |
| 2.5.15 | MIT | |
| 2.5.14 | MIT | |
| 2.5.13 | MIT | |
| 2.5.12 | MIT | |
| 2.5.11 | MIT | |
| 2.5.10 | MIT | |
| 2.5.9 | MIT | |
| 2.5.8 | MIT | |
| 2.5.7 | MIT | |
| 2.5.6 | MIT | |
| 2.5.5 | MIT | |
| 2.5.4 | MIT | |
| 2.5.3 | MIT | |
| 2.5.2 | MIT |
Showing the latest 30 of 690. See every release on npm