mirror of
https://github.com/element-plus/element-plus.git
synced 2025-03-01 15:35:51 +08:00
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:
parent
fc1a0b8d60
commit
0be1872b06
@ -17,8 +17,13 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
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',
|
||||
timestamp: '2018-04-12 20:46',
|
||||
|
Loading…
Reference in New Issue
Block a user