Rate 评分
基础用法
ts
{
id: '',
componentName: 'Rate',
componentType: 'form',
formItemAttrs: {
field: '',
label: '评分',
},
attrs: {},
}等级颜色
ts
{
id: "",
componentName: "Rate",
componentType: "form",
formItemAttrs: {
field: "",
label: "评分",
},
attrs: {
colors: ["#99A9BF", "#F7BA2A", "#FF9900"],
},
},辅助文字
ts
{
id: "",
componentName: "Rate",
componentType: "form",
formItemAttrs: {
field: "",
label: "评分",
},
attrs: {
texts:['oops', 'disappointed', 'normal', 'good', 'great']
'show-text':true,
},
},允许半选
ts
{
id: "",
componentName: "Rate",
componentType: "form",
formItemAttrs: {
field: "",
label: "评分",
},
attrs: {
'allow-half':true,
},
},其他
ts
{
id: "",
componentName: "Rate",
componentType: "form",
formItemAttrs: {
field: "",
label: "评分",
},
attrs: {
disabled: true, //禁用
clearable: true,//可清空
size:"large",//尺寸
},
}