@d-mok/quasar-app-extension-quasar-axe 2.1.59 → 2.1.61

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.1.59",
3
+ "version": "2.1.61",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  <q-separator />
40
40
  <q-list separator>
41
41
  <qx-menu-item
42
- v-for="item in items"
42
+ v-for="item in items.filter($ => $.title)"
43
43
  :key="item.title"
44
44
  v-bind="item"
45
45
  />
@@ -91,11 +91,11 @@
91
91
  </template>
92
92
 
93
93
  <script lang="ts" setup>
94
- import { ref } from 'vue'
94
+ import { computed, ref } from 'vue'
95
95
  type item = {
96
- title: string
96
+ title?: string
97
97
  caption?: string
98
- icon: string
98
+ icon?: string
99
99
  link: string
100
100
  width?: number
101
101
  }
@@ -124,15 +124,11 @@ const props = withDefaults(
124
124
 
125
125
  let open = ref(false)
126
126
 
127
- import { watch } from 'vue'
128
127
  import { useRoute } from 'vue-router'
129
128
  const route = useRoute()
130
-
131
- const maxPageWidth = ref(2000)
132
-
133
- watch(route, (to, from) => {
134
- maxPageWidth.value = props.items.get({ link: to.path })?.width ?? 2000
135
- })
129
+ const maxPageWidth = computed(
130
+ () => props.items.get({ link: route.path })?.width ?? 2000
131
+ )
136
132
  </script>
137
133
 
138
134
  <style scoped>
@@ -29,7 +29,7 @@
29
29
 
30
30
  <script lang="ts" setup>
31
31
  defineProps<{
32
- title: string
32
+ title?: string
33
33
  caption?: string
34
34
  link?: string
35
35
  icon?: string