圆形形状。

权限列表

子组件

支持[animate]、[animateMotion]、[animateTransform]。

属性

支持Svg组件[通用属性]和以下属性。

名称 类型 默认值 必填 描述
id string - 组件的唯一标识。
cx 0
cy 0
r 0

示例

<!-- xxx.hml -->
<div class="container">
  <svg fill="white" width="400" height="400">
    <circle cx="60" cy="200" r="50" stroke-width="4" fill="red" stroke="blue"></circle>
    <circle cx="180" cy="200" r="50" stroke-width="10" stroke="red" stroke-dasharray="10 5" stroke-dashoffset="3"></circle>
  </svg>
</div>

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐