#4345·formily

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

Author: hycloverCreated Dec 4, 2025Updated Dec 9, 2025
  • 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>