You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/04/03 08:43:02 UTC

[incubator-iotdb] branch master updated: modify vue home (#976)

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new f945114  modify vue home (#976)
f945114 is described below

commit f945114d4f9d5a374f142460fd5908e307273e08
Author: Sail <37...@users.noreply.github.com>
AuthorDate: Fri Apr 3 16:42:54 2020 +0800

    modify vue home (#976)
    
    * modify vue home
---
 site/src/main/.vuepress/components/Home.vue    | 17 ++---------------
 site/src/main/.vuepress/components/Home_zh.vue | 17 ++---------------
 2 files changed, 4 insertions(+), 30 deletions(-)

diff --git a/site/src/main/.vuepress/components/Home.vue b/site/src/main/.vuepress/components/Home.vue
index 5d28e5a..4829894 100644
--- a/site/src/main/.vuepress/components/Home.vue
+++ b/site/src/main/.vuepress/components/Home.vue
@@ -64,8 +64,8 @@
 
     <div class="block">
         <el-carousel trigger="click" height="700px">
-          <el-carousel-item v-for="item in imgBlock" :key="item">
-            <img :src="item.src" alt="">
+          <el-carousel-item v-for="item in imgBlock" :key="item" style="text-align:center;">
+            <img :src="item.src" height="500px">
             <h3 style="font-size: 30px;color: #fcac45;text-align: center;line-height: 0px;">{{item.des}}</h3>
             <p style="font-size: 18px;padding:10px;line-height: 22px;text-align:justify!important;font-weight:bold;">{{item.detail}}</p>
           </el-carousel-item>
@@ -190,19 +190,6 @@ export default {
     };
   },
   methods: {
-    hover: function(e) {
-      e.currentTarget.style.boxShadow = "2px 2px 10px #909090";
-      e.currentTarget.firstElementChild.style.marginTop = "0px";
-      e.currentTarget.firstElementChild.nextElementSibling.style.display =
-        "block";
-    },
-    unhover: function(e) {
-      e.currentTarget.style.boxShadow = "";
-      e.currentTarget.firstElementChild.style.marginTop = "60px";
-      e.currentTarget.firstElementChild.nextElementSibling.style.display =
-        "none";
-    },
-
     addRoutes1() {
       this.$router.push("/Download/");
     },
diff --git a/site/src/main/.vuepress/components/Home_zh.vue b/site/src/main/.vuepress/components/Home_zh.vue
index 354814a..a88a64d 100644
--- a/site/src/main/.vuepress/components/Home_zh.vue
+++ b/site/src/main/.vuepress/components/Home_zh.vue
@@ -58,8 +58,8 @@ Apache IoTDB(孵化中)(物联网数据库)是一个集成数据专为
 
     <div class="block">
         <el-carousel trigger="click" height="700px">
-          <el-carousel-item v-for="item in imgBlock" :key="item">
-            <img :src="item.src" alt="">
+          <el-carousel-item v-for="item in imgBlock" :key="item" style="text-align:center;">
+            <img :src="item.src" height="500px">
             <h3 style="font-size: 30px;color: #fcac45;text-align: center;line-height: 0px;">{{item.des}}</h3>
             <p style="font-size: 18px;padding:10px;line-height: 22px;text-align:justify!important;font-weight:bold;">{{item.detail}}</p>
           </el-carousel-item>
@@ -184,19 +184,6 @@ export default {
     };
   },
   methods: {
-    hover: function(e) {
-      e.currentTarget.style.boxShadow = "2px 2px 10px #909090";
-      e.currentTarget.firstElementChild.style.marginTop = "0px";
-      e.currentTarget.firstElementChild.nextElementSibling.style.display =
-        "block";
-    },
-    unhover: function(e) {
-      e.currentTarget.style.boxShadow = "";
-      e.currentTarget.firstElementChild.style.marginTop = "60px";
-      e.currentTarget.firstElementChild.nextElementSibling.style.display =
-        "none";
-    },
-
     addRoutes1() {
       this.$router.push("/zh/Download/");
     },