style(vue-runtime-help): 新增组件props的统一类型定义

This commit is contained in:
roymondchen 2025-06-20 15:22:44 +08:00
parent 3b1e41b217
commit bbf93cb2b5
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"version": "1.1.3",
"version": "1.1.4",
"name": "@tmagic/vue-runtime-help",
"type": "module",
"sideEffects": false,

View File

@ -1,6 +1,6 @@
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-dsl';
@ -27,3 +27,12 @@ export interface UserRenderFunctionOptions {
}
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;
}