hm-taro-visits-card

0.0.1 • Public • Published

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

作者: 毫末科技

邮箱: hxg@haomo-studio.com

预览

预览图片

在线效果预览

更多毫末科技的Taro跨端模板,请见毫末科技Taro跨端模板

技术支持

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

概述

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

使用

import Taro, { Component } from '@tarojs/taro'
import { View, Text, Button } from '@tarojs/components'
 
import HmVisitsCard from '../src/components/hm/hm-visits-card/index.jsx'
 
export default class Index extends Component {
 
  componentWillMount () { }
 
  componentDidMount () { }
 
  componentWillUnmount () { }
 
  componentDidShow () { }
 
  componentDidHide () { }
 
  config = {
    navigationBarTitleText: '毫末Taro毫末访问量卡片组件'
  }
 
  render () {
    return (
      <View className='index'>
        <HmVisitsCard/>
      </View>
    )
  }
}

属性说明

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

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

属性名 类型 默认值 说明
text String - 标题文字
img String - 图片
jiantouimg String - 箭头图片
num String - 百分比数字
nums String - 数量
img String - 图片
unit String - 单位
shopLogo String - logo图片

事件说明

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

更新日志

0.0.1(2020-03-07)

  • 完成第一个版本

Package Sidebar

Install

npm i hm-taro-visits-card

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

11.8 kB

Total Files

8

Last publish

Collaborators

  • taoning0403