Sha256: 105c72fe956a563738235ebccdf2a59bad6881a6f8ecf51e8b27f513be92b15b
Contents?: true
Size: 497 Bytes
Versions: 17
Compression:
Stored size: 497 Bytes
Contents
export default function navLeaf() { return { path: null, matchers: [], active: false, hidden: false, setActive() { this.active = this.path === window.location.pathname; }, filter() { if (this.$store.nav.filtering) { const text = this.$store.nav.filterText; const matched = this.matchers.map((m) => m.includes(text)); this.hidden = !matched.filter((m) => m).length; } else { this.hidden = false; } }, }; }
Version data entries
17 entries across 17 versions & 1 rubygems