docs: 修正类型定义引用路径并为 editor 类型添加 region 标记

This commit is contained in:
roymondchen 2026-09-01 20:01:04 +08:00
parent f163112eab
commit ad2f4e15cc
2 changed files with 8 additions and 2 deletions

View File

@ -322,9 +322,9 @@ CJS 产物是两个各自独立的 bundle注册表不共享。所以同一进
## 类型定义
::: details 查看 `SubmitFormOptions` 类型定义
<<< @/../packages/form/src/submitForm.ts#SubmitFormOptions{ts}
<<< @/../packages/form/src/utils/submitHeadless.ts#SubmitFormOptions{ts}
:::
::: details 查看 `SubmitFormResult` 类型定义
<<< @/../packages/form/src/submitForm.ts#SubmitFormResult{ts}
<<< @/../packages/form/src/utils/submitHeadless.ts#SubmitFormResult{ts}
:::

View File

@ -225,6 +225,7 @@ export interface StageOptions {
beforeDblclick?: (event: MouseEvent) => Promise<boolean | void> | boolean | void;
}
// #region NodeInvalidInfo
/**
* /
* FormPanel
@ -237,9 +238,12 @@ export interface NodeInvalidInfo {
/** 样式表单校验错误文案(可能为包含 <br> 的 HTML */
style?: string;
}
// #endregion NodeInvalidInfo
// #region NodeInvalidSource
/** 节点校验错误来源 */
export type NodeInvalidSource = keyof NodeInvalidInfo;
// #endregion NodeInvalidSource
export interface StoreState {
root: MApp | null;
@ -312,6 +316,7 @@ export interface StageRect {
height: number | string;
}
// #region UiState
export interface UiState {
/** 当前点击画布是否触发选中true: 不触发false: 触发默认为false */
uiSelectMode: boolean;
@ -369,6 +374,7 @@ export interface UiState {
height: number;
};
}
// #endregion UiState
// #region EditorNodeInfo
export interface EditorNodeInfo {