@gct-paas/core 0.1.4-dev.8 → 0.1.5-dev.0
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.js +1 -0
- package/es/constants/core.mjs +5 -4
- package/es/constants/default-date-type/default-date-type.d.ts +70 -0
- package/es/constants/default-date-type/default-date-type.mjs +74 -0
- package/es/constants/editor-register/editor-register.mjs +17 -5
- package/es/constants/expression-type/BuiltOperators.d.ts +20 -0
- package/es/constants/expression-type/BuiltOperators.mjs +156 -0
- package/es/constants/expression-type/FunctionKeys.d.ts +1 -0
- package/es/constants/expression-type/FunctionKeys.mjs +77 -0
- package/es/constants/expression-type/editor.d.ts +8 -0
- package/es/constants/expression-type/editor.mjs +11 -0
- package/es/constants/expression-type/function.d.ts +7 -0
- package/es/constants/expression-type/function.mjs +864 -0
- package/es/constants/expression-type/index.d.ts +42 -0
- package/es/constants/expression-type/index.mjs +118 -0
- package/es/constants/expression-type/modeCfg.d.ts +30 -0
- package/es/constants/expression-type/modeCfg.mjs +261 -0
- package/es/constants/expression-type/variable.d.ts +12 -0
- package/es/constants/expression-type/variable.mjs +46 -0
- package/es/constants/form-container-type/form-container-type.mjs +17 -5
- package/es/constants/index.d.ts +8 -1
- package/es/constants/index.mjs +32 -5
- package/es/constants/page-designer/model.d.ts +4 -0
- package/es/constants/page-designer/model.mjs +17 -0
- package/es/constants/page-designer/regex.d.ts +2 -0
- package/es/constants/page-designer/regex.mjs +5 -0
- package/es/create-app-vue.mjs +15 -16
- package/es/enums/app-designer/index.d.ts +19 -0
- package/es/enums/app-designer/index.mjs +131 -63
- package/es/enums/appEnum.d.ts +5 -0
- package/es/enums/appEnum.mjs +682 -356
- package/es/enums/appStateEnum.mjs +17 -10
- package/es/enums/authActionEnum.mjs +63 -51
- package/es/enums/breakpointEnum.mjs +27 -26
- package/es/enums/cacheEnum.d.ts +0 -1
- package/es/enums/cacheEnum.mjs +22 -22
- package/es/enums/designEnum.d.ts +9 -3
- package/es/enums/designEnum.mjs +111 -69
- 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 +8 -0
- package/es/enums/exceptionEnum.mjs +21 -17
- package/es/enums/expressionEnum.d.ts +130 -0
- package/es/enums/expressionEnum.mjs +82 -0
- package/es/enums/globalEnum.d.ts +15 -0
- package/es/enums/globalEnum.mjs +60 -25
- package/es/enums/httpEnum.mjs +71 -61
- package/es/enums/index.d.ts +11 -5
- package/es/enums/index.mjs +45 -17
- package/es/enums/menuEnum.mjs +42 -38
- package/es/enums/page-designer/designer.d.ts +7 -8
- package/es/enums/page-designer/designer.mjs +404 -403
- package/es/enums/page-designer/index.d.ts +1 -0
- package/es/enums/page-designer/index.mjs +5 -0
- package/es/enums/page-designer/layout.d.ts +12 -0
- package/es/enums/page-designer/layout.mjs +17 -0
- package/es/enums/page-designer/panel.d.ts +78 -7
- package/es/enums/page-designer/panel.mjs +342 -195
- package/es/enums/page-designer/toolkit.mjs +13 -12
- package/es/enums/page-designer/widget.d.ts +5 -0
- package/es/enums/page-designer/widget.mjs +426 -334
- package/es/enums/pageEnum.mjs +14 -13
- package/es/enums/plugin-enum.d.ts +8 -4
- package/es/enums/plugin-enum.mjs +27 -7
- package/es/enums/processEnum.d.ts +54 -0
- package/es/enums/processEnum.mjs +96 -26
- package/es/enums/roleEnum.mjs +7 -6
- package/es/enums/sizeEnum.d.ts +18 -0
- package/es/enums/sizeEnum.mjs +28 -8
- package/es/global/gct/gct.d.ts +245 -13
- package/es/global/gct/gct.mjs +98 -95
- package/es/global/index.mjs +1 -0
- package/es/hooks/index.d.ts +0 -3
- package/es/hooks/index.mjs +4 -0
- package/es/hooks/use-app-inst/use-app-inst.mjs +11 -5
- package/es/hooks/use-modal/use-modal.mjs +16 -10
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.d.ts +8 -12
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +45 -25
- package/es/hooks/useCopyToClipboard.mjs +50 -50
- package/es/index.d.ts +2 -10
- package/es/index.mjs +130 -119
- package/es/interface/i-dictionary/i-dictionary-item.d.ts +6 -0
- package/es/interface/i-global-register/i-global-register.d.ts +8 -0
- package/es/interface/i-kit-info/i-kit-info.d.ts +20 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +4 -6
- package/es/interface/i-pinia-getter/i-global-getters.d.ts +2 -0
- package/es/interface/i-pinia-state/i-global-state.d.ts +12 -12
- package/es/interface/index.d.ts +5 -10
- package/es/interface/model-designer/entity.d.ts +110 -0
- 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-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/provider/index.d.ts +0 -2
- package/es/locale/index.d.ts +11 -3
- package/es/locale/index.mjs +75 -56
- package/es/modules/env-manager/env-manager.const.mjs +16 -8
- package/es/modules/env-manager/env-manager.d.ts +2 -0
- package/es/modules/env-manager/env-manager.interface.d.ts +2 -0
- package/es/modules/env-manager/env-manager.interface.mjs +14 -7
- package/es/modules/env-manager/env-manager.mjs +108 -107
- package/es/modules/error-handler/error-handler.const.mjs +11 -16
- package/es/modules/error-handler/error-strategy.mjs +199 -175
- package/es/modules/error-handler/index.mjs +120 -106
- package/es/modules/mqtt/constants/mqtt.const.d.ts +33 -0
- package/es/modules/mqtt/constants/mqtt.const.mjs +24 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.d.ts +20 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.mjs +24 -0
- package/es/modules/mqtt/index.d.ts +5 -0
- package/es/modules/mqtt/index.mjs +4 -0
- package/es/modules/mqtt/interfaces/i-mqtt.d.ts +139 -0
- package/es/modules/mqtt/mqtt-client.d.ts +117 -0
- package/es/modules/mqtt/mqtt-client.mjs +229 -0
- package/es/modules/mqtt/mqtt-manager.d.ts +87 -0
- package/es/modules/mqtt/mqtt-manager.mjs +118 -0
- package/es/modules/platform-config/constants/index.mjs +4 -0
- package/es/modules/platform-config/constants/login.const.mjs +48 -45
- package/es/modules/platform-config/constants/org.const.mjs +57 -52
- package/es/modules/platform-config/constants/theme.const.mjs +11 -4
- package/es/modules/platform-config/constants/watermark.const.mjs +17 -12
- package/es/modules/platform-config/enums/deploy.enum.mjs +13 -6
- package/es/modules/platform-config/enums/login.enum.mjs +29 -15
- package/es/modules/platform-config/enums/platform.enum.d.ts +0 -15
- package/es/modules/platform-config/enums/platform.enum.mjs +17 -26
- package/es/modules/platform-config/index.d.ts +1 -1
- package/es/modules/platform-config/index.mjs +9 -0
- package/es/modules/platform-config/interfaces/index.d.ts +0 -1
- package/es/modules/platform-config/store.d.ts +5 -1
- package/es/modules/platform-config/store.mjs +68 -76
- package/es/modules/platform-config/useBasicSetting.mjs +47 -35
- package/es/modules/platform-config/useDeploySetting.mjs +29 -21
- package/es/modules/platform-config/useLoginSetting.mjs +151 -173
- package/es/modules/platform-config/useOrgSetting.mjs +63 -62
- package/es/modules/platform-config/useProjectSetting.mjs +14 -6
- package/es/modules/platform-config/useSecuritySetting.d.ts +1 -0
- package/es/modules/platform-config/useSecuritySetting.mjs +81 -56
- package/es/modules/platform-config/useThemeSetting.mjs +78 -59
- package/es/modules/platform-config/useWatermarkSetting.mjs +37 -23
- package/es/modules/user-stores/index.mjs +3 -0
- package/es/modules/user-stores/store/permission.store.mjs +27 -36
- package/es/modules/user-stores/store/tenant.store.mjs +20 -22
- package/es/modules/user-stores/store/user.store.d.ts +149 -1
- package/es/modules/user-stores/store/user.store.mjs +97 -94
- package/es/modules/user-stores/types/user.d.ts +1 -0
- package/es/router/index.mjs +25 -28
- package/es/setup-app.d.ts +8 -0
- package/es/setup-app.mjs +24 -0
- package/es/state/global-pinia-state/global-pinia-state.d.ts +15 -7
- package/es/state/global-pinia-state/global-pinia-state.mjs +43 -57
- package/es/state/index.d.ts +0 -9
- package/es/state/index.mjs +1 -0
- package/es/store/global-store.mjs +44 -51
- package/es/store/index.d.ts +8 -0
- package/es/store/index.mjs +35 -19
- package/es/store/storage-store.d.ts +9 -0
- package/es/store/storage-store.mjs +10 -0
- package/es/types/index.d.ts +22 -0
- package/es/utils/axios/interceptors.mjs +22 -18
- package/es/utils/cache-adapter/cache-adapter.d.ts +2 -0
- package/es/utils/cache-adapter/cache-adapter.mjs +64 -0
- package/es/utils/css-loader/css-loader.d.ts +36 -0
- package/es/utils/css-loader/css-loader.mjs +82 -0
- package/es/utils/design/design.d.ts +11 -0
- package/es/utils/design/design.mjs +21 -0
- package/es/utils/deviceFingerprint.mjs +77 -63
- package/es/utils/dictionary/dictionary.mjs +142 -145
- package/es/utils/file/base64Conver.d.ts +9 -0
- package/es/utils/file/base64Conver.mjs +40 -0
- package/es/utils/file/download.d.ts +44 -0
- package/es/utils/file/download.mjs +101 -0
- package/es/utils/file/parser.d.ts +3 -0
- package/es/utils/file/parser.mjs +29 -0
- package/es/utils/i18n/index.mjs +14 -3
- package/es/utils/index.d.ts +20 -5
- package/es/utils/index.mjs +34 -0
- package/es/utils/is-sort-filed/is-sort-filed.d.ts +10 -0
- package/es/utils/is-sort-filed/is-sort-filed.mjs +45 -0
- package/es/utils/kit-pkg-util/kit-pkg-util.d.ts +32 -0
- package/es/utils/kit-pkg-util/kit-pkg-util.mjs +73 -0
- package/es/utils/linked-list/linked-list.mjs +115 -118
- package/es/utils/linked-node/linked-node.mjs +41 -31
- package/es/utils/lowcode/utils.d.ts +1 -0
- package/es/utils/lowcode/utils.mjs +15 -0
- package/es/utils/lowcode/validate.d.ts +13 -0
- package/es/utils/lowcode/validate.mjs +23 -0
- package/es/utils/mitt/mitt.mjs +4 -4
- package/es/utils/model-loader/model-loader.mjs +288 -325
- package/es/utils/namespace/namespace.d.ts +8 -0
- package/es/utils/namespace/namespace.mjs +180 -163
- package/es/utils/openUtil/index.d.ts +2 -0
- package/es/utils/openUtil/index.mjs +2 -0
- package/es/utils/openUtil/modal/modal.d.ts +61 -0
- package/es/utils/openUtil/modal/modal.mjs +73 -0
- package/es/utils/openUtil/overlay-container/overlay-container.d.ts +100 -0
- package/es/utils/openUtil/overlay-container/overlay-container.mjs +145 -0
- package/es/utils/permission.d.ts +19 -0
- package/es/utils/permission.mjs +34 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +63 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +119 -0
- package/es/utils/plugin-static-resource/plugin-static-resource.d.ts +2 -27
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +19 -42
- package/es/utils/style/index.mjs +94 -138
- package/es/utils/tools/tools.d.ts +12 -10
- package/es/utils/tools/tools.mjs +128 -53
- package/es/utils/treeHelper/treeHelper.d.ts +10 -9
- package/es/utils/treeHelper/treeHelper.mjs +205 -219
- package/es/utils/uploader/uploader.d.ts +20 -0
- package/es/utils/uploader/uploader.mjs +86 -0
- package/es/utils/useUUid.d.ts +41 -0
- package/es/utils/useUUid.mjs +85 -0
- package/es/utils/util.mjs +55 -35
- package/es/utils/uuid/uuid.d.ts +5 -0
- package/es/utils/uuid/uuid.mjs +38 -0
- package/es/utils/validate.d.ts +5 -0
- package/es/utils/validate.mjs +21 -0
- package/es/utils/value-helper/value-helper.mjs +113 -96
- package/package.json +19 -27
- package/dist/index.esm.min.mjs +0 -6103
- package/dist/index.min.cjs +0 -14
- package/dist/index.system.min.js +0 -14
- package/es/constants/editor-type/editor-type.d.ts +0 -244
- package/es/constants/editor-type/editor-type.mjs +0 -63
- package/es/controller/edit-form/edit-form.controller.d.ts +0 -28
- package/es/controller/edit-form/edit-form.controller.mjs +0 -47
- package/es/controller/editor/color-editor.controller.d.ts +0 -13
- package/es/controller/editor/color-editor.controller.mjs +0 -6
- package/es/controller/editor/length-unit-editor.controller.d.ts +0 -13
- package/es/controller/editor/length-unit-editor.controller.mjs +0 -6
- package/es/controller/editor-item/editor-item.controller.d.ts +0 -14
- package/es/controller/editor-item/editor-item.controller.mjs +0 -8
- package/es/controller/form/form.controller.d.ts +0 -76
- package/es/controller/form/form.controller.mjs +0 -147
- package/es/controller/form-collapse/form-collapse.controller.d.ts +0 -18
- package/es/controller/form-collapse/form-collapse.controller.mjs +0 -14
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +0 -18
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.mjs +0 -14
- package/es/controller/form-edit-item/form-edit-item.controller.d.ts +0 -27
- package/es/controller/form-edit-item/form-edit-item.controller.mjs +0 -74
- package/es/controller/form-group/form-group.controller.d.ts +0 -18
- package/es/controller/form-group/form-group.controller.mjs +0 -14
- package/es/controller/form-item/form-item.controller.d.ts +0 -21
- package/es/controller/form-item/form-item.controller.mjs +0 -43
- package/es/controller/form-item-basic/form-item-basic.controller.d.ts +0 -57
- package/es/controller/form-item-basic/form-item-basic.controller.mjs +0 -49
- package/es/controller/form-item-hidden/form-item-hidden.controller.d.ts +0 -17
- package/es/controller/form-item-hidden/form-item-hidden.controller.mjs +0 -7
- package/es/controller/form-tab/form-tab.controller.d.ts +0 -18
- package/es/controller/form-tab/form-tab.controller.mjs +0 -14
- package/es/controller/form-tab-pane/form-tab-pane.controller.d.ts +0 -18
- package/es/controller/form-tab-pane/form-tab-pane.controller.mjs +0 -14
- package/es/controller/gct-form/gct-form.controller.d.ts +0 -101
- package/es/controller/gct-form/gct-form.controller.mjs +0 -214
- package/es/controller/index.d.ts +0 -15
- package/es/hooks/use-form/use-form.d.ts +0 -10
- package/es/hooks/use-form/use-form.mjs +0 -8
- package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +0 -22
- package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +0 -89
- package/es/hooks/use-namespace/use-namespace.d.ts +0 -9
- package/es/hooks/use-namespace/use-namespace.mjs +0 -18
- package/es/interface/controller/edit-form/edit-form.controller.d.ts +0 -26
- package/es/interface/controller/editor/i-color-editor.controller.d.ts +0 -11
- package/es/interface/controller/editor/i-length-unit-editor.controller.d.ts +0 -11
- package/es/interface/controller/editor-item/editor-item.controller.d.ts +0 -19
- package/es/interface/controller/form/form.controller.d.ts +0 -121
- package/es/interface/controller/form-collapse/form-collapse.controller.d.ts +0 -23
- package/es/interface/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +0 -23
- package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +0 -59
- package/es/interface/controller/form-group/form-group.controller.d.ts +0 -24
- package/es/interface/controller/form-hidden-item/form-hidden-item.controller.d.ts +0 -24
- package/es/interface/controller/form-item/form-item.controller.d.ts +0 -40
- package/es/interface/controller/form-item-basic/form-item-basic.controller.d.ts +0 -51
- package/es/interface/controller/form-tab/form-tab.controller.d.ts +0 -23
- package/es/interface/controller/form-tab-pane/form-tab-pane.controller.d.ts +0 -23
- package/es/interface/controller/index.d.ts +0 -14
- package/es/interface/events/form/i-form.event.d.ts +0 -11
- package/es/interface/events/index.d.ts +0 -1
- package/es/interface/form/i-editor/i-check-switch.d.ts +0 -29
- package/es/interface/form/i-editor/i-checkbox-editor.d.ts +0 -9
- package/es/interface/form/i-editor/i-color-editor.d.ts +0 -13
- package/es/interface/form/i-editor/i-editor-basic.d.ts +0 -87
- package/es/interface/form/i-editor/i-icon-select-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-info-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-length-unit-editor.d.ts +0 -13
- package/es/interface/form/i-editor/i-model-field-select-editor.d.ts +0 -18
- package/es/interface/form/i-editor/i-number-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-picker-editor.d.ts +0 -30
- package/es/interface/form/i-editor/i-radio-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-select-editor.d.ts +0 -14
- package/es/interface/form/i-editor/i-span-editor.d.ts +0 -30
- package/es/interface/form/i-editor/i-switch-editor.d.ts +0 -14
- package/es/interface/form/i-editor/i-text-editor.d.ts +0 -46
- package/es/interface/form/i-editor/i-textarea-editor.d.ts +0 -25
- package/es/interface/form/i-form/i-edit-form.d.ts +0 -48
- package/es/interface/form/i-form/i-form-collapse-pane.d.ts +0 -30
- package/es/interface/form/i-form/i-form-collapse.d.ts +0 -35
- package/es/interface/form/i-form/i-form-container.d.ts +0 -53
- package/es/interface/form/i-form/i-form-edit-item.d.ts +0 -140
- package/es/interface/form/i-form/i-form-group-container.d.ts +0 -24
- package/es/interface/form/i-form/i-form-group.d.ts +0 -35
- package/es/interface/form/i-form/i-form-hidden-item.d.ts +0 -11
- package/es/interface/form/i-form/i-form-item-basic.d.ts +0 -126
- package/es/interface/form/i-form/i-form-item.d.ts +0 -11
- package/es/interface/form/i-form/i-form-tab-pane.d.ts +0 -23
- package/es/interface/form/i-form/i-form-tab.d.ts +0 -21
- package/es/interface/form/i-form/i-form.d.ts +0 -79
- package/es/interface/form/index.d.ts +0 -29
- package/es/interface/i-message-util/i-message-util.d.ts +0 -78
- package/es/interface/layout/i-flex-layout/i-flex-container.d.ts +0 -75
- package/es/interface/layout/i-flex-layout/i-flex-item.d.ts +0 -51
- package/es/interface/layout/i-grid-layout/i-grid-container.d.ts +0 -29
- package/es/interface/layout/i-grid-layout/i-grid-item-span.d.ts +0 -54
- package/es/interface/layout/i-grid-layout/i-grid-item.d.ts +0 -37
- package/es/interface/layout/i-layout-basis/i-layout-container-basis.d.ts +0 -11
- package/es/interface/layout/index.d.ts +0 -6
- package/es/interface/provider/i-editor-provider/i-editor-provider.d.ts +0 -24
- package/es/interface/provider/i-form-item-provider/i-form-item-provider.d.ts +0 -44
- package/es/interface/state/form/form.state.d.ts +0 -53
- package/es/interface/state/form-collapse/form-collapse.state.d.ts +0 -11
- package/es/interface/state/form-collapse-pane/form-collapse-pane.state.d.ts +0 -11
- package/es/interface/state/form-edit-item/form-edit-item.state.d.ts +0 -38
- package/es/interface/state/form-group/form-group.state.d.ts +0 -21
- package/es/interface/state/form-hidden-item/form-hidden-item.state.d.ts +0 -5
- package/es/interface/state/form-item/form-item.state.d.ts +0 -20
- package/es/interface/state/form-item-basic/form-item-basic.state.d.ts +0 -63
- package/es/interface/state/form-tab/form-tab.state.d.ts +0 -19
- package/es/interface/state/form-tab-pane/form-tab-pane.state.d.ts +0 -11
- package/es/interface/state/index.d.ts +0 -10
- package/es/modules/platform-config/interfaces/global-setting.interface.d.ts +0 -7
- package/es/register/editor-register/editor-register.d.ts +0 -49
- package/es/register/editor-register/editor-register.mjs +0 -57
- package/es/register/form-item-register/form-item-register.d.ts +0 -36
- package/es/register/form-item-register/form-item-register.mjs +0 -42
- package/es/register/index.d.ts +0 -21
- package/es/register/render-register/render-register.d.ts +0 -59
- package/es/register/render-register/render-register.mjs +0 -63
- package/es/state/form/form.state.d.ts +0 -24
- package/es/state/form/form.state.mjs +0 -16
- package/es/state/form-collapse/form-collapse.state.d.ts +0 -14
- package/es/state/form-collapse/form-collapse.state.mjs +0 -6
- package/es/state/form-collapse-pane/form-collapse-pane.state.d.ts +0 -14
- package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -6
- package/es/state/form-edit-item/form-edit-item.state.d.ts +0 -17
- package/es/state/form-edit-item/form-edit-item.state.mjs +0 -10
- package/es/state/form-group/form-group.state.d.ts +0 -21
- package/es/state/form-group/form-group.state.mjs +0 -14
- package/es/state/form-item/form-item.state.d.ts +0 -14
- package/es/state/form-item/form-item.state.mjs +0 -6
- package/es/state/form-item-basic/form-item-basic.state.d.ts +0 -17
- package/es/state/form-item-basic/form-item-basic.state.mjs +0 -9
- package/es/state/form-tab/form-tab.state.d.ts +0 -15
- package/es/state/form-tab/form-tab.state.mjs +0 -7
- package/es/state/form-tab-pane/form-tab-pane.state.d.ts +0 -14
- package/es/state/form-tab-pane/form-tab-pane.state.mjs +0 -6
- package/es/utils/props/gct-form-item/gct-form-item.props.d.ts +0 -63
- package/es/utils/props/gct-form-item/gct-form-item.props.mjs +0 -66
- package/es/utils/props/index.d.ts +0 -1
- package/es/utils/width-install/width-install.d.ts +0 -17
- package/es/utils/width-install/width-install.mjs +0 -19
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IFormContainer } from './i-form-container';
|
|
2
|
-
/**
|
|
3
|
-
* 表单分组容器
|
|
4
|
-
*
|
|
5
|
-
* @author zhanghanrui
|
|
6
|
-
* @date 2024-03-28 15:03:32
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IFormGroupContainer
|
|
9
|
-
* @extends {IFormContainer}
|
|
10
|
-
*/
|
|
11
|
-
export interface IFormGroupContainer extends IFormContainer {
|
|
12
|
-
/**
|
|
13
|
-
* 分组类型
|
|
14
|
-
*
|
|
15
|
-
* @author zhanghanrui
|
|
16
|
-
* @date 2024-04-01 14:04:44
|
|
17
|
-
* @type {'group'}
|
|
18
|
-
*/
|
|
19
|
-
type: 'group';
|
|
20
|
-
/**
|
|
21
|
-
* 分组标题
|
|
22
|
-
*/
|
|
23
|
-
title: string;
|
|
24
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IFormContainer } from './i-form-container';
|
|
2
|
-
/**
|
|
3
|
-
* 表单分组容器
|
|
4
|
-
*
|
|
5
|
-
* @author zhanghanrui
|
|
6
|
-
* @date 2024-04-01 14:04:06
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IFormGroup
|
|
9
|
-
* @extends {IFormContainer}
|
|
10
|
-
*/
|
|
11
|
-
export interface IFormGroup extends IFormContainer {
|
|
12
|
-
/**
|
|
13
|
-
* 分组标题
|
|
14
|
-
*/
|
|
15
|
-
title?: string;
|
|
16
|
-
/**
|
|
17
|
-
* 是否显示标题
|
|
18
|
-
*
|
|
19
|
-
* @description 当值为 false 时,title 配置不生效。若不指定,title 有值时显示标题,否则不显示标题
|
|
20
|
-
* @author zhanghanrui
|
|
21
|
-
* @date 2024-04-01 18:04:57
|
|
22
|
-
* @type {boolean}
|
|
23
|
-
*/
|
|
24
|
-
showHeader?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* 是否可折叠
|
|
27
|
-
*
|
|
28
|
-
* @description 当值为 true 时,showHeader 配置不生效
|
|
29
|
-
* @default false
|
|
30
|
-
* @author zhanghanrui
|
|
31
|
-
* @date 2024-04-01 18:04:12
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
*/
|
|
34
|
-
isCollapse?: boolean;
|
|
35
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { IFlexItem, IGridItem } from '../../layout';
|
|
2
|
-
import { IFormItemProvider } from '../../provider';
|
|
3
|
-
import { IFormController, IFormEditItemController } from '../../controller';
|
|
4
|
-
/**
|
|
5
|
-
* 表单项基础
|
|
6
|
-
*
|
|
7
|
-
* @author zhanghanrui
|
|
8
|
-
* @date 2024-03-26 20:03:37
|
|
9
|
-
* @export
|
|
10
|
-
* @interface IFormItemBasic
|
|
11
|
-
*/
|
|
12
|
-
export interface IFormItemBasic {
|
|
13
|
-
/**
|
|
14
|
-
* 项类型
|
|
15
|
-
*
|
|
16
|
-
* @author zhanghanrui
|
|
17
|
-
* @date 2024-04-01 14:04:30
|
|
18
|
-
* @type {string} 具体类型由子类定义
|
|
19
|
-
*/
|
|
20
|
-
type: string;
|
|
21
|
-
/**
|
|
22
|
-
* 是否为容器
|
|
23
|
-
*
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
*/
|
|
26
|
-
container?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* 表单项名称
|
|
29
|
-
*
|
|
30
|
-
* @author zhanghanrui
|
|
31
|
-
* @date 2024-04-01 13:04:43
|
|
32
|
-
* @type {string}
|
|
33
|
-
*/
|
|
34
|
-
name: string;
|
|
35
|
-
/**
|
|
36
|
-
* 表单项高度
|
|
37
|
-
*
|
|
38
|
-
* @author zhanghanrui
|
|
39
|
-
* @date 2024-04-02 15:04:02
|
|
40
|
-
* @type {string}
|
|
41
|
-
*/
|
|
42
|
-
height?: string;
|
|
43
|
-
/**
|
|
44
|
-
* 表单项宽度
|
|
45
|
-
*
|
|
46
|
-
* @author zhanghanrui
|
|
47
|
-
* @date 2024-04-02 15:04:24
|
|
48
|
-
* @type {string}
|
|
49
|
-
*/
|
|
50
|
-
width?: string;
|
|
51
|
-
/**
|
|
52
|
-
* 内间距
|
|
53
|
-
*
|
|
54
|
-
* @author zhanghanrui
|
|
55
|
-
* @date 2024-06-06 17:06:30
|
|
56
|
-
* @type {string}
|
|
57
|
-
*/
|
|
58
|
-
padding?: string;
|
|
59
|
-
/**
|
|
60
|
-
* 外间距
|
|
61
|
-
*
|
|
62
|
-
* @author zhanghanrui
|
|
63
|
-
* @date 2024-06-06 17:06:16
|
|
64
|
-
* @type {string}
|
|
65
|
-
*/
|
|
66
|
-
margin?: string;
|
|
67
|
-
/**
|
|
68
|
-
* 容器作为 flex 布局子元素的参数
|
|
69
|
-
*
|
|
70
|
-
* @author zhanghanrui
|
|
71
|
-
* @date 2024-03-27 11:03:35
|
|
72
|
-
* @type {IFlexItem}
|
|
73
|
-
*/
|
|
74
|
-
flexItem?: IFlexItem;
|
|
75
|
-
/**
|
|
76
|
-
* 容器作为栅格布局子元素的参数
|
|
77
|
-
*
|
|
78
|
-
* @author zhanghanrui
|
|
79
|
-
* @date 2024-03-27 11:03:56
|
|
80
|
-
* @type {IGridItem}
|
|
81
|
-
*/
|
|
82
|
-
gridItem?: IGridItem;
|
|
83
|
-
/**
|
|
84
|
-
* 额外的类名
|
|
85
|
-
* @author lingxiaoming
|
|
86
|
-
* @date 2024-07-18 01:05:19
|
|
87
|
-
* @type {*}
|
|
88
|
-
*/
|
|
89
|
-
class?: string[] | string;
|
|
90
|
-
/**
|
|
91
|
-
* 额外行内的样式
|
|
92
|
-
* @author lingxiaoming
|
|
93
|
-
* @date 2024-07-18 01:05:33
|
|
94
|
-
* @type {StyleValue}
|
|
95
|
-
*/
|
|
96
|
-
style?: IParams;
|
|
97
|
-
/**
|
|
98
|
-
* 独立适配器
|
|
99
|
-
*
|
|
100
|
-
* @author zhanghanrui
|
|
101
|
-
* @date 2024-04-03 13:04:21
|
|
102
|
-
*/
|
|
103
|
-
provider?: (...args: unknown[]) => IFormItemProvider;
|
|
104
|
-
/**
|
|
105
|
-
* 表单项隐藏计算
|
|
106
|
-
*
|
|
107
|
-
* @author zhanghanrui
|
|
108
|
-
* @date 2024-08-01 11:08:16
|
|
109
|
-
* @param {IFormController} form 表单控制器实例
|
|
110
|
-
* @param {IFormEditItemController} item 当前表单项控制器实例
|
|
111
|
-
* @param {IData} data 表单数据
|
|
112
|
-
* @return {*} {boolean}
|
|
113
|
-
*/
|
|
114
|
-
hidden?(form: IFormController, item: IFormEditItemController, data: IData): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* 表单项值变更
|
|
117
|
-
*
|
|
118
|
-
* @author zhanghanrui
|
|
119
|
-
* @date 2024-08-02 16:08:41
|
|
120
|
-
* @param {IFormController} form 表单控制器实例
|
|
121
|
-
* @param {IFormEditItemController} item 当前表单项控制器实例
|
|
122
|
-
* @param {*} [val] 变更后的值
|
|
123
|
-
* @param {*} [oldVal] 变更前的值
|
|
124
|
-
*/
|
|
125
|
-
watch?(form: IFormController, item: IFormEditItemController, val?: any, oldVal?: any): void;
|
|
126
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IFormContainer } from './i-form-container';
|
|
2
|
-
/**
|
|
3
|
-
* 表单分页容器
|
|
4
|
-
* @author lingxiaoming
|
|
5
|
-
* @date 2024-07-14 01:38:20
|
|
6
|
-
* @export
|
|
7
|
-
* @interface IFormTab
|
|
8
|
-
* @extends {IFormContainer}
|
|
9
|
-
*/
|
|
10
|
-
export interface IFormTabPane extends IFormContainer {
|
|
11
|
-
type: 'tab-pane';
|
|
12
|
-
/**
|
|
13
|
-
* 是否是容器
|
|
14
|
-
*/
|
|
15
|
-
isContainer: true;
|
|
16
|
-
/**
|
|
17
|
-
* 分页标题
|
|
18
|
-
* @author lingxiaoming
|
|
19
|
-
* @date 2024-07-14 01:43:06
|
|
20
|
-
* @type {string}
|
|
21
|
-
*/
|
|
22
|
-
title: string;
|
|
23
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IFormContainer } from './i-form-container';
|
|
2
|
-
import { IFormTabPane } from './i-form-tab-pane';
|
|
3
|
-
/**
|
|
4
|
-
* 表单分页容器
|
|
5
|
-
* @author lingxiaoming
|
|
6
|
-
* @date 2024-07-14 01:38:20
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IFormTab
|
|
9
|
-
* @extends {IFormContainer}
|
|
10
|
-
*/
|
|
11
|
-
export interface IFormTab extends IFormContainer {
|
|
12
|
-
type: 'tab';
|
|
13
|
-
children?: IFormTabPane[];
|
|
14
|
-
/**
|
|
15
|
-
* 导航位置
|
|
16
|
-
* @author lingxiaoming
|
|
17
|
-
* @date 2024-07-15 01:19:44
|
|
18
|
-
* @type {('center' | 'left' | 'right')}
|
|
19
|
-
*/
|
|
20
|
-
navPosition?: 'center' | 'left' | 'right';
|
|
21
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { IFormContainer } from './i-form-container';
|
|
2
|
-
/**
|
|
3
|
-
* 表单
|
|
4
|
-
*
|
|
5
|
-
* @author zhanghanrui
|
|
6
|
-
* @date 2024-03-26 20:03:14
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IForm
|
|
9
|
-
*/
|
|
10
|
-
export interface IForm {
|
|
11
|
-
/**
|
|
12
|
-
* 表单类型
|
|
13
|
-
*
|
|
14
|
-
* @author zhanghanrui
|
|
15
|
-
* @date 2024-03-27 11:03:21
|
|
16
|
-
* @type {('edit' | 'search')} 编辑表单 | 搜索表单
|
|
17
|
-
*/
|
|
18
|
-
type: 'edit' | 'search';
|
|
19
|
-
/**
|
|
20
|
-
* 表单布局方式
|
|
21
|
-
*
|
|
22
|
-
* @author zhanghanrui
|
|
23
|
-
* @date 2024-04-08 13:04:59
|
|
24
|
-
* @type {('horizontal' | 'vertical' | 'inline')}
|
|
25
|
-
*/
|
|
26
|
-
layout?: 'horizontal' | 'vertical' | 'inline';
|
|
27
|
-
/**
|
|
28
|
-
* 是否为信息表单,只读模式
|
|
29
|
-
*
|
|
30
|
-
* @author zhanghanrui
|
|
31
|
-
* @date 2024-04-08 14:04:13
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
*/
|
|
34
|
-
info?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* 不显示[冒号]
|
|
37
|
-
*
|
|
38
|
-
* @description 默认显示冒号
|
|
39
|
-
* @default false
|
|
40
|
-
* @author zhanghanrui
|
|
41
|
-
* @date 2024-07-29 15:07:52
|
|
42
|
-
* @type {boolean}
|
|
43
|
-
*/
|
|
44
|
-
noColon?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* 表单项标题默认宽度
|
|
47
|
-
*
|
|
48
|
-
* @author zhanghanrui
|
|
49
|
-
* @date 2024-04-02 09:04:44
|
|
50
|
-
* @type {string}
|
|
51
|
-
*/
|
|
52
|
-
labelWidth?: string | number;
|
|
53
|
-
/**
|
|
54
|
-
* 表单尺寸
|
|
55
|
-
*
|
|
56
|
-
* @default 'middle'
|
|
57
|
-
* @type {('large' | 'middle' | 'small')}
|
|
58
|
-
*/
|
|
59
|
-
size?: 'large' | 'middle' | 'small';
|
|
60
|
-
/**
|
|
61
|
-
* 表单项
|
|
62
|
-
*
|
|
63
|
-
* @author zhanghanrui
|
|
64
|
-
* @date 2024-03-26 20:03:39
|
|
65
|
-
* @type {IFormContainer[]}
|
|
66
|
-
*/
|
|
67
|
-
children: IFormContainer[];
|
|
68
|
-
/**
|
|
69
|
-
* 加载数据
|
|
70
|
-
*
|
|
71
|
-
* @author zhanghanrui
|
|
72
|
-
* @date 2024-04-03 16:04:27
|
|
73
|
-
* @param {{ id: string }} params
|
|
74
|
-
* @return {*} {Promise<IData>}
|
|
75
|
-
*/
|
|
76
|
-
loadRequest?(params: {
|
|
77
|
-
id: string;
|
|
78
|
-
}): Promise<IData>;
|
|
79
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type { ILengthUnitEditor } from './i-editor/i-length-unit-editor';
|
|
2
|
-
export type { IColorEditor } from './i-editor/i-color-editor';
|
|
3
|
-
export type { IEditorBasic } from './i-editor/i-editor-basic';
|
|
4
|
-
export type { IIconSelectEditor } from './i-editor/i-icon-select-editor';
|
|
5
|
-
export type { IInfoEditor } from './i-editor/i-info-editor';
|
|
6
|
-
export type { IModelFieldSelectEditor } from './i-editor/i-model-field-select-editor';
|
|
7
|
-
export type { INumberEditor } from './i-editor/i-number-editor';
|
|
8
|
-
export type { IPickerEditor } from './i-editor/i-picker-editor';
|
|
9
|
-
export type { ISelectEditor } from './i-editor/i-select-editor';
|
|
10
|
-
export type { ISpanEditor } from './i-editor/i-span-editor';
|
|
11
|
-
export type { ITextEditor } from './i-editor/i-text-editor';
|
|
12
|
-
export type { ITextareaEditor } from './i-editor/i-textarea-editor';
|
|
13
|
-
export type { ISwitchEditor } from './i-editor/i-switch-editor';
|
|
14
|
-
export type { ICheckSwitchEditor } from './i-editor/i-check-switch';
|
|
15
|
-
export type { IRadioEditor } from './i-editor/i-radio-editor';
|
|
16
|
-
export type { ICheckboxEditor } from './i-editor/i-checkbox-editor';
|
|
17
|
-
export type { IFormCollapsePane } from './i-form/i-form-collapse-pane';
|
|
18
|
-
export type { IFormCollapse } from './i-form/i-form-collapse';
|
|
19
|
-
export type { IEditForm } from './i-form/i-edit-form';
|
|
20
|
-
export type { IFormContainer } from './i-form/i-form-container';
|
|
21
|
-
export type { IFormEditItem } from './i-form/i-form-edit-item';
|
|
22
|
-
export type { IFormGroupContainer } from './i-form/i-form-group-container';
|
|
23
|
-
export type { IFormGroup } from './i-form/i-form-group';
|
|
24
|
-
export type { IFormTab } from './i-form/i-form-tab';
|
|
25
|
-
export type { IFormTabPane } from './i-form/i-form-tab-pane';
|
|
26
|
-
export type { IFormHiddenItem } from './i-form/i-form-hidden-item';
|
|
27
|
-
export type { IFormItemBasic } from './i-form/i-form-item-basic';
|
|
28
|
-
export type { IFormItem } from './i-form/i-form-item';
|
|
29
|
-
export type { IForm } from './i-form/i-form';
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 消息参数
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface IMessageParams
|
|
6
|
-
*/
|
|
7
|
-
export interface IMessageParams {
|
|
8
|
-
/**
|
|
9
|
-
* 类型(默认info)
|
|
10
|
-
*
|
|
11
|
-
* @type {('success' | 'info' | 'warning' | 'error')}
|
|
12
|
-
*/
|
|
13
|
-
type?: 'success' | 'info' | 'warning' | 'error';
|
|
14
|
-
/**
|
|
15
|
-
* 消息内容
|
|
16
|
-
*
|
|
17
|
-
* @type {string}
|
|
18
|
-
*/
|
|
19
|
-
message: string;
|
|
20
|
-
/**
|
|
21
|
-
* 持续时间,单位:秒,默认:1.5
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
*/
|
|
25
|
-
duration?: number;
|
|
26
|
-
/**
|
|
27
|
-
* 显示关闭按钮,默认:false
|
|
28
|
-
*
|
|
29
|
-
* @type {boolean}
|
|
30
|
-
*/
|
|
31
|
-
showClose?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* 预置的样式类型
|
|
34
|
-
*
|
|
35
|
-
* @type {'alert'}
|
|
36
|
-
*/
|
|
37
|
-
styleType?: 'alert';
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* 顶部居中显示,并自动消失
|
|
41
|
-
*
|
|
42
|
-
* @export
|
|
43
|
-
* @interface IMessageUtil
|
|
44
|
-
*/
|
|
45
|
-
export interface IMessageUtil {
|
|
46
|
-
/**
|
|
47
|
-
* 普通信息
|
|
48
|
-
*
|
|
49
|
-
* @param {string} msg
|
|
50
|
-
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
51
|
-
* @returns {*} {Promise<void>}
|
|
52
|
-
*/
|
|
53
|
-
info(msg: string, duration?: number): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* 成功消息
|
|
56
|
-
*
|
|
57
|
-
* @param {string} msg
|
|
58
|
-
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
59
|
-
* @returns {*} {Promise<void>}
|
|
60
|
-
*/
|
|
61
|
-
success(msg: string, duration?: number): Promise<void>;
|
|
62
|
-
/**
|
|
63
|
-
* 警告消息
|
|
64
|
-
*
|
|
65
|
-
* @param {string} msg
|
|
66
|
-
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
67
|
-
* @returns {*} {Promise<void>}
|
|
68
|
-
*/
|
|
69
|
-
warning(msg: string, duration?: number): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* 错误消息
|
|
72
|
-
*
|
|
73
|
-
* @param {string} msg
|
|
74
|
-
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
75
|
-
* @returns {*} {Promise<void>}
|
|
76
|
-
*/
|
|
77
|
-
error(msg: string, duration?: number): Promise<void>;
|
|
78
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ILayoutContainerBasis } from '../i-layout-basis/i-layout-container-basis';
|
|
2
|
-
/**
|
|
3
|
-
* flex 布局容器
|
|
4
|
-
*
|
|
5
|
-
* @author zhanghanrui
|
|
6
|
-
* @date 2024-03-27 11:03:48
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IFlexContainer
|
|
9
|
-
* @extends {ILayoutContainerBasis}
|
|
10
|
-
*/
|
|
11
|
-
export interface IFlexContainer extends ILayoutContainerBasis {
|
|
12
|
-
/**
|
|
13
|
-
* 主轴方向
|
|
14
|
-
* row(默认值):主轴为水平方向,起点在左端。
|
|
15
|
-
* row-reverse:主轴为水平方向,起点在右端。
|
|
16
|
-
* column:主轴为垂直方向,起点在上沿。
|
|
17
|
-
* column-reverse:主轴为垂直方向,起点在下沿。
|
|
18
|
-
*
|
|
19
|
-
* @author zhanghanrui
|
|
20
|
-
* @date 2024-03-26 19:03:47
|
|
21
|
-
* @type {('row' | 'row-reverse' | 'column' | 'column-reverse')}
|
|
22
|
-
*/
|
|
23
|
-
flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
24
|
-
/**
|
|
25
|
-
* 换行模式
|
|
26
|
-
* nowrap(默认):不换行
|
|
27
|
-
* wrap:换行,第一行在上方
|
|
28
|
-
* wrap-reverse:换行,第一行在下方
|
|
29
|
-
*
|
|
30
|
-
* @author zhanghanrui
|
|
31
|
-
* @date 2024-03-26 19:03:09
|
|
32
|
-
* @type {('nowrap' | 'wrap' | 'wrap-reverse')}
|
|
33
|
-
*/
|
|
34
|
-
flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
35
|
-
/**
|
|
36
|
-
* 主轴对齐方式
|
|
37
|
-
* flex-start(默认值):左对齐
|
|
38
|
-
* flex-end:右对齐
|
|
39
|
-
* center: 居中
|
|
40
|
-
* space-between:两端对齐,项目之间的间隔都相等
|
|
41
|
-
* space-around:每个项目两侧的间隔相等。所以,项目之间的间隔比项目与边框的间隔大一倍
|
|
42
|
-
*
|
|
43
|
-
* @author zhanghanrui
|
|
44
|
-
* @date 2024-03-26 19:03:38
|
|
45
|
-
* @type {('flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around')}
|
|
46
|
-
*/
|
|
47
|
-
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
|
|
48
|
-
/**
|
|
49
|
-
* 交叉轴对齐方式
|
|
50
|
-
* flex-start:交叉轴的起点对齐
|
|
51
|
-
* flex-end:交叉轴的终点对齐
|
|
52
|
-
* center:交叉轴的中点对齐
|
|
53
|
-
* baseline: 项目的第一行文字的基线对齐
|
|
54
|
-
* stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度
|
|
55
|
-
*
|
|
56
|
-
* @author zhanghanrui
|
|
57
|
-
* @date 2024-03-26 19:03:26
|
|
58
|
-
* @type {('flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch')}
|
|
59
|
-
*/
|
|
60
|
-
alignItems?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
61
|
-
/**
|
|
62
|
-
* 多根轴线的对齐方式
|
|
63
|
-
* flex-start:与交叉轴的起点对齐
|
|
64
|
-
* flex-end:与交叉轴的终点对齐
|
|
65
|
-
* center:与交叉轴的中点对齐
|
|
66
|
-
* space-between:与交叉轴两端对齐,轴线之间的间隔平均分布
|
|
67
|
-
* space-around:每根轴线两侧的间隔都相等。所以,轴线之间的间隔比轴线与边框的间隔大一倍
|
|
68
|
-
* stretch(默认值):轴线占满整个交叉轴
|
|
69
|
-
*
|
|
70
|
-
* @author zhanghanrui
|
|
71
|
-
* @date 2024-03-26 19:03:20
|
|
72
|
-
* @type {('flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch')}
|
|
73
|
-
*/
|
|
74
|
-
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
75
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* flex 布局项
|
|
3
|
-
*
|
|
4
|
-
* @author zhanghanrui
|
|
5
|
-
* @date 2024-03-26 19:03:07
|
|
6
|
-
* @export
|
|
7
|
-
* @interface IFlexItem
|
|
8
|
-
*/
|
|
9
|
-
export interface IFlexItem {
|
|
10
|
-
/**
|
|
11
|
-
* order属性定义项目的排列顺序。数值越小,排列越靠前,默认为0
|
|
12
|
-
*
|
|
13
|
-
* @author zhanghanrui
|
|
14
|
-
* @date 2024-03-26 19:03:48
|
|
15
|
-
* @type {number}
|
|
16
|
-
*/
|
|
17
|
-
order?: number;
|
|
18
|
-
/**
|
|
19
|
-
* flex-grow属性定义项目的放大比例,默认为0,即如果存在剩余空间,也不放大
|
|
20
|
-
*
|
|
21
|
-
* @author zhanghanrui
|
|
22
|
-
* @date 2024-03-26 19:03:21
|
|
23
|
-
* @type {number}
|
|
24
|
-
*/
|
|
25
|
-
flexGrow?: number;
|
|
26
|
-
/**
|
|
27
|
-
* flex-shrink属性定义了项目的缩小比例,默认为1,即如果空间不足,该项目将缩小
|
|
28
|
-
*
|
|
29
|
-
* @author zhanghanrui
|
|
30
|
-
* @date 2024-03-26 19:03:42
|
|
31
|
-
* @type {number}
|
|
32
|
-
*/
|
|
33
|
-
flexShrink?: number;
|
|
34
|
-
/**
|
|
35
|
-
* flex-basis属性定义了在分配多余空间之前,项目占据的主轴空间(main size)。浏览器根据这个属性,计算主轴是否有多余空间。它的默认值为auto,即项目的本来大小
|
|
36
|
-
*
|
|
37
|
-
* @author zhanghanrui
|
|
38
|
-
* @date 2024-03-26 19:03:03
|
|
39
|
-
* @type {(number | 'auto')}
|
|
40
|
-
*/
|
|
41
|
-
flexBasis?: number | 'auto';
|
|
42
|
-
/**
|
|
43
|
-
* align-self属性允许单个项目有与其他项目不一样的对齐方式,可覆盖align-items属性
|
|
44
|
-
* 该属性可能取6个值,除了auto,其他都与align-items属性完全一致
|
|
45
|
-
*
|
|
46
|
-
* @author zhanghanrui
|
|
47
|
-
* @date 2024-03-26 19:03:30
|
|
48
|
-
* @type {('auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch')}
|
|
49
|
-
*/
|
|
50
|
-
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
51
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ILayoutContainerBasis } from '../i-layout-basis/i-layout-container-basis';
|
|
2
|
-
/**
|
|
3
|
-
* 栅格布局容器
|
|
4
|
-
*
|
|
5
|
-
* @author zhanghanrui
|
|
6
|
-
* @date 2024-03-27 11:03:05
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IGridContainer
|
|
9
|
-
* @extends {ILayoutContainerBasis}
|
|
10
|
-
*/
|
|
11
|
-
export interface IGridContainer extends ILayoutContainerBasis {
|
|
12
|
-
/**
|
|
13
|
-
* 栅格布局模式,24栅格或12栅格
|
|
14
|
-
*
|
|
15
|
-
* @default 24
|
|
16
|
-
* @author zhanghanrui
|
|
17
|
-
* @date 2024-03-26 19:03:16
|
|
18
|
-
* @type {(12 | 24)}
|
|
19
|
-
*/
|
|
20
|
-
mode: 12 | 24;
|
|
21
|
-
/**
|
|
22
|
-
* 栅格间隔
|
|
23
|
-
*
|
|
24
|
-
* @author zhanghanrui
|
|
25
|
-
* @date 2024-03-27 11:03:38
|
|
26
|
-
* @type {(number | Object | number[])}
|
|
27
|
-
*/
|
|
28
|
-
gutter?: number | object | number[];
|
|
29
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* span 布局项
|
|
3
|
-
*
|
|
4
|
-
* @author zhanghanrui
|
|
5
|
-
* @date 2024-03-26 19:03:40
|
|
6
|
-
* @export
|
|
7
|
-
* @interface IGridItemSpan
|
|
8
|
-
*/
|
|
9
|
-
export interface IGridItemSpan {
|
|
10
|
-
/**
|
|
11
|
-
* <576px
|
|
12
|
-
*
|
|
13
|
-
* @author zhanghanrui
|
|
14
|
-
* @date 2024-03-26 19:03:22
|
|
15
|
-
* @type {number}
|
|
16
|
-
*/
|
|
17
|
-
sx?: number;
|
|
18
|
-
/**
|
|
19
|
-
* ≥576px
|
|
20
|
-
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
*/
|
|
23
|
-
sm?: number;
|
|
24
|
-
/**
|
|
25
|
-
* ≥768px
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
*/
|
|
29
|
-
md?: number;
|
|
30
|
-
/**
|
|
31
|
-
* ≥992px
|
|
32
|
-
*
|
|
33
|
-
* @type {number}
|
|
34
|
-
*/
|
|
35
|
-
lg?: number;
|
|
36
|
-
/**
|
|
37
|
-
* ≥1200px
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
*/
|
|
41
|
-
xl?: number;
|
|
42
|
-
/**
|
|
43
|
-
* ≥1600px
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
*/
|
|
47
|
-
xxl?: number;
|
|
48
|
-
/**
|
|
49
|
-
* ≥1600px
|
|
50
|
-
*
|
|
51
|
-
* @type {number}
|
|
52
|
-
*/
|
|
53
|
-
xxxl?: number;
|
|
54
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IGridItemSpan } from './i-grid-item-span';
|
|
2
|
-
type ColNumber = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
3
|
-
/**
|
|
4
|
-
* 表格布局项
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-03-26 19:03:43
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IGridItem
|
|
10
|
-
*/
|
|
11
|
-
export interface IGridItem {
|
|
12
|
-
/**
|
|
13
|
-
* 栅格占位格数
|
|
14
|
-
*
|
|
15
|
-
* @author zhanghanrui
|
|
16
|
-
* @date 2024-03-26 19:03:53
|
|
17
|
-
* @type {(ColNumber | IGridItemSpan)}
|
|
18
|
-
*/
|
|
19
|
-
span?: ColNumber | IGridItemSpan;
|
|
20
|
-
/**
|
|
21
|
-
* 偏移量
|
|
22
|
-
*
|
|
23
|
-
* @author zhanghanrui
|
|
24
|
-
* @date 2024-03-26 19:03:55
|
|
25
|
-
* @type {ColNumber}
|
|
26
|
-
*/
|
|
27
|
-
offset?: ColNumber;
|
|
28
|
-
/**
|
|
29
|
-
* 栅格顺序
|
|
30
|
-
*
|
|
31
|
-
* @author zhanghanrui
|
|
32
|
-
* @date 2024-03-26 19:03:17
|
|
33
|
-
* @type {number}
|
|
34
|
-
*/
|
|
35
|
-
order?: number;
|
|
36
|
-
}
|
|
37
|
-
export {};
|