@mythpe/quasar-ui-qui 0.3.33 → 0.3.35

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.3.33",
3
+ "version": "0.3.35",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -1097,12 +1097,12 @@ defineExpose({
1097
1097
  :key="`top-s-${i}`"
1098
1098
  >
1099
1099
  <MDtBtn
1100
- v-if="(typeof contextBtn.showIf === 'function' ? contextBtn.showIf(selected[0],0) : contextBtn.showIf !==!1) && ( (contextBtn.click && isSingleSelectedItem)
1100
+ v-if="(typeof contextBtn.showIf === 'function' ? contextBtn.showIf(selected[0],0) : contextBtn.showIf !==!1) && ( ((!!contextBtn.click || !!contextBtn.attr?.to) && isSingleSelectedItem)
1101
1101
  || (contextBtn.multiClick && !isSingleSelectedItem) )"
1102
1102
  :tooltip="contextBtn.tooltip?__(contextBtn.tooltip):(contextBtn.label?(te(`labels.${contextBtn.label}`) ?
1103
1103
  __(`labels.${contextBtn.label}`) : __(contextBtn.label) ):undefined)"
1104
- v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.topSelection?.btn as any,...contextBtn as any,...contextBtn.attr as any}"
1105
- @click="onClickTopMenu(contextBtn)"
1104
+ v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.topSelection?.btn as any,...contextBtn as any,...contextBtn.attr as any,to: typeof contextBtn.attr?.to === 'function' ? contextBtn.attr.to(selected[0],0) : contextBtn.attr?.to}"
1105
+ @click="contextBtn.attr?.to ? undefined : onClickTopMenu(contextBtn)"
1106
1106
  />
1107
1107
  </template>
1108
1108
  </template>
@@ -57,9 +57,9 @@ defineOptions({
57
57
  flat
58
58
  v-bind="{
59
59
  ...m.attr,
60
- to: typeof m.to === 'function' ? m.to(item,index) : m.to,
60
+ to: typeof m.attr?.to === 'function' ? m.attr?.to(item,index) : m.attr?.to,
61
61
  }"
62
- @click="m.click ? m.click(item,index) : undefined"
62
+ @click="m?.click?.(item,index)"
63
63
  />
64
64
  </template>
65
65
  </template>