mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-23 02:15:10 +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",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user