Appearance
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/value | Object | Yes | undefined | 选项值 |
label | Object | Yes | undefined | 选项值 |
theme | ['system','dark','light','custom'] | No | 'system' | 主题色 |
icon | String | No | null | MS-ICON |
color | [string(color)] | No | null | 文字和图标前景色 |
foreground | [string(color)] | No | rgba(0, 120, 212, 0.829) | Radio前景色 |
iconBlockBorderRadius | [string(color)] | No | 3 | 带图标样式圆角大小 |
iconBlockBorderWidth | [string(color)] | No | 2 | 带图标样式边框大小 |
image | String | No | null | 32*32 图像链接 |
activeImage | String | No | null | 32*32 选中时的图像链接 |
disabled | Boolean | No | false | 是否禁用 |
Events
事件名(Name) | 参数类型(args) | 说明(statement) |
---|---|---|
click | event | 点击 |
actived | event | 选中时触发 |