From 093afd3be27ea5e9692839845b69bd56e2405518 Mon Sep 17 00:00:00 2001 From: Riku <risaku@163.com> Date: 星期二, 13 八月 2024 23:49:45 +0800 Subject: [PATCH] 204.8.13 --- miniprogram_npm/tdesign-miniprogram/date-time-picker/README.en-US.md | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/date-time-picker/README.en-US.md b/miniprogram_npm/tdesign-miniprogram/date-time-picker/README.en-US.md index b0214c8..95be80d 100644 --- a/miniprogram_npm/tdesign-miniprogram/date-time-picker/README.en-US.md +++ b/miniprogram_npm/tdesign-miniprogram/date-time-picker/README.en-US.md @@ -1,21 +1,27 @@ :: BASE_DOC :: ## API + ### DateTimePicker 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 cancel-btn | String | 鍙栨秷 | \- | N confirm-btn | String | - | \- | N +custom-locale | String | zh | \- | N end | String / Number | - | \- | N -external-classes | Array | - | `['t-class', 't-class-confirm', 't-class-cancel', 't-class-title']` | N +footer | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N format | String | 'YYYY-MM-DD HH:mm:ss' | \- | N header | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N mode | String / Array | 'date' | Typescript锛歚DateTimePickerMode` `type DateTimePickerMode = TimeModeValues \| Array<TimeModeValues> ` `type TimeModeValues = 'year' \| 'month' \| 'date' \| 'hour' \| 'minute' \| 'second'`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N +popup-props | Object | {} | popup properties銆俆ypescript锛歚PopupProps`锛孾Popup API Documents](./popup?tab=api)銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N show-week | Boolean | false | \- | N start | String / Number | - | \- | N steps | Object | - | \- | N title | String | - | title of picker | N +use-popup | Boolean | true | \- | N value | String / Number | - | Typescript锛歚DateValue` `type DateValue = string \| number`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N default-value | String / Number | undefined | uncontrolled property銆俆ypescript锛歚DateValue` `type DateValue = string \| number`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N visible | Boolean | false | \- | N @@ -26,6 +32,21 @@ -- | -- | -- cancel | \- | \- change | `(value: DateValue)` | \- -close | `(trigger: TriggerSource)` | `1.0.1`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts)銆�<br/>`type TriggerSource = 'overlay' \| 'cancel-btn' \| 'confrim-btn'`<br/> +close | `(trigger: TriggerSource)` | `1.0.1`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts)銆�<br/>`type TriggerSource = 'overlay' \| 'cancel-btn' \| 'confirm-btn'`<br/> confirm | `(value: DateValue)` | `1.0.1` pick | `(value: DateValue)` | \- +### DateTimePicker External Classes + +className | Description +-- | -- +t-class | \- +t-class-cancel | \- +t-class-confirm | \- +t-class-title | \- + +### CSS Variables + +The component provides the following CSS variables, which can be used to customize styles. +Name | Default Value | Description +-- | -- | -- +--td-data-time-picker-year-width | 128rpx | - \ No newline at end of file -- Gitblit v1.9.3