@mythpe/quasar-ui-qui 0.2.51 → 0.2.53
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
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
setup
|
|
12
12
|
>
|
|
13
13
|
|
|
14
|
-
import type { MDatatableDialogsOptions, MDatatableProps } from '../../types'
|
|
14
|
+
import type { GenericMDtBtn, MDatatableDialogsOptions, MDatatableProps } from '../../types'
|
|
15
15
|
import type { UnwrapRef } from 'vue'
|
|
16
16
|
import { computed } from 'vue'
|
|
17
17
|
import { useMyth } from '../../composable'
|
|
@@ -42,7 +42,7 @@ defineOptions({
|
|
|
42
42
|
<template>
|
|
43
43
|
<template v-if="item !== undefined && index !== undefined">
|
|
44
44
|
<template
|
|
45
|
-
v-for="(m,i) in items"
|
|
45
|
+
v-for="(m,i) in items as GenericMDtBtn[]"
|
|
46
46
|
:key="`MDtContextmenuItems-i${i}`"
|
|
47
47
|
>
|
|
48
48
|
<MDtBtn
|
|
@@ -757,7 +757,7 @@ export const useDtHelpers = (options: MaybeRefOrGetter<MDatatableProps>) => {
|
|
|
757
757
|
},
|
|
758
758
|
order: 400
|
|
759
759
|
},
|
|
760
|
-
...(props.contextItems || [])
|
|
760
|
+
...(toValue(props.contextItems) || [])
|
|
761
761
|
].sort((a, b) => (a.order ?? 0) - (b.order ?? 0))))
|
|
762
762
|
// const activeContextItems = computed(() => contextmenuItems.value.filter((e, i) => typeof e.showIf === 'function' ? e.showIf(e, i) : e.showIf !== !1) as Required<MDatatableProps['contextItems']> || [])
|
|
763
763
|
const activeContextItems = computed(() => contextmenuItems.value)
|