@lvxiaowu/antd4
Version:
antd4-components
26 lines (22 loc) • 1.19 kB
TypeScript
export function resetStore(self: any, instance: any, propNames?: Array<string>)
export function overrideStore(instance: any, overrides: object)
export function getPathLevel(pathname: string, level?: number): string
export function setVisitHistory(current: any)
interface VisitHistory {
url: string
title: string
time: number
}
export function getVisitId(): string
export function setVisitId(id: string | number)
export function getVisitHistory(id?: string | number): Array<VisitHistory>
export function getLastVisitPath(id?: string | number): string
export function setLastVisitPath(pathname: string)
export function removeLastVisitPath(id?: string | number)
export function hasAuth(value: any): boolean
export const TABLE_STORE = '__TABLE_STORE__' // 列表Table的store标识
export const SEARCHBAR_STORE = '__SEARCHBAR_STORE__' // searchBar的store标识
export const FORM_MODAL_STORE = '__FORM_MODAL_STORE__' //FormModal的store标识
export const MODAL_STORE = '__MODAL_STORE__' //Modal的store标识
export const DRAWER_STORE = '__DRAWER_STORE__' //Drawer的store标识
export const FORM_DRAWER_STORE = '__FORM_DRAWER_STORE__' //FormDrawer的store标识