@d-mok/quasar-app-extension-quasar-axe 2.0.4 → 2.0.5

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.4",
3
+ "version": "2.0.5",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -15,14 +15,18 @@ import { watch } from 'vue'
15
15
  import { useVModel } from '@vueuse/core'
16
16
  import _ from 'lodash'
17
17
 
18
- type Props = {
19
- options: any[]
20
- modelValue: any
21
- optionLabel: string
22
- ticker?: number
23
- }
24
-
25
- const props = withDefaults(defineProps<Props>(), { ticker: 0 })
18
+ const props = withDefaults(
19
+ defineProps<{
20
+ options: any[]
21
+ modelValue: any
22
+ optionLabel: string | ((_: any) => string)
23
+ ticker?: number
24
+ }>(),
25
+ {
26
+ ticker: 0,
27
+ optionLabel: $ => String($),
28
+ }
29
+ )
26
30
  const emits = defineEmits(['update:modelValue'])
27
31
 
28
32
  const selected = useVModel(props, 'modelValue', emits)