Skip to content

为 Sender、Suggestion、Sources、Attachments 添加 v-model 支持 #85

@cc-hearts

Description

@cc-hearts

已有 v-model 的组件(无需改动)

组件 v-model
Conversations v-model:activeKey
Think v-model:expanded
Folder v-model:selectedFilev-model:expandedPaths
ThoughtChain v-model:expandedKeys

需要新增 v-model

P0: Sender — v-model:value

  • 主文本输入组件,已有 value/defaultValue/onChange 控制模式
  • 改动:emits 添加 "update:value",在 onChange 触发时同时 emit

P1: Suggestion — v-model:open

  • 已有 open/openChange 控制模式
  • 改动:emits 添加 "update:open",在 triggerOpen 中 emit

P1: Sources — v-model:expanded

  • 已有 expanded/defaultExpanded 控制模式
  • 改动:emits 添加 "update:expanded",在 toggleExpand 中 emit

P2: Attachments — v-model:items

  • 文件列表状态双向绑定
  • 改动:emits 添加 "update:items",在 triggerChange 中 emit

不适合的组件

Prompts(纯展示+点击事件)、BubbleList(只读列表)、Welcome(纯展示)、Actions(无状态)、Notification(非组件)、CodeHighlighter/Mermaid/FileCard(纯展示)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions