@gct-paas/core 0.1.4-dev.7 → 0.1.4-dev.9
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.
- package/dist/index.esm.min.mjs +6520 -18715
- package/dist/index.min.cjs +386 -2
- package/dist/index.system.min.js +386 -2
- package/es/constants/core.mjs +0 -1
- package/es/constants/editor-register/editor-register.mjs +0 -1
- package/es/constants/editor-type/editor-type.d.ts +65 -1
- package/es/constants/editor-type/editor-type.mjs +14 -1
- package/es/constants/expression-type/BuiltOperators.d.ts +20 -0
- package/es/constants/expression-type/BuiltOperators.mjs +148 -0
- package/es/constants/expression-type/FunctionKeys.d.ts +1 -0
- package/es/constants/expression-type/FunctionKeys.mjs +81 -0
- package/es/constants/expression-type/editor.d.ts +8 -0
- package/es/constants/expression-type/editor.mjs +4 -0
- package/es/constants/expression-type/function.d.ts +7 -0
- package/es/constants/expression-type/function.mjs +875 -0
- package/es/constants/expression-type/index.d.ts +42 -0
- package/es/constants/expression-type/index.mjs +120 -0
- package/es/constants/expression-type/modeCfg.d.ts +30 -0
- package/es/constants/expression-type/modeCfg.mjs +268 -0
- package/es/constants/expression-type/variable.d.ts +12 -0
- package/es/constants/expression-type/variable.mjs +42 -0
- package/es/constants/form-container-type/form-container-type.mjs +0 -1
- package/es/constants/index.d.ts +5 -0
- package/es/constants/index.mjs +6 -6
- package/es/controller/edit-form/edit-form.controller.mjs +0 -1
- package/es/controller/editor/color-editor.controller.mjs +0 -1
- package/es/controller/editor/length-unit-editor.controller.mjs +0 -1
- package/es/controller/editor-item/editor-item.controller.mjs +0 -1
- package/es/controller/form/form.controller.mjs +5 -4
- package/es/controller/form-collapse/form-collapse.controller.mjs +4 -3
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.mjs +4 -3
- package/es/controller/form-edit-item/form-edit-item.controller.d.ts +1 -0
- package/es/controller/form-edit-item/form-edit-item.controller.mjs +6 -2
- package/es/controller/form-group/form-group.controller.mjs +4 -3
- package/es/controller/form-item/form-item.controller.d.ts +1 -0
- package/es/controller/form-item/form-item.controller.mjs +7 -3
- package/es/controller/form-item-basic/form-item-basic.controller.mjs +3 -2
- package/es/controller/form-item-hidden/form-item-hidden.controller.mjs +0 -1
- package/es/controller/form-tab/form-tab.controller.mjs +4 -3
- package/es/controller/form-tab-pane/form-tab-pane.controller.mjs +4 -3
- package/es/controller/gct-form/gct-form.controller.mjs +5 -4
- package/es/create-app-vue.mjs +3 -9
- package/es/enums/app-designer/index.d.ts +13 -1
- package/es/enums/app-designer/index.mjs +8 -2
- package/es/enums/appEnum.d.ts +22 -66
- package/es/enums/appEnum.mjs +24 -15
- package/es/enums/appStateEnum.mjs +0 -1
- package/es/enums/authActionEnum.mjs +0 -1
- package/es/enums/breakpointEnum.mjs +0 -1
- package/es/enums/cacheEnum.mjs +0 -1
- package/es/enums/designEnum.d.ts +2 -2
- package/es/enums/designEnum.mjs +31 -32
- package/es/enums/developer-center/index.d.ts +1 -0
- package/es/enums/developer-center/integration.d.ts +4 -0
- package/es/enums/developer-center/integration.mjs +7 -0
- package/es/enums/exceptionEnum.mjs +0 -1
- package/es/enums/expressionEnum.d.ts +130 -0
- package/es/enums/expressionEnum.mjs +75 -0
- package/es/enums/globalEnum.d.ts +38 -0
- package/es/enums/globalEnum.mjs +25 -0
- package/es/enums/httpEnum.mjs +0 -1
- package/es/enums/index.d.ts +19 -0
- package/es/enums/index.mjs +13 -16
- package/es/enums/menuEnum.mjs +0 -1
- package/es/enums/page-designer/designer.d.ts +23 -3
- package/es/enums/page-designer/designer.mjs +90 -6
- package/es/enums/page-designer/panel.d.ts +78 -7
- package/es/enums/page-designer/panel.mjs +22 -4
- package/es/enums/page-designer/toolkit.mjs +0 -1
- package/es/enums/page-designer/widget.d.ts +2 -1
- package/es/enums/page-designer/widget.mjs +3 -3
- package/es/enums/pageEnum.mjs +0 -1
- package/es/enums/plugin-enum.mjs +0 -1
- package/es/enums/processEnum.d.ts +54 -0
- package/es/enums/processEnum.mjs +36 -2
- package/es/enums/roleEnum.mjs +0 -1
- package/es/enums/sizeEnum.mjs +0 -1
- package/es/global/gct/gct.d.ts +11 -28
- package/es/global/gct/gct.mjs +29 -32
- package/es/hooks/index.d.ts +2 -1
- package/es/hooks/use-app-inst/use-app-inst.d.ts +8 -0
- package/es/hooks/use-app-inst/use-app-inst.mjs +8 -0
- package/es/hooks/use-form/use-form.mjs +0 -1
- package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +1 -1
- package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +0 -4
- package/es/hooks/use-modal/use-modal.mjs +0 -1
- package/es/hooks/use-overlay-scrollbars/use-overlay-scrollbars.d.ts +11 -0
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.d.ts +31 -0
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +30 -0
- package/es/hooks/useCopyToClipboard.mjs +0 -1
- package/es/index.d.ts +6 -8
- package/es/index.mjs +98 -64
- package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +5 -0
- package/es/interface/controller/index.d.ts +0 -1
- package/es/interface/form/i-editor/i-editor-basic.d.ts +2 -2
- package/es/interface/form/i-editor/i-model-field-select-editor.d.ts +18 -0
- package/es/interface/form/i-form/i-form-collapse-pane.d.ts +4 -0
- package/es/interface/form/i-form/i-form-item-basic.d.ts +1 -1
- package/es/interface/form/i-form/i-form-tab-pane.d.ts +4 -0
- package/es/interface/form/index.d.ts +1 -0
- package/es/interface/i-app-context/i-app-context.d.ts +34 -0
- package/es/interface/i-field-code-chain/i-field-code-chain.d.ts +17 -0
- package/es/interface/i-global-var/i-global-var.d.ts +15 -0
- package/es/interface/i-mobile-home-menu-item/i-mobile-home-menu-item.d.ts +94 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +8 -20
- package/es/interface/i-pinia-getter/i-global-getters.d.ts +1 -1
- package/es/interface/i-pinia-state/i-global-state.d.ts +7 -14
- package/es/interface/index.d.ts +5 -5
- package/es/interface/open-util/i-message-util/i-message-util.d.ts +54 -0
- package/es/interface/{i-modal → open-util/i-modal}/i-modal.d.ts +9 -10
- package/es/interface/{i-modal-data → open-util/i-modal-data}/i-modal-data.d.ts +6 -0
- package/es/interface/open-util/i-modal-options/i-modal-options.d.ts +12 -0
- package/es/interface/open-util/i-open-window-options/i-open-window-options.d.ts +59 -0
- package/es/interface/open-util/i-overlay-container/i-overlay-container.d.ts +36 -0
- package/es/interface/open-util/i-overlay-controller/i-overlay-controller.d.ts +36 -0
- package/es/interface/open-util/index.d.ts +7 -0
- package/es/interface/state/index.d.ts +0 -1
- package/es/locale/index.mjs +2 -2
- package/es/modules/env-manager/env-manager.const.mjs +0 -1
- package/es/modules/env-manager/env-manager.interface.mjs +0 -1
- package/es/modules/env-manager/env-manager.mjs +7 -8
- package/es/modules/error-handler/error-handler.const.mjs +1 -30
- package/es/modules/error-handler/error-strategy.mjs +0 -1
- package/es/modules/error-handler/index.mjs +0 -1
- package/es/modules/platform-config/constants/index.d.ts +7 -0
- package/es/modules/platform-config/constants/login.const.d.ts +15 -0
- package/es/modules/platform-config/constants/login.const.mjs +50 -0
- package/es/modules/platform-config/constants/org.const.d.ts +9 -0
- package/es/modules/platform-config/constants/org.const.mjs +54 -0
- package/es/modules/platform-config/constants/theme.const.d.ts +9 -0
- package/es/modules/platform-config/constants/theme.const.mjs +5 -0
- package/es/modules/platform-config/constants/watermark.const.d.ts +16 -0
- package/es/modules/platform-config/constants/watermark.const.mjs +14 -0
- package/es/modules/platform-config/enums/deploy.enum.d.ts +10 -0
- package/es/modules/platform-config/enums/deploy.enum.mjs +7 -0
- package/es/modules/platform-config/enums/index.d.ts +6 -0
- package/es/modules/platform-config/{constants.d.ts → enums/login.enum.d.ts} +3 -7
- package/es/modules/platform-config/enums/login.enum.mjs +16 -0
- package/es/modules/platform-config/enums/platform.enum.d.ts +27 -0
- package/es/modules/platform-config/enums/platform.enum.mjs +26 -0
- package/es/modules/platform-config/index.d.ts +6 -17
- package/es/modules/platform-config/interfaces/global-setting.interface.d.ts +7 -0
- package/es/modules/platform-config/interfaces/index.d.ts +7 -0
- package/es/modules/platform-config/interfaces/login-config.interface.d.ts +17 -0
- package/es/modules/platform-config/interfaces/platform-map.interface.d.ts +8 -0
- package/es/modules/platform-config/interfaces/theme-setting.interface.d.ts +30 -0
- package/es/modules/platform-config/store.d.ts +221 -0
- package/es/modules/platform-config/store.mjs +78 -0
- package/es/modules/platform-config/useBasicSetting.d.ts +6 -2
- package/es/modules/platform-config/useBasicSetting.mjs +39 -0
- package/es/modules/platform-config/useDeploySetting.d.ts +9 -4
- package/es/modules/platform-config/useDeploySetting.mjs +27 -0
- package/es/modules/platform-config/useLoginSetting.d.ts +4 -14
- package/es/modules/platform-config/useLoginSetting.mjs +177 -0
- package/es/modules/platform-config/useOrgSetting.d.ts +5 -1
- package/es/modules/platform-config/useOrgSetting.mjs +66 -0
- package/es/modules/platform-config/useProjectSetting.d.ts +12 -0
- package/es/modules/platform-config/useProjectSetting.mjs +11 -0
- package/es/modules/platform-config/useSecuritySetting.d.ts +5 -1
- package/es/modules/platform-config/useSecuritySetting.mjs +60 -0
- package/es/modules/platform-config/useThemeSetting.d.ts +6 -3
- package/es/modules/platform-config/useThemeSetting.mjs +64 -0
- package/es/modules/platform-config/useWatermarkSetting.d.ts +4 -1
- package/es/modules/platform-config/useWatermarkSetting.mjs +26 -0
- package/es/modules/user-stores/index.d.ts +3 -0
- package/es/modules/user-stores/store/permission.store.d.ts +21 -0
- package/es/modules/user-stores/store/permission.store.mjs +38 -0
- package/es/modules/user-stores/store/tenant.store.d.ts +9 -0
- package/es/modules/user-stores/store/tenant.store.mjs +24 -0
- package/es/modules/user-stores/store/user.store.d.ts +154 -0
- package/es/modules/user-stores/store/user.store.mjs +107 -0
- package/es/modules/user-stores/types/permission.d.ts +1 -0
- package/es/modules/user-stores/types/tenant.d.ts +1 -0
- package/es/modules/user-stores/types/user.d.ts +14 -0
- package/es/register/editor-register/editor-register.d.ts +5 -13
- package/es/register/editor-register/editor-register.mjs +8 -17
- package/es/register/form-item-register/form-item-register.d.ts +4 -15
- package/es/register/form-item-register/form-item-register.mjs +7 -17
- package/es/register/index.d.ts +12 -2
- package/es/router/index.mjs +0 -1
- package/es/setup-app.d.ts +8 -0
- package/es/setup-app.mjs +30 -0
- package/es/state/form/form.state.mjs +0 -1
- package/es/state/form-collapse/form-collapse.state.mjs +0 -1
- package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -1
- package/es/state/form-edit-item/form-edit-item.state.mjs +0 -1
- package/es/state/form-group/form-group.state.mjs +0 -1
- package/es/state/form-item/form-item.state.mjs +0 -1
- package/es/state/form-item-basic/form-item-basic.state.mjs +0 -1
- package/es/state/form-tab/form-tab.state.mjs +0 -1
- package/es/state/form-tab-pane/form-tab-pane.state.mjs +0 -1
- package/es/state/global-pinia-state/global-pinia-state.d.ts +8 -25
- package/es/state/global-pinia-state/global-pinia-state.mjs +30 -16
- package/es/store/global-store.d.ts +1 -0
- package/es/store/global-store.mjs +40 -37
- package/es/store/index.d.ts +2 -3
- package/es/store/index.mjs +0 -1
- package/es/types/index.d.ts +18 -1
- package/es/utils/axios/interceptors.mjs +2 -23
- package/es/utils/cache-adapter/cache-adapter.d.ts +2 -0
- package/es/utils/cache-adapter/cache-adapter.mjs +59 -0
- package/es/utils/deviceFingerprint.d.ts +17 -0
- package/es/utils/deviceFingerprint.mjs +73 -0
- package/es/utils/dictionary/dictionary.mjs +0 -1
- package/es/utils/i18n/index.d.ts +2 -1
- package/es/utils/i18n/index.mjs +3 -4
- package/es/utils/index.d.ts +17 -3
- package/es/utils/linked-list/linked-list.d.ts +72 -0
- package/es/utils/linked-list/linked-list.mjs +119 -0
- package/es/utils/linked-node/linked-node.d.ts +31 -0
- package/es/utils/linked-node/linked-node.mjs +32 -0
- package/es/utils/lowcode/utils.d.ts +1 -0
- package/es/utils/lowcode/utils.mjs +20 -0
- package/es/utils/lowcode/validate.d.ts +13 -0
- package/es/utils/lowcode/validate.mjs +29 -0
- package/es/utils/mitt/mitt.d.ts +1 -0
- package/es/utils/mitt/mitt.mjs +5 -0
- package/es/utils/model-loader/model-loader.d.ts +118 -0
- package/es/utils/model-loader/model-loader.mjs +326 -0
- package/es/utils/namespace/namespace.d.ts +8 -0
- package/es/utils/namespace/namespace.mjs +4 -2
- package/es/utils/openUtil/index.d.ts +2 -0
- package/es/utils/openUtil/modal/modal.d.ts +61 -0
- package/es/utils/openUtil/modal/modal.mjs +80 -0
- package/es/utils/openUtil/overlay-container/overlay-container.d.ts +100 -0
- package/es/utils/openUtil/overlay-container/overlay-container.mjs +139 -0
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +0 -1
- package/es/utils/props/gct-form-item/gct-form-item.props.d.ts +63 -0
- package/es/utils/props/gct-form-item/gct-form-item.props.mjs +66 -0
- package/es/utils/props/index.d.ts +1 -0
- package/es/utils/style/index.d.ts +16 -0
- package/es/utils/style/index.mjs +141 -0
- package/es/utils/tools/tools.d.ts +13 -10
- package/es/utils/tools/tools.mjs +23 -11
- package/es/utils/treeHelper/treeHelper.d.ts +124 -0
- package/es/utils/treeHelper/treeHelper.mjs +234 -0
- package/es/utils/util.d.ts +39 -0
- package/es/utils/util.mjs +40 -0
- package/es/utils/uuid/uuid.d.ts +3 -0
- package/es/utils/uuid/uuid.mjs +48 -0
- package/es/utils/value-helper/value-helper.d.ts +49 -0
- package/es/utils/value-helper/value-helper.mjs +111 -0
- package/es/utils/width-install/width-install.mjs +4 -2
- package/package.json +13 -16
- package/es/controller/index.mjs +0 -17
- package/es/enums/page-designer/index.mjs +0 -6
- package/es/global/index.mjs +0 -3
- package/es/hooks/index.mjs +0 -7
- package/es/hooks/use-namespace/use-namespace.d.ts +0 -9
- package/es/hooks/use-namespace/use-namespace.mjs +0 -9
- package/es/interface/controller/i-designer-controller.d.ts +0 -116
- package/es/interface/hooks/i-designer-hooks.d.ts +0 -26
- package/es/interface/hooks/index.d.ts +0 -1
- package/es/interface/i-message-util/i-message-util.d.ts +0 -78
- package/es/interface/index.mjs +0 -1
- package/es/interface/low-code-types/index.d.ts +0 -4
- package/es/interface/low-code-types/modal-types.d.ts +0 -67
- package/es/interface/low-code-types/model/index.d.ts +0 -5338
- package/es/interface/low-code-types/schema/index.d.ts +0 -12
- package/es/interface/low-code-types/widget-basic-types.d.ts +0 -667
- package/es/interface/state/i-designer-state.d.ts +0 -27
- package/es/modules/env-manager/index.mjs +0 -5
- package/es/modules/platform-config/index.mjs +0 -17
- package/es/modules/platform-config/types.d.ts +0 -67
- package/es/provider/i-designer-provider/i-designer-provider.d.ts +0 -102
- package/es/provider/index.d.ts +0 -1
- package/es/provider/index.mjs +0 -1
- package/es/register/designer-register/designer-register.d.ts +0 -53
- package/es/register/designer-register/designer-register.mjs +0 -68
- package/es/register/index.mjs +0 -6
- package/es/register/render-register/render-register.d.ts +0 -59
- package/es/register/render-register/render-register.mjs +0 -64
- package/es/state/index.mjs +0 -12
- package/es/utils/index.mjs +0 -10
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +0 -96
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +0 -260
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IVue3DndItemHooks, LowCodeWidget } from '../widget-basic-types';
|
|
2
|
-
export type ExportWidgetSchema = Record<string, LowCodeWidget.BasicSchema>;
|
|
3
|
-
export type ExportWidgetPropEditors = Record<string, LowCodeWidget.PropEditor[]>;
|
|
4
|
-
export type ExportWidgetStyleEditors = Record<string, LowCodeWidget.StyleEditor[]>;
|
|
5
|
-
export type ExportWidgetEvents = Record<string, LowCodeWidget.EventsType[]>;
|
|
6
|
-
export type ExportWidgetHooks = Record<string, IVue3DndItemHooks>;
|
|
7
|
-
export type ExportWidgetWhiteList = Record<string, (string | RegExp)[]>;
|
|
8
|
-
export type ExportWidgetBlackList = Record<string, (string | RegExp)[]>;
|
|
9
|
-
export type ExportWidgetCallback = Record<string, LowCodeWidget.RunCallback>;
|
|
10
|
-
export type ExportWidgetBeforeCreate = Record<string, LowCodeWidget.beforeCreate>;
|
|
11
|
-
export type ExportWidgetLoopCallback = Record<string, LowCodeWidget.loopCallback>;
|
|
12
|
-
export type ExportWidgetDesignerConfig = Record<string, LowCodeWidget.DesignerConfig>;
|
|
@@ -1,667 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'vue';
|
|
2
|
-
import { LowCodeModal } from './modal-types';
|
|
3
|
-
import { FieldMetaDTO } from './model';
|
|
4
|
-
import { CategoryTypeEnum, Platform, PropGroup, TextDecoration, FormComponents, DisplayType, SearchComponents, INNER_EVENT, DisplayEnums, EventCategory, StyleGroup, TagTypeEnum, BindCmpStyleTypeEnum, tableColumnWidthEnum, ProgressTypeEnum, tagEnum, VERIFICATIONCONDITIONS_TYPE, ASSIGNMENTSTRATEGY_ENUM, Dependency_ENUM, GLOBAL_VAR_TYPE, CreateType, EntityModelCategoryEnum, EntityModelTypeEnum, FIELD_TYPE, MaterialEnum, SEARCH_SEVICE, UniqueConstraintType } from '../../enums';
|
|
5
|
-
import { IDesignerController } from '../controller';
|
|
6
|
-
/** 单个组件节点描述 */
|
|
7
|
-
export declare namespace LowCodeWidget {
|
|
8
|
-
interface BasicSchema {
|
|
9
|
-
/** 组件唯一标识 */
|
|
10
|
-
id: string;
|
|
11
|
-
/** 显示设备 */
|
|
12
|
-
platform: Platform;
|
|
13
|
-
/** 组件tag标识 */
|
|
14
|
-
categoryType?: CategoryTypeEnum;
|
|
15
|
-
/**别名 */
|
|
16
|
-
alias: string;
|
|
17
|
-
/** 组件名称 */
|
|
18
|
-
name: string;
|
|
19
|
-
/**自定义展示组件的名字 */
|
|
20
|
-
compName?: string;
|
|
21
|
-
/**自定义展示组件key的名字 */
|
|
22
|
-
compKey?: string;
|
|
23
|
-
/**组件类型 需和文件名一致 */
|
|
24
|
-
type: FormComponents | string;
|
|
25
|
-
/** icon, 配置组件库使用 */
|
|
26
|
-
icon: string;
|
|
27
|
-
/** 子集, 仅布局组件使用 */
|
|
28
|
-
children?: any[];
|
|
29
|
-
/** 是否可显示, 配置组件库使用 */
|
|
30
|
-
internal?: boolean;
|
|
31
|
-
/** 描述 */
|
|
32
|
-
description?: string;
|
|
33
|
-
/** 样式 */
|
|
34
|
-
style: Partial<BasicStyle>;
|
|
35
|
-
/** 组件属性 */
|
|
36
|
-
props: CommonProps & WidgetProps;
|
|
37
|
-
/** 事件 */
|
|
38
|
-
events: BasicEvents;
|
|
39
|
-
/** 表单组件 */
|
|
40
|
-
formItem?: boolean;
|
|
41
|
-
/**布局 块级 行内 */
|
|
42
|
-
display?: DisplayEnums;
|
|
43
|
-
/** 菜单别名 */
|
|
44
|
-
displayName?: string;
|
|
45
|
-
/**i18n字段 */
|
|
46
|
-
i18n?: Record<string, string>;
|
|
47
|
-
/** 是否是字段类型 */
|
|
48
|
-
isField?: boolean;
|
|
49
|
-
/** 字段组件类型使用场景 */
|
|
50
|
-
materialType?: MaterialEnum;
|
|
51
|
-
/** 字段所属位置 */
|
|
52
|
-
preLocation?: string;
|
|
53
|
-
/**排除的样式属性 */
|
|
54
|
-
ignoringStyle?: string[];
|
|
55
|
-
/**是否是自读组件,自读则不会有hover和点击选中组件的行为 */
|
|
56
|
-
isReadonlyWidget?: boolean;
|
|
57
|
-
/**部分组件嵌套在某个父组件内部 */
|
|
58
|
-
parentComponent?: FormComponents;
|
|
59
|
-
/** 如果是插件,此处是拖入时插件的配置信息 */
|
|
60
|
-
_plugin?: IObject;
|
|
61
|
-
}
|
|
62
|
-
interface FieldSchema extends BasicSchema {
|
|
63
|
-
props: FormItemProps & WidgetProps;
|
|
64
|
-
}
|
|
65
|
-
interface IWrapperCmpConfigParams {
|
|
66
|
-
/** 组件基础配置 */
|
|
67
|
-
data: any;
|
|
68
|
-
/** 是否是移动端 */
|
|
69
|
-
isMobile: boolean;
|
|
70
|
-
/** 平台 */
|
|
71
|
-
platform: Platform;
|
|
72
|
-
/** 调用方传入的其他状态 */
|
|
73
|
-
otherState: Record<string, any>;
|
|
74
|
-
}
|
|
75
|
-
/**Font样式 */
|
|
76
|
-
interface FontStyle {
|
|
77
|
-
fontSize: string;
|
|
78
|
-
bold: boolean;
|
|
79
|
-
italic: boolean;
|
|
80
|
-
textDecoration: TextDecoration;
|
|
81
|
-
color: string;
|
|
82
|
-
align: 'left' | 'right';
|
|
83
|
-
}
|
|
84
|
-
/**组件只读时开启标签配置的样式 */
|
|
85
|
-
interface TagConfigStyle {
|
|
86
|
-
color?: string;
|
|
87
|
-
tagType?: TagTypeEnum;
|
|
88
|
-
}
|
|
89
|
-
/**组件只读时开启进度条配置的样式 */
|
|
90
|
-
interface ProgressConfigStyle {
|
|
91
|
-
color: string;
|
|
92
|
-
tagType: ProgressTypeEnum;
|
|
93
|
-
}
|
|
94
|
-
interface BorderStyle {
|
|
95
|
-
borderWidth: string;
|
|
96
|
-
borderStyle: string;
|
|
97
|
-
borderColor: string;
|
|
98
|
-
}
|
|
99
|
-
/**样式Schema */
|
|
100
|
-
interface BasicStyle {
|
|
101
|
-
position?: string;
|
|
102
|
-
top?: string;
|
|
103
|
-
left?: string;
|
|
104
|
-
right?: string;
|
|
105
|
-
bottom?: string;
|
|
106
|
-
width?: string;
|
|
107
|
-
height?: string;
|
|
108
|
-
maxHeight?: string;
|
|
109
|
-
backgroundColor?: string;
|
|
110
|
-
marginAll?: string;
|
|
111
|
-
marginTop?: string;
|
|
112
|
-
marginRight?: string;
|
|
113
|
-
marginBottom?: string;
|
|
114
|
-
marginLeft?: string;
|
|
115
|
-
paddingAll?: string;
|
|
116
|
-
paddingTop?: string;
|
|
117
|
-
paddingRight?: string;
|
|
118
|
-
paddingBottom?: string;
|
|
119
|
-
paddingLeft?: string;
|
|
120
|
-
labelFont: FontStyle;
|
|
121
|
-
contentFont: FontStyle;
|
|
122
|
-
tagStyle: TagConfigStyle;
|
|
123
|
-
tagStyleOpen: boolean;
|
|
124
|
-
borderAll: Partial<BorderStyle>;
|
|
125
|
-
borderLeft: Partial<BorderStyle>;
|
|
126
|
-
borderRight: Partial<BorderStyle>;
|
|
127
|
-
borderBottom: Partial<BorderStyle>;
|
|
128
|
-
borderTop: Partial<BorderStyle>;
|
|
129
|
-
borderTopRightRadius?: string;
|
|
130
|
-
borderTopLeftRadius?: string;
|
|
131
|
-
borderBottomRightRadius?: string;
|
|
132
|
-
borderBottomLeftRadius?: string;
|
|
133
|
-
borderAllRadius?: string;
|
|
134
|
-
/**表格列宽样式 */
|
|
135
|
-
columnwidthConfigure?: tableColumnWidthEnum;
|
|
136
|
-
/**表格列宽*/
|
|
137
|
-
columnwidth?: number;
|
|
138
|
-
columnFontStyleByRule?: columnFontStyleByRule[];
|
|
139
|
-
columnBackgroundByRule?: columnBackgroundByRule[];
|
|
140
|
-
tableheight?: number;
|
|
141
|
-
/**表格高度样式 */
|
|
142
|
-
tableheightConfigure?: tableColumnWidthEnum;
|
|
143
|
-
}
|
|
144
|
-
interface columnFontStyleByRule {
|
|
145
|
-
displayRule: string;
|
|
146
|
-
contentFont: FontStyle;
|
|
147
|
-
tagStyle: TagConfigStyle;
|
|
148
|
-
progressStyle: ProgressConfigStyle;
|
|
149
|
-
tagType: tagEnum;
|
|
150
|
-
tagStyleOpen: boolean;
|
|
151
|
-
}
|
|
152
|
-
interface columnBackgroundByRule {
|
|
153
|
-
displayRule: string;
|
|
154
|
-
backgroundColor?: string;
|
|
155
|
-
}
|
|
156
|
-
/**BasicSchema中的组件prop */
|
|
157
|
-
type CommonProps = Record<string, any>;
|
|
158
|
-
/**所有组件的Prop基类 */
|
|
159
|
-
type WidgetProps = DisplayProps;
|
|
160
|
-
/**表单组件Prop Schema */
|
|
161
|
-
interface FormItemProps extends WidgetProps {
|
|
162
|
-
/** 字段key */
|
|
163
|
-
field: string;
|
|
164
|
-
/** 字段id */
|
|
165
|
-
fieldId: string;
|
|
166
|
-
fieldType?: FIELD_TYPE;
|
|
167
|
-
/** 字段链路 */
|
|
168
|
-
fieldCodeChain?: string;
|
|
169
|
-
/** 是否是模型关联字段, 模型关联字段的字段key */
|
|
170
|
-
bindFieldKey?: string;
|
|
171
|
-
/** 是否是模型关联字段 */
|
|
172
|
-
isFieldModel?: boolean;
|
|
173
|
-
/** 自定义名称 */
|
|
174
|
-
label: string;
|
|
175
|
-
/** 显示标题 */
|
|
176
|
-
displayLabelText?: boolean;
|
|
177
|
-
/** 暗提示 */
|
|
178
|
-
placeholder?: string;
|
|
179
|
-
/** 默认值 */
|
|
180
|
-
defaultValue?: any;
|
|
181
|
-
/** 必填 */
|
|
182
|
-
required?: boolean;
|
|
183
|
-
/** 新建字段那边配置的必填 */
|
|
184
|
-
fieldRequired?: boolean;
|
|
185
|
-
/** 只读 */
|
|
186
|
-
readonly?: boolean;
|
|
187
|
-
/**字段只读 */
|
|
188
|
-
fieldReadonly?: boolean;
|
|
189
|
-
/** 禁用 */
|
|
190
|
-
disabled?: boolean;
|
|
191
|
-
/**可清空 */
|
|
192
|
-
clearable?: boolean;
|
|
193
|
-
/**获取焦点 */
|
|
194
|
-
getFocus?: boolean;
|
|
195
|
-
/** 显示说明开关 */
|
|
196
|
-
showExplain?: boolean;
|
|
197
|
-
/** 显示说明文案 */
|
|
198
|
-
explain?: string;
|
|
199
|
-
/** 正则校验开关 */
|
|
200
|
-
regSwitch?: boolean;
|
|
201
|
-
/**正则校验提示文案 */
|
|
202
|
-
regHint?: string;
|
|
203
|
-
/**正则校验内容 */
|
|
204
|
-
reg?: string;
|
|
205
|
-
/** 显隐配置-隐藏时提交开关 */
|
|
206
|
-
notSubmitInHide?: boolean;
|
|
207
|
-
/** 绑定组件样式选择类型 */
|
|
208
|
-
bindCompStyleType?: string;
|
|
209
|
-
/**所属表单的模型key */
|
|
210
|
-
modelKey: string;
|
|
211
|
-
/**关联字段所关联的模型 */
|
|
212
|
-
bindModelKey?: string;
|
|
213
|
-
/**内嵌搜索 */
|
|
214
|
-
embeddedSearch?: boolean;
|
|
215
|
-
/**自定义显示字段 */
|
|
216
|
-
isCustomField?: boolean;
|
|
217
|
-
maxlength?: number;
|
|
218
|
-
minlength?: number;
|
|
219
|
-
/**
|
|
220
|
-
* 唯一类型
|
|
221
|
-
*/
|
|
222
|
-
uniqueConstraintType?: UniqueConstraintType;
|
|
223
|
-
/** 是否关闭校验 */
|
|
224
|
-
closeValidator?: boolean;
|
|
225
|
-
/**预置字段 不可删除 */
|
|
226
|
-
_preset?: boolean;
|
|
227
|
-
/** 关闭自动修复错误数字 */
|
|
228
|
-
notAutoFix?: boolean;
|
|
229
|
-
/** 最大值 */
|
|
230
|
-
maxValue?: any;
|
|
231
|
-
/** 最小值 */
|
|
232
|
-
minValue?: any;
|
|
233
|
-
/**关联引用下模型的字段的链路 */
|
|
234
|
-
bindFieldLink?: string[];
|
|
235
|
-
/**
|
|
236
|
-
* 关联引用下模型依赖的字段
|
|
237
|
-
*/
|
|
238
|
-
refOriginField?: string;
|
|
239
|
-
/** 关联引用下模型依赖的初始字段的模型*/
|
|
240
|
-
refOriginModelKey?: string;
|
|
241
|
-
/** 关联引用下模型依赖的初始字段的字段类型*/
|
|
242
|
-
refOriginFieldType?: FIELD_TYPE;
|
|
243
|
-
}
|
|
244
|
-
/**组件依赖 */
|
|
245
|
-
interface Dependency {
|
|
246
|
-
[Dependency_ENUM.HIDDEN]: {
|
|
247
|
-
expression?: string;
|
|
248
|
-
value?: boolean;
|
|
249
|
-
};
|
|
250
|
-
/**只读 */
|
|
251
|
-
[Dependency_ENUM.READONLY]: {
|
|
252
|
-
expression?: string;
|
|
253
|
-
value?: boolean;
|
|
254
|
-
/**字段组件上的配置信息 */
|
|
255
|
-
fieldValue?: boolean;
|
|
256
|
-
};
|
|
257
|
-
/**禁用 */
|
|
258
|
-
[Dependency_ENUM.DISABLED]: {
|
|
259
|
-
expression?: string;
|
|
260
|
-
value?: boolean;
|
|
261
|
-
};
|
|
262
|
-
/**必填 */
|
|
263
|
-
[Dependency_ENUM.REQUIRED]: {
|
|
264
|
-
expression?: string;
|
|
265
|
-
value?: boolean;
|
|
266
|
-
/**字段组件上的配置信息 */
|
|
267
|
-
fieldValue?: boolean;
|
|
268
|
-
};
|
|
269
|
-
[Dependency_ENUM.ASSIGNMENT]: {
|
|
270
|
-
expression?: string;
|
|
271
|
-
strategy?: ASSIGNMENTSTRATEGY_ENUM;
|
|
272
|
-
value?: boolean;
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
/**显隐的Props */
|
|
276
|
-
interface DisplayProps {
|
|
277
|
-
/** 显隐配置-隐藏开关 */
|
|
278
|
-
hidden: boolean;
|
|
279
|
-
/** 显隐配置-显隐控制 */
|
|
280
|
-
displayType?: DisplayType;
|
|
281
|
-
/** 显隐配置-显隐控制内容 */
|
|
282
|
-
displayRule?: string;
|
|
283
|
-
/**模型信息 */
|
|
284
|
-
modeldata?: {
|
|
285
|
-
/**模型类型 基础/版本/树 等等 */
|
|
286
|
-
modelType?: EntityModelTypeEnum;
|
|
287
|
-
/**模型大类 */
|
|
288
|
-
modelCategory?: EntityModelCategoryEnum;
|
|
289
|
-
/**1表示子表 0表示主表 */
|
|
290
|
-
subModel?: 0 | 1;
|
|
291
|
-
/**1表示流程模型 */
|
|
292
|
-
supportProcess?: 0 | 1;
|
|
293
|
-
};
|
|
294
|
-
/**组件依赖 */
|
|
295
|
-
componentDependency: {
|
|
296
|
-
/**组件依赖排序 */
|
|
297
|
-
sortDependency: Dependency_ENUM[];
|
|
298
|
-
/**组件依赖配置 */
|
|
299
|
-
configDependency: Dependency;
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
/**布局组件Prop Schema */
|
|
303
|
-
type LayoutProps = WidgetProps;
|
|
304
|
-
/**基础Prop Schema */
|
|
305
|
-
/**已选中配置的事件 Schema */
|
|
306
|
-
type BasicEvents = Record<string, JsEvent | InnerEvents[] | LoInterface>;
|
|
307
|
-
interface JsEvent {
|
|
308
|
-
type?: EventCategory.JS;
|
|
309
|
-
/**JS方法名称 */
|
|
310
|
-
name: string;
|
|
311
|
-
/**event额外参数 */
|
|
312
|
-
extraParams: Record<string, any> | string | number | boolean;
|
|
313
|
-
}
|
|
314
|
-
interface InnerEvents {
|
|
315
|
-
name: INNER_EVENT;
|
|
316
|
-
title: string;
|
|
317
|
-
key: string;
|
|
318
|
-
refId?: string;
|
|
319
|
-
scopeId?: string;
|
|
320
|
-
}
|
|
321
|
-
interface LoInterface {
|
|
322
|
-
type: EventCategory.LO;
|
|
323
|
-
/**JS方法名称 */
|
|
324
|
-
name: string;
|
|
325
|
-
/**event额外参数 */
|
|
326
|
-
extraParams: Record<string, any> | string | number | boolean;
|
|
327
|
-
}
|
|
328
|
-
/**样式编辑器 */
|
|
329
|
-
interface StyleEditor {
|
|
330
|
-
/**style组件 */
|
|
331
|
-
component: string;
|
|
332
|
-
/**style名称 */
|
|
333
|
-
name?: string | Record<string, string>;
|
|
334
|
-
/**右侧显示的名称 */
|
|
335
|
-
label?: string;
|
|
336
|
-
/**style分组 */
|
|
337
|
-
group: StyleGroup;
|
|
338
|
-
/**style变时的callback */
|
|
339
|
-
changeCallback?: Function;
|
|
340
|
-
/**style是否隐藏逻辑 */
|
|
341
|
-
hidden?: (arg: BasicSchema) => boolean;
|
|
342
|
-
/**
|
|
343
|
-
* editor内部的自定义config逻辑
|
|
344
|
-
*/
|
|
345
|
-
_config?: Partial<StyleEditorConfig>;
|
|
346
|
-
/** 表单编辑器额外配置 */
|
|
347
|
-
editor?: Record<string, any>;
|
|
348
|
-
/** 表单项配置 */
|
|
349
|
-
formItem?: Record<string, any>;
|
|
350
|
-
}
|
|
351
|
-
interface StyleEditorConfig {
|
|
352
|
-
[key: string]: any;
|
|
353
|
-
options: Function | {
|
|
354
|
-
label: string;
|
|
355
|
-
value: string | boolean | number;
|
|
356
|
-
}[];
|
|
357
|
-
options2: Function | {
|
|
358
|
-
label: string;
|
|
359
|
-
value: string | boolean | number;
|
|
360
|
-
}[];
|
|
361
|
-
maxlength: number;
|
|
362
|
-
minlength: number;
|
|
363
|
-
showType: 'switch' | 'checkbox';
|
|
364
|
-
/**新增对象的生成器 */
|
|
365
|
-
generator?: Function;
|
|
366
|
-
columnWidthEnum?: tableColumnWidthEnum[];
|
|
367
|
-
hiddenMarginOrPadding: 'margin' | 'padding';
|
|
368
|
-
/**form-item显示的名称 */
|
|
369
|
-
label?: string;
|
|
370
|
-
hiddenColor?: boolean;
|
|
371
|
-
}
|
|
372
|
-
/**属性编辑器 */
|
|
373
|
-
interface PropEditor {
|
|
374
|
-
/**prop组件 */
|
|
375
|
-
component: string;
|
|
376
|
-
/**prop名称 没有name的情况指的是:此editor改的不是组件的prop而是改的其他地方的数据*/
|
|
377
|
-
/**root:开头就全链路修改widget */
|
|
378
|
-
name?: string | Record<string, any>;
|
|
379
|
-
/**
|
|
380
|
-
* 组件所归属的套件,非清单中的配置界面不显示
|
|
381
|
-
*
|
|
382
|
-
* @author zhanghanrui
|
|
383
|
-
* @date 2024-05-31 09:05:49
|
|
384
|
-
* @type {string[]}
|
|
385
|
-
*/
|
|
386
|
-
kit?: string[];
|
|
387
|
-
/**右侧显示的label名称 */
|
|
388
|
-
label: string;
|
|
389
|
-
/**prop是否必填 */
|
|
390
|
-
required?: boolean;
|
|
391
|
-
/**prop分组 */
|
|
392
|
-
group: PropGroup | string;
|
|
393
|
-
/**自定义校验 */
|
|
394
|
-
validate?: Promise<any>;
|
|
395
|
-
/**
|
|
396
|
-
* editor内部的自定义config逻辑
|
|
397
|
-
*/
|
|
398
|
-
_config?: Partial<PropEditorConfig>;
|
|
399
|
-
/** 表单项额外配置 */
|
|
400
|
-
editor?: Record<string, any>;
|
|
401
|
-
/** 表单项配置 */
|
|
402
|
-
formItem?: Record<string, any>;
|
|
403
|
-
/**prop变时的callback */
|
|
404
|
-
changeCallback?: (arg: BasicSchema, val: any) => void;
|
|
405
|
-
/** 是否是纯表单字段配置(在 hidden 方法之后执行,如果为 false 直接隐藏)只针对于字段 */
|
|
406
|
-
formField?: boolean;
|
|
407
|
-
/**editor的是否隐藏逻辑 */
|
|
408
|
-
hidden?: (arg: BasicSchema) => boolean;
|
|
409
|
-
/**props依赖的字段,依赖的字段不存在会隐藏,变化了会刷新 */
|
|
410
|
-
dependentProps?: string[];
|
|
411
|
-
formItemStyle?: CSSProperties;
|
|
412
|
-
formItemClass?: string;
|
|
413
|
-
onMounted?: (widget: BasicSchema) => void;
|
|
414
|
-
}
|
|
415
|
-
/**editor属性 */
|
|
416
|
-
interface PropEditorConfig {
|
|
417
|
-
[key: string]: any;
|
|
418
|
-
width?: number;
|
|
419
|
-
filterFields: FIELD_TYPE[];
|
|
420
|
-
filterTypes: CreateType[];
|
|
421
|
-
fieldToProp: FieldToProp[];
|
|
422
|
-
options: Function | {
|
|
423
|
-
label?: string;
|
|
424
|
-
icon?: string;
|
|
425
|
-
value: string | boolean | number;
|
|
426
|
-
suffix?: string;
|
|
427
|
-
}[];
|
|
428
|
-
options2: Function | {
|
|
429
|
-
label?: string;
|
|
430
|
-
icon?: string;
|
|
431
|
-
value: string | boolean | number;
|
|
432
|
-
}[];
|
|
433
|
-
createField: Function;
|
|
434
|
-
updateAsyncField?: Function;
|
|
435
|
-
maxlength?: Function | number;
|
|
436
|
-
minlength?: Function | number;
|
|
437
|
-
max?: Function | number;
|
|
438
|
-
min?: Function | number;
|
|
439
|
-
precision?: Function | number;
|
|
440
|
-
i18n?: boolean;
|
|
441
|
-
clearable?: boolean;
|
|
442
|
-
/**后置标签 */
|
|
443
|
-
addonAfter?: string;
|
|
444
|
-
disabled?: Function | boolean;
|
|
445
|
-
tooltip?: string | string[];
|
|
446
|
-
multiple?: boolean;
|
|
447
|
-
/**多选最多选择的个数 */
|
|
448
|
-
maxMultiple?: number;
|
|
449
|
-
modelKey?: string;
|
|
450
|
-
type?: string;
|
|
451
|
-
eventCallback?: Function;
|
|
452
|
-
filterFn?: (arg: any) => boolean;
|
|
453
|
-
/** 是否展示字数 */
|
|
454
|
-
showCount?: boolean;
|
|
455
|
-
/** 需要显示的输入属性内容 */
|
|
456
|
-
needFieldAttrs?: string[];
|
|
457
|
-
/** 需要过滤的输入属性内容 */
|
|
458
|
-
getFilterAttrs?: Function;
|
|
459
|
-
/** 组件类型key */
|
|
460
|
-
bindCmpStyleKey?: BindCmpStyleTypeEnum | Function;
|
|
461
|
-
filterOptionsCallback?: Function;
|
|
462
|
-
/** 日期、日期时间默认值 */
|
|
463
|
-
initPickerType?: string;
|
|
464
|
-
/**
|
|
465
|
-
* 图标色
|
|
466
|
-
*/
|
|
467
|
-
showColor?: boolean;
|
|
468
|
-
/**
|
|
469
|
-
* 图标背景色
|
|
470
|
-
*/
|
|
471
|
-
showBackground?: boolean;
|
|
472
|
-
/** 下拉框返回值类型 */
|
|
473
|
-
valueType?: string;
|
|
474
|
-
/**名称 */
|
|
475
|
-
name?: string;
|
|
476
|
-
/** 清除子组件 */
|
|
477
|
-
clearChildren?: boolean;
|
|
478
|
-
/** 支持搜索 */
|
|
479
|
-
showSearch?: boolean;
|
|
480
|
-
/** 过滤自身 */
|
|
481
|
-
filterSelf?: boolean;
|
|
482
|
-
/**根据props中哪个值来查询model字段 */
|
|
483
|
-
modelByKey: string;
|
|
484
|
-
/** 支持使用全局字段数据 */
|
|
485
|
-
supportGlobData?: boolean;
|
|
486
|
-
/**获取查询组件信息 */
|
|
487
|
-
getSearchWidgets?: Function;
|
|
488
|
-
/**显示复选框 */
|
|
489
|
-
showcheckbox?: boolean;
|
|
490
|
-
/**所属系统,web_module、mobile_module */
|
|
491
|
-
module?: string;
|
|
492
|
-
/** 选择字段按钮标题 */
|
|
493
|
-
selectFiledBtnTitle?: string;
|
|
494
|
-
/**查询子表或非子表 不传查询全部(1 子模型, 0 非子模型)*/
|
|
495
|
-
subModel?: number;
|
|
496
|
-
/** 模型种类:(entity/data/view) 多个类型逗号分隔*/
|
|
497
|
-
category?: string;
|
|
498
|
-
/**选择字段能否被拖拽 */
|
|
499
|
-
draggable?: boolean;
|
|
500
|
-
/**默认创建的按钮类型 */
|
|
501
|
-
defaultButtonType?: object;
|
|
502
|
-
/**组件辅助提示文本 */
|
|
503
|
-
tips?: string;
|
|
504
|
-
/** 是否显示切换单位 */
|
|
505
|
-
filterUnitType?: 'px' | '%';
|
|
506
|
-
placeholder?: string;
|
|
507
|
-
/** 需要过滤的字段 */
|
|
508
|
-
excludeFieldType?: FIELD_TYPE[];
|
|
509
|
-
/** 最要过滤的字段key */
|
|
510
|
-
excludeFieldKey?: string[];
|
|
511
|
-
/** 默认展开所有节点 */
|
|
512
|
-
defaultExpandAll?: boolean;
|
|
513
|
-
/** 显示checkbox */
|
|
514
|
-
treeCheckable?: boolean;
|
|
515
|
-
/**tag显示的内容 */
|
|
516
|
-
tagName?: string;
|
|
517
|
-
/**是否显示tag */
|
|
518
|
-
showTagFunc?: boolean | Function;
|
|
519
|
-
/** 是否一行显示 */
|
|
520
|
-
isInRow?: boolean;
|
|
521
|
-
/** 一行显示时是否居右显示 */
|
|
522
|
-
isRight?: boolean;
|
|
523
|
-
/** 获取modelkey */
|
|
524
|
-
getModelKey?: Function;
|
|
525
|
-
/** label行中右侧按钮 */
|
|
526
|
-
labelButton?: object;
|
|
527
|
-
/**label 水平布局时,左侧的label名称 */
|
|
528
|
-
label?: string;
|
|
529
|
-
/** linkage-editor 是否是tree */
|
|
530
|
-
isTreeSelect?: boolean | ((IData: any) => boolean);
|
|
531
|
-
/**插槽 */
|
|
532
|
-
slots?: object;
|
|
533
|
-
/** 关联表单的模型key */
|
|
534
|
-
bindModelKey?: string;
|
|
535
|
-
/**头部按钮 */
|
|
536
|
-
headerRightButton?: FormComponents[] | ((w: BasicSchema) => FormComponents[]);
|
|
537
|
-
/**批量按钮 */
|
|
538
|
-
headerLeftButton?: FormComponents[] | ((w: BasicSchema) => FormComponents[]);
|
|
539
|
-
/**单行按钮 */
|
|
540
|
-
columnsButton?: FormComponents[] | ((w: BasicSchema) => FormComponents[]);
|
|
541
|
-
/**rdo单行按钮 */
|
|
542
|
-
columnsRdoButton?: [
|
|
543
|
-
{
|
|
544
|
-
value: FormComponents[] | ((w: BasicSchema) => FormComponents[]);
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
value: FormComponents[] | ((w: BasicSchema) => FormComponents[]);
|
|
548
|
-
}
|
|
549
|
-
];
|
|
550
|
-
/**模块类型 */
|
|
551
|
-
moduleType?: string;
|
|
552
|
-
}
|
|
553
|
-
interface FieldToProp {
|
|
554
|
-
/**模型建模中字段 */
|
|
555
|
-
from: keyof FieldMetaDTO;
|
|
556
|
-
/**组件PROP中的字段 */
|
|
557
|
-
to: keyof FormItemProps | string;
|
|
558
|
-
transform?: (arg: any) => any;
|
|
559
|
-
}
|
|
560
|
-
/**组件自身拥有的事件 */
|
|
561
|
-
interface EventsType {
|
|
562
|
-
/**事件KEY */
|
|
563
|
-
name: string;
|
|
564
|
-
/**事件名 */
|
|
565
|
-
title: string;
|
|
566
|
-
/**事件参数 */
|
|
567
|
-
params: string[];
|
|
568
|
-
/**event是否隐藏逻辑 */
|
|
569
|
-
hidden?: (arg: Partial<BasicSchema> | Partial<LowCodeModal.Modal>) => boolean;
|
|
570
|
-
}
|
|
571
|
-
type RunCallback = Function;
|
|
572
|
-
type beforeCreate = Function;
|
|
573
|
-
type hooks<O = unknown> = IVue3DndItemHooks<O>;
|
|
574
|
-
type loopCallback = (widget: any, Fn: Function) => void;
|
|
575
|
-
/**设计页面配置信息 */
|
|
576
|
-
interface DesignerConfig {
|
|
577
|
-
basicProps?: {
|
|
578
|
-
/**隐藏key */
|
|
579
|
-
key_hidden?: boolean;
|
|
580
|
-
/**自定义key label */
|
|
581
|
-
key_label?: string;
|
|
582
|
-
/**隐藏别名 */
|
|
583
|
-
alias_hidden?: boolean;
|
|
584
|
-
/**自定义别名label */
|
|
585
|
-
alias_label?: string;
|
|
586
|
-
};
|
|
587
|
-
/**隐藏遮罩 */
|
|
588
|
-
hideMask?: boolean;
|
|
589
|
-
}
|
|
590
|
-
interface SearchSchema extends fieldWidgetSchema {
|
|
591
|
-
/** 组件名称 */
|
|
592
|
-
name: string;
|
|
593
|
-
/**组件类型 需和文件名一致 */
|
|
594
|
-
type: SearchComponents;
|
|
595
|
-
alias: string;
|
|
596
|
-
isSearchField: boolean;
|
|
597
|
-
materialType: MaterialEnum;
|
|
598
|
-
props: fieldWidgetSchema['props'] & {
|
|
599
|
-
defaultValue: any;
|
|
600
|
-
placeholder: string;
|
|
601
|
-
ope: SEARCH_SEVICE[];
|
|
602
|
-
/**是否区间搜索 */
|
|
603
|
-
isRang?: boolean;
|
|
604
|
-
/**是否启用了其他选项 */
|
|
605
|
-
useMore?: SEARCH_SEVICE | '';
|
|
606
|
-
bindModelKey?: string;
|
|
607
|
-
modelKey?: string;
|
|
608
|
-
readonly: boolean;
|
|
609
|
-
diaabled: boolean;
|
|
610
|
-
};
|
|
611
|
-
formItem: boolean;
|
|
612
|
-
}
|
|
613
|
-
interface PageVars {
|
|
614
|
-
id: string;
|
|
615
|
-
key: string;
|
|
616
|
-
varInfo: {
|
|
617
|
-
key: string;
|
|
618
|
-
type: GLOBAL_VAR_TYPE;
|
|
619
|
-
defaultValue?: string;
|
|
620
|
-
description: string;
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
export interface fieldWidgetSchema {
|
|
625
|
-
/** 组件唯一标识 */
|
|
626
|
-
id: string;
|
|
627
|
-
/**i18n字段 */
|
|
628
|
-
i18n: Record<string, string>;
|
|
629
|
-
props: {
|
|
630
|
-
/**字段key */
|
|
631
|
-
field: string;
|
|
632
|
-
/**字段id */
|
|
633
|
-
fieldId: string;
|
|
634
|
-
/**字段类型 */
|
|
635
|
-
fieldType?: FIELD_TYPE;
|
|
636
|
-
/**字段名称 */
|
|
637
|
-
label: string;
|
|
638
|
-
};
|
|
639
|
-
}
|
|
640
|
-
export interface validateRule {
|
|
641
|
-
ruleName: string;
|
|
642
|
-
field: string;
|
|
643
|
-
ruleType: VERIFICATIONCONDITIONS_TYPE.JS;
|
|
644
|
-
trigger?: 'change' | 'bulr';
|
|
645
|
-
message?: string;
|
|
646
|
-
jsName?: string;
|
|
647
|
-
}
|
|
648
|
-
/**
|
|
649
|
-
* 拖拽项钩子
|
|
650
|
-
*
|
|
651
|
-
* @export
|
|
652
|
-
* @interface IVue3DndItemHooks
|
|
653
|
-
* @template O
|
|
654
|
-
*/
|
|
655
|
-
export interface IVue3DndItemHooks<O = LowCodeWidget.BasicSchema> {
|
|
656
|
-
/**
|
|
657
|
-
* 放置钩子
|
|
658
|
-
*
|
|
659
|
-
* @param {IDesignerController} c
|
|
660
|
-
* @param {('create' | 'move')} mode
|
|
661
|
-
* @param {O[]} parentWidgets
|
|
662
|
-
* @param {O[]} items
|
|
663
|
-
* @param {O} item
|
|
664
|
-
* @returns {*} {(Promise<O | null>)}
|
|
665
|
-
*/
|
|
666
|
-
drop?(c: IDesignerController, mode: 'create' | 'move', parentWidgets: O[], items: O[], item: O): Promise<O | null>;
|
|
667
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { LowCodeWidget } from '../low-code-types';
|
|
2
|
-
/**
|
|
3
|
-
* 设计器状态接口
|
|
4
|
-
*
|
|
5
|
-
* @author zhanghanrui
|
|
6
|
-
* @date 2024-05-09 14:05:44
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IDesignerState
|
|
9
|
-
*/
|
|
10
|
-
export interface IDesignerState {
|
|
11
|
-
/**
|
|
12
|
-
* 设计页面是否正在拖拽中
|
|
13
|
-
*/
|
|
14
|
-
isDragging: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* 拖拽放置目标容器
|
|
17
|
-
*/
|
|
18
|
-
dropContainer: LowCodeWidget.BasicSchema | null;
|
|
19
|
-
/**
|
|
20
|
-
* 需要扩张的容器列表
|
|
21
|
-
*/
|
|
22
|
-
expansionContainerList: LowCodeWidget.BasicSchema[];
|
|
23
|
-
/**
|
|
24
|
-
* 数据变更次数,主要用于复杂结构下,数据变更后的设计界面重绘
|
|
25
|
-
*/
|
|
26
|
-
count: number;
|
|
27
|
-
}
|