【发布时间】:2020-08-29 20:28:01
【问题描述】:
我是 vuetify 的新手,我一直不知道如何正确使用 v-select。我将选择值从 API 拉到一个名为 FormatTypes 的商店,看起来像这样:
[{"id":5,"formatlabel":"RDBMS Table or View"}
,{"id":6,"formatlabel":"Microsoft Access"}
....
,{"id":23,"formatlabel":"ArcGIS for Server image services"}]
我的 v-select:
<v-select font-weight-regular subtitle-1
v-model=dataset.formattypeid
:name="FormatTypes"
:items="FormatTypes"
:item-value="FormatTypes.id"
:item-text="FormatTypes.formatlabel"
:label="FormatTypeLbl"
:outlined=true
>
我已经使用了 item-text/item-value 道具,但我仍然在显示中获得“object Object”。
【问题讨论】:
标签: vuex vuetify.js v-select