sort-tab-selector
v1.0.0
Published
A sort-tab-selector component by vue.
Downloads
4
Readme
sort-tab-selector
A sort-tab-selector component by vue.
Install
# install
npm install --save sort-tab-selector
预览
##use
<template>
<div id="app">
<sort-tab-selector :sortTypeList="sortTypeList" @SelectTab="SelectTab"></sort-tab-selector>
<span>{{selectTab}}</span>
</div>
</template>
<script>
import sortTabSelector from './myPlugin/sortTabSelector'; // 引入
import {sortTypelist} from './data'; // 引入
export default {
name: 'app',
components: {
sortTabSelector
},
data () {
return {
sortTypeList: sortTypelist,
selectTab: ""
}
},
methods: {
SelectTab(value) {
this.selectTab = value
}
}
}
</script>