import React from 'react'; import { Form, Switch, InputNumber, Input, Select } from 'antd'; export default function render(props) { const { offlineAccount } = props.data; const { t, update } = props.methods; if (offlineAccount) { return (
{ const { value } = currentTarget; update({ channel: value, }); }} placeholder={t(`placeholder.channel.${offlineAccount.type}`)}/> } {!!offlineAccount.type && { const { value } = currentTarget; update({ name: value, }); }} placeholder={t(`placeholder.name.${offlineAccount.type}`)}/> } {!!offlineAccount.type && {offlineAccount.type === 'bank' && { const { value } = currentTarget; update({ qrCode: value, }); }} placeholder={t(`placeholder.qrCode.${offlineAccount.type}`)}/>} {offlineAccount.type !== 'bank' && { const { value } = currentTarget; update({ qrCode: value, }); }} placeholder={t(`placeholder.qrCode.${offlineAccount.type}`)}/>} } { const taxLossRatio = value; update({ taxLossRatio }); }}/> { const refundGapDays = value; update({ refundGapDays }); }}/> { const refundCompensateRatio = value; update({ refundCompensateRatio }); }}/> {!!offlineAccount.type && { update({ allowDeposit }); }}/> } {!!offlineAccount.type && { update({ allowPay }); }}/> } { update({ allowWithdrawTransfer }); }}/> { const withdrawTransferLossRatio = value; update({ withdrawTransferLossRatio }); }}/> { update({ enabled }); }}/>
); } }