/** * 阶段 */ export interface Stage { /** * 阶段id * @TJS-type string */ id: T; /** * 阶段名称 */ name: string; /** * 该阶段的颜色 */ color?: string; } /** * 用户旅程地图数据 */ export interface JourneyMapData { /** * 大的步骤 */ stages: Stage[]; /** * 用户行为 */ actions: Record; } export interface CommonSection { /** * 展示颜色 */ color?: string; /** * 想法 */ thoughts?: string[]; /** * 痛点 */ painPoints?: string[]; } /** * 用户行为类型 */ export interface UserAction extends CommonSection { /** * 行为名称 */ name: string; /** * 情绪得分 * @minimum -2 * @maximum 2 * @TJS-type integer */ emotion?: number; /** * 说明 */ description?: string; } export declare type SectionType = 'stage' | 'action' | 'emotion' | 'thought' | 'painPoint' | 'chance'; /** * 图表配置 */ export interface Config { /** * 显示旅程图标题 */ title?: boolean; /** * 旅程图主色风格 */ color?: string; /** * 每个部分的高度 */ height?: Partial>; /** * 待显示的区块 * 默认为: ['stage', 'action', 'emotion','thought'] */ sections?: Partial[]; }