⬆️ 优化

pull/30/head
smallbun 2023-08-16 21:14:13 +08:00
parent c27c60d047
commit b57d178aa9
4 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ const QqOauthConfig = (props: { isCreate: boolean }) => {
<> <>
<ProFormText <ProFormText
name={['config', 'clientId']} name={['config', 'clientId']}
label="Cilent ID" label="CilentId"
rules={[{ required: true }]} rules={[{ required: true }]}
fieldProps={{ autoComplete: 'off' }} fieldProps={{ autoComplete: 'off' }}
placeholder={intl.formatMessage({ placeholder={intl.formatMessage({
@ -45,7 +45,7 @@ const QqOauthConfig = (props: { isCreate: boolean }) => {
<ProFormText.Password <ProFormText.Password
rules={[{ required: true }]} rules={[{ required: true }]}
name={['config', 'clientSecret']} name={['config', 'clientSecret']}
label="Client Secret" label="ClientSecret"
placeholder={intl.formatMessage({ placeholder={intl.formatMessage({
id: 'pages.authn.identity_provider.config.github_oauth.client_secret.placeholder', id: 'pages.authn.identity_provider.config.github_oauth.client_secret.placeholder',
})} })}

View File

@ -67,7 +67,7 @@ export default (props: CreateDrawerProps) => {
title={intl.formatMessage({ title={intl.formatMessage({
id: 'pages.authn.identity_provider.create_modal_title', id: 'pages.authn.identity_provider.create_modal_title',
})} })}
width={600} width={580}
modalProps={{ modalProps={{
forceRender: true, forceRender: true,
onCancel: () => { onCancel: () => {

View File

@ -59,7 +59,7 @@ export default (props: CreateDrawerProps) => {
title={intl.formatMessage({ title={intl.formatMessage({
id: 'pages.authn.identity_provider.update_modal_title', id: 'pages.authn.identity_provider.update_modal_title',
})} })}
width={600} width={580}
layout={'horizontal'} layout={'horizontal'}
{...DRAWER_FORM_ITEM_LAYOUT} {...DRAWER_FORM_ITEM_LAYOUT}
modalProps={{ modalProps={{

View File

@ -55,9 +55,9 @@ export const EXIST_CALLBACK = [
export const DRAWER_FORM_ITEM_LAYOUT = { export const DRAWER_FORM_ITEM_LAYOUT = {
labelCol: { labelCol: {
span: 4, span: 5,
}, },
wrapperCol: { wrapperCol: {
span: 19, span: 18,
}, },
}; };