mirror of
https://github.com/elk-zone/elk
synced 2024-11-23 22:56:09 +09:00
fix: type errors
This commit is contained in:
parent
c4af4a610e
commit
a101b79486
@ -10,6 +10,14 @@ const { paginator, keyProp = 'id', virtualScroller = false } = defineProps<{
|
||||
virtualScroller: boolean
|
||||
}>()
|
||||
|
||||
defineSlots<{
|
||||
default: {
|
||||
item: any
|
||||
active?: boolean
|
||||
}
|
||||
loading: {}
|
||||
}>()
|
||||
|
||||
const { items, state, endAnchor, error } = usePaginator(paginator)
|
||||
</script>
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
|
||||
// @ts-ignore build time
|
||||
const buildTime = __BUILD_TIME__
|
||||
const buildTime = import.meta.env.__BUILD_TIME__ as string
|
||||
const buildTimeAgo = useTimeAgo(buildTime)
|
||||
</script>
|
||||
|
||||
|
@ -27,7 +27,7 @@ export default defineNuxtConfig({
|
||||
},
|
||||
vite: {
|
||||
define: {
|
||||
'__BUILD_TIME__': JSON.stringify(new Date().toISOString()),
|
||||
'import.meta.env.__BUILD_TIME__': JSON.stringify(new Date().toISOString()),
|
||||
'process.env.VSCODE_TEXTMATE_DEBUG': 'false',
|
||||
},
|
||||
build: {
|
||||
|
@ -7,7 +7,7 @@ definePageMeta({
|
||||
return {
|
||||
path: getStatusPath(status),
|
||||
state: {
|
||||
status,
|
||||
status: status as any,
|
||||
},
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user