hm-uniapp-photo-card
v0.0.2
Published
毫末uni-app图片展示卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。
Downloads
16
Maintainers
Readme
作者: 毫末科技
预览
更多毫末科技的uni-app跨端模板,请见毫末科技uni-app跨端模板
技术支持
毫末科技将长期迭代本组件。需要技术支持,请进钉钉群:
概述
毫末uni-app新闻卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。
使用
请使用HBuilderX导入组件。
在script中引用:
import HmPhotoCard from '@/components/hm-photo-card/index.vue'
export default {
components: {HmPhotoCard}
}
在template中使用:
<template>
<div class="test-component">
<hm-photo-card :options="options"></hm-photo-card>
</div>
</template>
<script>
import HmPhotoCard from '@/components/hm-components/hm-photo-card/index.vue'
export default {
components: {
HmPhotoCard
},
data() {
return {
options: {
title: '我的 图片',
titleImg:
'/static/hm-photo-card/images/img_24027_0_0.png',
img:
'/static/hm-photo-card/images/img_24027_0_3.png',
img1:
'/static/hm-photo-card/images/img_24027_0_2.png',
img2:
'/static/hm-photo-card/images/img_24027_0_4.png',
img3:
'/static/hm-photo-card/images/img_24027_0_1.png',
img4:
'/static/hm-photo-card/images/img_24027_0_5.png',
img5:
'/static/hm-photo-card/images/img_24027_0_6.png'
}
};
},
methods: {
}
};
</script>
<style>
</style>
属性说明
| 属性名 | 类型 | 默认值 | 说明 | |----------- |---------|--------|----------------------------------------------------------------------------| | options | Object | - | 卡片属性 |
options对象各个属性说明如下:
| 属性名 | 类型 | 默认值 | 说明 | |----------- |---------|--------|----------------------------------------------------------------------------| | title | String | - | 标题 | | titleImg | String | - | 图片 | | img1 | String | - | 图片 | | img2 | String | - | 图片 | | img3 | String | - | 图片 | | img4 | String | - | 图片 | | img5 | String | - | 图片 |
事件说明
更新日志
0.0.1(2020-03-10)
- 完成第一个版本