add new icons component

This commit is contained in:
kandrusyak
2023-07-24 19:42:25 +03:00
parent e1a59e5967
commit 6952f93f92
3 changed files with 865 additions and 3 deletions

View File

@@ -3,19 +3,21 @@ import VInput from './src/components/VInput.vue';
import VSelect from './src/components/VSelect.vue';
import {Quasar} from 'quasar';
import quasarUserOptions from './src/quasar-user-options';
import VIcon from '@/components/VIcon.vue';
function install(app) {
app.use(Quasar, quasarUserOptions)
app.component(VButton.name, VButton);
app.component(VInput.name, VInput);
app.component(VSelect.name, VSelect);
app.component(VIcon.name, VIcon)
app.config.globalProperties.$q.iconMapFn = (iconName) => {
if (iconName.startsWith('app:') === true) {
const name = iconName.substring(4)
return {
cls: 'astra-icons',
content: name
cls: 'astra-icons astra-vicons',
content: <VIcon name={name} />
}
}
}