mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
style(vue-runtime-help): 添加UserRenderFunction定义
This commit is contained in:
parent
94d0ed1fd0
commit
2114b71d47
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"name": "@tmagic/vue-runtime-help",
|
"name": "@tmagic/vue-runtime-help",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
@ -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-editor-dsl';
|
||||||
export * from './hooks/use-dsl';
|
export * from './hooks/use-dsl';
|
||||||
export * from './hooks/use-app';
|
export * from './hooks/use-app';
|
||||||
export { useComponent } from './hooks/use-component';
|
export { useComponent } from './hooks/use-component';
|
||||||
|
|
||||||
|
export interface userRenderFunctionOptions {
|
||||||
|
h: typeof h;
|
||||||
|
type: Parameters<typeof h>[0];
|
||||||
|
props: any;
|
||||||
|
attrs: any;
|
||||||
|
className: string | string[];
|
||||||
|
style: any;
|
||||||
|
config: MComponent;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type UserRenderFunction = (options: userRenderFunctionOptions) => any;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user