1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/open-hand-choerodon-ui

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
index.en-US.md 1.5 КБ
Копировать Редактировать Исходные данные Просмотреть построчно История
Vink Dong Отправлено 7 лет назад f03bd7d
category type title
Components
Data Entry
Checkbox

Checkbox.

When To Use

  • Used for selecting multiple values from several options.
  • If you use only one checkbox, it is the same as using Switch to toggle between two states. The difference is that Switch will trigger the state change directly, but Checkbox just marks the state as changed and this needs to be submitted.

API

Checkbox

Property Description Type Default
autoFocus get focus when component mounted boolean false
checked Specifies whether the checkbox is selected. boolean false
defaultChecked Specifies the initial state: whether or not the checkbox is selected. boolean false
disabled Disable checkbox boolean false
onChange The callback function that is triggered when the state changes. Function(e:Event) -

Checkbox Group

Property Description Type Default
defaultValue Default selected value string[] []
disabled Disable all checkboxes boolean false
options Specifies options string[] []
value Used for setting the currently selected value. string[] []
onChange The callback function that is triggered when the state changes. Function(checkedValue) -

Methods

Checkbox

Name Description
blur() remove focus
focus() get focus

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/open-hand-choerodon-ui.git
git@gitlife.ru:oschina-mirror/open-hand-choerodon-ui.git
oschina-mirror
open-hand-choerodon-ui
open-hand-choerodon-ui
1.6.4