From 00a96d6881dd10ae7d3c4f5437bfceaabe677723 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 14 十一月 2024 10:55:29 +0800 Subject: [PATCH] bug修复 --- miniprogram_npm/tdesign-miniprogram/dialog/README.en-US.md | 45 ++++++++++++++++++++++++++++++++++++--------- 1 files changed, 36 insertions(+), 9 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/dialog/README.en-US.md b/miniprogram_npm/tdesign-miniprogram/dialog/README.en-US.md index 2afa1bf..620da0a 100644 --- a/miniprogram_npm/tdesign-miniprogram/dialog/README.en-US.md +++ b/miniprogram_npm/tdesign-miniprogram/dialog/README.en-US.md @@ -1,22 +1,25 @@ :: BASE_DOC :: ## API + ### Dialog 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 actions | Array / Slot | - | Typescript锛歚Array<ButtonProps>`锛孾Button API Documents](./button?tab=api)銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/dialog/type.ts) | N -button-layout | String | horizontal | options锛歨orizontal/vertical | N -cancel-btn | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/dialog/type.ts) | N -close-btn | Boolean / Object | false | `0.31.0` | N -close-on-overlay-click | Boolean | undefined | \- | N -confirm-btn | String / Object / Slot | - | \- | N -content | String / Slot | - | \- | N -external-classes | Array | - | `['t-class', 't-class-content', 't-class-confirm', 't-class-cancel']` | N -overlay-props | Object | {} | \- | N +button-layout | String | horizontal | options: horizontal/vertical | N +cancel-btn | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts)銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/dialog/type.ts) | N +close-btn | Boolean / Object | false | `0.31.0`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts)銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/dialog/type.ts) | N +close-on-overlay-click | Boolean | false | \- | N +confirm-btn | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N +content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N +overlay-props | Object | {} | Typescript锛歚OverlayProps`锛孾Overlay API Documents](./overlay?tab=api)銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/dialog/type.ts) | N prevent-scroll-through | Boolean | true | \- | N show-overlay | Boolean | true | \- | N -title | String / Slot | - | \- | N +title | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N +using-custom-navbar | Boolean | false | \- | N visible | Boolean | - | \- | N z-index | Number | 11500 | \- | N @@ -28,3 +31,27 @@ close | `(trigger: DialogEventSource)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/dialog/type.ts)銆�<br/>`type DialogEventSource = 'cancel' \| 'overlay' \| 'close-btn'`<br/> confirm | - | \- overlay-click | - | \- +### Dialog External Classes + +className | Description +-- | -- +t-class | \- +t-class-action | \- +t-class-cancel | \- +t-class-confirm | \- +t-class-content | \- + +### CSS Variables + +The component provides the following CSS variables, which can be used to customize styles. +Name | Default Value | Description +-- | -- | -- +--td-dialog-body-max-height | 912rpx | - +--td-dialog-close-color | @font-gray-3 | - +--td-dialog-content-color | @font-gray-2 | - +--td-dialog-content-font-size | 32rpx | - +--td-dialog-content-line-height | 48rpx | - +--td-dialog-title-color | @font-gray-1 | - +--td-dialog-title-font-size | 36rpx | - +--td-dialog-title-line-height | 52rpx | - +--td-dialog-width | 622rpx | - \ No newline at end of file -- Gitblit v1.9.3