Skip to content

[Feature Request] 如何在ArrayItems等组件中,将Addition按钮与其他自定义按钮一起显示 #4345

@hyclover

Description

@hyclover
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

我想在ArrayItems组件的添加按钮同一行添加自定义的按钮显示,

What does the proposed API look like?

 <SchemaField.Array
            name="rules"
            x-component="ArrayItems"
            x-decorator={"FormItem"}
            x-component-props={{ defaultOpenPanelCount: 0 }}
        >

            <SchemaField.Object>
                <SchemaField.Void x-component="ArrayItems.Index" />
                <SchemaField.Void x-component="ArrayItems.Remove" />
                <FormilyInput title="表达式" name="expression" />
                <FormilyInput title="提示词" name="message" />

            </SchemaField.Object>

            <SchemaField.Void x-component="Space" >
                <SchemaField.Void
                    x-component="ArrayItems.Addition"
                    title="添加条目"
                />
                <SchemaField.Void
                  
                    x-component='RulesComponent'
                />
            </SchemaField.Void>

        </SchemaField.Array>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions