Skip to content

Sender insert tag类型的slot后,on submit中无法获取到这个slot #1682

@itzhoujun

Description

@itzhoujun

不太理解sender slot怎么用

ref.insert([{
        type: 'tag',
        key: 'ss',
        props: {
          label: "文档内容",
          value: "内容"
        }
      }]);
    const handleSubmit = (message: string, slotConfig?: SlotConfigType[]) => {
      console.log("send message", message, slotConfig)
    };
        <Sender
          ref={ref}
          onSubmit={handleSubmit}
          slotConfig={[]}
        />

如图,insert tag之后,提交,拿不到这个slot,难不成要自己管理slots?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions