text: (window.webpackJsonp=window.webpackJsonp||[]).push([[430],{1771:function(t,a,s){"use strict";s.r(a);var r=s(1),e=Object(r.a)({},(function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"rating"}},[t._v("rating"),r("a",{attrs:{name:"ZH-CN_TOPIC_0000001173324645"}})]),t._v(" "),r("p",[t._v("评分条，表示用户使用感受的衡量标准条。")]),t._v(" "),r("h2",{attrs:{id:"权限列表"}},[t._v("权限列表"),r("a",{attrs:{name:"section11257113618419"}})]),t._v(" "),r("p",[t._v("无")]),t._v(" "),r("h2",{attrs:{id:"子组件"}},[t._v("子组件"),r("a",{attrs:{name:"section9288143101012"}})]),t._v(" "),r("p",[t._v("不支持。")]),t._v(" "),r("h2",{attrs:{id:"属性"}},[t._v("属性"),r("a",{attrs:{name:"section2907183951110"}})]),t._v(" "),r("p",[t._v("除支持"),r("RouterLink",{attrs:{to:"/openharmony/zh-cn/application-dev/reference/arkui-js/js-components-common-attributes.html"}},[t._v("通用属性")]),t._v("外，还支持如下属性：")],1),t._v(" "),r("p",[r("a",{attrs:{name:"table20633101642315"}}),t._v(" "),r("table",[r("thead",{attrs:{align:"left"}},[r("tr",{attrs:{id:"row663331618238"}},[r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"23.18%",id:"mcps1.1.6.1.1"}},[r("p",{attrs:{id:"aa872998ac2d84843a3c5161889afffef"}},[r("a",{attrs:{name:"aa872998ac2d84843a3c5161889afffef"}}),r("a",{attrs:{name:"aa872998ac2d84843a3c5161889afffef"}}),t._v("名称")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"13.66%",id:"mcps1.1.6.1.2"}},[r("p",{attrs:{id:"ab2111648ee0e4f6d881be8954e7acaab"}},[r("a",{attrs:{name:"ab2111648ee0e4f6d881be8954e7acaab"}}),r("a",{attrs:{name:"ab2111648ee0e4f6d881be8954e7acaab"}}),t._v("类型")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.46%",id:"mcps1.1.6.1.3"}},[r("p",{attrs:{id:"ab377d1c90900478ea4ecab51e9a058af"}},[r("a",{attrs:{name:"ab377d1c90900478ea4ecab51e9a058af"}}),r("a",{attrs:{name:"ab377d1c90900478ea4ecab51e9a058af"}}),t._v("默认值")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.22%",id:"mcps1.1.6.1.4"}},[r("p",{attrs:{id:"p824610360217"}},[r("a",{attrs:{name:"p824610360217"}}),r("a",{attrs:{name:"p824610360217"}}),t._v("必填")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"44.48%",id:"mcps1.1.6.1.5"}},[r("p",{attrs:{id:"a1d574a0044ed42ec8a2603bc82734232"}},[r("a",{attrs:{name:"a1d574a0044ed42ec8a2603bc82734232"}}),r("a",{attrs:{name:"a1d574a0044ed42ec8a2603bc82734232"}}),t._v("描述")])])])]),t._v(" "),r("tbody",[r("tr",{attrs:{id:"row5141051050"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"23.18%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p157381413961"}},[r("a",{attrs:{name:"p157381413961"}}),r("a",{attrs:{name:"p157381413961"}}),t._v("numstars")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"13.66%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p973881313619"}},[r("a",{attrs:{name:"p973881313619"}}),r("a",{attrs:{name:"p973881313619"}}),t._v("number")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.46%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p1973871314616"}},[r("a",{attrs:{name:"p1973871314616"}}),r("a",{attrs:{name:"p1973871314616"}}),t._v("5")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.22%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p473891317617"}},[r("a",{attrs:{name:"p473891317617"}}),r("a",{attrs:{name:"p473891317617"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"44.48%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p173811138611"}},[r("a",{attrs:{name:"p173811138611"}}),r("a",{attrs:{name:"p173811138611"}}),t._v("设置评分条的星级总数。")])])]),t._v(" "),r("tr",{attrs:{id:"row11475954"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"23.18%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p1973821316618"}},[r("a",{attrs:{name:"p1973821316618"}}),r("a",{attrs:{name:"p1973821316618"}}),t._v("rating")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"13.66%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p19738131320620"}},[r("a",{attrs:{name:"p19738131320620"}}),r("a",{attrs:{name:"p19738131320620"}}),t._v("number")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.46%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p07386135610"}},[r("a",{attrs:{name:"p07386135610"}}),r("a",{attrs:{name:"p07386135610"}}),t._v("0")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.22%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p1673831319613"}},[r("a",{attrs:{name:"p1673831319613"}}),r("a",{attrs:{name:"p1673831319613"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"44.48%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p107382131366"}},[r("a",{attrs:{name:"p107382131366"}}),r("a",{attrs:{name:"p107382131366"}}),t._v("设置评分条当前评星数。")])])]),t._v(" "),r("tr",{attrs:{id:"row1372245811411"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"23.18%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p5738101319611"}},[r("a",{attrs:{name:"p5738101319611"}}),r("a",{attrs:{name:"p5738101319611"}}),t._v("stepsize")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"13.66%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p77381713261"}},[r("a",{attrs:{name:"p77381713261"}}),r("a",{attrs:{name:"p77381713261"}}),t._v("number")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.46%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p1073831312620"}},[r("a",{attrs:{name:"p1073831312620"}}),r("a",{attrs:{name:"p1073831312620"}}),t._v("0.5")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.22%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p5738613465"}},[r("a",{attrs:{name:"p5738613465"}}),r("a",{attrs:{name:"p5738613465"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"44.48%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p27381813364"}},[r("a",{attrs:{name:"p27381813364"}}),r("a",{attrs:{name:"p27381813364"}}),t._v("设置评分条的评星步长。")]),t._v(" "),r("div",{staticClass:"note",attrs:{id:"note1249472985312"}},[r("a",{attrs:{name:"note1249472985312"}}),r("a",{attrs:{name:"note1249472985312"}}),r("span",{staticClass:"notetitle"},[t._v(" 说明： ")]),r("div",{staticClass:"notebody"},[r("p",{attrs:{id:"p749462910531"}},[r("a",{attrs:{name:"p749462910531"}}),r("a",{attrs:{name:"p749462910531"}}),t._v("仅手机和平板设备支持")])])])])]),t._v(" "),r("tr",{attrs:{id:"row192599563412"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"23.18%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p16738813966"}},[r("a",{attrs:{name:"p16738813966"}}),r("a",{attrs:{name:"p16738813966"}}),t._v("indicator")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"13.66%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p47381313769"}},[r("a",{attrs:{name:"p47381313769"}}),r("a",{attrs:{name:"p47381313769"}}),t._v("boolean")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.46%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p1273815131861"}},[r("a",{attrs:{name:"p1273815131861"}}),r("a",{attrs:{name:"p1273815131861"}}),t._v("false")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"9.22%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p1073912131165"}},[r("a",{attrs:{name:"p1073912131165"}}),r("a",{attrs:{name:"p1073912131165"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"44.48%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p87391131166"}},[r("a",{attrs:{name:"p87391131166"}}),r("a",{attrs:{name:"p87391131166"}}),t._v("设置评分条是否作为一个指示器，此时用户不可操作。")])])])])])]),t._v(" "),r("h2",{attrs:{id:"样式"}},[t._v("样式"),r("a",{attrs:{name:"section5775351116"}})]),t._v(" "),r("p",[t._v("除支持"),r("RouterLink",{attrs:{to:"/openharmony/zh-cn/application-dev/reference/arkui-js/js-components-common-styles.html"}},[t._v("通用样式")]),t._v("外，还支持如下样式：")],1),t._v(" "),r("p",[r("a",{attrs:{name:"table179091550174914"}}),t._v(" "),r("table",[r("thead",{attrs:{align:"left"}},[r("tr",{attrs:{id:"row1190955064913"}},[r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.71792820717928%",id:"mcps1.1.6.1.1"}},[r("p",{attrs:{id:"p119091450154913"}},[r("a",{attrs:{name:"p119091450154913"}}),r("a",{attrs:{name:"p119091450154913"}}),t._v("名称")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.80791920807919%",id:"mcps1.1.6.1.2"}},[r("p",{attrs:{id:"p390945020497"}},[r("a",{attrs:{name:"p390945020497"}}),r("a",{attrs:{name:"p390945020497"}}),t._v("类型")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"10.93890610938906%",id:"mcps1.1.6.1.3"}},[r("p",{attrs:{id:"p2090917504493"}},[r("a",{attrs:{name:"p2090917504493"}}),r("a",{attrs:{name:"p2090917504493"}}),t._v("默认值")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"7.519248075192481%",id:"mcps1.1.6.1.4"}},[r("p",{attrs:{id:"p189091750114910"}},[r("a",{attrs:{name:"p189091750114910"}}),r("a",{attrs:{name:"p189091750114910"}}),t._v("必填")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"40.01599840015999%",id:"mcps1.1.6.1.5"}},[r("p",{attrs:{id:"p79091750124917"}},[r("a",{attrs:{name:"p79091750124917"}}),r("a",{attrs:{name:"p79091750124917"}}),t._v("描述")])])])]),t._v(" "),r("tbody",[r("tr",{attrs:{id:"row17909450124912"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.71792820717928%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p790935084914"}},[r("a",{attrs:{name:"p790935084914"}}),r("a",{attrs:{name:"p790935084914"}}),t._v("star-background")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.80791920807919%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p129091350164920"}},[r("a",{attrs:{name:"p129091350164920"}}),r("a",{attrs:{name:"p129091350164920"}}),t._v("string")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"10.93890610938906%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p99099503496"}},[r("a",{attrs:{name:"p99099503496"}}),r("a",{attrs:{name:"p99099503496"}}),t._v("-")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"7.519248075192481%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p1909125019497"}},[r("a",{attrs:{name:"p1909125019497"}}),r("a",{attrs:{name:"p1909125019497"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"40.01599840015999%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p79091050184910"}},[r("a",{attrs:{name:"p79091050184910"}}),r("a",{attrs:{name:"p79091050184910"}}),t._v("设置单个星级未选中的背景图片，只支持本地路径图片，图片格式为png和jpg。")])])]),t._v(" "),r("tr",{attrs:{id:"row139092504495"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.71792820717928%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p19909185044919"}},[r("a",{attrs:{name:"p19909185044919"}}),r("a",{attrs:{name:"p19909185044919"}}),t._v("star-foreground")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.80791920807919%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p18909145064913"}},[r("a",{attrs:{name:"p18909145064913"}}),r("a",{attrs:{name:"p18909145064913"}}),t._v("string")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"10.93890610938906%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p11909550204915"}},[r("a",{attrs:{name:"p11909550204915"}}),r("a",{attrs:{name:"p11909550204915"}}),t._v("-")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"7.519248075192481%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p99101508497"}},[r("a",{attrs:{name:"p99101508497"}}),r("a",{attrs:{name:"p99101508497"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"40.01599840015999%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p1091015502499"}},[r("a",{attrs:{name:"p1091015502499"}}),r("a",{attrs:{name:"p1091015502499"}}),t._v("设置单个星级选中的前景图片，只支持本地路径图片，图片格式为png和jpg。")])])]),t._v(" "),r("tr",{attrs:{id:"row15910185012492"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.71792820717928%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p2910145018491"}},[r("a",{attrs:{name:"p2910145018491"}}),r("a",{attrs:{name:"p2910145018491"}}),t._v("star-secondary")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.80791920807919%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p16910145024916"}},[r("a",{attrs:{name:"p16910145024916"}}),r("a",{attrs:{name:"p16910145024916"}}),t._v("string")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"10.93890610938906%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p7910125064915"}},[r("a",{attrs:{name:"p7910125064915"}}),r("a",{attrs:{name:"p7910125064915"}}),t._v("-")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"7.519248075192481%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p8910150204910"}},[r("a",{attrs:{name:"p8910150204910"}}),r("a",{attrs:{name:"p8910150204910"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"40.01599840015999%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p391095015494"}},[r("a",{attrs:{name:"p391095015494"}}),r("a",{attrs:{name:"p391095015494"}}),t._v("设置单个星级部分选中的次级背景图片，该图片会覆盖背景图片，只支持本地路径图片，图片格式为png和jpg。")])])]),t._v(" "),r("tr",{attrs:{id:"row12910155014493"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.71792820717928%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p7910135054915"}},[r("a",{attrs:{name:"p7910135054915"}}),r("a",{attrs:{name:"p7910135054915"}}),t._v("width")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.80791920807919%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p69101950104910"}},[r("a",{attrs:{name:"p69101950104910"}}),r("a",{attrs:{name:"p69101950104910"}}),t._v("<length>|<percentage>")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"10.93890610938906%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p391015084913"}},[r("a",{attrs:{name:"p391015084913"}}),r("a",{attrs:{name:"p391015084913"}}),t._v("120px")]),t._v(" "),r("p",{attrs:{id:"p1391055012499"}},[r("a",{attrs:{name:"p1391055012499"}}),r("a",{attrs:{name:"p1391055012499"}}),t._v("60px（不可操作）")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"7.519248075192481%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p13910125064911"}},[r("a",{attrs:{name:"p13910125064911"}}),r("a",{attrs:{name:"p13910125064911"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"40.01599840015999%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p1591035014911"}},[r("a",{attrs:{name:"p1591035014911"}}),r("a",{attrs:{name:"p1591035014911"}}),t._v("默认值是在未设置自定义资源和评分星数时，使用5个星和默认资源下的宽度值。")])])]),t._v(" "),r("tr",{attrs:{id:"row79101550124915"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.71792820717928%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p1591005054915"}},[r("a",{attrs:{name:"p1591005054915"}}),r("a",{attrs:{name:"p1591005054915"}}),t._v("height")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.80791920807919%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p2091095024920"}},[r("a",{attrs:{name:"p2091095024920"}}),r("a",{attrs:{name:"p2091095024920"}}),t._v("<length>|<percentage>")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"10.93890610938906%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p20910155014915"}},[r("a",{attrs:{name:"p20910155014915"}}),r("a",{attrs:{name:"p20910155014915"}}),t._v("24px")]),t._v(" "),r("p",{attrs:{id:"p29101650104920"}},[r("a",{attrs:{name:"p29101650104920"}}),r("a",{attrs:{name:"p29101650104920"}}),t._v("12px（不可操作）")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"7.519248075192481%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p491055024914"}},[r("a",{attrs:{name:"p491055024914"}}),r("a",{attrs:{name:"p491055024914"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"40.01599840015999%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p1491065074910"}},[r("a",{attrs:{name:"p1491065074910"}}),r("a",{attrs:{name:"p1491065074910"}}),t._v("默认值是在未设置自定义资源和评分星数时，使用5个星和默认资源下的高度值。")])])]),t._v(" "),r("tr",{attrs:{id:"row791012500491"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.71792820717928%",headers:"mcps1.1.6.1.1 "}},[r("p",{attrs:{id:"p29108504492"}},[r("a",{attrs:{name:"p29108504492"}}),r("a",{attrs:{name:"p29108504492"}}),t._v("rtl-flip")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"20.80791920807919%",headers:"mcps1.1.6.1.2 "}},[r("p",{attrs:{id:"p109107509490"}},[r("a",{attrs:{name:"p109107509490"}}),r("a",{attrs:{name:"p109107509490"}}),t._v("boolean")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"10.93890610938906%",headers:"mcps1.1.6.1.3 "}},[r("p",{attrs:{id:"p391065018494"}},[r("a",{attrs:{name:"p391065018494"}}),r("a",{attrs:{name:"p391065018494"}}),t._v("true")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"7.519248075192481%",headers:"mcps1.1.6.1.4 "}},[r("p",{attrs:{id:"p1891015034920"}},[r("a",{attrs:{name:"p1891015034920"}}),r("a",{attrs:{name:"p1891015034920"}}),t._v("否")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"40.01599840015999%",headers:"mcps1.1.6.1.5 "}},[r("p",{attrs:{id:"p391011508492"}},[r("a",{attrs:{name:"p391011508492"}}),r("a",{attrs:{name:"p391011508492"}}),t._v("在RTL文字方向下是否自动翻转图源。")])])])])])]),t._v(" "),r("blockquote",[r("p",[r("img",{attrs:{src:s(186),alt:""}}),t._v(" "),r("strong",[t._v("说明：")]),t._v("\nstar-background，star-secondary，star-foreground三个星级图源必须全部设置，否则默认的星级颜色为灰色，以此提示图源设置错误。")])]),t._v(" "),r("h2",{attrs:{id:"事件"}},[t._v("事件"),r("a",{attrs:{name:"section124498406719"}})]),t._v(" "),r("p",[t._v("除支持"),r("RouterLink",{attrs:{to:"/openharmony/zh-cn/application-dev/reference/arkui-js/js-components-common-events.html"}},[t._v("通用事件")]),t._v("外，还支持如下事件：")],1),t._v(" "),r("p",[r("a",{attrs:{name:"table836435619510"}}),t._v(" "),r("table",[r("thead",{attrs:{align:"left"}},[r("tr",{attrs:{id:"row153658563517"}},[r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"24.852485248524854%",id:"mcps1.1.4.1.1"}},[r("p",{attrs:{id:"a426b8903842d48fa8012a24ff3c997eb"}},[r("a",{attrs:{name:"a426b8903842d48fa8012a24ff3c997eb"}}),r("a",{attrs:{name:"a426b8903842d48fa8012a24ff3c997eb"}}),t._v("名称")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"22.48224822482248%",id:"mcps1.1.4.1.2"}},[r("p",{attrs:{id:"a53448ba47e5e4ae9bf7774c90820e970"}},[r("a",{attrs:{name:"a53448ba47e5e4ae9bf7774c90820e970"}}),r("a",{attrs:{name:"a53448ba47e5e4ae9bf7774c90820e970"}}),t._v("参数")])]),t._v(" "),r("th",{staticClass:"cellrowborder",attrs:{valign:"top",width:"52.665266526652665%",id:"mcps1.1.4.1.3"}},[r("p",{attrs:{id:"add489ff50c444f24b759162c7f4bad9a"}},[r("a",{attrs:{name:"add489ff50c444f24b759162c7f4bad9a"}}),r("a",{attrs:{name:"add489ff50c444f24b759162c7f4bad9a"}}),t._v("描述")])])])]),t._v(" "),r("tbody",[r("tr",{attrs:{id:"row518915212082"}},[r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"24.852485248524854%",headers:"mcps1.1.4.1.1 "}},[r("p",{attrs:{id:"p125587286811"}},[r("a",{attrs:{name:"p125587286811"}}),r("a",{attrs:{name:"p125587286811"}}),t._v("change")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"22.48224822482248%",headers:"mcps1.1.4.1.2 "}},[r("p",{attrs:{id:"p255820281687"}},[r("a",{attrs:{name:"p255820281687"}}),r("a",{attrs:{name:"p255820281687"}}),t._v("{ rating:  number }")])]),t._v(" "),r("td",{staticClass:"cellrowborder",attrs:{valign:"top",width:"52.665266526652665%",headers:"mcps1.1.4.1.3 "}},[r("p",{attrs:{id:"p10558228886"}},[r("a",{attrs:{name:"p10558228886"}}),r("a",{attrs:{name:"p10558228886"}}),t._v("评分条的评星发生改变时触发该回调。")])])])])])]),t._v(" "),r("h2",{attrs:{id:"方法"}},[t._v("方法"),r("a",{attrs:{name:"section2279124532420"}})]),t._v(" "),r("p",[t._v("支持"),r("RouterLink",{attrs:{to:"/openharmony/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.html"}},[t._v("通用方法")]),t._v("。")],1),t._v(" "),r("h2",{attrs:{id:"示例"}},[t._v("示例"),r("a",{attrs:{name:"section1715414253487"}})]),t._v(" "),r("div",{staticClass:"language- line-numbers-mode"},[r("pre",{pre:!0,attrs:{class:"language-text"}},[r("code",[t._v('\x3c!-- xxx.hml --\x3e\n<div class="container">\n  <rating numstars="5" rating="5" @change="changeRating" id="rating">\n  </rating>\n</div>\n')])]),t._v(" "),r("div",{staticClass:"line-numbers-wrapper"},[r("span",{staticClass:"line-number"},[t._v("1")]),r("br"),r("span",{staticClass:"line-number"},[t._v("2")]),r("br"),r("span",{staticClass:"line-number"},[t._v("3")]),r("br"),r("span",{staticClass:"line-number"},[t._v("4")]),r("br"),r("span",{staticClass:"line-number"},[t._v("5")]),r("br")])]),r("div",{staticClass:"language- line-numbers-mode"},[r("pre",{pre:!0,attrs:{class:"language-text"}},[r("code",[t._v("/* xxx.css */\n.container {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\nrating {\n  width: 200px;\n}\n")])]),t._v(" "),r("div",{staticClass:"line-numbers-wrapper"},[r("span",{staticClass:"line-number"},[t._v("1")]),r("br"),r("span",{staticClass:"line-number"},[t._v("2")]),r("br"),r("span",{staticClass:"line-number"},[t._v("3")]),r("br"),r("span",{staticClass:"line-number"},[t._v("4")]),r("br"),r("span",{staticClass:"line-number"},[t._v("5")]),r("br"),r("span",{staticClass:"line-number"},[t._v("6")]),r("br"),r("span",{staticClass:"line-number"},[t._v("7")]),r("br"),r("span",{staticClass:"line-number"},[t._v("8")]),r("br"),r("span",{staticClass:"line-number"},[t._v("9")]),r("br")])]),r("div",{staticClass:"language- line-numbers-mode"},[r("pre",{pre:!0,attrs:{class:"language-text"}},[r("code",[t._v("// xxx.js\nimport prompt from '@system.prompt';\nexport default {\n    changeRating(e){\n        prompt.showToast({\n            message: e.rating\n        });\n    }\n}\n")])]),t._v(" "),r("div",{staticClass:"line-numbers-wrapper"},[r("span",{staticClass:"line-number"},[t._v("1")]),r("br"),r("span",{staticClass:"line-number"},[t._v("2")]),r("br"),r("span",{staticClass:"line-number"},[t._v("3")]),r("br"),r("span",{staticClass:"line-number"},[t._v("4")]),r("br"),r("span",{staticClass:"line-number"},[t._v("5")]),r("br"),r("span",{staticClass:"line-number"},[t._v("6")]),r("br"),r("span",{staticClass:"line-number"},[t._v("7")]),r("br"),r("span",{staticClass:"line-number"},[t._v("8")]),r("br"),r("span",{staticClass:"line-number"},[t._v("9")]),r("br")])]),r("p",[r("img",{attrs:{src:s(613),alt:""}})])])}),[],!1,null,null,null);a.default=e.exports},186:function(t,a){t.exports="data:image/gif;base64,R0lGODlhGwAWAKUAAPz+/Nze3LS2tHx+fFxaXGRiZERCRBwaHDw6PMTGxAQGBDQ2NKSmpJyenLy+vOTm5HRydDQyNAQCBCwuLCQiJKyurExKTBQSFGRmZFRSVBweHIyKjFxeXNTS1ERGRIyOjOzu7PT29Hx6fCQmJBQWFJSWlAwKDISGhMzOzNTW1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAAALAAAAAAbABYAAAanQIBwSCwaj8ikcslsOpEQiVRiOgFQlKkEkUqCJgViSDQyBIgJUglJ4QyMh45R4/kcJYN3kXLeb8JGeHpEfEYUf3d5hn2EiIGKe4xDh4BFgouGjpaQhJJClImDk54AoI+in6SmmxgDBQYZAwIaG3l5DAGrRBITFAMNDhUDFhcEtgMEFAoYlUQKCwMMDbYODwnTxxARzUMBAsgFtgYHCOHHrwlP6uvs7UEAOw=="},613:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALIAAAA4CAIAAAGhxAUXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABJ8SURBVGhD7Vt7jCRHeY8U78zO7O6dfXBn7jg/YgO2SeTDVpw4ES87NkFJlAgZC4RMEBLCAYWAIwJyYp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