mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import XEUtils from 'xe-utils'
|
|
import { SlotVNodeType } from '../../types/all'
|
|
|
|
export function getOnName (type: string) {
|
|
return 'on' + type.substring(0, 1).toLocaleUpperCase() + type.substring(1)
|
|
}
|
|
|
|
export function getSlotVNs (vns: SlotVNodeType | SlotVNodeType[]) {
|
|
if (XEUtils.isArray(vns)) {
|
|
return vns
|
|
}
|
|
return [vns]
|
|
}
|