1.9 KiB
1.9 KiB
:: BASE_DOC ::
API
Footer Props
| name | type | default | description | required |
|---|---|---|---|---|
| custom-style | Object | - | CSS(Cascading Style Sheets) | N |
| copyright | String | '' | deprecated |
N |
| links | Array | [] | Typescript:Array<LinkObj> interface LinkObj { name: string; url?: string; openType?: 'navigate' | 'redirect' | 'relaunch' | 'switchTab' | 'navigateBack' }。see more ts definition |
N |
| logo | Object | - | Typescript:FooterLogo interface FooterLogo { icon: string; title?: string; url?: string }。see more ts definition |
N |
| text | String | '' | - | 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 |
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 | @text-color-placeholder | - |
| --td-footer-link-dividing-line-padding | @spacer-1 | - |
| --td-footer-link-font | @font-body-medium | - |
| --td-footer-logo-icon-height | 48rpx | - |
| --td-footer-logo-icon-margin-right | @spacer | - |
| --td-footer-logo-icon-width | 48rpx | - |
| --td-footer-logo-title-font | @font-title-medium | - |
| --td-footer-logo-title-url-width | 256rpx | - |
| --td-footer-text-color | @text-color-placeholder | - |
| --td-footer-text-font | @font-body-small | - |
| --td-footer-text-margin-top | 8rpx | - |