{"version":3,"file":"chat-message-props.mjs","sources":["../../../pro-components/chat/chat-message/chat-message-props.ts"],"sourcesContent":["/* eslint-disable */\n\n/**\n * 该文件为脚本自动生成文件，请勿随意修改。如需修改请联系 PMC\n * */\nimport { TdChatItemProps } from '../type';\nimport type { TdChatMessageProps } from 'tdesign-web-components';\nimport { PropType } from 'vue';\nimport type { TNode } from 'tdesign-vue-next';\n\nexport default {\n  /** 动画效果 */\n  animation: {\n    type: String as PropType<TdChatMessageProps['animation']>,\n    default: 'circle' as TdChatMessageProps['animation'],\n    validator(val: TdChatMessageProps['animation']): boolean {\n      if (!val) return true;\n      return ['skeleton', 'moving', 'gradient', 'circle'].includes(val);\n    },\n  },\n  /** 自定义的头像配置 */\n  avatar: {\n    type: [String, Object, Function] as PropType<TdChatMessageProps['avatar']>,\n  },\n  /** 对话单元的时间配置 */\n  datetime: {\n    type: [String, Function] as PropType<TdChatMessageProps['datetime']>,\n  },\n  /** 消息类型 */\n  role: {\n    type: String as PropType<TdChatMessageProps['role']>,\n  },\n  /** 消息状态 */\n  status: {\n    type: String as PropType<TdChatMessageProps['status']>,\n  },\n  /** 消息内容 */\n  content: {\n    type: [Array, Function] as PropType<TdChatMessageProps['content']>,\n  },\n  /** 自定义的昵称 */\n  name: {\n    type: [String, Function] as PropType<TdChatMessageProps['name']>,\n  },\n  /** 气泡框样式，支持基础、线框、文字三种类型 */\n  variant: {\n    type: String as PropType<TdChatMessageProps['variant']>,\n    default: 'text' as TdChatMessageProps['variant'],\n    validator(val: TdChatMessageProps['variant']): boolean {\n      if (!val) return true;\n      return ['base', 'outline', 'text'].includes(val);\n    },\n  },\n  message: {\n    type: Object as PropType<TdChatMessageProps['message']>,\n  },\n  placement: {\n    type: String as PropType<TdChatMessageProps['placement']>,\n    default: 'left' as TdChatMessageProps['placement'],\n  },\n  chatContentProps: {\n    type: Object as PropType<TdChatMessageProps['chatContentProps']>,\n  },\n  allowContentSegmentCustom: {\n    type: Boolean,\n    default: false,\n  },\n};\n"],"names":["animation","type","String","validator","val","includes","avatar","Object","Function","datetime","role","status","content","Array","name","variant","message","placement","chatContentProps","allowContentSegmentCustom","Boolean"],"mappings":";;;;;;AAUA,YAAe;AAEbA,EAAAA,SAAW,EAAA;AACTC,IAAAA,IAAM,EAAAC,MAAA;AACN,IAAA,SAAA,EAAS,QAAA;AACTC,IAAAA,WAAAA,SAAAA,UAAUC,GAA+C,EAAA;AACvD,MAAA,IAAI,CAACA,GAAA,EAAY,OAAA,IAAA,CAAA;AACjB,MAAA,OAAO,CAAC,UAAY,EAAA,QAAA,EAAU,YAAY,QAAQ,CAAA,CAAEC,SAASD,GAAG,CAAA,CAAA;AAClE,KAAA;GACF;AAEAE,EAAAA,MAAQ,EAAA;AACNL,IAAAA,IAAM,EAAA,CAACC,MAAQ,EAAAK,MAAA,EAAQC,QAAQ,CAAA;GACjC;AAEAC,EAAAA,QAAU,EAAA;AACRR,IAAAA,IAAA,EAAM,CAACC,MAAA,EAAQM,QAAQ,CAAA;GACzB;AAEAE,EAAAA,IAAM,EAAA;AACJT,IAAAA,IAAM,EAAAC,MAAAA;GACR;AAEAS,EAAAA,MAAQ,EAAA;AACNV,IAAAA,IAAM,EAAAC,MAAAA;GACR;AAEAU,EAAAA,OAAS,EAAA;AACPX,IAAAA,IAAA,EAAM,CAACY,KAAA,EAAOL,QAAQ,CAAA;GACxB;AAEAM,EAAAA,IAAM,EAAA;AACJb,IAAAA,IAAA,EAAM,CAACC,MAAA,EAAQM,QAAQ,CAAA;GACzB;AAEAO,EAAAA,OAAS,EAAA;AACPd,IAAAA,IAAM,EAAAC,MAAA;AACN,IAAA,SAAA,EAAS,MAAA;AACTC,IAAAA,WAAAA,SAAAA,UAAUC,GAA6C,EAAA;AACrD,MAAA,IAAI,CAACA,GAAA,EAAY,OAAA,IAAA,CAAA;MACjB,OAAO,CAAC,MAAQ,EAAA,SAAA,EAAW,MAAM,CAAA,CAAEC,SAASD,GAAG,CAAA,CAAA;AACjD,KAAA;GACF;AACAY,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