// 处理扩展样式 export const handleExpandStyle = (expandStyle: string) => { const arrStyle = expandStyle?.split(";")?.map(item => item.split(":")) || []; const temStyle = arrStyle.reduce((total, cur) => { if (cur[0] && cur[1]) { return { ...total, [cur[0].trim()]: cur[1].trim() }; } return total; }, {}); return temStyle || {}; }