import { createNamespace } from '../utils'; import { isAndroid } from '../utils/validate/system'; import Cell from '../cell'; import Field from '../field'; const [createComponent, bem, t] = createNamespace('address-edit-detail'); const android = isAndroid(); export default createComponent({ props: { value: String, error: Boolean, focused: Boolean, detailRows: Number, searchResult: Array, showSearchResult: Boolean }, methods: { onSelect(express) { this.$emit('select-search', express); this.$emit( 'input', `${express.address || ''} ${express.name || ''}`.trim() ); }, onFinish() { this.$refs.field.blur(); }, renderFinish() { const show = this.value && this.focused && android; if (show) { return (