Logo white

other / mew-iview

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • mew-iview
  • components
  • select
  • option-group.vue
  • update Select component ...
    e4ebd304
    update Select component:add filterable
    梁灏 authored
    2016-10-24 11:44:11 +0800  
    Browse Code »
option-group.vue 581 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<template>
    <li :class="[`${prefixCls}-wrap`]">
        <div :class="[`${prefixCls}-title`]">{{ label }}</div>
        <ul>
            <li :class="[`${prefixCls}`]"><slot></slot></li>
        </ul>
    </li>
</template>
<script>
    const prefixCls = 'ivu-select-group';

    export default {
        props: {
            label: {
                type: String,
                default: ''
            }
        },
        data () {
            return {
                prefixCls: prefixCls,
                hidden: false    // for search
            }
        }
    }
</script>