优化

pull/82/head^2
awenes 2024-04-04 19:29:56 +08:00
parent 86a6d93a7f
commit d6827f9fa2
5 changed files with 27 additions and 11 deletions

View File

@ -102,9 +102,11 @@ const Welcome: React.FC = () => {
style={{ style={{
borderRadius: 8, borderRadius: 8,
}} }}
bodyStyle={{ styles={{
backgroundImage: body: {
'radial-gradient(circle at 97% 10%, #EBF2FF 0%, #F5F8FF 28%, #EBF1FF 124%)', backgroundImage:
'radial-gradient(circle at 97% 10%, #EBF2FF 0%, #F5F8FF 28%, #EBF1FF 124%)',
},
}} }}
> >
<div <div

View File

@ -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}

View File

@ -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`)}>

View File

@ -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();
} }

View File

@ -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`)}>