1 Star 3 Fork 1

droidzxy / oh_roundimage

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README_zh.md

OhRoundImage

组件介绍

  • 本示例是OpenHarmony自定义组件RoundImage。

    用于定义一张图片为圆形或者圆角矩形。

调用方法

<element name="roundimage" src="../roundimage/roundimage.hml"></element>
<div class="container">
   <roundimage path="/common/gitee.jpg" length="400" shape="1"></roundimage>
</div>

参数介绍

参数 含义
path 设置图片路径
length 设置图片宽度和高度,等宽高
shape 设置图片形状,0 - 圆形,1 - 圆角矩形

效果演示

  • 圆行图片

效果演示 效果演示

  • 圆角矩形图片

效果演示 效果演示

About

OpenHarmony自定义组件roundimage,用来设置圆形图片或圆角图片。 expand collapse
JavaScript and 2 more languages
MulanPSL-2.0
Cancel

Releases

No release

oh_roundimage

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://toscode.gitee.com/droidzxy/oh_roundimage.git
git@toscode.gitee.com:droidzxy/oh_roundimage.git
droidzxy
oh_roundimage
oh_roundimage
master

Search