mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-23 10:19:17 +08:00
style(vue-runtime-help): 新增组件props的统一类型定义
This commit is contained in:
parent
3b1e41b217
commit
bbf93cb2b5
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "1.1.3",
|
"version": "1.1.4",
|
||||||
"name": "@tmagic/vue-runtime-help",
|
"name": "@tmagic/vue-runtime-help",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { h } from 'vue-demi';
|
import { h } from 'vue-demi';
|
||||||
|
|
||||||
import type { MComponent, StyleSchema } from '@tmagic/core';
|
import type { Id, MComponent, StyleSchema } 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';
|
||||||
@ -27,3 +27,12 @@ export interface UserRenderFunctionOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type UserRenderFunction = (options: UserRenderFunctionOptions) => any;
|
export type UserRenderFunction = (options: UserRenderFunctionOptions) => any;
|
||||||
|
|
||||||
|
export interface ComponentProps<T extends Omit<MComponent, 'id'> = MComponent> {
|
||||||
|
config: T;
|
||||||
|
iteratorIndex?: number[];
|
||||||
|
iteratorContainerId?: Id[];
|
||||||
|
containerIndex?: number;
|
||||||
|
model?: any;
|
||||||
|
disabled?: boolean;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user