@mythpe/quasar-ui-qui 0.4.83 → 0.4.84
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
|
@@ -1204,9 +1204,8 @@ defineExpose({
|
|
|
1204
1204
|
name="bottom-search"
|
|
1205
1205
|
/>
|
|
1206
1206
|
</MRow>
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
>
|
|
1207
|
+
<!--Top Selection-->
|
|
1208
|
+
<MRow gutter="sm">
|
|
1210
1209
|
<template
|
|
1211
1210
|
v-for="(contextBtn,i) in contextmenuItems as GenericMDtBtn[]"
|
|
1212
1211
|
:key="`top-s-${i}`"
|
|
@@ -951,13 +951,18 @@ export const useDtHelpers = (options: MaybeRefOrGetter<MDatatableProps>, emit?:
|
|
|
951
951
|
return keys.filter(e => !skipSlots.includes(e))
|
|
952
952
|
})
|
|
953
953
|
const onClickTopMenu = (item: any) => {
|
|
954
|
-
if (
|
|
955
|
-
item.multiClick
|
|
954
|
+
if (selected.value.length > 1) {
|
|
955
|
+
if (item.multiClick) {
|
|
956
|
+
item.multiClick(selected.value)
|
|
957
|
+
}
|
|
956
958
|
return
|
|
957
959
|
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
960
|
+
if (item.click && selected.value.length === 1) {
|
|
961
|
+
const i = toValue(selected.value[0])
|
|
962
|
+
const index = getRows.value.findIndex((e: any) => e?.id === i?.id)
|
|
963
|
+
if (index !== -1) {
|
|
964
|
+
item.click(getRows.value[index], index)
|
|
965
|
+
}
|
|
961
966
|
}
|
|
962
967
|
}
|
|
963
968
|
|