zgg-ui
Version:
2.0.1 正式版本 基于 Vue 3、UniApp 和 TypeScript 开发的多端适配移动端 UI 组件库,旨在提供丰富的组件集合,帮助开发者快速构建多端响应式的移动应用界面
44 lines (40 loc) • 592 B
text/typescript
export type IndexListDataItemData<T = any> = T & {
star?: boolean
}
export interface IndexListDataItem<T = any> {
title: string
data: IndexListDataItemData<T>[]
}
const indexListKeys = [
'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
'n',
'o',
'p',
'q',
'r',
's',
't',
'u',
'v',
'w',
'x',
'y',
'z',
'#',
] as const
export type IndexListKeys = (typeof indexListKeys)[number]
export type IndexListData<T = any> = Partial<
Record<IndexListKeys, IndexListDataItem<T>>
>