Skip to content

Commit

Permalink
feat(PreferenceSchema): 增加首页模块自定义
Browse files Browse the repository at this point in the history
  • Loading branch information
xuebin authored and chuan6 committed May 13, 2020
1 parent 3c7eecf commit 165c806
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/schemas/Preference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ import {
import { RDBType, SchemaDef } from '../db'
import { schemaColl } from './schemas'

export interface PreferenceTipMap {
export type PreferenceTipMap = {
[key: string]: boolean | string
} & {
customPortal?: CustomPortalMap
}

export interface CustomPortalMap {
[key: string]: boolean
}

export interface PreferenceSchema {
Expand Down Expand Up @@ -146,7 +152,7 @@ const Schema: SchemaDef<PreferenceSchema> = {
},
tips: {
type: RDBType.OBJECT
}
},
}

schemaColl.add({ name: 'Preference', schema: Schema })

0 comments on commit 165c806

Please sign in to comment.