(e)
| 88 | } |
| 89 | |
| 90 | export function getValueFromEvent(e) { |
| 91 | // To support custom element |
| 92 | if (!e || !e.target) { |
| 93 | return e; |
| 94 | } |
| 95 | const { target } = e; |
| 96 | return target.type === 'checkbox' ? target.checked : target.value; |
| 97 | } |
| 98 | |
| 99 | export function getErrorStrs(errors) { |
| 100 | if (errors) { |