@d-mok/quasar-app-extension-quasar-axe 2.0.9 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-mok/quasar-app-extension-quasar-axe",
3
- "version": "2.0.9",
3
+ "version": "2.0.12",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -0,0 +1,30 @@
1
+ <template>
2
+ <q-btn v-bind="$attrs">
3
+ <q-tooltip
4
+ class="text-body1"
5
+ v-if="tooltip"
6
+ :delay="150"
7
+ >{{ tooltip }}</q-tooltip
8
+ >
9
+ <q-badge
10
+ v-if="badge !== undefined"
11
+ floating
12
+ rounded
13
+ :color="badgeColor"
14
+ >{{ badge }}</q-badge
15
+ >
16
+ </q-btn>
17
+ </template>
18
+
19
+ <script lang="ts" setup>
20
+ const props = withDefaults(
21
+ defineProps<{
22
+ tooltip?: string
23
+ badge?: string | number
24
+ badgeColor?: string
25
+ }>(),
26
+ {
27
+ badgeColor: 'red',
28
+ }
29
+ )
30
+ </script>
@@ -33,7 +33,7 @@ type action = {
33
33
 
34
34
  const props = defineProps<{
35
35
  position: 'bottom-left' | 'bottom-right'
36
- color: string
36
+ color?: string
37
37
  icon: string
38
38
  label?: string
39
39
  actions: action[]
@@ -30,7 +30,7 @@
30
30
  defineProps<{
31
31
  title: string
32
32
  caption?: string
33
- link: string
33
+ link?: string
34
34
  icon?: string
35
35
  }>()
36
36
  </script>