@mythpe/quasar-ui-qui 0.1.29 → 0.1.31

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.29",
3
+ "version": "0.1.31",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -22,6 +22,8 @@ type P = {
22
22
  required?: Props['required'];
23
23
  rules?: Props['rules'];
24
24
  viewMode?: Props['viewMode'];
25
+ readonly?: Props['readonly'];
26
+ disable?: Props['disable'];
25
27
  topLabel?: Props['topLabel'];
26
28
  fieldOptions?: Props['fieldOptions'];
27
29
  }
@@ -32,6 +34,8 @@ const props = withDefaults(defineProps<P>(), {
32
34
  required: undefined,
33
35
  rules: undefined,
34
36
  viewMode: () => !1,
37
+ readonly: () => !1,
38
+ disable: () => !1,
35
39
  topLabel: undefined,
36
40
  fieldOptions: undefined
37
41
  })
@@ -69,6 +73,8 @@ defineOptions({
69
73
  required,
70
74
  topLabel,
71
75
  viewMode,
76
+ readonly,
77
+ disable,
72
78
  rules: inputRules,
73
79
  modelValue: value
74
80
  }"
@@ -80,7 +86,10 @@ defineOptions({
80
86
  class="m--input__color-preview"
81
87
  />
82
88
  </template>
83
- <template #append>
89
+ <template
90
+ #append
91
+ v-if="!viewMode && !readonly && !disable"
92
+ >
84
93
  <q-icon
85
94
  class="cursor-pointer"
86
95
  name="colorize"
@@ -347,10 +347,7 @@ defineOptions({
347
347
  v-if="scope.isUploading"
348
348
  class="q-uploader__spinner"
349
349
  />
350
- <div
351
- v-if="label || !readonly"
352
- class="col"
353
- >
350
+ <div class="col">
354
351
  <div
355
352
  v-if="!!label"
356
353
  class="q-uploader__title"