import XEUtils from 'xe-utils'
import { VxeComponentSlotType } from 'vxe-pc-ui'

export function getOnName (type: string) {
  return 'on' + type.substring(0, 1).toLocaleUpperCase() + type.substring(1)
}

export function getSlotVNs (vns: VxeComponentSlotType | VxeComponentSlotType[]) {
  if (XEUtils.isArray(vns)) {
    return vns
  }
  return [vns]
}
