import { Template } from '@/types/template' export const templates: Template[] = [ { id: 'wechat', name: '微信公众号', styles: 'wechat-template', subTemplates: [ { id: 'default', name: '默认样式', styles: 'wechat-default', transform: (content: string) => { return content .replace(/
/g, '
') } }, { id: 'elegant', name: '优雅简约', styles: 'wechat-elegant', transform: (content: string) => { return content .replace(/
/g, '
') } }, { id: 'modern', name: '现代商务', styles: 'wechat-modern', transform: (content: string) => { return content .replace(/
/g, '
') } }, { id: 'creative', name: '创意活力', styles: 'wechat-creative', transform: (content: string) => { return content .replace(/
/g, '
') } } ], transform: (content: string) => content // 默认转换 }, { id: 'xiaohongshu', name: '小红书', styles: 'xiaohongshu-template', transform: (content: string) => { // 小红书特定的转换逻辑 return content .replace(/
/g, '
') } } ]