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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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);
        })

omi

<p align="center"><img src="https://omijs.github.io/home/assets/logo.svg" alt="omi" width="100"/></p> <h2 align="center">Omi - Web Components Framework</h2>

MIT
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis