# hm-uniapp-news-card **Repository Path**: haomo/hm-uniapp-news-card ## Basic Information - **Project Name**: hm-uniapp-news-card - **Description**: 毫末uni-app新闻卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2020-03-08 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > 官网: [https://haomo-tech.com](https://haomo-tech.com) > 作者: 毫末科技 > 邮箱: hxg@haomo-studio.com ## 预览 ![预览图片](http://downloads.haomo-tech.com/uniapp/hm-news-card.png) [在线效果预览](http://template.uniapp.haomo-tech.com/pages/haomo/test-component/hm-news-card) 更多毫末科技的uni-app跨端模板,请见[毫末科技uni-app跨端模板](https://haomo-tech.com/sale.html) ## 技术支持 * [uni-app插件市场](https://ext.dcloud.net.cn/plugin?id=1380) * [npm包](https://www.npmjs.com/package/hm-news-card) * [github地址](https://github.com/haomo-studio/hm-uniapp-news-card) 毫末科技将长期迭代本组件。需要技术支持,请进钉钉群: ## 概述 毫末uni-app新闻卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。 ## 使用 请使用HBuilderX导入组件。 在script中引用: ```javascript import HmNewsCard from '@/components/hm-news-card/index.vue' export default { components: {HmNewsCard} } ``` 在template中使用: ```html ``` 详细用法请见[组件Storyboard](http://) ## 属性说明 | 属性名 | 类型 | 默认值 | 说明 | |----------- |---------|--------|----------------------------------------------------------------------------| | options | Object | - | 卡片属性 | options对象各个属性说明如下: | 属性名 | 类型 | 默认值 | 说明 | |----------- |---------|--------|----------------------------------------------------------------------------| | title | String | - | 标题文字 | | author | String | - | 作者 | | summary | String | - | 摘要 | | date | String | - | 日期 | | img | String | - | 新闻图片 | | showComments| Boolean | true | 是否显示评论数 | | showLikes | Boolean | true | 是否显示喜欢数 | | comments | String | - | 评论 | | likes | String | - | 喜欢 | ## 事件说明 | 事件称名 | 事件说明 | 返回参数 | |----------|--------------------|----------| | @click | 点击 Card 触发事件 | - | ## 更新日志 ### 0.0.1(2020-03-07) * 完成第一个版本