add new icons and quasar integration

This commit is contained in:
kandrusyak
2023-01-16 17:35:49 +03:00
parent f3ccd60028
commit 9c7c560ee1
13 changed files with 274 additions and 134 deletions

View File

@@ -9,6 +9,22 @@ function install(app) {
app.component(VButton.name, VButton);
app.component(VInput.name, VInput);
app.component(VSelect.name, VSelect);
console.log(app)
app.config.globalProperties.$q.iconMapFn = (iconName) => {
// iconName is the content of QIcon "name" prop
// your custom approach, the following
// is just an example:
if (iconName.startsWith('app:') === true) {
// we strip the "app:" part
const name = iconName.substring(4)
return {
cls: 'astra-icons',
content: name
}
}
}
}
export {