From f46786f11c5c08ead7501a82e5a71430ad69b782 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期日, 27 四月 2025 17:39:24 +0800 Subject: [PATCH] 修复线索问题定位错误问题 --- miniprogram_npm/tdesign-miniprogram/checkbox/README.en-US.md | 43 ++++++++++++++++++++++++++++++++++--------- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/checkbox/README.en-US.md b/miniprogram_npm/tdesign-miniprogram/checkbox/README.en-US.md index 9f79403..f096130 100644 --- a/miniprogram_npm/tdesign-miniprogram/checkbox/README.en-US.md +++ b/miniprogram_npm/tdesign-miniprogram/checkbox/README.en-US.md @@ -5,43 +5,68 @@ name | type | default | description | required -- | -- | -- | -- | -- -placement | String | left | options锛歭eft/right | N block | Boolean | true | \- | N +borderless | Boolean | false | \- | N check-all | Boolean | false | \- | N checked | Boolean | false | \- | N default-checked | Boolean | undefined | uncontrolled property | N -content | String / Slot | - | \- | N +content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | 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 +label | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N max-content-row | Number | 5 | \- | N max-label-row | Number | 3 | \- | N name | String | - | \- | N +placement | String | left | options锛歭eft/right | N readonly | Boolean | false | \- | N -value | String / Number | - | Typescript锛歚string \| number \| boolean` | N +value | String / Number / Boolean | - | value of checkbox銆俆ypescript锛歚string \| number \| boolean` | N ### Checkbox Events name | params | description -- | -- | -- -change | `(checked: boolean)` | \- +change | `(checked: boolean, context: { value: boolean|number|string, label: boolean|number|string })` | \- ### CheckboxGroup Props name | type | default | description | required -- | -- | -- | -- | -- -disabled | Boolean | false | \- | N +borderless | Boolean | false | \- | N +disabled | Boolean | - | \- | N max | Number | undefined | \- | N name | String | - | \- | N options | Array | [] | Typescript锛歚Array<CheckboxOption>` `type CheckboxOption = string \| number \| CheckboxOptionObj` `interface CheckboxOptionObj { label?: string; value?: string \| number; disabled?: boolean; checkAll?: true }`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox-group/type.ts) | N -value | Array | [] | Typescript锛歚CheckboxGroupValue` `type CheckboxGroupValue = Array<string \| number>`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox-group/type.ts) | N -default-value | Array | undefined | uncontrolled property銆俆ypescript锛歚CheckboxGroupValue` `type CheckboxGroupValue = Array<string \| number>`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox-group/type.ts) | N +value | Array | [] | Typescript锛歚T` `type CheckboxGroupValue = Array<string \| number \| boolean>`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox-group/type.ts) | N +default-value | Array | undefined | uncontrolled property銆俆ypescript锛歚T` `type CheckboxGroupValue = Array<string \| number \| boolean>`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox-group/type.ts) | N ### CheckboxGroup Events name | params | description -- | -- | -- -change | `(value: CheckboxGroupValue, context: CheckboxGroupChangeContext)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox-group/type.ts)銆�<br/>`interface CheckboxGroupChangeContext { e: Event; current: string \| number; option: CheckboxOption \| TdCheckboxProps; type: 'check' \| 'uncheck' }`<br/> +change | `(value: CheckboxGroupValue, context: { value: boolean|number|string, label: boolean|number|string })` | \- + + +### CSS Variables +The component provides the following CSS variables, which can be used to customize styles. +Name | Default Value | Description +-- | -- | -- +--td-checkbox-bg-color | @bg-color-container | - +--td-checkbox-border-color | @component-stroke | - +--td-checkbox-description-color | @font-gray-2 | - +--td-checkbox-description-disabled-color | @font-gray-4 | - +--td-checkbox-description-line-height | 44rpx | - +--td-checkbox-font-size | 32rpx | - +--td-checkbox-icon-checked-color | @brand-color | - +--td-checkbox-icon-color | @gray-color-4 | - +--td-checkbox-icon-disabled-bg-color | @bg-color-component-disabled | - +--td-checkbox-icon-disabled-color | @brand-color-disabled | - +--td-checkbox-icon-size | 48rpx | - +--td-checkbox-tag-active-bg-color | @brand-color-light | - +--td-checkbox-tag-active-color | @brand-color | - +--td-checkbox-title-color | @font-gray-1 | - +--td-checkbox-title-disabled-color | @font-gray-4 | - +--td-checkbox-title-line-height | 48rpx | - +--td-checkbox-vertical-padding | 32rpx | - -- Gitblit v1.9.3