从api获取选项v-select

时间:2018-12-05 00:56:49

标签: api vue.js axios

能给我一个例子,如何使用v-select从API获取数据吗?

<v-select
        :debounce="250"
        :on-search="getOptions"
        v-validate="'required'"
        :data-vv-as="$t('checkout.title')"
        :key="`title-${index + 1}`"
        :id="`title-${index + 1}`"
        :name="`title-${index + 1}`"
        :class="{ 'is-danger': errors.has(`title-${index + 1}`) }"
        :options="">
      </v-select>

enter image description here

谢谢

0 个答案:

没有答案