@mythpe/quasar-ui-qui 0.1.31 → 0.1.33

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.31",
3
+ "version": "0.1.33",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -76,6 +76,8 @@ type Props = {
76
76
  imageColumns?: MDatatableProps['imageColumns'];
77
77
  imageMode?: MDatatableProps['imageMode'];
78
78
  imageSize?: MDatatableProps['imageSize'];
79
+ noBackBtn?: boolean;
80
+ backIcon?: MDatatableProps['backIcon'];
79
81
  }
80
82
 
81
83
  const props = withDefaults(defineProps<Props>(), {
@@ -134,7 +136,9 @@ const props = withDefaults(defineProps<Props>(), {
134
136
  fixed: undefined,
135
137
  imageColumns: () => ([]),
136
138
  imageMode: () => 'image',
137
- imageSize: () => '35px'
139
+ imageSize: () => '35px',
140
+ noBackBtn: !1,
141
+ backIcon: undefined
138
142
  })
139
143
 
140
144
  interface Emits {
@@ -655,6 +659,16 @@ defineExpose({
655
659
  col="12"
656
660
  >
657
661
  <div class="row justify-between q-col-gutter-md">
662
+ <div
663
+ v-if="!noBackBtn"
664
+ class="col-auto"
665
+ >
666
+ <q-btn
667
+ :icon="backIcon || `ion-arrow-round-${$q.lang.rtl ? 'forward' : 'back'}`"
668
+ flat
669
+ @click="$router.back()"
670
+ />
671
+ </div>
658
672
  <div class="col">
659
673
  <div class="text-h5 bordered-bottom ellipsis">
660
674
  {{ getTableTitle }}
@@ -68,7 +68,7 @@ const props = withDefaults(defineProps<P>(), {
68
68
  excel: !1,
69
69
  size: '100px',
70
70
  avatarText: undefined,
71
- fit: undefined,
71
+ fit: 'contain',
72
72
  clearable: undefined,
73
73
  label: undefined,
74
74
  rounded: undefined,
@@ -260,6 +260,7 @@ defineOptions({
260
260
  <q-img
261
261
  v-if="hasSrc && !isFile"
262
262
  :fit="fit"
263
+ :size="size"
263
264
  :src="blobUrl || url"
264
265
  ratio="1"
265
266
  @error="isLoaded = !0"
@@ -288,7 +288,15 @@ export type MDatatableProps<I extends GenericFormValues = GenericFormValues> = O
288
288
  * Image size in display
289
289
  */
290
290
  imageSize?: string;
291
-
291
+ /**
292
+ * Remove default back btn.
293
+ * use router back
294
+ */
295
+ noBackBtn?: boolean;
296
+ /**
297
+ * default back icon.
298
+ */
299
+ backIcon?: string;
292
300
  }
293
301
 
294
302
  export interface MDtAvatarProps extends QAvatarProps {