From 6952f93f924787833e46056108160cbc0753a033 Mon Sep 17 00:00:00 2001 From: kandrusyak Date: Mon, 24 Jul 2023 19:42:25 +0300 Subject: [PATCH] add new icons component --- index.js | 6 +- package.json | 2 +- src/components/VIcon.vue | 860 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 865 insertions(+), 3 deletions(-) create mode 100644 src/components/VIcon.vue diff --git a/index.js b/index.js index 9879f02..91dcfd6 100644 --- a/index.js +++ b/index.js @@ -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: } } } diff --git a/package.json b/package.json index ca3a875..653764e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dop/astra-ui", - "version": "0.1.4", + "version": "0.2.4", "private": false, "module": "index.js", "scripts": { diff --git a/src/components/VIcon.vue b/src/components/VIcon.vue new file mode 100644 index 0000000..82c2941 --- /dev/null +++ b/src/components/VIcon.vue @@ -0,0 +1,860 @@ + + + \ No newline at end of file