0.0.1 • Published 4 years ago

hm-uniapp-email-card v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

官网: https://haomo-tech.com

作者: 毫末科技

邮箱: hxg@haomo-studio.com

预览

预览图片

在线效果预览

更多毫末科技的uni-app跨端模板,请见毫末科技uni-app跨端模板

技术支持

毫末科技将长期迭代本组件。需要技术支持,请进钉钉群(群号30423559):

概述

毫末uni-app毫末邮件卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。

使用

请使用HBuilderX导入组件。

在script中引用:

import HmEmailCard from '@/components/hm-email-card/index.vue'
export default {
    components: { HmEmailCard }
}

在template中使用:

<template>
  <div class="test-component">
    <hm-email-card :options="options"></hm-email-card>
  </div>
</template>
<script>
import HmEmailCard from '@/components/hm-components/hm-email-card/index.vue'

export default {
  components: { HmEmailCard },
  data() {
    return {
      options: {
         icon:
            '/static/hm-email-card/images/img_25353_0_2.png',
          num: '1',
          newMessages: '条新消息',
          summary:
            '摄影是通过记录光线或其他电磁辐射,或通过图像传感器以电子方式,或通过化学方式,通过',
          word: '…',
          avator:
            '/static/hm-email-card/images/img_25353_0_0.png',
          alexander: '王二',
          statimg:
            '/static/hm-email-card/images/img_25353_0_1.png'
        }
    };
  },
  methods: {
    onClick: function(e) {
      console.log('onClick');
    }
  }
};
</script>
<style>
</style>

属性说明

属性名类型默认值说明
optionsObject-卡片属性

options对象各个属性说明如下:

属性名类型默认值说明
iconString-标题图片
numString-未读数量
newMessagesString-标题文字
summaryString-内容
avatorString-邮件人
statimgString-状态图片

事件说明

事件称名事件说明返回参数
@click点击 Card 触发事件-

更新日志

0.0.1(2020-03-27)

  • 完成第一个版本