layerX参数构建

时间:2022-05-27 21:54:07
var defaults = {
    name: 'layerX',
    url: [
        {
            name: 'sub',
            url: '',
            focus: true
        }
    ],
    parent: {
        name: '',
        moveOut: true,
        closeSelf: true
    },
    zIndex: 19920527,
    events: {
        beforeInit: function () { },
        initComplete: function () { },
        close: function () { },
        destory: function () { }
    },
    move: {
        enable: true,
        moveStart: function () { },
        moveing: function () { },
        moveEnd: function () { }
    },
    resize: {
        enable: true,
        resizeStart: function () { },
        resizing: function () { },
        resizeEnd: function () { }
    },
    icons: [
        {
            label: '关闭',
            icon: ['font', 'iconfont icon-close'],
            beforeAction: function () { },
            afterAction: function () { }
        },
        {
            label: '最小化',
            icon: ['font', 'iconfont icon-min'],
            beforeAction: function () { },
            afterAction: function () { }
        }
    ]
}