import React from 'react'; import { Tabs, Button, Alert, Affix, Space, Typography } from 'antd'; import Style from './web.module.less'; import Account from './account/index'; import Cos from './cos/index'; import Map from './map/index'; import Live from './live/index'; import Sms from './sms/index'; export default function Render(props) { const { entity, name, currentConfig, dirty } = props.data; const { resetConfig, updateConfig, setValue, removeItem, cleanKey, t } = props.methods; const { Account: account, Cos: cos, Map: map, Live: live, Sms: sms, } = currentConfig || {}; return (<> 您正在更新 {entity} 对象 {name} 的配置,请谨慎操作 } type="info" showIcon action={ }/>
setValue(`Account.${path}`, value)} removeItem={(path, index) => removeItem(`Account.${path}`, index)}/>), }, { key: '云存储设置', label: '云存储设置', children: ( setValue(`Cos.${path}`, value)} removeItem={(path, index) => removeItem(`Cos.${path}`, index)}/>), }, { key: '直播api设置', label: '直播api设置', children: ( setValue(`Map.${path}`, value)}/>), }, { key: '地图api设置', label: '地图api设置', children: ( setValue(`Map.${path}`, value)}/>), }, { key: '短信设置', label: '短信设置', children: ( setValue(`Sms.${path}`, value)} removeItem={(path, index) => removeItem(`Sms.${path}`, index)} cleanKey={(path, key) => cleanKey(`Sms.${path}`, key)}/>), }, ]}>
); }