UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

30 lines (29 loc) 858 B
import type { RendererProps } from 'jamis-core'; import type { BaseSchema, FormBaseControlSchema } from '../types'; export interface EmailViewerSchema extends BaseSchema, Pick<FormBaseControlSchema, 'name' | 'value'> { type: 'email-viewer'; } export interface EmailViewProps extends EmailViewerSchema, RendererProps { } export interface EmailAttachment { filename: string | null; contentType: string | null; content: any; filesize: number; } export interface EmailObject { date: Date | null; subject: string; from: string; to: string; bcc?: string | null; cc?: string | null; replyTo: string | null; type: 'received' | 'sent'; size: number; messageText: string | null; messageHtml: string | null; attachment?: EmailAttachment[]; /** 引用文件 */ cititions?: EmailAttachment[]; }