@mythpe/quasar-ui-qui 0.4.81 → 0.4.83

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.4.81",
3
+ "version": "0.4.83",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -193,7 +193,7 @@ const customViewModeValue = computed(() => {
193
193
  const k = props.optionLabel === undefined ? 'label' : (typeof props.optionLabel === 'function' ? props.optionLabel(opt) : props.optionLabel)
194
194
  return opt[k]
195
195
  })
196
- return opts?.length ? opts.join(', ') : undefined
196
+ return opts?.length ? opts?.join(', ') : '-'
197
197
  }
198
198
  const opt = options.value?.find((e) => {
199
199
  const k = props.optionValue === undefined ? 'value' : (typeof props.optionValue === 'function' ? props.optionValue(e) : props.optionValue)
@@ -233,13 +233,13 @@ defineOptions({
233
233
  <template #control>
234
234
  <slot name="control">
235
235
  <div
236
- v-if="!disable && !readonly && !viewMode && !!getPlaceholder && !value"
236
+ v-if="!disable && !readonly && !viewMode && !!getPlaceholder && (!value || value?.length === 0)"
237
237
  class="q-placeholder"
238
238
  >
239
239
  {{ getPlaceholder }}
240
240
  </div>
241
241
  <template v-else-if="viewMode && viewModeValue">
242
- <div>{{ viewModeValue?.toString() }}</div>
242
+ <div>{{ viewModeValue?.toString?.() }}</div>
243
243
  </template>
244
244
  <template v-else>
245
245
  <div>
@@ -247,7 +247,7 @@ defineOptions({
247
247
  {{ Object.values(value).join(rangeSeparator || pluginOptions.picker?.rangeSeparator || defSeparator) }}
248
248
  </template>
249
249
  <template v-else>
250
- {{ value?.toString() }}
250
+ {{ value?.toString?.() }}
251
251
  </template>
252
252
  </div>
253
253
  </template>