steedos / steedos-platform

华炎魔方低代码平台 | Steedos is an open-source alternative to Salesforce Low-Code Platform. 🤖 🎨 🚀
https://www.steedos.com
Other
1.37k stars 387 forks source link

[Feature]: 子表组件拖动排序按钮难看,把它放到底下,与新增按钮放同一行 #6373

Open yinlianghui opened 7 months ago

yinlianghui commented 7 months ago

Summary 摘要

基于amis 3.6 inputTable组件新功能中initDrag能力可以实现把这个按钮放到底下与新增按钮放同一行: https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-table#initdragimage

image

Why should this be worked on? 此需求的应用场景?

子表排序功能按钮优化

tujiajun commented 7 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": ""
    };
}
image