add new icons and quasar integration
This commit is contained in:
16
index.js
16
index.js
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user