File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
// commonUtils.js
import {
mdiCalendarBlank,
mdiArrowRight,
mdiTable,
mdiPlay,
mdiKeyVariant,
mdiTrashCan,
mdiMagnify,
} from "@mdi/js";
export default {
install(Vue) {
Vue.config.globalProperties.$iconPath = function (icon) {
if (icon == null) {
icon = "mdiMagnify";
}
if (icon === "mdiCalendarBlank") {
return mdiCalendarBlank;
} else if (icon === "mdiArrowRight") {
return mdiArrowRight;
} else if (icon === "mdiTable") {
return mdiTable;
} else if (icon === "mdiPlay") {
return mdiPlay;
} else if (icon === "mdiKeyVariant") {
return mdiKeyVariant;
} else if (icon === "mdiTrashCan") {
return mdiTrashCan;
} else {
return mdiMagnify;
}
};
},
};