提交 80cbd0f3 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(generate menu): 补充缺失类型信息

上级 71a9f04f
...@@ -111,15 +111,6 @@ function hasPageGroup(value ?: string | null) : boolean { ...@@ -111,15 +111,6 @@ function hasPageGroup(value ?: string | null) : boolean {
// #endif // #endif
} }
function isNumber(value : number | null) : boolean {
// #ifdef APP-ANDROID
return value !== null
// #endif
// #ifndef APP-ANDROID
return typeof value === 'number'
// #endif
}
function camelToDash(camelStr : string) : string { function camelToDash(camelStr : string) : string {
return camelStr.replace(/([A-Z])/g, '-$1').toLowerCase() return camelStr.replace(/([A-Z])/g, '-$1').toLowerCase()
} }
...@@ -135,7 +126,7 @@ function fillMenuArrayWithEmptyMenuItem(arr: MenuItem[], index: number): void { ...@@ -135,7 +126,7 @@ function fillMenuArrayWithEmptyMenuItem(arr: MenuItem[], index: number): void {
style: {}, style: {},
group: '', group: '',
items: [] as MenuItem[], items: [] as MenuItem[],
}) } as MenuItem)
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册