1
0
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:
三咲智子 2022-11-27 16:54:00 +08:00
parent c4af4a610e
commit a101b79486
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
4 changed files with 11 additions and 5 deletions

View File

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

View File

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

View File

@ -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: {

View File

@ -7,7 +7,7 @@ definePageMeta({
return {
path: getStatusPath(status),
state: {
status,
status: status as any,
},
}
},