Quasar:如何将自定义参数传递给Q-SELECT过滤器
Q-Select具有带有3个选项的方法@filter(Val,Update,Aprolt)。 我需要将额外的参数传递给该功能。
传递的update()函数作为参数对于选择显示可用选项至关重要。
尝试在表中获取对数据的任何访问是不可能的。
<q-select label="Birth City:"
option-value="Id"
option-label="availableOptionsKey"
map-options
v-model="props.row.value"
:options="props.row.availableOptions"
@filter="customFn">
</q-select>
传递参数时,Update()函数通常传递给@filter。
<q-select label="Birth City:"
option-value="Id"
option-label="availableOptionsKey"
map-options
v-model="props.row.value"
:options="props.row.availableOptions"
@filter="customFn(props.row)">
</q-select>
q-select has the method @filter with 3 options (val, update, abort).
I need to pass extra parameters to the function.
The passed update() function as an argument is critical for the select to display available options.
And trying to get any access to the data in a table is not possible.
<q-select label="Birth City:"
option-value="Id"
option-label="availableOptionsKey"
map-options
v-model="props.row.value"
:options="props.row.availableOptions"
@filter="customFn">
</q-select>
When passing arguments, the update() function normally passed to @filter is not available.
<q-select label="Birth City:"
option-value="Id"
option-label="availableOptionsKey"
map-options
v-model="props.row.value"
:options="props.row.availableOptions"
@filter="customFn(props.row)">
</q-select>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是为了文档目的的格式,最初是来自其他论坛的。
解决方案是:
...
This is formatted for documentation purposes and originally from a different forum.
The solution is:
...