You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/** 如果是个方法执行一下它 */
|
|
export function runFunction<T extends any[]>(valueEnum: any, ...rest: T) {
|
|
if (typeof valueEnum === 'function') {
|
|
return valueEnum(...rest)
|
|
}
|
|
return valueEnum
|
|
}
|