Explorar el Código

feat: 完善个人设置-基本设置ui

lanjianrong hace 4 años
padre
commit
56b205a6db

+ 4 - 1
src/pages/User/Account/Settings/components/BaseView.jsx

@@ -39,8 +39,11 @@ const validatorPhone = (rule, value, callback) => {
 // )
 
 const BaseView = () => {
+  const handleTabChange = key => {
+    console.log(key)
+  }
   return (
-    <Tabs defaultActiveKey="1" onChange={callback}>
+    <Tabs defaultActiveKey="1" onChange={handleTabChange}>
       <TabPane tab="基本信息" key="1">
         <div className={styles.baseView}>
           <div className={styles.left}>

+ 1 - 2
src/pages/User/Account/Settings/components/BaseView.less

@@ -2,8 +2,7 @@
 
 .baseView {
   display: flex;
-  padding-top: 12px;
-
+  height: calc(100vh - 48px - 48px - 46px - 32px);
   :global {
     .ant-legacy-form-item .ant-legacy-form-item-control-wrapper {
       width: 100%;

+ 2 - 2
src/pages/User/Account/Settings/style.less

@@ -4,8 +4,8 @@
   display: flex;
   width: 100%;
   height: 100%;
-  padding-top: 16px;
-  padding-bottom: 16px;
+  // padding-top: 16px;
+  // padding-bottom: 16px;
   background-color: @menu-bg;
   .leftMenu {
     width: 224px;