diff --git a/runtime/vue-runtime-help/package.json b/runtime/vue-runtime-help/package.json index bde11f79..56859441 100644 --- a/runtime/vue-runtime-help/package.json +++ b/runtime/vue-runtime-help/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "1.0.1", "name": "@tmagic/vue-runtime-help", "type": "module", "sideEffects": false, diff --git a/runtime/vue-runtime-help/src/index.ts b/runtime/vue-runtime-help/src/index.ts index 8606bfb8..110bca4c 100644 --- a/runtime/vue-runtime-help/src/index.ts +++ b/runtime/vue-runtime-help/src/index.ts @@ -1,4 +1,20 @@ +import { h } from 'vue-demi'; + +import type { MComponent } from '@tmagic/core'; + export * from './hooks/use-editor-dsl'; export * from './hooks/use-dsl'; export * from './hooks/use-app'; export { useComponent } from './hooks/use-component'; + +export interface userRenderFunctionOptions { + h: typeof h; + type: Parameters[0]; + props: any; + attrs: any; + className: string | string[]; + style: any; + config: MComponent; +} + +export type UserRenderFunction = (options: userRenderFunctionOptions) => any;