@mythpe/quasar-ui-qui 0.1.13 → 0.1.14

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.13",
3
+ "version": "0.1.14",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -1757,9 +1757,11 @@ defineOptions({
1757
1757
  >
1758
1758
  <MDtBtn
1759
1759
  v-if="(typeof contextBtn.showIf === 'function' ? contextBtn.showIf(tableOptions.selected[0],0) : contextBtn.showIf) && ( (contextBtn.click && isSingleSelectedItem) || (contextBtn.multiClick && !isSingleSelectedItem) )"
1760
- :tooltip="__(contextBtn.tooltip || contextBtn.name)"
1760
+ :tooltip="__(contextBtn.tooltip || contextBtn.label || contextBtn.name)"
1761
1761
  v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.topSelection?.btn,...contextBtn,...contextBtn.attr}"
1762
- @click="contextBtn.click ? contextBtn.click(tableOptions.selected[0],0) : (contextBtn.multiClick ? contextBtn.multiClick(tableOptions.selected) : undefined)"
1762
+ @click="contextBtn.multiClick && tableOptions.selected.length > 1 ? contextBtn.multiClick(tableOptions.selected) : (
1763
+ contextBtn.click ? contextBtn.click(tableOptions.selected[0],0) : undefined
1764
+ )"
1763
1765
  />
1764
1766
  </template>
1765
1767
  </template>
@@ -40,7 +40,7 @@ const props = withDefaults(defineProps<P>(), {
40
40
  service: undefined,
41
41
  guest: undefined,
42
42
  requestWith: undefined,
43
- params: () => () => ({}),
43
+ params: () => ({}),
44
44
  lazy: () => !1,
45
45
  useChoice: undefined
46
46
  })
@@ -106,7 +106,7 @@ onMounted(() => {
106
106
  prepare()
107
107
  }
108
108
  })
109
- watch(props.params, () => prepare(!0), { deep: !0 })
109
+ watch(() => toValue(props.params), () => prepare(!0), { deep: !0 })
110
110
  const input = useTemplateRef<InstanceType<typeof MSelect>>('input')
111
111
  defineExpose<{ input: typeof input }>({ input })
112
112
  defineOptions({ name: 'MAxios', inheritAttrs: !1 })