forked from verdnatura/salix-front
feat: handle dates
This commit is contained in:
parent
32d11edb2f
commit
e23a30c693
|
@ -122,6 +122,7 @@ watch(
|
|||
:no-focus="true"
|
||||
>
|
||||
<QDate
|
||||
v-bind="{ ...$attrs }"
|
||||
v-model="popupDate"
|
||||
:today-btn="true"
|
||||
@update:model-value="
|
||||
|
|
|
@ -520,15 +520,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
|||
style="max-width: 125px"
|
||||
:show-event="false"
|
||||
v-model="props.row.started"
|
||||
v-on="getRowUpdateInputEvents(props, false, 'date')"
|
||||
v-bind="
|
||||
isBigger(props.row.started)
|
||||
? {
|
||||
'bg-color': 'warning',
|
||||
'is-outlined': true,
|
||||
}
|
||||
: {}
|
||||
"
|
||||
:options="(date) => date < props.row.ended"
|
||||
/>
|
||||
</QTd>
|
||||
</template>
|
||||
|
@ -538,15 +530,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
|||
style="max-width: 125px"
|
||||
:show-event="false"
|
||||
v-model="props.row.ended"
|
||||
v-on="getRowUpdateInputEvents(props, false, 'date')"
|
||||
v-bind="
|
||||
isLower(props.row.started)
|
||||
? {
|
||||
'bg-color': 'warning',
|
||||
'is-outlined': true,
|
||||
}
|
||||
: {}
|
||||
"
|
||||
:options="(date) => date > props.row.ended"
|
||||
/>
|
||||
</QTd>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue