Blame view

src/components/cascader/casitem.vue 746 Bytes
c463ab87   梁灏   add Cascader
1
2
3
4
5
  <template>
      <li :class="classes">{{ data.label }}<i v-if="data.children && data.children.length" class="ivu-icon ivu-icon-ios-arrow-right"></i></li>
  </template>
  <script>
      export default {
47a7f21d   梁灏   support Cascader
6
          name: 'Casitem',
c463ab87   梁灏   add Cascader
7
8
9
10
11
12
13
14
15
16
          props: {
              data: Object,
              prefixCls: String,
              tmpItem: Object
          },
          computed: {
              classes () {
                  return [
                      `${this.prefixCls}-menu-item`,
                      {
bd4e3b9b   梁灏   update Cascader
17
18
                          [`${this.prefixCls}-menu-item-active`]: this.tmpItem.value === this.data.value,
                          [`${this.prefixCls}-menu-item-disabled`]: this.data.disabled
c463ab87   梁灏   add Cascader
19
                      }
b0893113   jingsam   :art: add eslint
20
                  ];
c463ab87   梁灏   add Cascader
21
              }
c463ab87   梁灏   add Cascader
22
          }
b0893113   jingsam   :art: add eslint
23
24
      };
  </script>