1. 引入组件
import DoScrollingbar from '@/components/basic/DoScrollingbar';
2.使用组件
<DoScrollingbar>{flightInfo.historytoday && flightInfo.historytoday.map(item => {return <div><div><span style={{ paddingRight: "10px" }}>发生时间:{moment(Number(item.interruptionTime)).format('YYYY-MM-DD HH:mm:ss') || ''}</span><span style={{ paddingRight: "10px" }}>所属系统:{item.belongToSystemCiId}</span><span>事件id:{item.eventId}</span></