<script>
export default {
  data() {
    return {

    }
  },
  created() {},
  methods: {
    handleEmail(){
      //ajax代码
      // getData("", {}).then(res => {
      //   if (res.code == 0) {
      //     var newPage = window.open("", "_blank");
      //     newPage.location = res.data.loginUrl;
      //   }
      // });
    }
  }
}
</script>
<style lang="less" scoped>
  .demo-block {
    >div {
      margin-bottom: 20px;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
</style>

# 邮箱跳转

----
采用`element-ui`中的样式变量，简化功能，熟悉 css \(^o^)/~。

### 基础用法

- 基础的邮箱icon用法

<div class="demo-block">
    <h-email ></h-email>
</div>

:::demo



```html
  <div>
       <h-email ></h-email>
  </div>
  <script>
 export default {
  data() {
    return {

    }
  },
  created() {},
  methods: {
    handleEmail(){
      //ajax代码
      // getData("", {}).then(res => {
      //   if (res.code == 0) {
      //     var newPage = window.open("", "_blank");
      //     newPage.location = res.data.loginUrl;
      //   }
      // });
    }
  }
}
</script>

```
:::
### Attributes
| 参数         | 说明                 | 类型   | 可选值 | 默认值 |
| ------------ | -------------------- | ------ | ------ | ------ |




### Events
| 事件名         | 说明             | 返回值                       |
| -------------- | ---------------- | ---------------------------- |
| @handleEmail | 点击跳转外部邮箱 | —— |

