瀏覽代碼

feat: 111

lanjianrong 3 年之前
父節點
當前提交
41bd0b84d9
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/pages/Institutions/Staff/components/StaffDetail.tsx

+ 4 - 5
src/pages/Institutions/Staff/components/StaffDetail.tsx

@@ -253,11 +253,12 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
           watch={watch}
         />
       )}
-      <div className="ml-137px">
+      <div className="ml-120px">
         {type === ModalType.UPDATE ? (
           <ModalForm
             formRef={formRef}
             title="修改密码"
+            modalProps={{ width: '30vw' }}
             isKeyPressSubmit
             trigger={<Button>重置密码</Button>}
             onFinish={async values => {
@@ -268,8 +269,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
               } catch (error) {
                 return false
               }
-            }}
-          >
+            }}>
             <ProFormText.Password
               label="新密码"
               name="newPassword"
@@ -311,8 +311,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
             className="ml-2"
             onClick={() => {
               form.submit()
-            }}
-          >
+            }}>
             提交
           </Button>
         )}