You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kgdxpr e69712b1d2
'commit'
1 year ago
..
README.en-US.md 'commit' 1 year ago
README.md 'commit' 1 year ago
checkbox.d.ts 'commit' 1 year ago
checkbox.js 'commit' 1 year ago
checkbox.json 'commit' 1 year ago
checkbox.wxml 'commit' 1 year ago
checkbox.wxss 'commit' 1 year ago
props.d.ts 'commit' 1 year ago
props.js 'commit' 1 year ago
type.d.ts 'commit' 1 year ago
type.js 'commit' 1 year ago

README.en-US.md

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

:: BASE_DOC ::

API

Checkbox Props

name type default description required
placement String left optionsleft/right N
block Boolean true - N
check-all Boolean false - N
checked Boolean false - N
default-checked Boolean undefined uncontrolled property N
content String / Slot - - N
content-disabled Boolean - - N
disabled Boolean undefined - N
external-classes Array - ['t-class', 't-class-icon', 't-class-label', 't-class-content', 't-class-border'] N
icon String / Array 'circle' Typescript'circle' | 'line' | 'rectangle' | string[] N
indeterminate Boolean false - N
label String / Slot - - N
max-content-row Number 5 - N
max-label-row Number 3 - N
name String - - N
readonly Boolean false - N
value String / Number - Typescriptstring | number | boolean N

Checkbox Events

name params description
change (checked: boolean) -

CheckboxGroup Props

name type default description required
disabled Boolean false - N
max Number undefined - N
name String - - N
options Array [] TypescriptArray<CheckboxOption> type CheckboxOption = string | number | CheckboxOptionObj interface CheckboxOptionObj { label?: string; value?: string | number; disabled?: boolean; checkAll?: true }see more ts definition N
value Array [] TypescriptCheckboxGroupValue type CheckboxGroupValue = Array<string | number>see more ts definition N
default-value Array undefined uncontrolled property。TypescriptCheckboxGroupValue type CheckboxGroupValue = Array<string | number>see more ts definition N

CheckboxGroup Events

name params description
change (value: CheckboxGroupValue, context: CheckboxGroupChangeContext) see more ts definition
interface CheckboxGroupChangeContext { e: Event; current: string | number; option: CheckboxOption | TdCheckboxProps; type: 'check' | 'uncheck' }