Skip to content

Commit 8323caa

Browse files
committed
feat: update footer api
1 parent dedb358 commit 8323caa

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

db/TDesign.db

0 Bytes
Binary file not shown.

packages/products/tdesign-miniprogram/src/footer/README.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ style | Object | - | CSS(Cascading Style Sheets) | N
1010
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
1111
copyright | String | '' | `deprecated` | N
1212
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
13-
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
13+
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
1414
text | String | '' | `1.0.0` | N
1515
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
1616
theme | String | 'text' | `deprecated`。options: text/logo | N

packages/products/tdesign-miniprogram/src/footer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ style | Object | - | 样式 | N
1010
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
1111
copyright | String | '' | 已废弃。版权信息,type 为`text`生效 | N
1212
links | Array | [] | `1.0.0`。链接列表。name 表示链接名称, url 表示链接 page 路径,目前只支持小程序内部跳转,openType 表示跳转方式。TS 类型:`Array<LinkObj>` `interface LinkObj { name: string; url?: string; openType?: 'navigate' \| 'redirect' \| 'relaunch' \| 'switchTab' \| 'navigateBack' }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
13-
logo | Object | - | 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.titleUrl` 表示链接。TS 类型:`FooterLogo` `interface FooterLogo { icon: string; title?: string; titleUrl?: string }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
13+
logo | Object | - | 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接。TS 类型:`FooterLogo` `interface FooterLogo { icon: string; title?: string; url?: string }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
1414
text | String | '' | `1.0.0`。版权信息 | N
1515
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' }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
1616
theme | String | 'text' | 已废弃。页脚展示类型。可选项:text/logo | N

packages/products/tdesign-miniprogram/src/footer/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props: TdFooterProps = {
1111
type: Array,
1212
value: [],
1313
},
14-
/** 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.titleUrl` 表示链接 */
14+
/** 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接 */
1515
logo: {
1616
type: Object,
1717
},

packages/products/tdesign-miniprogram/src/footer/type.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface TdFooterProps {
1414
value?: Array<LinkObj>;
1515
};
1616
/**
17-
* 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.titleUrl` 表示链接
17+
* 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接
1818
*/
1919
logo?: {
2020
type: ObjectConstructor;
@@ -47,5 +47,5 @@ export interface LinkObj {
4747
export interface FooterLogo {
4848
icon: string;
4949
title?: string;
50-
titleUrl?: string;
50+
url?: string;
5151
}

packages/scripts/api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45913,14 +45913,14 @@
4591345913
],
4591445914
"field_default_value": "",
4591545915
"field_enum": "",
45916-
"field_desc_zh": "图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.titleUrl` 表示链接",
45916+
"field_desc_zh": "图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接",
4591745917
"field_desc_en": null,
4591845918
"field_required": 0,
4591945919
"event_input": "",
4592045920
"create_time": "2024-04-08 08:30:39",
4592145921
"update_time": "2024-04-08 08:30:39",
4592245922
"event_output": null,
45923-
"custom_field_type": "FooterLogo【interface FooterLogo { icon: string; title?: string; titleUrl?: string }】",
45923+
"custom_field_type": "FooterLogo【interface FooterLogo { icon: string; title?: string; url?: string }】",
4592445924
"syntactic_sugar": null,
4592545925
"readonly": 1,
4592645926
"html_attribute": 0,

0 commit comments

Comments
 (0)