feat: add date math for filters #1342

Merged
konrad merged 88 commits from feature/date-math into main 2022-03-28 17:30:43 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 294e89b6f7 - Show all commits

View File

@ -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;

I think this is a good usecase for a reactive.

I think this is a good usecase for a reactive.

What would be the advantage over a ref?

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.

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.

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 do from = fromDate. Any idea how to solve this?

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 do `from = fromDate`. Any idea how to solve this?
border-radius: $radius;
border: 1px solid var(--grey-200);