官网的实例中,并没有再a-select-option中写value,但是实际使用的过程中,可能还是需要加上value

                <a-select
                  style="width: 150px;margin-left:16px"
                  v-model="skillPick1"
                >
                  <a-select-option v-for="i in List1" :key="i.key" :value="i.key">
                    {{ i.value }}
                  </a-select-option>
                </a-select>





list=[{key:...,value:...},{key:...,value:...},{key:...,value:...},{key:...,value:...}...]

Logo

前往低代码交流专区

更多推荐