https://github.com/soakit/vue-comp-reuse-demo
https://github.com/soakit/vue-comp-reuse-demo
component hoc reuse-component vue
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/soakit/vue-comp-reuse-demo
- Owner: soakit
- Created: 2018-03-23T04:01:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T08:37:18.000Z (over 8 years ago)
- Last Synced: 2025-05-19T18:19:08.458Z (about 1 year ago)
- Topics: component, hoc, reuse-component, vue
- Language: JavaScript
- Size: 316 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-comp-reuse-demo
[Visit Demo](http://soakit.github.io/vue-comp-reuse-demo)
0 : 不考虑组件复用
1 & 2: mixin组件复用
3 & 4: hoc组件复用
5 & 6: vue-hoc组件复用
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).