From befd1f21839939b54254bd316bbd158b136fcd15 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 12 十一月 2024 16:54:25 +0800 Subject: [PATCH] 简化主页 --- miniprogram_npm/tdesign-miniprogram/navbar/README.en-US.md | 38 ++++++++++++++++++++++++++++++++++---- 1 files changed, 34 insertions(+), 4 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/navbar/README.en-US.md b/miniprogram_npm/tdesign-miniprogram/navbar/README.en-US.md index dccf25e..500cdbb 100644 --- a/miniprogram_npm/tdesign-miniprogram/navbar/README.en-US.md +++ b/miniprogram_npm/tdesign-miniprogram/navbar/README.en-US.md @@ -1,18 +1,20 @@ :: BASE_DOC :: ## API + ### Navbar 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 animation | Boolean | true | \- | N -capsule | Slot | - | \- | N +capsule | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N delta | Number | 1 | \- | N -external-classes | Array | - | `['t-class', 't-class-title', 't-class-left', 't-class-center', 't-class-capsule']` | N fixed | Boolean | true | \- | N -left | Slot | - | `0.26.0` | N +left | Slot | - | `0.26.0`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N left-arrow | Boolean | false | `0.26.0` | N -title | String / Slot | - | page title | N +title | String / Slot | - | page title銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N title-max-length | Number | - | \- | N visible | Boolean | true | \- | N @@ -24,3 +26,31 @@ fail | \- | \- go-back | \- | \- success | \- | \- +### Navbar External Classes + +className | Description +-- | -- +t-class | \- +t-class-capsule | \- +t-class-center | \- +t-class-home-icon | \- +t-class-left | \- +t-class-left-icon | \- +t-class-nav-btn | \- +t-class-title | \- + +### CSS Variables + +The component provides the following CSS variables, which can be used to customize styles. +Name | Default Value | Description +-- | -- | -- +--td-navbar-bg-color | @bg-color-container | - +--td-navbar-capsule-border-color | #e3e6ea | - +--td-navbar-capsule-border-radius | 32rpx | - +--td-navbar-capsule-height | 64rpx | - +--td-navbar-capsule-width | 176rpx | - +--td-navbar-color | @font-gray-1 | - +--td-navbar-height | 96rpx | - +--td-navbar-left-arrow-size | 48rpx | - +--td-navbar-title-font-size | 36rpx | - +--td-navbar-title-font-weight | 600 | - \ No newline at end of file -- Gitblit v1.9.3