feat(Sku): complete the notes

This commit is contained in:
liuhaihong 2020-07-17 16:34:45 +08:00 committed by neverland
parent 19e0d0df0e
commit 5cce17ab4b

View File

@ -111,7 +111,11 @@ export default createComponent({
} }
} }
}, },
/**
* The phone number copied from IOS mobile phone address book
* will add spaces and invisible Unicode characters
* which cannot pass the /^\d+$/ verification
*/
getFormatter(message) { getFormatter(message) {
return function formatter(value) { return function formatter(value) {
if (message.type === 'mobile' || message.type === 'tel') { if (message.type === 'mobile' || message.type === 'tel') {