0.3.0 • Published 3 years ago
shoushouship v0.3.0
shoushouship
2021-2-2 新增画廊组件
- 目前只支持对 img 的动态缩放
- 暂不支持 background
- 组件均以 ss- 开头
使用方式
1.gallery:
<!-- 直接使用包裹 img -->
<ss-gallery>
<img
class="image big"
:src="require('@/assets/images/1.jpg')"
>
</gallery>
<!-- 图片在盒子内部 -->
<ss-gallery>
<div>
<img
style="width: 150px"
src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F10%2F04%2F20%2F16570a0078ae945.jpg&refer=http%3A%2F%2Fbpic.588ku.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1614836002&t=a868d90979fc6c8b7863e8fbe9c2fdb0"
>
</div>
</ss-gallery>