ams icon indicating copy to clipboard operation
ams copied to clipboard

支持element组件的多层属性

Open w3cmark opened this issue 4 years ago • 0 comments

element组件可能存在多层属性的问题,比如Radio Attributes和Radio-group Attributes

解决方案:

const config = {
    type: 'transfer',
    attrs: { // 属性配置(包括element的属性和ams自定义属性)
        options: [{ // 可选项数据源
            value: 'a',
            label: '黄金糕'
        }, {
            value: 'b',
            label: '双皮奶'
        }],
        props: { // element的Attributes可能存在的(比如transfer)
            key: 'value',
            label: 'desc'
           ...
        },
        // element组件可能存在多层属性的问题
        group: { 
            
        },
        button: {
            
        }
    }
}

w3cmark avatar Dec 22 '19 15:12 w3cmark