Skip to content

Commit b4023d2

Browse files
committed
fix: date type
1 parent 6d2bff7 commit b4023d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/data-table/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ a-dropdown#td-context(
113113
import { ref, computed, shallowRef } from 'vue'
114114
import { useElementSize } from '@vueuse/core'
115115
import dayjs from 'dayjs'
116+
import { dateTypes } from '@/views/dashboard/config'
116117
import { convertTimestampToMilliseconds } from '@/utils/date-time'
117118
import type { ColumnType, TSColumn } from '@/types/query'
118119
@@ -199,10 +200,9 @@ a-dropdown#td-context(
199200
const tableContainer = ref<HTMLElement>()
200201
const { width: tableWidth, height: tableHeight } = useElementSize(tableContainer)
201202
202-
const TimeTypes = ['TimestampSecond', 'TimestampMillisecond', 'TimestampMicroSecond', 'TimestampNanosecond']
203203
// Timestamp utilities
204204
function isTimeColumn(column: ColumnType) {
205-
return TimeTypes.indexOf(column.data_type) > -1
205+
return dateTypes.indexOf(column.data_type) > -1
206206
}
207207
208208
// Width calculation utilities

0 commit comments

Comments
 (0)