riku
2025-04-17 ec7f5ba1f7eb84507e1c8e7b6f66b1ecfbc22728
miniprogram_npm/tdesign-miniprogram/footer/README.en-US.md
@@ -1,13 +1,37 @@
:: BASE_DOC ::
## API
### Footer Props
name | type | default | description | required
-- | -- | -- | -- | --
copyright | String | '' | \- | N
text | String | '' | \- | N
logo | Object | - | Typescript:`FooterLogo` `interface FooterLogo { icon: string; title?: string; titleUrl?: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
text-link-list | Array | [] | Typescript:`Array<LinkObj>` `interface LinkObj { name: string; url?: string; openType?: 'navigate' \| 'redirect' \| 'relaunch' \| 'switchTab' \| 'navigateBack' }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
links | Array | [] | Typescript:`Array<LinkObj>` `interface LinkObj { name: string; url?: string; openType?: 'navigate' \| 'redirect' \| 'relaunch' \| 'switchTab' \| 'navigateBack' }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
theme | String | 'text' | options:text/logo | N
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
copyright | String | '' | `deprecated` | N
links | Array | [] | `1.0.0`。Typescript:`Array<LinkObj>` `interface LinkObj { name: string; url?: string; openType?: 'navigate' \| 'redirect' \| 'relaunch' \| 'switchTab' \| 'navigateBack' }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
logo | Object | - | Typescript:`FooterLogo` `interface FooterLogo { icon: string; title?: string; url?: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
text | String | '' | `1.0.0` | N
text-link-list | Array | [] | `deprecated`。Typescript:`Array<LinkObj>` `interface LinkObj { name: string; url?: string; openType?: 'navigate' \| 'redirect' \| 'relaunch' \| 'switchTab' \| 'navigateBack' }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
theme | String | 'text' | `deprecated`。options: text/logo | N
### CSS Variables
The component provides the following CSS variables, which can be used to customize styles.
Name | Default Value | Description
-- | -- | --
--td-footer-link-color | @brand-color | -
--td-footer-link-dividing-line-color | @font-gray-3 | -
--td-footer-link-dividing-line-padding | @spacer-1 | -
--td-footer-link-font-size | @font-size-s | -
--td-footer-link-line-height | 40rpx | -
--td-footer-logo-icon-height | 48rpx | -
--td-footer-logo-icon-margin-right | @spacer | -
--td-footer-logo-icon-width | 48rpx | -
--td-footer-logo-title-font-size | @font-size-m | -
--td-footer-logo-title-line-height | 48rpx | -
--td-footer-logo-title-url-width | 256rpx | -
--td-footer-text-color | @font-gray-3 | -
--td-footer-text-font-size | @font-size-s | -
--td-footer-text-line-height | 40rpx | -
--td-footer-text-margin-top | 8rpx | -