# 时间轴 y-timeline

支持按钮

# 组件名称

y-timeline

# 基础用法

# 插槽用法

# 属性

/**
 * 属性
 */
export interface YTimelineProps extends Record<string, unknown> {
  /**
   * 值
   */
  modelValue: object[]

  /**
   * 标题属性名
   */
  titleProperty?: string

  /**
   * 时间属性名
   */
  dateTimeProperty?: string

  /**
   * 内容属性名
   */
  contentProperty?: string

  /**
   * 操作按钮
   */
  actionList?: ActionTypeEnum[]
}

/**
 * 操作按钮信息
 */
export interface ActionInfo {

  /**
   * class属性
   */
  className: string

  /**
   * 显示的名称
   */
  label: string
}
export interface Events {

  /**
   * 操作按钮点击事件回调参数
   */
  action: ActionCallbackResult
}

/**
 * 操作按钮点击事件返回值
 */
interface ActionCallbackResult {

  /**
   * 绑定数据
   */
  value: Object

  /**
   * 操作类型
   */
  type: ActionTypeEnum | string
}