@mythpe/quasar-ui-qui 0.0.85 → 0.0.86

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.0.85",
3
+ "version": "0.0.86",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -64,6 +64,9 @@ export const useBindInput = <P extends G = G> (Props: MaybeRefOrGetter<P>, key:
64
64
  })
65
65
  const getLabel = computed<string | undefined>(() => {
66
66
  const k = nameLabel.value
67
+ if (k && k.indexOf('.*.')) {
68
+ return __(k.split('.').pop()) || undefined
69
+ }
67
70
  return k ? (__(k) || undefined) : undefined
68
71
  })
69
72
  const getPlaceholder = computed<string | undefined>(() => {
@@ -82,7 +85,11 @@ export const useBindInput = <P extends G = G> (Props: MaybeRefOrGetter<P>, key:
82
85
  return 'enter'
83
86
  })
84
87
  if (props.placeholder === undefined) {
85
- return __(`replace.${replace.value}`, { name: __(nameLabel.value) })
88
+ let name = nameLabel.value
89
+ if (name && name.indexOf('.*.')) {
90
+ name = name.split('.').pop() || nameLabel.value
91
+ }
92
+ return __(`replace.${replace.value}`, { name: __(name) })
86
93
  }
87
94
  return props.placeholder ? (__(props.placeholder) || undefined) : undefined
88
95
  })