@mythpe/quasar-ui-qui 0.1.17 → 0.1.18

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": "@mythpe/quasar-ui-qui",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -845,9 +845,7 @@ const updateDatatableItem = (i: MDtItem, index?: MDtItemIndex) => {
845
845
  getRows.value[findIndex] = item
846
846
  }
847
847
  }
848
- if (selected.value.length === 1) {
849
- selected.value = [item]
850
- }
848
+ selected.value.length === 1 && updateSelectedItems([item])
851
849
  }
852
850
  }
853
851
  const removeDtItem = (i: MDtItem | number) => {
@@ -911,7 +909,6 @@ const onSuccess: SubmissionHandler = async (form) => {
911
909
  if (isUpdateMode.value) {
912
910
  if (_data) {
913
911
  updateDatatableItem(_data, dialogs.index)
914
- updateSelectedItems([_data])
915
912
  }
916
913
  } else {
917
914
  setTimeout(() => refresh(), openDialogTimeout)
@@ -1227,10 +1224,7 @@ const getSlots = computed(() => {
1227
1224
  const keys = Object.keys(componentSlots || {})
1228
1225
  return keys.filter(e => !skipSlots.includes(e))
1229
1226
  })
1230
- // contextBtn.multiClick && selected.value.length > 1 ?
1231
- // contextBtn.multiClick(selected.value) : (
1232
- // contextBtn.click ? contextBtn.click(selected.value[0],0) : undefined
1233
- // )
1227
+
1234
1228
  const onClickTopMenu = (item: any) => {
1235
1229
  if (item.multiClick && selected.value.length > 1) {
1236
1230
  item.multiClick(selected.value)