ZaiZai hace 1 año
padre
commit
ee29f4361b
Se han modificado 1 ficheros con 17 adiciones y 2 borrados
  1. 17 2
      src/App.vue

+ 17 - 2
src/App.vue

@@ -1,8 +1,8 @@
 <template>
     <hc-app-config>
         <router-view />
-        <div class="absolute top-60px z-9999 w-full text-center" @click="testClick1">测试1</div>
-        <div class="absolute top-90px z-9999 w-full text-center" @click="testClick2">测试2</div>
+        <div class="ukey-test-1" @click="testClick1">测试1</div>
+        <div class="ukey-test-2" @click="testClick2">测试2</div>
     </hc-app-config>
 </template>
 
@@ -84,3 +84,18 @@ const setUserTheme = (theme, appColor) => {
     document.documentElement.setAttribute('class', `${theme} color-${colorName}`)
 }
 </script>
+
+<style lang="scss" scoped>
+.ukey-test-1, .ukey-test-2 {
+    position: absolute;
+    cursor: pointer;
+    left: 10px;
+    opacity: 0;
+}
+.ukey-test-1 {
+    bottom: 40px;
+}
+.ukey-test-2 {
+    bottom: 5px;
+}
+</style>