ChatReactionPicker (回应选择器)
回应词表网格(v-model 当前回应):有动图显示动图,没有显示原生 emoji;每人每条一个,点另一个即替换,再点当前的即撤销。
基础用法
和 KunReaction 不同:那是一个点赞开关,这是一套词表里选一个。方向键在网格里移动。
v-model: heart / Basic.vue
属性
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| options * | KunChatReactionOption[] | — | The reaction vocabulary, as `GET /v2/chat/reactions` serves it. |
| ariaLabel | string | locale chat.reactions | Accessible name of the grid. |
| columns | number | 8 | Columns of the grid. |
| modelValue | string | null | null | The viewer's current reaction key, or null. |
事件
| 事件 | 回调参数 | 说明 |
|---|---|---|
| select | reaction: string | null | A reaction was chosen: its key, or null when the current one was chosen again (removing it). `v-model` has already been updated. |
| update:modelValue | value: string | null |