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