All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.ams.load.block.listBlock.common.SetGeneralResourceFieldFlow.js Maven / Gradle / Ivy

function SetGeneralResourceFieldFlow(context){
    const fieldContext = quickams.checkData(context, "fieldContext");

    const label = quickams.checkData(fieldContext, "label");
    const amsType = quickams.checkData(fieldContext, "amsType");
    const info = quickams.getData(fieldContext, "info");

    let resourceField = {
        "label": label,
        "info": info,
        "type": amsType,
        "props": {
            "placeholder": "请输入"+label,
            "clearable": true,
        },
        "default": fieldContext["defaultValue"]
    };
    for(let prop in fieldContext["props"]){
        resourceField["props"][prop] = fieldContext["props"][prop];
    }
    context["resourceField"] = resourceField;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy