1# path 2 3 4> **说明:** 5> 该组件从API version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 6 7绘制路径。 8 9## 权限列表 10 11无 12 13 14## 子组件 15 16支持[animate](js-components-svg-animate.md)、[animateMotion](js-components-svg-animatemotion.md)、[animateTransform](js-components-svg-animatetransform.md)。 17 18 19## 属性 20 21支持Svg组件[通用属性](js-components-svg-common-attributes.md)和以下属性,设置的通用属性会传递给子组件。 22 23| 名称 | 类型 | 默认值 | 必填 | 描述 | 24| -------- | -------- | -------- | -------- | -------- | 25| id | string | - | 否 | 组件的唯一标识。 | 26| d | string | - | 否 | 设置路径的形状。包含一组字符指令,大写字母为绝对路径,小写字符为相对路径。<br/>字母指令表示的意义如下:<br/>- M/m = moveto<br/>- L/l = lineto<br/>- H/h = horizontal lineto<br/>- V/v = vertical lineto<br/>- C/c = curveto<br/>- S/s = smooth curveto<br/>- Q/q = quadratic Belzier curve<br/>- T/t = smooth quadratic Belzier curveto<br/>- A/a = elliptical Arc<br/>- Z/z = closepath | 27 28 29## 示例 30 31```html 32<!-- xxx.hml --> 33<div class="container"> 34 <svg width="400" height="400"> 35 <path d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z" 36 stroke="blue" stroke-width="3" fill="red"> 37 </path> 38 </svg> 39</div> 40``` 41 42 43 44