How to use the omi.mixIndexToArray function in omi

To help you get started, we’ve selected a few omi examples, based on popular ways it is used in public projects.

github Tencent / omi / docs / old-bak / src / component / list / index.js View on Github external
constructor(data) {
        super(data);
        Omi.mixIndexToArray(this.data.list);
        this.data.currentIndex = 0;
        var self = this;
        this.data.isCurrent = function () {
            return (this.index === self.data.currentIndex) && self.data.active;
        }
    }
github Tencent / omi / example / md2site / template / app / src / js / app-store.js View on Github external
this.data.menus.forEach((item)=> {
            Omi.mixIndexToArray(item.list);
        })