gemercheung 1 yıl önce
ebeveyn
işleme
c65e1a2b09
1 değiştirilmiş dosya ile 29 ekleme ve 8 silme
  1. 29 8
      src/views/setting/index.vue

+ 29 - 8
src/views/setting/index.vue

@@ -204,10 +204,12 @@
         maxlength="15"
       />
       <div class="edit-hot">
-        <a @click="addBack">
+        <ui-button type="submit" @click.stop="addTemp = undefined"> 取消 </ui-button>
+        <ui-button type="primary" @click="addBack"> 确定 </ui-button>
+        <!-- <a @click="addBack">
           <ui-icon type="nav-edit" />
           确定
-        </a>
+        </a> -->
       </div>
     </div>
   </div>
@@ -240,7 +242,7 @@ import { SettingResource, addSettingResource } from "@/api/setting-resource";
 import { SettingResourceType } from "@/api/setting-resource";
 import { Dialog } from "bill/index";
 import { Slider, Tooltip } from "ant-design-vue";
-import 'ant-design-vue/lib/tooltip/style/index.css';
+import "ant-design-vue/lib/tooltip/style/index.css";
 import { RoutesName } from "@/router";
 
 fetchSettingResources();
@@ -593,12 +595,31 @@ const iconUpload = async (data: any) => {
 .edit-hot {
   margin-top: 20px;
   text-align: right;
-
-  span {
-    font-size: 14px;
-    color: rgba(255, 255, 255, 0.6);
-    cursor: pointer;
+  display: flex;
+  flex-direction: row;
+  justify-content: center;
+  padding-top: 20px;
+  position: relative;
+  gap: 0 20px;
+  margin-right: -20px;
+  margin-left: -20px;
+  &::before {
+    position: absolute;
+    content: "";
+    height: 1px;
+    width: 100%;
+    top: 0px;
+    background: rgba(255, 255, 255, 0.16);
+  }
+  .ui-button {
+    width: 100px;
   }
+
+  // span {
+  //   font-size: 14px;
+  //   color: rgba(255, 255, 255, 0.6);
+  //   cursor: pointer;
+  // }
 }
 
 .edit-close {