wevu / index / RuntimeInstance
接口: RuntimeInstance<D, C, M>
定义于: packages/wevu/src/runtime/types/runtime.ts:27
类型参数
D
D extends object
C
C extends ComputedDefinitions
M
M extends MethodDefinitions
属性
adapter?
readonlyoptionaladapter:MiniProgramAdapter
定义于: packages/wevu/src/runtime/types/runtime.ts:32
bindModel()
bindModel: <
T>(path,options?) =>ModelBinding<T>
定义于: packages/wevu/src/runtime/types/runtime.ts:33
类型参数
T
T = any
参数
path
string
options?
ModelBindingOptions<T, string, string, T>
返回
ModelBinding<T>
computed
readonlycomputed:Readonly<ExtractComputed<C>>
定义于: packages/wevu/src/runtime/types/runtime.ts:31
methods
readonlymethods:ExtractMethods<M>
定义于: packages/wevu/src/runtime/types/runtime.ts:30
proxy
readonlyproxy:ComponentPublicInstance<D,C,M>
定义于: packages/wevu/src/runtime/types/runtime.ts:29
snapshot()
snapshot: () =>
Record<string,any>
定义于: packages/wevu/src/runtime/types/runtime.ts:39
返回
Record<string, any>
state
readonlystate:D
定义于: packages/wevu/src/runtime/types/runtime.ts:28
unmount()
unmount: () =>
void
定义于: packages/wevu/src/runtime/types/runtime.ts:40
返回
void
watch()
watch: <
T>(source,cb,options?) =>WatchStopHandle
定义于: packages/wevu/src/runtime/types/runtime.ts:34
类型参数
T
T
参数
source
Record<string, any> | () => T
cb
(value, oldValue) => void