<script type="text/javascript">
/**
* @component Item/ItemDivider
* @description
*
* ## 列表组件 / ItemDivider分割
*
* @props {String} [mode='ios'] - 模式
* @props {String} [color] - 颜色
*
* @demo #/list
* */
import ItemMixin from '../item/item-mixin.vue'
export default {
mixins: [ItemMixin],
name: 'ItemDivider',
data () {
return {
itemTypeName: 'item-divider'
}
},
computed: {
// 颜色
colorClass () {
return this.color ? (`${this.itemTypeName}-${this.mode}-${this.color}`) : ''
},
itemTypeClass () {
return `ion-${this.itemTypeName} ${this.itemTypeName} ${this.itemTypeName}-${this.mode}`
}
}
}
</script>