| 12345678910111213141516171819202122232425262728293031 |
- import { boot } from 'quasar/wrappers'
- export default boot(({ app, store, router }) => {
- app.config.globalProperties.$q.iconMapFn = (iconName) => {
- if (iconName.startsWith('isax:') === true) {
- const name = iconName.substring(5)
- return {
- cls: 'isax isax-' + name
- }
- }
- // if (iconName.startsWith('fa:') === true) {
- // const name = iconName.substring(3)
- // return {
- // cls: 'fa fa-' + name
- // }
- // }
- // else if (iconName.startsWith('isax-svg:') === true) {
- // const name = iconName.substring(9)
- // return {
- // // iconName: 'img:/assets/icons/Iconsax/svg/linear/3d-cube-scan.svg',
- // icon: 'img:/iconsax-svg/svg/linear/' + name + '.svg'
- // // cls: 'img:/iconsax-svg/svg/linear/3d-cube-scan.svg',
- // // img: true
- // // src: '/assets/icons/Iconsax/svg/linear/3d-cube-scan.svg'
- // // content: '<img src="img:/iconsax-svg/svg/linear/3d-cube-scan.svg" />'
- // }
- // }
- }
- })
|