Răsfoiți Sursa

fix: add min-width to CardIconMiniChart and clean up DefaultInputDatePicker props binding

Denis 10 luni în urmă
părinte
comite
9304976e2e

+ 1 - 1
src/components/charts/CardIconMiniChart.vue

@@ -1,5 +1,5 @@
 <template>
-  <q-card flat class="q-pa-lg" style="max-height: 184px;">
+  <q-card flat class="q-pa-lg" style="max-height: 184px; min-width: 305px;">
     <div class="column no-wrap full-width">
       <div class="flex justify-between items-center no-wrap">
         <span class="text-h5">{{ title }}</span>

+ 5 - 5
src/components/defaults/DefaultInputDatePicker.vue

@@ -4,9 +4,9 @@
       ref="inputRef"
       v-model="treatedDate"
       :mask="inputMask"
-      :label="label"
-      :rules="rules"
-      :dense="dense"
+      :label
+      :rules
+      :dense
       :error
       :error-message
       clearable
@@ -85,7 +85,7 @@ const { label, rules, time, dense } = defineProps({
   },
 });
 
-const qInputRef = useTemplateRef('inputRef')
+const qInputRef = useTemplateRef("inputRef");
 
 const treatedDate = defineModel();
 const untreatedDate = defineModel("untreatedDate");
@@ -118,7 +118,7 @@ const unformatDate = (value) => {
 };
 
 const inputMask = computed(() => {
-  if (!qInputRef.value) return '';
+  if (!qInputRef.value) return "";
 
   if (time) {
     return masks.Brasil.datetime;