feat: reduce dependency on router and move everything to route props instead
This commit is contained in:
parent
1e4ef96150
commit
84f177c80e
7 changed files with 50 additions and 29 deletions
|
|
@ -139,8 +139,8 @@ watch(
|
|||
emitChanged()
|
||||
},
|
||||
)
|
||||
watch(() => from, inputChanged)
|
||||
watch(() => to, inputChanged)
|
||||
watch(() => from.value, inputChanged)
|
||||
watch(() => to.value, inputChanged)
|
||||
|
||||
function setDateRange(range: string[] | null) {
|
||||
if (range === null) {
|
||||
|
|
@ -152,7 +152,6 @@ function setDateRange(range: string[] | null) {
|
|||
|
||||
from.value = range[0]
|
||||
to.value = range[1]
|
||||
|
||||
}
|
||||
|
||||
const customRangeActive = computed<boolean>(() => {
|
||||
|
|
|
|||
Reference in a new issue