Open yinlianghui opened 9 months ago
目前只能开启排序,无法取消,等待amis完善,https://github.com/baidu/amis/issues/9597
async function getButtondrag(props) {
return {
"label": "排序",
"type": "button",
"icon": "fa fa-bars",
"onEvent": {
"click": {
"actions": [
{
"componentId": props.id,
"actionType": "initDrag"
}
]
}
},
"visibleOn": ""
};
}
Summary 摘要
基于amis 3.6 inputTable组件新功能中initDrag能力可以实现把这个按钮放到底下与新增按钮放同一行: https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-table#initdrag。
Why should this be worked on? 此需求的应用场景?
子表排序功能按钮优化