Closed kt7456 closed 2 months ago
1.点击弹出框的确定按钮的触发事件暂时没有暴露出来 2.删除按钮的触发事件为onRemove 示例如下:
const schema = {
type: 'object',
displayType: 'row',
properties: {
list: {
title: '对象数组',
description: '对象数组嵌套功能',
type: 'array',
widget: 'drawerList',
props: {
onRemove: (operation, { schema, data, index }) => {
console.log("点击删除按钮回调函数", { schema, data, index })
},
},
items: {
type: 'object',
properties: {
input1: {
title: '简单输入框',
type: 'string',
required: true,
},
input2: {
title: '简单输入框2',
type: 'string',
},
input3: {
title: '简单输入框3',
type: 'string',
},
select1: {
title: '单选',
type: 'string',
enum: ['a', 'b', 'c'],
enumNames: ['早', '中', '晚'],
widget: 'select',
},
},
},
},
},
};