feat: add date math for filters #1342
|
@ -13,16 +13,16 @@
|
|||
</p>
|
||||
<p>
|
||||
<i18n-t keypath="input.datepickerRange.math.similar">
|
||||
<a
|
||||
<BaseButton
|
||||
konrad marked this conversation as resolved
Outdated
|
||||
href="https://grafana.com/docs/grafana/latest/dashboards/time-range-controls/"
|
||||
rel="noreferrer noopener nofollow" target="_blank">
|
||||
konrad marked this conversation as resolved
Outdated
dpschen
commented
Remove rel attribute here and below. Remove rel attribute here and below.
Show we also add `target="_blank"` as default for the BaseButton is a link case?
konrad
commented
Mh I think there will still be cases where we want to control this so right now I think we should not add one. > Show we also add target="_blank" as default for the BaseButton is a link case?
Mh I think there will still be cases where we want to control this so right now I think we should not add one.
|
||||
Grafana
|
||||
</a>
|
||||
<a
|
||||
</BaseButton>
|
||||
<BaseButton
|
||||
konrad marked this conversation as resolved
Outdated
dpschen
commented
use BaseButton use BaseButton
|
||||
href="https://www.elastic.co/guide/en/elasticsearch/reference/7.3/common-options.html#date-math"
|
||||
rel="noreferrer noopener nofollow" target="_blank">
|
||||
Elasticsearch
|
||||
</a>
|
||||
</BaseButton>
|
||||
</i18n-t>
|
||||
</p>
|
||||
<p>{{ $t('misc.forExample') }}</p>
|
||||
|
@ -111,6 +111,7 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import {format} from 'date-fns'
|
||||
import BaseButton from '@/components/base/BaseButton.vue'
|
||||
|
||||
const exampleDate = format(new Date(), 'yyyy-MM-dd')
|
||||
</script>
|
||||
|
|
Reference in New Issue
use BaseButton
Done.