0.0.1-alpha.2 • Published 3 years ago

@belleui/belle-radio v0.0.1-alpha.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@belleui/belle-radio

Preview

screent shot

Install

npm install @belleui/belle-radio

Useage

<belle-radio-group selected="radio1">
  <belle-radio value="radio1">Radio1</belle-radio>
  <belle-radio value="radio2">Radio2</belle-radio>
  <belle-radio value="radio3">Radio3</belle-radio>
</belle-radio-group>

Demo

Click to view demo

belle-radio-group

Properties

PropertyAttributeTypeDescription
selectedselectedboolean默认选中的值

Methods

MethodType
handleChecked(event: Event): void
slotChange(): void

Events

EventTypeDescription
on-changeCustomEvent<{ selected: string \| undefined; }>单选框选中事件

Slots

NameDescription
radio item(defualt slot)

belle-radio

Properties

PropertyAttributeTypeDefaultDescription
checkedcheckedbooleanfalse默认是否选中
disableddisabledbooleanfalse是否禁用
valuevaluestring""单选框的值

Methods

MethodType
handleChange(): void

Events

EventType
changeCustomEvent<{ checked: boolean; }>

Slots

NameDescription
默认插槽,按钮文字或者其他html标签