Bläddra i källkod

fix: 更改提交取消按钮位置

lanxin 2 månader sedan
förälder
incheckning
d8e2318d09

+ 14 - 5
src/pages/A1goods/A1add/index.module.scss

@@ -12,7 +12,7 @@
   :global {
     .A1aMain {
       width: 100%;
-      height: 100%;
+      height: calc(100% - 80px);
       overflow-y: auto;
 
       textarea {
@@ -62,11 +62,20 @@
         }
 
         .A1abtn {
-          position: absolute;
+          display: flex;
+          align-items: center;
+          width: 100%;
+          height: 80px;
+          position: fixed;
+          bottom: 0;
+          background: #fff;
           z-index: 10;
-          left: 1200px;
-          top: 50%;
-          transform: translateY(-50%);
+
+          .A1abtnBox {
+            display: flex;
+            gap: 20px;
+            padding-left: 100px;
+          }
         }
       }
     }

+ 2 - 4
src/pages/A1goods/A1add/index.tsx

@@ -239,14 +239,12 @@ function A1add({ editInfo, closeFu, addTableFu, editTableFu }: Props) {
             {editInfo.txt === '查看' ? (
               <Button onClick={closeFu}>返回</Button>
             ) : (
-              <>
+              <div className='A1abtnBox'>
                 <Button type='primary' htmlType='submit'>
                   提交
                 </Button>
-                <br />
-                <br />
                 <MyPopconfirm txtK='取消' onConfirm={closeFu} />
-              </>
+              </div>
             )}
           </Form.Item>
         </Form>

+ 14 - 5
src/pages/A2panorama/A2add/index.module.scss

@@ -12,7 +12,7 @@
   :global {
     .A2aMain {
       width: 100%;
-      height: 100%;
+      height: calc(100% - 80px);
       overflow-y: auto;
 
       textarea {
@@ -62,11 +62,20 @@
         }
 
         .A2abtn {
-          position: absolute;
+          display: flex;
+          align-items: center;
+          width: 100%;
+          height: 80px;
+          position: fixed;
+          bottom: 0;
+          background: #fff;
           z-index: 10;
-          left: 1200px;
-          top: 50%;
-          transform: translateY(-50%);
+
+          .A2abtnBox {
+            display: flex;
+            gap: 20px;
+            padding-left: 100px;
+          }
         }
       }
     }

+ 2 - 4
src/pages/A2panorama/A2add/index.tsx

@@ -174,14 +174,12 @@ function A2add({ editInfo, closeFu, addTableFu, editTableFu, type }: Props) {
             {editInfo.txt === '查看' ? (
               <Button onClick={closeFu}>返回</Button>
             ) : (
-              <>
+              <div className='A2abtnBox'>
                 <Button type='primary' htmlType='submit'>
                   提交
                 </Button>
-                <br />
-                <br />
                 <MyPopconfirm txtK='取消' onConfirm={closeFu} />
-              </>
+              </div>
             )}
           </Form.Item>
         </Form>

+ 14 - 5
src/pages/A4video/A4add/index.module.scss

@@ -12,7 +12,7 @@
   :global {
     .A4aMain {
       width: 100%;
-      height: 100%;
+      height: calc(100% - 80px);
       overflow-y: auto;
 
       textarea {
@@ -62,11 +62,20 @@
         }
 
         .A4abtn {
-          position: absolute;
+          display: flex;
+          align-items: center;
+          width: 100%;
+          height: 80px;
+          position: fixed;
+          bottom: 0;
+          background: #fff;
           z-index: 10;
-          left: 1200px;
-          top: 50%;
-          transform: translateY(-50%);
+
+          .A4abtnBox {
+            display: flex;
+            gap: 20px;
+            padding-left: 100px;
+          }
         }
       }
     }

+ 2 - 4
src/pages/A4video/A4add/index.tsx

@@ -201,14 +201,12 @@ function A4add({ editInfo, closeFu, addTableFu, editTableFu }: Props) {
             {editInfo.txt === '查看' ? (
               <Button onClick={closeFu}>返回</Button>
             ) : (
-              <>
+              <div className='A4abtnBox'>
                 <Button type='primary' htmlType='submit'>
                   提交
                 </Button>
-                <br />
-                <br />
                 <MyPopconfirm txtK='取消' onConfirm={closeFu} />
-              </>
+              </div>
             )}
           </Form.Item>
         </Form>

+ 14 - 5
src/pages/A5story/A5add/index.module.scss

@@ -12,7 +12,7 @@
   :global {
     .A5aMain {
       width: 100%;
-      height: 100%;
+      height: calc(100% - 80px);
       overflow-y: auto;
 
       textarea {
@@ -64,11 +64,20 @@
         }
 
         .A5abtn {
-          position: absolute;
+          display: flex;
+          align-items: center;
+          width: 100%;
+          height: 80px;
+          position: fixed;
+          bottom: 0;
+          background: #fff;
           z-index: 10;
-          left: 1200px;
-          top: 50%;
-          transform: translateY(-50%);
+
+          .A5abtnBox {
+            display: flex;
+            gap: 20px;
+            padding-left: 100px;
+          }
         }
       }
     }

+ 2 - 4
src/pages/A5story/A5add/index.tsx

@@ -223,14 +223,12 @@ function A5add({ editInfo, closeFu, addTableFu, editTableFu, type }: Props) {
             {editInfo.txt === '查看' ? (
               <Button onClick={closeFu}>返回</Button>
             ) : (
-              <>
+              <div className='A5abtnBox'>
                 <Button type='primary' htmlType='submit'>
                   提交
                 </Button>
-                <br />
-                <br />
                 <MyPopconfirm txtK='取消' onConfirm={closeFu} />
-              </>
+              </div>
             )}
           </Form.Item>
         </Form>