star-horse-lowcode 3.1.8 → 3.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@ declare const __VLS_export: import('vue').DefineComponent<DataListProps, {
9
9
  getIds: () => any;
10
10
  assignStaticData: (data: any) => void;
11
11
  getSelectedDatas: () => any;
12
+ removeSelection: (row: any) => void;
12
13
  multipleSelection: import('vue').Ref<any, any>;
13
14
  setDataInfo: (fieldName: string, val: any) => void;
14
15
  deleteById: (id: any, isExpand?: boolean) => Promise<void>;
@@ -1,6 +1,7 @@
1
- import { ItemRelation, RelationDetail } from '../../types';
1
+ import { ApiLinkageDetail, ItemRelation, RelationDetail } from '../../types';
2
2
  import { Ref } from 'vue';
3
3
  import { executeFormulaWithFill, initFormFormulaWatchers, setupFormulaWatchers } from './FormulaEngine';
4
+ import { PreOrPendEventConfig } from '../../types/PreOrPendType';
4
5
  /**
5
6
  * 联动事件分发函数
6
7
  * @param props
@@ -10,6 +11,12 @@ import { executeFormulaWithFill, initFormFormulaWatchers, setupFormulaWatchers }
10
11
  * @param actionName
11
12
  */
12
13
  declare const relationEventDispatcher: (props: any, item: ItemRelation, e: any, formData: Ref<Record<string, any>>, actionName: string) => void;
14
+ /**
15
+ *
16
+ * @param apiLinkage
17
+ * @param formData
18
+ */
19
+ export declare const apiLinkageOperation: (apiLinkage: ApiLinkageDetail, formData: Ref<Record<string, any>>) => void;
13
20
  declare const relationEvent: (props: any, relationDetails: RelationDetail[], e: any, formData: Ref<Record<string, any>>, actionName: string) => void;
14
21
  /** 所有触发的事件 */
15
22
  declare const allAction: (context: any, emits: any, formData: any, actionName: string, _isInit?: boolean) => void;
@@ -23,4 +30,12 @@ declare const useFormField: (context: any, field: any) => {
23
30
  declare const initCompCallEvent: (props: any, emits: any, formData: any) => void;
24
31
  declare const prepsFilter: (preps: any) => any;
25
32
  declare const convertData: (data: any) => any;
26
- export { allAction, buttonAction, checkIsDisabled, initCompCallEvent, prepsFilter, relationEvent, relationEventDispatcher, useFormField, convertData, executeFormulaWithFill, initFormFormulaWatchers, setupFormulaWatchers, };
33
+ /**
34
+ * 自定义事件
35
+ * @param action
36
+ * @param props
37
+ * @param emits
38
+ * @param formData
39
+ */
40
+ declare const userActionEvent: (action: PreOrPendEventConfig, props: any, emits: any, formData: any) => void;
41
+ export { allAction, buttonAction, checkIsDisabled, initCompCallEvent, prepsFilter, relationEvent, relationEventDispatcher, useFormField, convertData, executeFormulaWithFill, initFormFormulaWatchers, setupFormulaWatchers, userActionEvent };
@@ -1,6 +1,6 @@
1
1
  export type { FileNode, TabInfo, MenuItemDef, IdeTheme } from './types';
2
2
  export { IDE_THEMES, getThemeByValue, applyThemeVars } from './theme';
3
- export { LANG_MAP, FILE_ICONS, FOLDER_ICONS, getFileExt, detectLanguage, getFileIcon } from './constants';
3
+ export { LANG_MAP, FILE_ICONS, FOLDER_ICONS, getFileExt, detectLanguage, getFileIcon, } from './constants';
4
4
  export { useFileTree } from './useFileTree';
5
5
  export { useFileApi } from './useFileApi';
6
6
  export type { ContextMenuItem } from './ContextMenu.vue';
@@ -4,9 +4,9 @@ import { RedirectParams } from './Params';
4
4
  import { SelectOption } from './SearchProps';
5
5
  export interface ItemPreps {
6
6
  /**
7
- * 是否是设计模式
8
-
9
- */
7
+ * 是否是设计模式
8
+
9
+ */
10
10
  isDesign?: boolean;
11
11
  /**
12
12
  * 是否禁用
@@ -0,0 +1,31 @@
1
+ import { ItemRelation } from './ItemPreps';
2
+ /**
3
+ * 前后缀事件类型
4
+ * - none: 无事件
5
+ * - linkage: 调用联动策略配置
6
+ * - dataSource: 调用数据源配置
7
+ * - custom: 自定义实现(JS 代码)
8
+ */
9
+ export type PreOrPendEventType = "none" | "linkage" | "dataSource" | "custom" | "function";
10
+ /**
11
+ * 前后缀元素事件配置
12
+ *
13
+ * 直接存储在按钮项的 `actions` 字段上,运行时通过 `eventType` 分发请求
14
+ */
15
+ export interface PreOrPendEventConfig {
16
+ /** 事件类别(用于运行时分发) */
17
+ eventType: PreOrPendEventType;
18
+ /** 联动策略配置(eventType = "linkage") */
19
+ dataRelation?: ItemRelation;
20
+ /** 数据源配置(eventType = "dataSource") */
21
+ dataSourceConfig?: any;
22
+ /** 自定义 JS 代码(eventType = "custom") */
23
+ customCode?: string;
24
+ /**
25
+ * 自定义函数
26
+ * 第一个参数 是上下文props
27
+ * 第二个参数 是表单实例数据
28
+ * 第三个参数 是整个表单信息
29
+ */
30
+ funcInfo?: Function;
31
+ }