Skip to content

Radio


vue
<div>
<fv-radio v-model="value" label="Option">
Option
</fv-radio> 
<fv-radio v-model="value" label="Option2">
Option2
</fv-radio>
<fv-radio label="Option3" disabled>
Disabled
</fv-radio>
</div>

Radio-Dark


vue
<div style="background:#000;height:30px;padding:20px;">
<fv-radio v-model="value" label="Option" theme="dark">Option</fv-radio>
<fv-radio v-model="value" label="Option2" theme="dark" disabled>Disabled</fv-radio>
</div>

Radio With Icon


vue
<div >
<fv-radio v-model="value" label="NUIIris" icon="NUIIris">NUIIris</fv-radio>
<fv-radio v-model="value" label="MSN" icon="NUIFace" >MSN</fv-radio>
<fv-radio v-model="value" label="MSN" icon="NUIFace" disabled >Disabled</fv-radio>

</div>

Radio With Image


vue
<div>
<fv-radio image="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-react-assets/choicegroup-bar-unselected.png" activeImage="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-react-assets/choicegroup-bar-selected.png" v-model="value" label="chart" >Chart</fv-radio>
</div>

Radio-Dark With Icon


vue
<div style="background:#000;padding:20px;">
<fv-radio v-model="value" label="NUIIris" icon="NUIIris" theme="dark">NUIIris</fv-radio>
<fv-radio v-model="value" label="NUIIris" icon="NUIIris" theme="dark" disabled>disabled</fv-radio>
<fv-radio v-model="value" label="MSN" icon="NUIFace" theme="dark">MSN</fv-radio>
</div>

Radio Custom Color


vue
<fv-radio  icon="NUIIris" v-model="value" label="NUIIris" style="background:#00cc99;" theme="dark" >NUIIris</fv-radio>
<fv-radio icon="NUIIris" v-model="value" label="NUIIris" style="background:#00cc99;" theme="dark" disabled>Disabled</fv-radio>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
v-model/valueObjectYesundefined选项值
labelObjectYesundefined选项值
theme['system','dark','light','custom']No'system'主题色
iconStringNonullMS-ICON
color[string(color)]Nonull文字和图标前景色
foreground[string(color)]Norgba(0, 120, 212, 0.829)Radio前景色
iconBlockBorderRadius[string(color)]No3带图标样式圆角大小
iconBlockBorderWidth[string(color)]No2带图标样式边框大小
imageStringNonull32*32 图像链接
activeImageStringNonull32*32 选中时的图像链接
disabledBooleanNofalse是否禁用

Events


事件名(Name)参数类型(args)说明(statement)
clickevent点击
activedevent选中时触发

MIT Licensed