docs: [timeline] fix type error (#19688)

* docs: [timeline] fix type error

* Update docs/examples/timeline/custom-node.vue

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* Update docs/examples/timeline/custom-node.vue

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
This commit is contained in:
jiaxiang 2025-01-19 15:36:05 +08:00 committed by GitHub
parent fc1a0b8d60
commit 0be1872b06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,8 +17,13 @@
<script lang="ts" setup> <script lang="ts" setup>
import { MoreFilled } from '@element-plus/icons-vue' import { MoreFilled } from '@element-plus/icons-vue'
import type { TimelineItemProps } from 'element-plus'
const activities = [ interface ActivityType extends Partial<TimelineItemProps> {
content: string
}
const activities: ActivityType[] = [
{ {
content: 'Custom icon', content: 'Custom icon',
timestamp: '2018-04-12 20:46', timestamp: '2018-04-12 20:46',