import React from 'react';
import { Form, Input, Switch, Select, Typography } from 'antd';
import Styles from './styles.module.less';
const { Text } = Typography;
const Upsert = (props) => {
const { item } = props.data;
const { t, update } = props.methods;
if (item === undefined) {
return
{t('noData')}
;
}
return (
{
update({ name: v.target.value });
}}/>
「{item.type}」不是预设类型,请自行注入 handler。
) : undefined}>
{
update({ logo: v.target.value });
}}/>
{
update({ authorizationEndpoint: v.target.value });
}}/>
{
update({ tokenEndpoint: v.target.value });
}}/>
{
update({ refreshEndpoint: v.target.value });
}}/>
{
update({ userInfoEndpoint: v.target.value });
}}/>
{
update({ revokeEndpoint: v.target.value });
}}/>
{
update({ clientId: v.target.value });
}}/>
{
update({ clientSecret: v.target.value });
}}/>
{
update({ redirectUri: v.target.value });
}}/>
update({ autoRegister: checked })}/>
update({ ableState: checked ? "enabled" : "disabled" })}/>
{/*
*/}
);
};
export default Upsert;