[FAQ] Quasar 组件 q-select 如何触发 onChange 事件

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
/>

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

Recomend:https://tool.offso.com/sha

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

原文地址:https://www.cnblogs.com/farwish/p/15383293.html