mirror of https://gitee.com/topiam/eiam
⚡ 优化
parent
86a6d93a7f
commit
d6827f9fa2
|
@ -102,9 +102,11 @@ const Welcome: React.FC = () => {
|
|||
style={{
|
||||
borderRadius: 8,
|
||||
}}
|
||||
bodyStyle={{
|
||||
backgroundImage:
|
||||
'radial-gradient(circle at 97% 10%, #EBF2FF 0%, #F5F8FF 28%, #EBF1FF 124%)',
|
||||
styles={{
|
||||
body: {
|
||||
backgroundImage:
|
||||
'radial-gradient(circle at 97% 10%, #EBF2FF 0%, #F5F8FF 28%, #EBF1FF 124%)',
|
||||
},
|
||||
}}
|
||||
>
|
||||
<div
|
||||
|
|
|
@ -130,7 +130,9 @@ export default (props: SyncRecordProps) => {
|
|||
onClose={onClose}
|
||||
width={630}
|
||||
destroyOnClose
|
||||
bodyStyle={{ paddingTop: 0 }}
|
||||
styles={{
|
||||
body: { paddingTop: 0 },
|
||||
}}
|
||||
>
|
||||
<ProTable<AccountAPI.ListIdentitySourceSyncRecord>
|
||||
actionRef={actionRef}
|
||||
|
|
|
@ -62,7 +62,13 @@ export default (props: { userId: string }) => {
|
|||
rowKey={'id'}
|
||||
renderItem={(row) => {
|
||||
return (
|
||||
<Card hoverable bodyStyle={{ padding: 0 }} style={{ margin: 10 }}>
|
||||
<Card
|
||||
hoverable
|
||||
styles={{
|
||||
body: { padding: 0 },
|
||||
}}
|
||||
style={{ margin: 10 }}
|
||||
>
|
||||
<div className={classNames(`${prefixCls}-content`)} key={row.id}>
|
||||
<div className={classNames(`${prefixCls}-content-status`)} />
|
||||
<div className={classNames(`${prefixCls}-content-title`)}>
|
||||
|
|
|
@ -78,7 +78,7 @@ export default (props: { userId: string }) => {
|
|||
valueType: 'option',
|
||||
fixed: 'right',
|
||||
width: 100,
|
||||
render: (text, row) => {
|
||||
render: (_text, row) => {
|
||||
return [
|
||||
<Popconfirm
|
||||
title={intl.formatMessage({
|
||||
|
@ -113,11 +113,11 @@ export default (props: { userId: string }) => {
|
|||
/**
|
||||
* onSave
|
||||
*
|
||||
* @param key
|
||||
* @param _key
|
||||
* @param record
|
||||
*/
|
||||
const onSave = async (
|
||||
key: React.Key | React.Key[],
|
||||
_key: React.Key | React.Key[],
|
||||
record: AccountAPI.UpdateUser,
|
||||
): Promise<any | void> => {
|
||||
const { success } = await updateUser(
|
||||
|
@ -317,7 +317,7 @@ export default (props: { userId: string }) => {
|
|||
}),
|
||||
},
|
||||
{
|
||||
validator: async (rule, value) => {
|
||||
validator: async (_rule, value) => {
|
||||
if (!value) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
@ -357,7 +357,7 @@ export default (props: { userId: string }) => {
|
|||
}),
|
||||
},
|
||||
{
|
||||
validator: async (rule, value) => {
|
||||
validator: async (_rule, value) => {
|
||||
if (!value) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
|
|
@ -59,7 +59,13 @@ export default (props: { userGroupId: string }) => {
|
|||
rowKey={'id'}
|
||||
renderItem={(row) => {
|
||||
return (
|
||||
<Card hoverable bodyStyle={{ padding: 0 }} style={{ margin: 10 }}>
|
||||
<Card
|
||||
hoverable
|
||||
styles={{
|
||||
body: { padding: 0 },
|
||||
}}
|
||||
style={{ margin: 10 }}
|
||||
>
|
||||
<div className={classNames(`${prefixCls}-content`)} key={row.id}>
|
||||
<div className={classNames(`${prefixCls}-content-status`)} />
|
||||
<div className={classNames(`${prefixCls}-content-title`)}>
|
||||
|
|
Loading…
Reference in New Issue