diff --git a/packages/docs/modules/page-config/blocks/change-log/index.ts b/packages/docs/modules/page-config/blocks/change-log/index.ts index a1b40694c8..62fffe15b1 100644 --- a/packages/docs/modules/page-config/blocks/change-log/index.ts +++ b/packages/docs/modules/page-config/blocks/change-log/index.ts @@ -2,13 +2,15 @@ import { definePageConfigBlock } from '../../types' import Component from './index.vue' import { ChangeLog } from './types' +const setup = (changeLog: ChangeLog) => { + return { + type: 'change-log' as const, + changeLog, + } +} + export default definePageConfigBlock({ - setup: (log: ChangeLog) => { - return { - type: 'change-log' as const, - log - } - }, + setup: setup as unknown as () => ReturnType, component: Component, }) diff --git a/packages/docs/modules/page-config/blocks/change-log/index.vue b/packages/docs/modules/page-config/blocks/change-log/index.vue index 7cc7e956cf..4947c5fdbf 100644 --- a/packages/docs/modules/page-config/blocks/change-log/index.vue +++ b/packages/docs/modules/page-config/blocks/change-log/index.vue @@ -5,41 +5,54 @@ import { ChangeLog } from "./types"; import { PropType, computed } from "vue"; const props = defineProps({ - log: { type: Object as PropType, required: true }, + changeLog: { type: Object as PropType, required: true }, }); -const versions = computed(() => Object.keys(props.log)); +const versions = computed(() => Object.keys(props.changeLog));