Vue选择-使用v-bind:value设置默认选择值

时间:2019-03-14 18:18:14

标签: vue.js v-for vue-select

我正在使用vue-select返回输入的搜索结果。由于这是在编辑屏幕上,因此我想将每个对象的默认选择值设置为以前保存的内容。

我了解我们应该使用x = [53, 62, 69, 71, 78, 89, 99, 106, 118, 133, 140, 151, 157, 164]; y = [211, 227, 233, 245, 262, 278, 283, 289, 282, 276, 268, 259, 252, 246]; idxmin = find(y == max(y)); idxmax = find(y == min(y)); plot(x,y,'-p','MarkerIndices',[idxmin idxmax],... 'MarkerFaceColor','red',... 'MarkerSize',15) 来设置选定的值,但是,我需要根据特定page = PAGE page { 10 = FLUIDTEMPLATE 10 { dataProcessing { 10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor 10 { special = rootline special.range = 0|-1 special.reverseOrder = 1 as = rootline dataProcessing { 10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor 10 { if.isTrue.field = tx_myext_topofferitem table = tx_myext_topofferitem pidInList.field = uid selectFields = tx_myext_topofferitem.* join = tt_content_tx_topofferitem_mm ON tt_content_tx_topofferitem_mm.uid_foreign = tx_myext_topofferitem.uid where.data = field:uid where.intval = 1 where.wrap = tt_content_tx_topofferitem_mm.uid_local=| orderBy = tt_content_tx_topofferitem_mm.sorting as = tx_myext_topofferitem_items } } } } } } 的{​​{1}}和v-model进行设置

在执行以下操作时,当我从搜索下拉列表中选择一个新项目时,它仍会显示原始的input.id值。

input.title

0 个答案:

没有答案