mirror of https://github.com/ElemeFE/element
34 lines
596 B
Vue
34 lines
596 B
Vue
<template>
|
|
<ul class="el-select-group__wrap">
|
|
<li class="el-select-group__title">{{ label }}</li>
|
|
<li>
|
|
<ul class="el-select-group">
|
|
<slot></slot>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</template>
|
|
|
|
<script type="text/babel">
|
|
import emitter from 'main/mixins/emitter';
|
|
|
|
export default {
|
|
mixins: [emitter],
|
|
|
|
name: 'el-option-group',
|
|
|
|
props: {
|
|
label: String,
|
|
disabled: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
if (this.disabled) {
|
|
this.broadcast('option', 'disableOptions');
|
|
}
|
|
}
|
|
};
|
|
</script> |