ChatReactionPicker (回应选择器)

回应词表网格(v-model 当前回应):有动图显示动图,没有显示原生 emoji;每人每条一个,点另一个即替换,再点当前的即撤销。

基础用法

和 KunReaction 不同:那是一个点赞开关,这是一套词表里选一个。方向键在网格里移动。

v-model: heart /
Basic.vue

属性

属性类型默认值说明
options *KunChatReactionOption[]—The reaction vocabulary, as `GET /v2/chat/reactions` serves it.
ariaLabelstringlocale chat.reactionsAccessible name of the grid.
columnsnumber8Columns of the grid.
modelValuestring | nullnullThe viewer's current reaction key, or null.

事件

事件回调参数说明
selectreaction: string | nullA reaction was chosen: its key, or null when the current one was chosen again (removing it). `v-model` has already been updated.
update:modelValuevalue: string | null