我的项目中有一个 v-select,其中包含来自本地存储的一组项目。我想要实现的是允许用户在 v-select 中输入一些数据(一些数据,我的存储或项目中不存在的数据),以及从 v-select 的项目中选择数据并允许他们保存它。我试图从@change 做到这一点,但对我来说没有运气。有没有办法用 vuetify/vue 正确地做到这一点,或者我应该使用一些额外的库?这是我的 v-select 代码
<v-select
item-text="title"
item-value="title"
value="source.position"
label="position"
dense
autocomplete
:items="getPositions()"
@change="jobPositionUpdate">
</v-select>
Run Code Online (Sandbox Code Playgroud)
先感谢您!