@d-mok/quasar-app-extension-quasar-axe 2.1.69 → 2.1.71

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.69",
3
+ "version": "2.1.71",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "lodash": "^4.17.21",
26
26
  "mime-types": "^2.1.35",
27
27
  "papaparse": "^5.4.1",
28
- "sapphire-js": "^2.0.27",
28
+ "sapphire-js": "^2.0.29",
29
29
  "vuedraggable": "^4.1.0"
30
30
  },
31
31
  "devDependencies": {
@@ -17,7 +17,7 @@
17
17
  <q-space />
18
18
  <div v-if="!(noClose ?? false)">
19
19
  <q-btn
20
- @click="onClose"
20
+ @click="modelValue = ''"
21
21
  icon="close"
22
22
  unelevated
23
23
  dense
@@ -33,9 +33,7 @@
33
33
  <script lang="ts" setup>
34
34
  import { computed } from 'vue'
35
35
 
36
- let modelValue = defineModel<string | boolean | undefined>({
37
- default: undefined,
38
- })
36
+ let modelValue = defineModel<string>({ default: 'xxx' })
39
37
 
40
38
  const props = defineProps<{
41
39
  name?: string
@@ -45,17 +43,7 @@ const props = defineProps<{
45
43
  noClose?: boolean
46
44
  }>()
47
45
 
48
- function onClose() {
49
- modelValue.value = typeof modelValue.value === 'string' ? '' : false
50
- }
51
-
52
46
  let on = computed(() => {
53
- // if undefined, default true
54
- if (modelValue.value === undefined) return true
55
- // if is string, check if is my name
56
- if (typeof modelValue.value === 'string')
57
- return modelValue.value === (props.name ?? 'xxx')
58
- // if is boolean, return it
59
- if (typeof modelValue.value === 'boolean') return modelValue.value
47
+ return modelValue.value === (props.name ?? 'xxx')
60
48
  })
61
49
  </script>