Home > @elux/vue-web > IStore

IStore interface

Store实例

Signature:

export interface IStore<TStoreState extends StoreState = StoreState> 

Properties

PropertyTypeDescription
activeboolean当前是否是激活状态
dispatchDispatch派发action
getStateGetState<TStoreState>获取store的状态
routerIRouter<TStoreState>所属router
sidnumber实例ID
stateTStoreState当前的Store状态
uidnumberForkID

Methods

MethodDescription
destroy()销毁(框架会自动调用)
getUncommittedState()获取暂时未提交到store的状态
mount(moduleName, env)在该store中挂载指定的model