vue-comparison
v1.0.1
Published
A Vue.js project
Downloads
6
Readme
vue-comparison
A Vue component
类是汽车之家的车辆参数对比
Live demo
Installation
NPM
$ npm install vue-comparison
CommonJS
var comparison = require('vue-comparison/src/Comparison.vue');
new Vue({
components: {
'comparison': comparison
}
})
ES6
import { Comparison } from 'vue-comparison'
new Vue({
components: {
Comparison
}
})
<comparison
:data = "mockData"
:contrast = "contrast"
:props = "compProps"
@add-item = "addItemHander"
>
<div slot="symbol">
<span class="tp-icon">- 无</span>
<span class="tp-icon">* 选配</span>
<span class="tp-icon">+ 标配</span>
</div>
</comparison>