From f2a0ea849099f49a3d2a9c7e5c44d033df22468f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 14 八月 2024 14:55:38 +0800 Subject: [PATCH] 设备管理模块 --- miniprogram_npm/tdesign-miniprogram/tag/README.en-US.md | 83 ++++++++++++++++++++++++++++++++++------- 1 files changed, 69 insertions(+), 14 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/tag/README.en-US.md b/miniprogram_npm/tdesign-miniprogram/tag/README.en-US.md index 99fa354..20b1309 100644 --- a/miniprogram_npm/tdesign-miniprogram/tag/README.en-US.md +++ b/miniprogram_npm/tdesign-miniprogram/tag/README.en-US.md @@ -1,19 +1,21 @@ :: BASE_DOC :: ## API + ### Tag Props name | type | default | description | required -- | -- | -- | -- | -- -closable | Boolean | false | \- | N +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets)锛寀sed to set style on virtual component | N +closable | Boolean / Object | false | \- | N disabled | Boolean | false | \- | N -external-classes | Array | - | `['t-class']` | N -icon | String / Object / Slot | - | \- | N +icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N max-width | String / Number | - | \- | N -shape | String | square | options锛歴quare/round/mark | N -size | String | medium | options锛歴mall/medium/large/extra-large銆俆ypescript锛歚SizeEnum` | N -theme | String | default | options锛歞efault/primary/warning/danger/success | N -variant | String | dark | options锛歞ark/light/outline/light-outline | N +shape | String | square | options: square/round/mark | N +size | String | medium | options: small/medium/large/extra-large | N +theme | String | default | options: default/primary/warning/danger/success | N +variant | String | dark | options: dark/light/outline/light-outline | N ### Tag Events @@ -21,21 +23,28 @@ -- | -- | -- click | - | \- close | - | \- +### Tag External Classes + +className | Description +-- | -- +t-class | \- + ### CheckTag Props name | type | default | description | required -- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets)锛寀sed to set style on virtual component | N checked | Boolean | undefined | \- | N default-checked | Boolean | undefined | uncontrolled property | N -closable | Boolean | false | `deprecated` | N -content | String / Number / Array / Slot | - | Typescript锛歚string \| number \| string[]` | N +closable | Boolean | false | \- | N +content | String / Number / Array / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N disabled | Boolean | false | \- | N -external-classes | Array | - | `['t-class']` | N -icon | String / Object / Slot | - | \- | N -shape | String | square | `deprecated`銆俹ptions锛歴quare/round/mark | N -size | String | medium | options锛歴mall/medium/large銆俆ypescript锛歚SizeEnum` | N -variant | String | dark | `0.26.0`銆俹ptions锛歞ark/light/outline/light-outline | N +icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N +shape | String | square | options: square/round/mark | N +size | String | medium | options: small/medium/large銆俆ypescript锛歚SizeEnum`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N +variant | String | dark | `0.26.0`銆俹ptions: dark/light/outline/light-outline | N ### CheckTag Events @@ -43,3 +52,49 @@ -- | -- | -- change | `(checked: boolean)` | \- click | - | \- +close | \- | \- +### CheckTag External Classes + +className | Description +-- | -- +t-class | \- + +### CSS 鍙橀噺 + +The component provides the following CSS variables, which can be used to customize styles. +Name | Default Value | Description +-- | -- | -- +--td-tag-close-icon-color | @font-gray-3 | - +--td-tag-danger-color | @error-color | - +--td-tag-danger-light-color | @error-color-1 | - +--td-tag-default-color | @bg-color-component | - +--td-tag-default-font-color | @font-gray-1 | - +--td-tag-default-light-color | @bg-color-secondarycontainer | - +--td-tag-disabled-background-color | @bg-color-component-disabled | - +--td-tag-disabled-border-color | @component-border | - +--td-tag-disabled-color | @font-gray-4 | - +--td-tag-extra-large-font-size | @font-size-base | - +--td-tag-extra-large-height | 80rpx | - +--td-tag-extra-large-icon-size | 32rpx | - +--td-tag-extra-large-padding | 32rpx - 1px | - +--td-tag-large-font-size | @font-size-base | - +--td-tag-large-height | 56rpx | - +--td-tag-large-icon-size | 32rpx | - +--td-tag-large-padding | 16rpx - 1px | - +--td-tag-mark-border-radius | @tag-round-border-radius | - +--td-tag-medium-font-size | @font-size-s | - +--td-tag-medium-height | 48rpx | - +--td-tag-medium-icon-size | 28rpx | - +--td-tag-medium-padding | 16rpx - 1px | - +--td-tag-outline-bg-color | @bg-color-container | - +--td-tag-primary-color | @brand-color | - +--td-tag-primary-light-color | @brand-color-light | - +--td-tag-round-border-radius | 999px | - +--td-tag-small-font-size | @font-size | - +--td-tag-small-height | 40rpx | - +--td-tag-small-icon-size | 24rpx | - +--td-tag-small-padding | 12rpx - 1px | - +--td-tag-square-border-radius | 8rpx | - +--td-tag-success-color | @success-color | - +--td-tag-success-light-color | @success-color-1 | - +--td-tag-warning-color | @warning-color | - \ No newline at end of file -- Gitblit v1.9.3