[错误]: selectionKeyCode 属性的类型值无效
作者: NathanRohrer创建于 2026年2月12日更新于 2026年6月9日
标签bugquestion
是否存在现有的问题吗? - [x] 我已经搜索了现有的问题,这是一个新的错误。 ### 当前行为 VueFlow 组件的 selectionKeyCode 属性期望值为布尔值或 null。 手动设置该值为任何字符串时,会在开发者控制台中产生警告。 ### 预期行为 手动设置 selectionKeyCode 属性的值为字符串时,不应产生无效属性类型检查警告日志。 ### 重现问题的步骤 1. 在 VueFlow 组件上设置 selectionKeyCode 属性的值为 'Shift' ### 在 CodeSandbox 中重现问题 _ 没有响应 _ ### 相关日志输出 ```shell [Vue warn]: Invalid prop: type check failed for prop "selectionKeyCode". Expected Boolean | Null, got String with value "Shift". at <VueFlow key=0 modelValue= (19) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]0: {id: 'trigger', type: 'trigger-node', position: {…}, data: {…}}1: {id: 'answer_call_0', type: 'answer-call', position: {…}, data: {…}}2: {id: 'collect_input_0', type: 'collect-input', position: {…}, data: {…}}3: {id: 'send_rcs_0', type: 'send-rcs', position: {…}, data: {…}}4: {id: 'say_play_2', type: 'say-play', position: {…}, data: {…}}5: {id: 'hang_up_call_0', type: 'hang-up-call', position: {…}, data: {…}}6: {id: 'say_play_3', type: 'say-play', position: {…}, data: {…}}7: {id: 'say_play_4', type: 'say-play', position: {…}, data: {…}}8: {source: 'trigger', target: 'answer_call_0', sourceHandle: 'trigger-inbound-call', targetHandle: 'answer_call_0', id: 'j1ex37'}9: {source: 'trigger', target: 'answer_call_0', sourceHandle: 'trigger-outbound-call', targetHandle: 'answer_call_0', id: 'a3wto8'}10: {source: 'answer_call_0', target: 'collect_input_0', sourceHandle: 'answer_call_0', targetHandle: 'collect_input_0', id: 'eglvnm'}11: {source: 'collect_input_0', target: 'say_play_2', sourceHandle: 'collect_input_0-no-input', targetHandle: 'say_play_2', id: 'sfgd1'}12: {source: 'collect_input_0', target: 'say_play_2', sourceHandle: 'collect_input_0-else', targetHandle: 'say_play_2', id: 'r32cbl'}13: {source: 'collect_input_0', target: 'send_rcs_0', sourceHandle: 'collect_input_0-condition-5ejlnk', targetHandle: 'send_rcs_0', id: '7f7fpl'}14: {source: 'send_rcs_0', target: 'say_play_3', sourceHandle: 'send_rcs_0-sent', targetHandle: 'say_play_3', id: 'f5j4ny'}15: {source: 'send_rcs_0', target: 'say_play_4', sourceHandle: 'send_rcs_0-failure', targetHandle: 'say_play_4', id: '5oizlk'}16: {source: 'say_play_2', target: 'hang_up_call_0', sourceHandle: 'say_play_2', targetHandle: 'hang_up_call_0', id: '305b3'}17: {source: 'say_play_3', target: 'hang_up_call_0', sourceHandle: 'say_play_3', targetHandle: 'hang_up_call_0', id: '728otd'}18: {source: 'say_play_4', target: 'hang_up_call_0', sourceHandle: 'say_play_4', targetHandle: 'hang_up_call_0', id: '10smck'}length: 19[[Prototype]]: Array(0) onUpdate:modelValue= (2) [ƒ, ƒ] ... > at <FlowBuilder
内容来源: bcakmakoglu/vue-flow