You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.7 KiB

title description spline isComponent
Footer 页脚 用于基础列表展示,可附带文字、品牌 logo、操作常用商详、个人中心、设置等页面。 data true

引入

全局引入,在 miniprogram 根目录下的app.json中配置,局部引入,在需要引入的页面或组件的index.json中配置。

"usingComponents": {
  "t-footer": "tdesign-miniprogram/footer/footer"
}

代码演示

类型

基础页脚

{{ base }}

基础加链接页脚

{{ link }}

品牌页脚

{{ logo }}

API

名称 类型 默认值 说明 必传
copyright String '' 已废弃。版权信息type 为text生效 N
text String '' 1.0.0 版权信息。 N
logo Object - 图标配置。logo.icon 表示图标链接地址,logo.title 表示标题文本,logo.url 表示链接跳转地址。TS 类型:FooterLogo interface FooterLogo { icon: string; title?: string; titleUrl?: string }详细类型定义 N
text-link-list Array [] 已废弃。链接列表type 为text生效。name 表示链接名称, url 表示链接 page 路径目前只支持小程序内部跳转openType 表示跳转方式。TS 类型:Array<LinkObj> interface LinkObj { name: string; url?: string; openType?: 'navigate' | 'redirect' | 'relaunch' | 'switchTab' | 'navigateBack' }详细类型定义 N
links Array [] 1.0.0 链接列表。name 表示链接名称, url 表示链接 page 路径目前只支持小程序内部跳转openType 表示跳转方式。TS 类型:Array<LinkObj> interface LinkObj { name: string; url?: string; openType?: 'navigate' | 'redirect' | 'relaunch' | 'switchTab' | 'navigateBack' }详细类型定义 N
theme String 'text' 已废弃。页脚展示类型。可选项text/logo N