Skip to content

Commit

Permalink
feat: update footer api
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Apr 8, 2024
1 parent dedb358 commit 8323caa
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ 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; titleUrl?: string }`[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
2 changes: 1 addition & 1 deletion packages/products/tdesign-miniprogram/src/footer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ style | Object | - | 样式 | N
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
copyright | String | '' | 已废弃。版权信息,type 为`text`生效 | 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' }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
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
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
text | String | '' | `1.0.0`。版权信息 | 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' }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/footer/type.ts) | N
theme | String | 'text' | 已废弃。页脚展示类型。可选项:text/logo | N
2 changes: 1 addition & 1 deletion packages/products/tdesign-miniprogram/src/footer/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const props: TdFooterProps = {
type: Array,
value: [],
},
/** 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.titleUrl` 表示链接 */
/** 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接 */
logo: {
type: Object,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/products/tdesign-miniprogram/src/footer/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface TdFooterProps {
value?: Array<LinkObj>;
};
/**
* 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.titleUrl` 表示链接
* 图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接
*/
logo?: {
type: ObjectConstructor;
Expand Down Expand Up @@ -47,5 +47,5 @@ export interface LinkObj {
export interface FooterLogo {
icon: string;
title?: string;
titleUrl?: string;
url?: string;
}
4 changes: 2 additions & 2 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -45913,14 +45913,14 @@
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.titleUrl` 表示链接",
"field_desc_zh": "图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2024-04-08 08:30:39",
"update_time": "2024-04-08 08:30:39",
"event_output": null,
"custom_field_type": "FooterLogo【interface FooterLogo { icon: string; title?: string; titleUrl?: string }】",
"custom_field_type": "FooterLogo【interface FooterLogo { icon: string; title?: string; url?: string }】",
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
Expand Down

0 comments on commit 8323caa

Please sign in to comment.