2016-12-07 12:10:47 +08:00
|
|
|
<template>
|
2016-12-07 20:45:21 +08:00
|
|
|
<li :class="[prefixCls + '-item-group']">
|
|
|
|
<div :class="[prefixCls + '-item-group-title']">{{ title }}</div>
|
|
|
|
<ul><slot></slot></ul>
|
|
|
|
</li>
|
2016-12-07 12:10:47 +08:00
|
|
|
</template>
|
|
|
|
<script>
|
2016-12-07 20:45:21 +08:00
|
|
|
const prefixCls = 'ivu-menu';
|
|
|
|
|
2016-12-07 12:10:47 +08:00
|
|
|
export default {
|
2016-12-07 20:45:21 +08:00
|
|
|
name: 'MenuGroup',
|
|
|
|
props: {
|
|
|
|
title: {
|
|
|
|
type: String,
|
|
|
|
default: ''
|
|
|
|
}
|
|
|
|
},
|
2016-12-07 12:10:47 +08:00
|
|
|
data () {
|
2016-12-07 20:45:21 +08:00
|
|
|
return {
|
|
|
|
prefixCls: prefixCls
|
2016-12-25 22:49:42 +08:00
|
|
|
};
|
2016-12-07 20:45:21 +08:00
|
|
|
}
|
2016-12-25 22:49:42 +08:00
|
|
|
};
|
|
|
|
</script>
|