Blame view

components/select/option-group.vue 533 Bytes
e355dd49   梁灏   add Select Component
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
  <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
              }
          }
      }
  </script>