search

Home  >  Q&A  >  body text

node.js - The list rendered by v-for has more than a dozen items, but some of them need to add drop-down selection items. What should I do?


The list I rendered has more than a dozen items, but some of them need to add drop-down selection items. How do I do this? ??

<li v-for="(item,key) in info" v-if="key==='企业信息'">
        <mu-text-field v-for="part in item.fields" :label="part.label" :id="part.field" :hintText="'请输入'+part.label" v-model="part.value" />
      </li>
大家讲道理大家讲道理2709 days ago1034

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-06-24 09:45:48

    Write select directly under li and use v-if conditional rendering

    reply
    0
  • Cancelreply