UNPKG

cube-ui

Version:

A fantastic mobile ui lib implement by Vue

19 lines (17 loc) 314 B
const typesResetMap = { checkbox() { /* istanbul ignore next */ return false }, select() { /* istanbul ignore next */ return null } } function getResetValueByType(type) { const resetHandler = typesResetMap[type] return resetHandler && resetHandler() } export { getResetValueByType }