import { use } from '../utils'; import Icon from '../icon'; import Cell from '../cell'; import Radio from '../radio'; const [sfc, bem] = use('address-item'); export default sfc({ props: { data: Object, disabled: Boolean, switchable: Boolean }, methods: { onSelect() { if (this.switchable) { this.$emit('select'); } }, onClickRightIcon(event) { event.stopPropagation(); this.$emit('edit'); }, renderRightIcon() { return ; }, renderContent() { const { data } = this; const Info = [
{`${data.name},${data.tel}`}
,
{data.address}
]; return this.disabled ? Info : {Info}; } }, render(h) { const { disabled, switchable } = this; return ( ); } });