Skip to content

Commit 03c706b

Browse files
committed
feat: 废弃属性不放在 props 中
1 parent e9b272c commit 03c706b

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66

77
import { TdFooterProps } from './type';
88
const props: TdFooterProps = {
9-
/** 已废弃。版权信息,type 为`text`生效 */
10-
copyright: {
11-
type: String,
12-
value: '',
13-
},
149
/** 链接列表。name 表示链接名称, url 表示链接 page 路径,目前只支持小程序内部跳转,openType 表示跳转方式 */
1510
links: {
1611
type: Array,
@@ -30,16 +25,6 @@ const props: TdFooterProps = {
3025
type: String,
3126
value: '',
3227
},
33-
/** 已废弃。链接列表,type 为`text`生效。name 表示链接名称, url 表示链接 page 路径,目前只支持小程序内部跳转,openType 表示跳转方式 */
34-
textLinkList: {
35-
type: Array,
36-
value: [],
37-
},
38-
/** 已废弃。页脚展示类型 */
39-
theme: {
40-
type: String,
41-
value: 'text',
42-
},
4328
};
4429

4530
export default props;

packages/scripts/types/vue-props.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ function formatApiToProps(baseData, framework, isUseDefault) {
261261
const isMiniprogram = currentFramework === 'Miniprogram';
262262
const miniprogram = {};
263263
baseData[cmp].forEach((api) => {
264+
//废弃属性不放在 props 中
265+
if(api.deprecated) return;
266+
264267
// 小程序原生属性替代属性不放在 props 中
265268
const MP_PROPS = ['MP_PROPS', 'MP_EXCLUDE_PROPS'];
266269
MP_PROPS.forEach((prop) => {

0 commit comments

Comments
 (0)