0
0
Fork 0

feat: handle dates

This commit is contained in:
Javier Segarra 2024-07-09 16:05:19 +02:00
parent 32d11edb2f
commit e23a30c693
2 changed files with 3 additions and 18 deletions

View File

@ -122,6 +122,7 @@ watch(
:no-focus="true" :no-focus="true"
> >
<QDate <QDate
v-bind="{ ...$attrs }"
v-model="popupDate" v-model="popupDate"
:today-btn="true" :today-btn="true"
@update:model-value=" @update:model-value="

View File

@ -520,15 +520,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
style="max-width: 125px" style="max-width: 125px"
:show-event="false" :show-event="false"
v-model="props.row.started" v-model="props.row.started"
v-on="getRowUpdateInputEvents(props, false, 'date')" :options="(date) => date < props.row.ended"
v-bind="
isBigger(props.row.started)
? {
'bg-color': 'warning',
'is-outlined': true,
}
: {}
"
/> />
</QTd> </QTd>
</template> </template>
@ -538,15 +530,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
style="max-width: 125px" style="max-width: 125px"
:show-event="false" :show-event="false"
v-model="props.row.ended" v-model="props.row.ended"
v-on="getRowUpdateInputEvents(props, false, 'date')" :options="(date) => date > props.row.ended"
v-bind="
isLower(props.row.started)
? {
'bg-color': 'warning',
'is-outlined': true,
}
: {}
"
/> />
</QTd> </QTd>
</template> </template>