作者: 毫末科技
更多毫末科技的Taro跨端模板,请见毫末科技Taro跨端模板
我们公司提供超低价的切图服务哈。移动端平均50元每个页面,PC Web端平均80元每个页面。目前支持出vue、react、uniapp、taro、flutter、小程序代码代码,代码支持自适应。其中uniapp、taro一份代码支持多端。app原生会在五月份开始支持。示例demo: http://edu.uniapp.haomo-tech.com。部分样例代码:http://downloads.haomo-tech.com/uniapp-demo.zip
毫末科技将长期迭代本组件。需要技术支持,请进钉钉群:
毫末Taro毫末资讯卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。
import Taro, { Component } from '@tarojs/taro'
import { View, Text, Button } from '@tarojs/components'
import HmInformationCard from '../src/components/hm/hm-information-card/index.jsx'
export default class Index extends Component {
componentWillMount () { }
componentDidMount () { }
componentWillUnmount () { }
componentDidShow () { }
componentDidHide () { }
config = {
navigationBarTitleText: '毫末Taro毫末资讯卡片组件'
}
render () {
return (
<View className='index'>
<HmInformationCard/>
</View>
)
}
}
属性名 | 类型 | 默认值 | 说明 |
---|---|---|---|
options | Object | - | 卡片属性 |
options对象各个属性说明如下:
属性名 | 类型 | 默认值 | 说明 |
---|---|---|---|
tag | String | - | 头像文字 |
alexander | String | - | 昵称 |
data | String | - | 发布时间 |
titleImg | String | - | 标题图片 |
summary | String | - | 内容 |
shoucang | String | - | 收藏图标 |
num | String | - | 收藏数量 |
like | String | - | 收藏文字 |
事件称名 | 事件说明 | 返回参数 |
---|---|---|
@click | 点击 Card 触发事件 | - |
- 完成第一个版本