@mythpe/quasar-ui-qui 0.3.48 → 0.3.49

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.48",
3
+ "version": "0.3.49",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -7,7 +7,7 @@ import type { MythComponentsProps as UiOpt } from '../types/plugin-props-option'
7
7
  type G = { name: string; [k: string]: any };
8
8
  type OptsContext = { choose?: boolean; };
9
9
  export const useBindInput = <P extends G = G> (Props: MaybeRefOrGetter<P>, key: keyof UiOpt, Opts: MaybeRefOrGetter<OptsContext> = {}) => {
10
- const { messages, locale } = useI18n({ useScope: 'global' })
10
+ const { messages, locale, te } = useI18n({ useScope: 'global' })
11
11
  const {
12
12
  __, theme: mTheme,
13
13
  props: pluginProps,
@@ -70,8 +70,10 @@ export const useBindInput = <P extends G = G> (Props: MaybeRefOrGetter<P>, key:
70
70
  if (!k) {
71
71
  return undefined
72
72
  }
73
- // if (k && k.indexOf('.*.') !== -1) {
74
- if (k && k.indexOf('.') !== -1) {
73
+ if (k && k.indexOf('.*.') !== -1) {
74
+ return __(k.split('.').pop()) || undefined
75
+ }
76
+ if (k && k.indexOf('.') !== -1 && !te(k)) {
75
77
  return __(k.split('.').pop()) || undefined
76
78
  }
77
79
  return __(k) || undefined