[FAQ] Quasar 組件 q-select 如何觸發 onChange 事件


通過llama.cpp與羊駝聊天的網頁界面- 詳解 Serge 的啟動使用

 

Quasar 文檔都提供了組件的可用參數和事件、方法。

qSelect(q-select) 並沒有 @change 事件,需要使用 @update 事件,注意用法。 

<q-select
  v-model="single"
  :options="['def', 'abc', '456', '123']"
  label="Select One"
  @update:model-value="showChannel()" // @input is replaced with @update:model-value
/>

 

Refer:Quasar官網 

Refer:https://quasar.dev/vue-components/select

Link:https://www.cnblogs.com/farwish/p/15383293.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM