feat: add date math for filters #1342
|
@ -210,9 +210,9 @@ const customRangeActive = computed<Boolean>(() => {
|
|||
<style lang="scss" scoped>
|
||||
.datepicker-with-range-container {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
|
||||
:deep(.popup) {
|
||||
z-index: 10;
|
||||
margin-top: 1rem;
|
||||
|
||||
border-radius: $radius;
|
||||
border: 1px solid var(--grey-200);
|
||||
|
|
Reference in New Issue
I think this is a good usecase for a reactive.
What would be the advantage over a ref?
Both values can be changed at the same time
=> watchers aren't triggered twice when you change stuff shortly after each other.
How do I type it properly? If I only pass a string into a reactive it complains I should pass in an object instead.
Edit: using
String
(capital S) seems to work.Okay even with the typing solved it still complains when trying to set it: Because we do
const from = ...
I won't be able to dofrom = fromDate
. Any idea how to solve this?