[Improvement] add AddressEdit test cases (#1083)

This commit is contained in:
neverland
2018-05-17 14:22:57 +08:00
committed by GitHub
parent 1bae8ab986
commit 22cff2faec
4 changed files with 189 additions and 21 deletions

View File

@@ -75,6 +75,7 @@ export default create({
this.$emit('focus', e);
const { root } = this.$refs;
/* istanbul ignore if */
if (root && root.scrollIntoView) {
root.scrollIntoView();
}
@@ -99,10 +100,6 @@ export default create({
onSelect(express) {
this.$emit('input', `${express.address || ''} ${express.name || ''}`.trim());
this.$emit('select-search', express);
},
isString(str) {
return typeof str === 'string';
}
}
});