UNPKG

@jiess/core

Version:

基于javascript的配置式渲染库,同时支持vue2,vue3和react

35 lines (34 loc) 1.35 kB
import { TypeBase, TypeCbCpt, TypeIs, UnObject } from '../../../../common/type/index.js'; import { itJiessEnv, TypeVue2Ctx } from '../../../../common/interface/index.js'; import { Env } from '../../../../common/enum/index.js'; import { Component } from '../../core/Component/index.js'; import Jiess from '../../core/index.js'; export default class JiessEnv implements itJiessEnv<Env.Vue2> { jiess: Jiess; env: string; h: Function; deal: (data: UnObject) => UnObject; constructor(jiess: Jiess, cbCpt: TypeCbCpt<Env.Vue2>); initRender(h: Function): void; createElement(is: TypeIs, attrs: UnObject, children?: unknown): any; createVNode({ key, slot }: UnObject, callback: Function): any; component(that: Component<Env.Vue2>, cycleCallback: Function): { data(): { JiessForceUpdate: boolean; values: {}; state: {}; }; inheritAttrs: boolean; created(this: TypeVue2Ctx): void; beforeMount(): void; mounted(): void; beforeUpdate(): void; updated(): void; beforeUnmount(): void; render(this: TypeVue2Ctx, h: Function): any; methods: { forceUpdate(this: TypeVue2Ctx): void; initResponsiveData(this: TypeVue2Ctx, value: unknown, field?: TypeBase): unknown; }; }; }