0
我試圖在我的刀片視圖中使用this。我有.vue文件和js中的這段代碼。刀片中的Vue組件
import Multiselect from 'vue-multiselect'
export default {
components: {
Multiselect
},
data() {
return {
value: '',
options: ['Select option', 'options', 'selected', 'mulitple', 'label', 'searchable', 'clearOnSelect', 'hideSelected', 'maxHeight', 'allowEmpty', 'showLabels', 'onChange', 'touched']
}
}
}
,當我在刀片組件添加這樣`
<div>
<label class="typo__label">Single select</label>
<multiselect v-model="value" :options="options" :searchable="false" :close-on-select="false" :show-labels="false" placeholder="Pick a value"></multiselect>
<pre class="language-json"><code>@{{value}}</code></pre>
</div>
的選擇鴕鳥政策工作,只能說明{{值}}字符串。 ¿有關錯誤的任何想法? `
什麼是在控制檯給定的錯誤? –
沒有錯誤,顯然所有工作正常。 –
試圖刪除'@'標誌 –