import { CountUp } from 'countup.js'

const options = {
  // 小数点位
  decimalPlaces: 0,
  // 持续时间
  durations: 2
}

export const countUpNum = (dom, value) => {
  new CountUp(dom, value, options).start()
}
