UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

29 lines (22 loc) 594 B
import Vue from 'vue' import { isSSR } from './plugins/Platform.js' import materialIcons from '../icon-set/material-icons.js' export default { install ($q, iconSet) { this.set = (iconDef = materialIcons) => { iconDef.set = this.set if (isSSR === true || $q.iconSet !== void 0) { $q.iconSet = iconDef } else { Vue.util.defineReactive($q, 'iconSet', iconDef) } this.name = iconDef.name this.def = iconDef } this.set(iconSet) if (isSSR !== true) { Vue.util.defineReactive($q, 'iconMapFn', void 0) } } }