为了账号安全,请及时绑定邮箱和手机立即绑定

elementUI el-option-group + vue filter 过滤问题?

elementUI el-option-group + vue filter 过滤问题?

HUH函数 2019-02-26 17:16:31
<el-option-group        v-for="(letter,index) in letters"        :key="letter"        class="selectgrop"        :label="letter">        <el-option          :class="{active: activeIndex===index}"          class="ty-opg-opt"          v-for="(item,index) in sportDatabaseOrderBy | item.firstLetter== letter"           // 这里我知道是错误的, 主要是我想过滤出item.firstLetter== letter 的数据 请问该怎么做, 谢谢大佬们          :key="item.id"          :label="item.majorKindName"          :value="item.mets">          <span style="color: blue">{{item.majorKindName}}</span>          <span>{{item.activityName}}</span>          <!--"id": "5a6697078412379d5a549f74",-->          <!--"energyId": 4005,-->          <!--"mets": 4.5,-->          <!--"majorKindName": "钓鱼和打猎",-->          <!--"activityName": "钓鱼, 螃蟹钓鱼"-->        </el-option>        <!-- v-for="(item,index) in sportDatabase.filter|item.firstLetter== letter" -->      </el-option-group>
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 898 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号