star-horse-lowcode 3.1.3 → 3.1.5
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/README.md +12 -0
- package/dist/api/WebSocketUtils.d.ts +97 -0
- package/dist/api/date_utils.d.ts +85 -0
- package/dist/api/device.d.ts +21 -0
- package/dist/api/finger_utils.d.ts +9 -0
- package/dist/api/form_utils.d.ts +151 -0
- package/dist/api/settings.d.ts +1 -0
- package/dist/api/star_horse_apis.d.ts +93 -0
- package/dist/api/star_horse_utils.d.ts +213 -0
- package/dist/api/system.d.ts +78 -0
- package/dist/api/user_func.d.ts +25 -0
- package/dist/api/valid_utils.d.ts +8 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/comp/ShDynamicForm.vue.d.ts +56 -0
- package/dist/components/comp/ShForm.vue.d.ts +58 -0
- package/dist/components/comp/ShTableListColumn.vue.d.ts +79 -0
- package/dist/components/comp/StarHorseDataSelector.vue.d.ts +50 -0
- package/dist/components/comp/StarHorseDataView.vue.d.ts +161 -0
- package/dist/components/comp/StarHorseDialog.vue.d.ts +242 -0
- package/dist/components/comp/StarHorseDraggable.vue.d.ts +82 -0
- package/dist/components/comp/StarHorseForm.vue.d.ts +176 -0
- package/dist/components/comp/StarHorseFormItem.vue.d.ts +22 -0
- package/dist/components/comp/StarHorseFormList.vue.d.ts +159 -0
- package/dist/components/comp/StarHorseFormTable.vue.d.ts +67 -0
- package/dist/components/comp/StarHorseIcon.vue.d.ts +119 -0
- package/dist/components/comp/StarHorseItem.vue.d.ts +100 -0
- package/dist/components/comp/StarHorseJsonEditor.vue.d.ts +44 -0
- package/dist/components/comp/StarHorsePopover.vue.d.ts +50 -0
- package/dist/components/comp/StarHorseSearchComp.vue.d.ts +48 -0
- package/dist/components/comp/StarHorseSearchForm.vue.d.ts +77 -0
- package/dist/components/comp/StarHorseStaticTable.vue.d.ts +101 -0
- package/dist/components/comp/StarHorseTableColumn.vue.d.ts +116 -0
- package/dist/components/comp/StarHorseTableComp.vue.d.ts +43 -0
- package/dist/components/comp/StarHorseTree.vue.d.ts +256 -0
- package/dist/components/comp/app/MainBar.vue.d.ts +20 -0
- package/dist/components/comp/app/MainContainer.vue.d.ts +18 -0
- package/dist/components/comp/app/MainContent.vue.d.ts +26 -0
- package/dist/components/comp/app/MainSubBar.vue.d.ts +36 -0
- package/dist/components/comp/app/MenuShot.vue.d.ts +79 -0
- package/dist/components/comp/index.d.ts +25 -0
- package/dist/components/comp/items/UTableColumn.vue.d.ts +72 -0
- package/dist/components/comp/items/callitem.d.ts +2 -0
- package/dist/components/comp/items/tableColumnItem.vue.d.ts +96 -0
- package/dist/components/comp/items/tablebtn.vue.d.ts +60 -0
- package/dist/components/comp/selfcomp.d.ts +2 -0
- package/dist/components/comp/utils/DataPicker.vue.d.ts +85 -0
- package/dist/components/comp/utils/DataSelectorUtils.d.ts +23 -0
- package/dist/components/cron/Crontab-Day.vue.d.ts +29 -0
- package/dist/components/cron/Crontab-Hour.vue.d.ts +28 -0
- package/dist/components/cron/Crontab-Min.vue.d.ts +28 -0
- package/dist/components/cron/Crontab-Month.vue.d.ts +28 -0
- package/dist/components/cron/Crontab-Second.vue.d.ts +31 -0
- package/dist/components/cron/Crontab-Week.vue.d.ts +29 -0
- package/dist/components/cron/Crontab-Year.vue.d.ts +30 -0
- package/dist/components/cron/Crontab.vue.d.ts +15 -0
- package/dist/components/enums/ModuleEnums.d.ts +10 -0
- package/dist/components/enums/ServiceEnums.d.ts +18 -0
- package/dist/components/formcomp/items/allitem.d.ts +2 -0
- package/dist/components/formcomp/items/area-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/audio-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/autocomplete-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/barcode-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/button-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/cascade-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/checkbox-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/color-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/cron-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/date-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/datetime-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/depart-item.vue.d.ts +16 -0
- package/dist/components/formcomp/items/description-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/dialog-input-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/dialog-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/divider-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/drawer-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/empty-item.vue.d.ts +16 -0
- package/dist/components/formcomp/items/html-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/htmleditor-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/icon-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/image-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/index.d.ts +57 -0
- package/dist/components/formcomp/items/input-item.vue.d.ts +13 -0
- package/dist/components/formcomp/items/input-tag-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/json-array-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/json-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/link-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/location-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/markdown-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/number-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/number-range-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/org-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/page-select-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/password-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/progress-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/qrcode-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/radio-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/rate-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/select-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/signature-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/slider-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/starhorse-form-item.vue.d.ts +23 -0
- package/dist/components/formcomp/items/switch-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/tag-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/text-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/textarea-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/time-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/time-picker-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/transfer-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/tree-select-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/tselect-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/unknown-item.vue.d.ts +16 -0
- package/dist/components/formcomp/items/upload-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/user-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/usercomp-item.vue.d.ts +20 -0
- package/dist/components/formcomp/items/view-markdown-item.vue.d.ts +19 -0
- package/dist/components/formcomp/utils/EditDataDialog.vue.d.ts +55 -0
- package/dist/components/formcomp/utils/FieldList.vue.d.ts +7 -0
- package/dist/components/formcomp/utils/FormulaEngine.d.ts +129 -0
- package/dist/components/formcomp/utils/ItemRelationEventUtils.d.ts +16 -0
- package/dist/components/formcomp/utils/prefixSuffixUtils.d.ts +28 -0
- package/dist/components/help.vue.d.ts +26 -0
- package/dist/components/menu/MenuItem.vue.d.ts +49 -0
- package/dist/components/system/ContentMenu.vue.d.ts +77 -0
- package/dist/components/system/PageConfig.vue.d.ts +66 -0
- package/dist/components/system/StarHorseButtonList.vue.d.ts +72 -0
- package/dist/components/system/StarHorseDiffEditor.vue.d.ts +229 -0
- package/dist/components/system/StarHorseEditor.vue.d.ts +126 -0
- package/dist/components/system/StarHorseMenu.vue.d.ts +38 -0
- package/dist/components/system/StarHorseSidebar.vue.d.ts +13 -0
- package/dist/components/system/StarHorseSvg.vue.d.ts +112 -0
- package/dist/components/system/SvgLoader.vue.d.ts +59 -0
- package/dist/components/system/SystemComp.d.ts +2 -0
- package/dist/components/system/code-editor/ConsolePanel.vue.d.ts +20 -0
- package/dist/components/system/code-editor/ContextMenu.vue.d.ts +24 -0
- package/dist/components/system/code-editor/constants.d.ts +78 -0
- package/dist/components/system/code-editor/index.d.ts +7 -0
- package/dist/components/system/code-editor/theme.d.ts +10 -0
- package/dist/components/system/code-editor/types.d.ts +39 -0
- package/dist/components/system/code-editor/useApiConfig.d.ts +55 -0
- package/dist/components/system/code-editor/useConsole.d.ts +17 -0
- package/dist/components/system/code-editor/useFileApi.d.ts +57 -0
- package/dist/components/system/code-editor/useFileTree.d.ts +34 -0
- package/dist/components/system/code-editor/useIdeActions.d.ts +27 -0
- package/dist/components/system/code-editor/useLsp.d.ts +12 -0
- package/dist/components/system/code-editor/useModuleDialog.d.ts +47 -0
- package/dist/components/system/index.d.ts +8 -0
- package/dist/components/types/ApiUrls.d.ts +192 -0
- package/dist/components/types/BtnAction.d.ts +35 -0
- package/dist/components/types/BtnAuth.d.ts +43 -0
- package/dist/components/types/CompInfo.d.ts +50 -0
- package/dist/components/types/DialogProps.d.ts +54 -0
- package/dist/components/types/DyCompField.d.ts +14 -0
- package/dist/components/types/DynamicNode.d.ts +34 -0
- package/dist/components/types/FormType.d.ts +113 -0
- package/dist/components/types/ItemPreps.d.ts +155 -0
- package/dist/components/types/MenusInfo.d.ts +44 -0
- package/dist/components/types/PageFieldInfo.d.ts +559 -0
- package/dist/components/types/PageProps.d.ts +177 -0
- package/dist/components/types/Params.d.ts +146 -0
- package/dist/components/types/RuleType.d.ts +10 -0
- package/dist/components/types/SearchProps.d.ts +59 -0
- package/dist/components/types/ShortKey.d.ts +30 -0
- package/dist/components/types/StarHorseType.d.ts +18 -0
- package/dist/components/types/UserinfoType.d.ts +46 -0
- package/dist/components/types/index.d.ts +18 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.es.js +6 -6
- package/dist/lang/en_US.d.ts +1052 -0
- package/dist/lang/index.d.ts +17 -0
- package/dist/lang/zh_CN.d.ts +1070 -0
- package/dist/plugins/AblesPlugin.d.ts +48 -0
- package/dist/plugins/registerCompPlugin.d.ts +10 -0
- package/dist/store/ButtonPermission.d.ts +32 -0
- package/dist/store/ConsumerView.d.ts +22 -0
- package/dist/store/CopyerOperation.d.ts +35 -0
- package/dist/store/DesignForm.d.ts +1731 -0
- package/dist/store/DesignPage.d.ts +149 -0
- package/dist/store/DynamicForm.d.ts +52 -0
- package/dist/store/FormDataCache.d.ts +4622 -0
- package/dist/store/GlobalConfig.d.ts +13 -0
- package/dist/store/SelfOperation.d.ts +681 -0
- package/dist/store/StoreManager.d.ts +14763 -0
- package/dist/store/UserInfo.d.ts +44 -0
- package/dist/store/index.d.ts +2 -0
- package/dist/theme/localStorge.d.ts +10 -0
- package/dist/theme/theme.d.ts +24 -0
- package/dist/types/api/WebSocketUtils.d.ts +97 -0
- package/dist/types/api/date_utils.d.ts +85 -0
- package/dist/types/api/device.d.ts +21 -0
- package/dist/types/api/finger_utils.d.ts +9 -0
- package/dist/types/api/form_utils.d.ts +151 -0
- package/dist/types/api/settings.d.ts +1 -0
- package/dist/types/api/star_horse_apis.d.ts +93 -0
- package/dist/types/api/star_horse_utils.d.ts +214 -0
- package/dist/types/api/system.d.ts +78 -0
- package/dist/types/api/user_func.d.ts +25 -0
- package/dist/types/api/valid_utils.d.ts +8 -0
- package/dist/types/components/comp/ShDynamicForm.vue.d.ts +56 -0
- package/dist/types/components/comp/ShForm.vue.d.ts +58 -0
- package/dist/types/components/comp/ShTableListColumn.vue.d.ts +79 -0
- package/dist/types/components/comp/StarHorseDataSelector.vue.d.ts +50 -0
- package/dist/types/components/comp/StarHorseDataView.vue.d.ts +161 -0
- package/dist/types/components/comp/StarHorseDialog.vue.d.ts +242 -0
- package/dist/types/components/comp/StarHorseDraggable.vue.d.ts +82 -0
- package/dist/types/components/comp/StarHorseForm.vue.d.ts +176 -0
- package/dist/types/components/comp/StarHorseFormItem.vue.d.ts +22 -0
- package/dist/types/components/comp/StarHorseFormList.vue.d.ts +159 -0
- package/dist/types/components/comp/StarHorseFormTable.vue.d.ts +67 -0
- package/dist/types/components/comp/StarHorseIcon.vue.d.ts +119 -0
- package/dist/types/components/comp/StarHorseItem.vue.d.ts +100 -0
- package/dist/types/components/comp/StarHorseJsonEditor.vue.d.ts +44 -0
- package/dist/types/components/comp/StarHorsePopover.vue.d.ts +50 -0
- package/dist/types/components/comp/StarHorseSearchComp.vue.d.ts +48 -0
- package/dist/types/components/comp/StarHorseSearchForm.vue.d.ts +77 -0
- package/dist/types/components/comp/StarHorseStaticTable.vue.d.ts +101 -0
- package/dist/types/components/comp/StarHorseTableColumn.vue.d.ts +116 -0
- package/dist/types/components/comp/StarHorseTableComp.vue.d.ts +43 -0
- package/dist/types/components/comp/StarHorseTree.vue.d.ts +256 -0
- package/dist/types/components/comp/app/MainBar.vue.d.ts +20 -0
- package/dist/types/components/comp/app/MainContainer.vue.d.ts +18 -0
- package/dist/types/components/comp/app/MainContent.vue.d.ts +26 -0
- package/dist/types/components/comp/app/MainSubBar.vue.d.ts +36 -0
- package/dist/types/components/comp/app/MenuShot.vue.d.ts +79 -0
- package/dist/types/components/comp/index.d.ts +25 -0
- package/dist/types/components/comp/items/UTableColumn.vue.d.ts +72 -0
- package/dist/types/components/comp/items/appItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/boxItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/callitem.d.ts +2 -0
- package/dist/types/components/comp/items/cardItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/collapseItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/dytableItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/groupItem.vue.d.ts +23 -0
- package/dist/types/components/comp/items/otherItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/splitterItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/tabItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/tabPanelItem.vue.d.ts +102 -0
- package/dist/types/components/comp/items/tableColumnItem.vue.d.ts +96 -0
- package/dist/types/components/comp/items/tableItem.vue.d.ts +22 -0
- package/dist/types/components/comp/items/tablebtn.vue.d.ts +60 -0
- package/dist/types/components/comp/selfcomp.d.ts +2 -0
- package/dist/types/components/comp/utils/DataPicker.vue.d.ts +85 -0
- package/dist/types/components/comp/utils/DataSelectorUtils.d.ts +23 -0
- package/dist/types/components/comp/utils/DataTag.vue.d.ts +19 -0
- package/dist/types/components/cron/Crontab-Day.vue.d.ts +29 -0
- package/dist/types/components/cron/Crontab-Hour.vue.d.ts +28 -0
- package/dist/types/components/cron/Crontab-Min.vue.d.ts +28 -0
- package/dist/types/components/cron/Crontab-Month.vue.d.ts +28 -0
- package/dist/types/components/cron/Crontab-Result.vue.d.ts +11 -0
- package/dist/types/components/cron/Crontab-Second.vue.d.ts +31 -0
- package/dist/types/components/cron/Crontab-Week.vue.d.ts +29 -0
- package/dist/types/components/cron/Crontab-Year.vue.d.ts +30 -0
- package/dist/types/components/cron/Crontab.vue.d.ts +15 -0
- package/dist/types/components/enums/ModuleEnums.d.ts +10 -0
- package/dist/types/components/enums/ServiceEnums.d.ts +18 -0
- package/dist/types/components/formcomp/items/allitem.d.ts +2 -0
- package/dist/types/components/formcomp/items/area-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/audio-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/autocomplete-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/barcode-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/base-json-item.vue.d.ts +93 -0
- package/dist/types/components/formcomp/items/button-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/cascade-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/checkbox-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/color-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/cron-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/datapicker-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/date-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/datetime-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/depart-item.vue.d.ts +16 -0
- package/dist/types/components/formcomp/items/description-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/dialog-input-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/dialog-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/divider-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/drawer-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/empty-item.vue.d.ts +16 -0
- package/dist/types/components/formcomp/items/html-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/htmleditor-item.vue.d.ts +20 -0
- package/dist/types/components/formcomp/items/icon-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/image-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/index.d.ts +57 -0
- package/dist/types/components/formcomp/items/input-item.vue.d.ts +13 -0
- package/dist/types/components/formcomp/items/input-tag-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/json-array-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/json-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/link-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/location-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/markdown-item.vue.d.ts +20 -0
- package/dist/types/components/formcomp/items/number-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/number-range-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/org-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/page-select-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/password-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/progress-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/qrcode-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/radio-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/rate-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/select-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/signature-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/slider-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/starhorse-form-item.vue.d.ts +23 -0
- package/dist/types/components/formcomp/items/switch-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/tag-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/text-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/textarea-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/time-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/time-picker-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/transfer-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/tree-select-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/tselect-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/unknown-item.vue.d.ts +16 -0
- package/dist/types/components/formcomp/items/upload-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/user-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/items/usercomp-item.vue.d.ts +20 -0
- package/dist/types/components/formcomp/items/view-markdown-item.vue.d.ts +19 -0
- package/dist/types/components/formcomp/utils/EditDataDialog.vue.d.ts +55 -0
- package/dist/types/components/formcomp/utils/FieldList.vue.d.ts +7 -0
- package/dist/types/components/formcomp/utils/FormulaEngine.d.ts +129 -0
- package/dist/types/components/formcomp/utils/ItemRelationEventUtils.d.ts +16 -0
- package/dist/types/components/formcomp/utils/prefixSuffixUtils.d.ts +28 -0
- package/dist/types/components/help.vue.d.ts +26 -0
- package/dist/types/components/menu/MenuItem.vue.d.ts +49 -0
- package/dist/types/components/menu/SubMenu.vue.d.ts +25 -0
- package/dist/types/components/menu/SubSystemMenu.vue.d.ts +102 -0
- package/dist/types/components/system/ContentMenu.vue.d.ts +77 -0
- package/dist/types/components/system/PageConfig.vue.d.ts +66 -0
- package/dist/types/components/system/StarHorseButtonList.vue.d.ts +72 -0
- package/dist/types/components/system/StarHorseCodeEditor.vue.d.ts +258 -0
- package/dist/types/components/system/StarHorseDiffEditor.vue.d.ts +229 -0
- package/dist/types/components/system/StarHorseEditor.vue.d.ts +126 -0
- package/dist/types/components/system/StarHorseMenu.vue.d.ts +38 -0
- package/dist/types/components/system/StarHorseSidebar.vue.d.ts +13 -0
- package/dist/types/components/system/StarHorseSvg.vue.d.ts +112 -0
- package/dist/types/components/system/SvgLoader.vue.d.ts +59 -0
- package/dist/types/components/system/SystemComp.d.ts +2 -0
- package/dist/types/components/system/code-editor/ActivityBar.vue.d.ts +11 -0
- package/dist/types/components/system/code-editor/ApiConfigDialog.vue.d.ts +18 -0
- package/dist/types/components/system/code-editor/ConsolePanel.vue.d.ts +20 -0
- package/dist/types/components/system/code-editor/ContextMenu.vue.d.ts +24 -0
- package/dist/types/components/system/code-editor/FileTreeNode.vue.d.ts +68 -0
- package/dist/types/components/system/code-editor/MenuBar.vue.d.ts +14 -0
- package/dist/types/components/system/code-editor/StatusBar.vue.d.ts +17 -0
- package/dist/types/components/system/code-editor/TabBar.vue.d.ts +14 -0
- package/dist/types/components/system/code-editor/constants.d.ts +78 -0
- package/dist/types/components/system/code-editor/index.d.ts +7 -0
- package/dist/types/components/system/code-editor/theme.d.ts +10 -0
- package/dist/types/components/system/code-editor/types.d.ts +39 -0
- package/dist/types/components/system/code-editor/useApiConfig.d.ts +55 -0
- package/dist/types/components/system/code-editor/useConsole.d.ts +17 -0
- package/dist/types/components/system/code-editor/useFileApi.d.ts +57 -0
- package/dist/types/components/system/code-editor/useFileTree.d.ts +34 -0
- package/dist/types/components/system/code-editor/useIdeActions.d.ts +27 -0
- package/dist/types/components/system/code-editor/useLsp.d.ts +12 -0
- package/dist/types/components/system/code-editor/useModuleDialog.d.ts +47 -0
- package/dist/types/components/system/index.d.ts +8 -0
- package/dist/types/components/types/ApiUrls.d.ts +192 -0
- package/dist/types/components/types/BtnAction.d.ts +35 -0
- package/dist/types/components/types/BtnAuth.d.ts +43 -0
- package/dist/types/components/types/CompInfo.d.ts +50 -0
- package/dist/types/components/types/DialogProps.d.ts +54 -0
- package/dist/types/components/types/DyCompField.d.ts +14 -0
- package/dist/types/components/types/DynamicNode.d.ts +34 -0
- package/dist/types/components/types/FormType.d.ts +113 -0
- package/dist/types/components/types/ItemPreps.d.ts +155 -0
- package/dist/types/components/types/MenusInfo.d.ts +44 -0
- package/dist/types/components/types/PageFieldInfo.d.ts +559 -0
- package/dist/types/components/types/PageProps.d.ts +177 -0
- package/dist/types/components/types/Params.d.ts +146 -0
- package/dist/types/components/types/RuleType.d.ts +10 -0
- package/dist/types/components/types/SearchProps.d.ts +59 -0
- package/dist/types/components/types/ShortKey.d.ts +30 -0
- package/dist/types/components/types/StarHorseType.d.ts +18 -0
- package/dist/types/components/types/UserinfoType.d.ts +46 -0
- package/dist/types/components/types/index.d.ts +18 -0
- package/dist/types/index.d.ts +58 -1
- package/dist/types/lang/en_US.d.ts +1052 -0
- package/dist/types/lang/index.d.ts +17 -0
- package/dist/types/lang/zh_CN.d.ts +1070 -0
- package/dist/types/plugins/AblesPlugin.d.ts +48 -0
- package/dist/types/plugins/registerCompPlugin.d.ts +10 -0
- package/dist/types/sample/commonpage/dynamic_form_utils.d.ts +89 -0
- package/dist/types/store/ButtonPermission.d.ts +32 -0
- package/dist/types/store/ConsumerView.d.ts +22 -0
- package/dist/types/store/CopyerOperation.d.ts +35 -0
- package/dist/types/store/DesignForm.d.ts +1731 -0
- package/dist/types/store/DesignPage.d.ts +149 -0
- package/dist/types/store/DynamicForm.d.ts +52 -0
- package/dist/types/store/FormDataCache.d.ts +4622 -0
- package/dist/types/store/GlobalConfig.d.ts +13 -0
- package/dist/types/store/SelfOperation.d.ts +681 -0
- package/dist/types/store/StoreManager.d.ts +14763 -0
- package/dist/types/store/UserInfo.d.ts +44 -0
- package/dist/types/store/index.d.ts +2 -0
- package/dist/types/theme/localStorge.d.ts +10 -0
- package/dist/types/theme/theme.d.ts +24 -0
- package/dist/types/utils/FieldOperationUtils.d.ts +6 -0
- package/dist/types/utils/auth.d.ts +25 -0
- package/dist/types/utils/message.d.ts +26 -0
- package/dist/types/utils/preview.d.ts +16 -0
- package/dist/utils/FieldOperationUtils.d.ts +6 -0
- package/dist/utils/auth.d.ts +25 -0
- package/dist/utils/message.d.ts +25 -0
- package/dist/utils/preview.d.ts +16 -0
- package/package.json +20 -16
package/README.md
CHANGED
|
@@ -584,4 +584,16 @@ barcode 条形码组件
|
|
|
584
584
|
```
|
|
585
585
|
-修复日期和时间组件因数据格式不统一导致组件异常,
|
|
586
586
|
```
|
|
587
|
+
#### v3.1.4
|
|
588
|
+
|
|
589
|
+
```
|
|
590
|
+
-修复日期和时间组件因数据格式不统一导致组件异常,
|
|
591
|
+
-增加代码编辑器StarHorseCodeEditor,对比组件StarHorseDiffEditor
|
|
592
|
+
-修复StarHorseDialog 在app端的bug
|
|
593
|
+
```
|
|
594
|
+
#### v3.1.5
|
|
595
|
+
|
|
596
|
+
```
|
|
597
|
+
-解决类型丢失问题
|
|
598
|
+
```
|
|
587
599
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
interface WebSocketOptions {
|
|
2
|
+
/** 重连间隔(毫秒),默认 3000 */
|
|
3
|
+
reconnectInterval?: number;
|
|
4
|
+
/** 最大重连次数,0 表示无限重试,默认 10 */
|
|
5
|
+
maxReconnectAttempts?: number;
|
|
6
|
+
/** 心跳间隔(毫秒),默认 10000 */
|
|
7
|
+
heartbeatInterval?: number;
|
|
8
|
+
/** 心跳消息内容,默认 "ping" */
|
|
9
|
+
heartbeatMsg?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 自定义回调函数类型
|
|
13
|
+
*/
|
|
14
|
+
interface WebSocketCallbacks {
|
|
15
|
+
/** 连接成功回调 */
|
|
16
|
+
onopen?: (event: Event) => void;
|
|
17
|
+
/** 连接关闭回调 */
|
|
18
|
+
onclose?: (event: CloseEvent) => void;
|
|
19
|
+
/** 连接错误回调 */
|
|
20
|
+
onerror?: (event: Event) => void;
|
|
21
|
+
/** 接收消息回调 */
|
|
22
|
+
onmessage?: (event: MessageEvent) => void;
|
|
23
|
+
/** 达到最大重连次数回调 */
|
|
24
|
+
onmaxreconnect?: () => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 带自动重连和心跳检测的 WebSocket 类(TS 版本)
|
|
28
|
+
*/
|
|
29
|
+
declare class WebSocketUtils implements WebSocketCallbacks {
|
|
30
|
+
private readonly url;
|
|
31
|
+
private readonly reconnectInterval;
|
|
32
|
+
private readonly maxReconnectAttempts;
|
|
33
|
+
private readonly heartbeatInterval;
|
|
34
|
+
private readonly heartbeatMsg;
|
|
35
|
+
private ws;
|
|
36
|
+
private reconnectAttempts;
|
|
37
|
+
private isManualClose;
|
|
38
|
+
private heartbeatTimer;
|
|
39
|
+
onopen?: (event: Event) => void;
|
|
40
|
+
onclose?: (event: CloseEvent) => void;
|
|
41
|
+
onerror?: (event: Event) => void;
|
|
42
|
+
onmessage?: (event: MessageEvent) => void;
|
|
43
|
+
onmaxreconnect?: () => void;
|
|
44
|
+
constructor(url: string, options?: WebSocketOptions);
|
|
45
|
+
/**
|
|
46
|
+
* 初始化/重连 WebSocket 连接
|
|
47
|
+
*/
|
|
48
|
+
private connect;
|
|
49
|
+
/**
|
|
50
|
+
* 连接成功事件处理
|
|
51
|
+
*/
|
|
52
|
+
private handleOpen;
|
|
53
|
+
/**
|
|
54
|
+
* 连接关闭事件处理
|
|
55
|
+
*/
|
|
56
|
+
private handleClose;
|
|
57
|
+
/**
|
|
58
|
+
* 连接错误事件处理
|
|
59
|
+
*/
|
|
60
|
+
private handleError;
|
|
61
|
+
/**
|
|
62
|
+
* 消息接收事件处理
|
|
63
|
+
*/
|
|
64
|
+
private handleMessage;
|
|
65
|
+
/**
|
|
66
|
+
* 调度重连(带指数退避策略)
|
|
67
|
+
*/
|
|
68
|
+
private scheduleReconnect;
|
|
69
|
+
/**
|
|
70
|
+
* 发送心跳消息
|
|
71
|
+
*/
|
|
72
|
+
private sendHeartbeat;
|
|
73
|
+
/**
|
|
74
|
+
* 启动心跳检测
|
|
75
|
+
*/
|
|
76
|
+
private startHeartbeat;
|
|
77
|
+
/**
|
|
78
|
+
* 停止心跳检测
|
|
79
|
+
*/
|
|
80
|
+
private stopHeartbeat;
|
|
81
|
+
/**
|
|
82
|
+
* 对外暴露:发送消息
|
|
83
|
+
* @param data 要发送的消息(支持 string/ArrayBuffer/Blob)
|
|
84
|
+
*/
|
|
85
|
+
send(data: string | ArrayBuffer | Blob): void;
|
|
86
|
+
/**
|
|
87
|
+
* 对外暴露:手动关闭连接(不会触发重连)
|
|
88
|
+
* @param code 关闭码(默认 1000,表示正常关闭)
|
|
89
|
+
* @param reason 关闭原因
|
|
90
|
+
*/
|
|
91
|
+
close(code?: number, reason?: string): void;
|
|
92
|
+
/**
|
|
93
|
+
* 辅助方法:获取连接状态文本
|
|
94
|
+
*/
|
|
95
|
+
getReadyStateText(): string;
|
|
96
|
+
}
|
|
97
|
+
export default WebSocketUtils;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 日期类型
|
|
3
|
+
* @type {string[]}
|
|
4
|
+
*/
|
|
5
|
+
export declare const dateTypes: string[];
|
|
6
|
+
/**
|
|
7
|
+
* 创建日期
|
|
8
|
+
* @param val
|
|
9
|
+
* @returns {string}
|
|
10
|
+
*/
|
|
11
|
+
export declare function createDate(val: any): string;
|
|
12
|
+
/**
|
|
13
|
+
* 当前日期
|
|
14
|
+
* @param split
|
|
15
|
+
*/
|
|
16
|
+
export declare function currentDate(split?: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* 获取当月的开始和结束时间
|
|
19
|
+
*/
|
|
20
|
+
export declare function currentMonthRange(): {
|
|
21
|
+
startDate?: undefined;
|
|
22
|
+
starDateStr?: undefined;
|
|
23
|
+
lastDate?: undefined;
|
|
24
|
+
lastDateStr?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
startDate: Date;
|
|
27
|
+
starDateStr: string;
|
|
28
|
+
lastDate: Date;
|
|
29
|
+
lastDateStr: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function monthRange(date: Date): {
|
|
32
|
+
startDate?: undefined;
|
|
33
|
+
starDateStr?: undefined;
|
|
34
|
+
lastDate?: undefined;
|
|
35
|
+
lastDateStr?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
startDate: Date;
|
|
38
|
+
starDateStr: string;
|
|
39
|
+
lastDate: Date;
|
|
40
|
+
lastDateStr: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* 将日期解析为字符串
|
|
44
|
+
* @param date
|
|
45
|
+
* @param needTime
|
|
46
|
+
* @param split
|
|
47
|
+
* @param needSecond
|
|
48
|
+
*/
|
|
49
|
+
export declare function dateParse(date: Date, needTime?: boolean, split?: string, needSecond?: boolean): string;
|
|
50
|
+
/**
|
|
51
|
+
* 创建年月日时分秒
|
|
52
|
+
* @param val
|
|
53
|
+
* @param isDateTime
|
|
54
|
+
* @param needSecond
|
|
55
|
+
* @param split
|
|
56
|
+
*/
|
|
57
|
+
export declare function createDatetime(val: any, isDateTime?: boolean, needSecond?: boolean, split?: string): any;
|
|
58
|
+
export declare function parseDateByType(val: any, type: string, subType?: string, needSecond?: boolean, split?: string): any;
|
|
59
|
+
/**
|
|
60
|
+
* 获取 el-date-picker 的默认 value-format(dayjs 格式)
|
|
61
|
+
* value-format 决定了 v-model 绑定值的字符串格式
|
|
62
|
+
*/
|
|
63
|
+
export declare function getDateValueFormat(subType: string): string;
|
|
64
|
+
/**
|
|
65
|
+
* 获取 el-date-picker 的默认显示 format(dayjs 格式)
|
|
66
|
+
* format 决定了输入框中显示的文本格式
|
|
67
|
+
*/
|
|
68
|
+
export declare function getDateDisplayFormat(subType: string): string;
|
|
69
|
+
/**
|
|
70
|
+
* 规范化日期/时间模型值,确保 el-date-picker / el-time-picker 能正确显示
|
|
71
|
+
*
|
|
72
|
+
* 处理场景:
|
|
73
|
+
* - ISO 字符串 "2026-06-09T16:00:00.000Z"
|
|
74
|
+
* - 已格式化字符串 "2026-06-09"、"2026/06/09"
|
|
75
|
+
* - 纯月份数字 "06"
|
|
76
|
+
* - 纯时间字符串 "17:24:43"
|
|
77
|
+
* - Date 对象
|
|
78
|
+
* - 范围数组 ["2026-06-09T16:00:00.000Z", "2026-07-08T16:00:00.000Z"]
|
|
79
|
+
* - JSON 字符串数组 '[ "06", "11" ]'
|
|
80
|
+
*
|
|
81
|
+
* @param val 原始值
|
|
82
|
+
* @param subType 日期子类型(year/month/date/datetime/daterange 等)
|
|
83
|
+
* @param valueFormat 目标 value-format(不传则根据 subType 自动推断)
|
|
84
|
+
*/
|
|
85
|
+
export declare function normalizeDateModel(val: any, subType: string, valueFormat?: string): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 设置测试
|
|
3
|
+
* @param testFlag
|
|
4
|
+
* @param type
|
|
5
|
+
*/
|
|
6
|
+
export declare function setTest(testFlag: boolean, type?: string): void;
|
|
7
|
+
/**
|
|
8
|
+
* 获取当前设备类型
|
|
9
|
+
*/
|
|
10
|
+
export declare function getDeviceInfo(): any;
|
|
11
|
+
export declare const device: any;
|
|
12
|
+
export declare const isPc: boolean;
|
|
13
|
+
export declare const isMobile: boolean;
|
|
14
|
+
export declare const isTablet: boolean;
|
|
15
|
+
export declare const isWindows: boolean;
|
|
16
|
+
export declare const isMac: boolean;
|
|
17
|
+
export declare const isLinux: boolean;
|
|
18
|
+
export declare const isAndroid: boolean;
|
|
19
|
+
export declare const isIos: boolean;
|
|
20
|
+
export declare const isHarmony: any;
|
|
21
|
+
export declare const isHuawei: any;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { FieldInfo, PageFieldInfo, SearchProps } from '../components/types';
|
|
2
|
+
/**
|
|
3
|
+
* 解析表单字段信息及层级
|
|
4
|
+
*/
|
|
5
|
+
export declare const analysisCompDatas: (dataList: any) => {
|
|
6
|
+
selectList: any[];
|
|
7
|
+
compListResult: Record<string, any>;
|
|
8
|
+
compFieldList: FieldInfo[];
|
|
9
|
+
fieldList: any[];
|
|
10
|
+
searchFieldList: SearchProps[];
|
|
11
|
+
searchItemList?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
selectList: any[];
|
|
14
|
+
compListResult: Record<string, any>;
|
|
15
|
+
fieldList: FieldInfo[];
|
|
16
|
+
searchItemList: SearchProps[];
|
|
17
|
+
compFieldList?: undefined;
|
|
18
|
+
searchFieldList?: undefined;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 解析自动匹配平台格式的数据
|
|
22
|
+
* @param fieldList
|
|
23
|
+
*/
|
|
24
|
+
export declare const analysisAutoFitOsCompDatas: (fieldList: any) => {
|
|
25
|
+
selectList: any[];
|
|
26
|
+
compListResult: Record<string, any>;
|
|
27
|
+
compFieldList: FieldInfo[];
|
|
28
|
+
fieldList: any[];
|
|
29
|
+
searchFieldList: SearchProps[];
|
|
30
|
+
searchItemList?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
selectList: any[];
|
|
33
|
+
compListResult: Record<string, any>;
|
|
34
|
+
fieldList: any;
|
|
35
|
+
searchItemList: SearchProps[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 解析所有组件按顺序排列,去掉所有容器布局,
|
|
39
|
+
* 需考虑如果是主子表单的情况需要怎么操作,
|
|
40
|
+
* 除了box,dytable,其它的是否只需要解析容器内部的子容器,
|
|
41
|
+
* 第一步,先将dytable容器的数据解析完成
|
|
42
|
+
* @param dataList
|
|
43
|
+
*/
|
|
44
|
+
export declare function analysisAppComps(dataList: any): {
|
|
45
|
+
selectList: any[];
|
|
46
|
+
compListResult: Record<string, any>;
|
|
47
|
+
fieldList: any;
|
|
48
|
+
searchItemList: SearchProps[];
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* 将pc模型转为app模型
|
|
52
|
+
* @param pageInfo
|
|
53
|
+
*/
|
|
54
|
+
export declare function convertPcCompToFitPlatformComps(pageInfo: PageFieldInfo): PageFieldInfo | {
|
|
55
|
+
fieldList: {
|
|
56
|
+
appList: any[];
|
|
57
|
+
}[];
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* 将pc模型转为app模型
|
|
61
|
+
* @param pageInfo
|
|
62
|
+
*/
|
|
63
|
+
export declare function convertCompToAppComps(pageInfo: PageFieldInfo): {
|
|
64
|
+
fieldList: {
|
|
65
|
+
appList: any[];
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 解析动态表单中的子节点数据是否需要合并到父节点中
|
|
70
|
+
* @param props
|
|
71
|
+
* @param dataForm
|
|
72
|
+
*/
|
|
73
|
+
export declare function dynamicFormAnalysis(props: any, dataForm: any): any;
|
|
74
|
+
/**
|
|
75
|
+
* 创建验证规则
|
|
76
|
+
* @param item
|
|
77
|
+
* @param dataForm
|
|
78
|
+
*/
|
|
79
|
+
export declare function validMsg(item: any, dataForm: any): any[];
|
|
80
|
+
/**
|
|
81
|
+
* 检查对象是否需要创建
|
|
82
|
+
* @param dataForm 数据对象
|
|
83
|
+
* @param item 表单属性
|
|
84
|
+
* @param index 索引
|
|
85
|
+
* @param parentIndex 父索引
|
|
86
|
+
* @param prefix 前缀
|
|
87
|
+
*/
|
|
88
|
+
export declare function checkObject(dataForm: any, item: any, index: number, parentIndex: number, prefix: string): number;
|
|
89
|
+
/**
|
|
90
|
+
* 存在映射关系时的校验函数
|
|
91
|
+
* @param item
|
|
92
|
+
* @param dataForm
|
|
93
|
+
* @param prefix
|
|
94
|
+
* @param parentIndex
|
|
95
|
+
* @param index
|
|
96
|
+
*/
|
|
97
|
+
export declare function getFormData(item: any, dataForm: any, prefix: string, parentIndex: any, index: any): any;
|
|
98
|
+
/**
|
|
99
|
+
* 获取表单数据索引
|
|
100
|
+
* @param data
|
|
101
|
+
* @param prefix
|
|
102
|
+
* @param parentIndex
|
|
103
|
+
* @param index
|
|
104
|
+
*/
|
|
105
|
+
export declare function getDataIndex(data: any, prefix: string, parentIndex: any, index: any): number;
|
|
106
|
+
/**
|
|
107
|
+
* 生成验证属性
|
|
108
|
+
* @param prefix 父表标识
|
|
109
|
+
* @param fieldName 字段名称
|
|
110
|
+
* @param parentIndex 父索引
|
|
111
|
+
* @param currentIndex 当前索引
|
|
112
|
+
*/
|
|
113
|
+
export declare function loadProp(prefix: string, fieldName: string, parentIndex: number, currentIndex: number): string;
|
|
114
|
+
/**
|
|
115
|
+
* 计算表单Pron
|
|
116
|
+
* @param data
|
|
117
|
+
* @param prefix
|
|
118
|
+
* @param parentIndex
|
|
119
|
+
* @param index
|
|
120
|
+
*/
|
|
121
|
+
export declare function getPrefix(data: any, prefix: string, parentIndex: any, index: any): string;
|
|
122
|
+
/**
|
|
123
|
+
* 检查是否可见
|
|
124
|
+
* @param item
|
|
125
|
+
* @param dataForm
|
|
126
|
+
*/
|
|
127
|
+
export declare function checkVisible(item: any, dataForm: any): any;
|
|
128
|
+
/**
|
|
129
|
+
* 解析列表数据
|
|
130
|
+
* @param item
|
|
131
|
+
* @param val
|
|
132
|
+
*/
|
|
133
|
+
export declare function parseListData(item: any, val: any): any;
|
|
134
|
+
/**
|
|
135
|
+
* 过滤对象属性
|
|
136
|
+
* @param obj 要过滤的对象
|
|
137
|
+
* @param keysToRemove 要移除的属性键数组
|
|
138
|
+
*/
|
|
139
|
+
export declare function filterProperties(obj: any, keysToRemove: string[]): void;
|
|
140
|
+
/**
|
|
141
|
+
* 判断标签是否需要显示
|
|
142
|
+
* @param item
|
|
143
|
+
*/
|
|
144
|
+
export declare function labelVisibleCheck(item: any): any;
|
|
145
|
+
/**
|
|
146
|
+
* 处理属性
|
|
147
|
+
* @param fieldList
|
|
148
|
+
* @param parentKey
|
|
149
|
+
* @param result
|
|
150
|
+
*/
|
|
151
|
+
export declare const processFieldList: (fieldList: any[], parentKey: string, result: any[]) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Config: any;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
import { SearchParams } from '../components/types/Params';
|
|
3
|
+
import { OrderByInfo } from '../components/types/PageFieldInfo';
|
|
4
|
+
import { SelectOption } from '../components/types/SearchProps';
|
|
5
|
+
declare const starHorseAxios: import('axios').AxiosInstance;
|
|
6
|
+
export { starHorseAxios };
|
|
7
|
+
export declare function getMenuId(): string;
|
|
8
|
+
/**
|
|
9
|
+
* 获取axios实例
|
|
10
|
+
*/
|
|
11
|
+
export declare function getAxiosInstance(): import('axios').AxiosInstance;
|
|
12
|
+
/**
|
|
13
|
+
* 下载文件,
|
|
14
|
+
* @param url 路径
|
|
15
|
+
* @param param 参数
|
|
16
|
+
*/
|
|
17
|
+
export declare function download(url: string, param: any): Promise<unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* 下载文件,
|
|
20
|
+
* @param data 数据
|
|
21
|
+
* @param name 文件名称
|
|
22
|
+
*/
|
|
23
|
+
export declare function downloadData(data: any, name: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* 加载资源文件
|
|
26
|
+
* @param url
|
|
27
|
+
* @param method
|
|
28
|
+
*/
|
|
29
|
+
export declare function blobData(url: string, method?: string): Promise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* Post 请求
|
|
32
|
+
* @param url
|
|
33
|
+
* @param data
|
|
34
|
+
*/
|
|
35
|
+
export declare function postRequest(url: string, data: Array<any> | any): Promise<AxiosResponse<any, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get请求
|
|
38
|
+
* @param url
|
|
39
|
+
*/
|
|
40
|
+
export declare function getRequest(url: string): Promise<AxiosResponse<any, any, {}>>;
|
|
41
|
+
/**
|
|
42
|
+
* Request 请求
|
|
43
|
+
* @param url 请求地址
|
|
44
|
+
* @param data 请求参数
|
|
45
|
+
* @param method 请求方法
|
|
46
|
+
*/
|
|
47
|
+
export declare function httpRequest(url: string, method: string, data: any): Promise<AxiosResponse<any, any, {}>>;
|
|
48
|
+
/**
|
|
49
|
+
* Post Upload 请求
|
|
50
|
+
* @param url
|
|
51
|
+
* @param data
|
|
52
|
+
*/
|
|
53
|
+
export declare function uploadRequest(url: string, data: Array<any>): Promise<AxiosResponse<any, any, {}>>;
|
|
54
|
+
/**
|
|
55
|
+
* 加载Post 数据
|
|
56
|
+
* @param url 接口地址
|
|
57
|
+
* @param params 参数
|
|
58
|
+
* @param orderBy 排序
|
|
59
|
+
*/
|
|
60
|
+
export declare function loadData(url: string, params: SearchParams[] | any, orderBy?: OrderByInfo[]): Promise<{
|
|
61
|
+
data: any;
|
|
62
|
+
error: string;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* 加载Get 数据
|
|
66
|
+
* @param url 接口地址
|
|
67
|
+
* @param params 参数
|
|
68
|
+
*/
|
|
69
|
+
export declare function loadGetData(url: string): Promise<{
|
|
70
|
+
data: any;
|
|
71
|
+
error: string;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* 加载Id数据
|
|
75
|
+
* @param url
|
|
76
|
+
* @param id
|
|
77
|
+
* @param params
|
|
78
|
+
*/
|
|
79
|
+
export declare function loadById(url: string, id: any, params?: any): Promise<any>;
|
|
80
|
+
/**
|
|
81
|
+
* 根据Id删除数据
|
|
82
|
+
* @param url
|
|
83
|
+
* @param ids
|
|
84
|
+
* @param msg 删除提示
|
|
85
|
+
*/
|
|
86
|
+
export declare function deleteByIds(url: string, ids: any, msg?: string): Promise<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* 根据字典类别获取字典数据
|
|
89
|
+
* @param dictType 字典类别
|
|
90
|
+
* @param exclusion 排除字典项
|
|
91
|
+
* @param userUrl 用户自定义接口
|
|
92
|
+
*/
|
|
93
|
+
export declare function dictData(dictType: string, exclusion?: Array<string>, userUrl?: string): Promise<SelectOption[]>;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { JoinSearchParams, SearchParams } from '../components/types/Params';
|
|
2
|
+
import { Reactive } from 'vue';
|
|
3
|
+
import { SelectOption } from '../components/types/SearchProps';
|
|
4
|
+
import { BatchFieldInfo, FieldInfo, PageFieldInfo } from '../components/types/PageFieldInfo';
|
|
5
|
+
import { ApiUrls } from '../components/types/ApiUrls';
|
|
6
|
+
import { DialogProps } from '../components/types/DialogProps';
|
|
7
|
+
/**
|
|
8
|
+
* 构建菜单树
|
|
9
|
+
* @param data
|
|
10
|
+
* @param valField 字符串值
|
|
11
|
+
* @param name
|
|
12
|
+
* @param val 数字值
|
|
13
|
+
*/
|
|
14
|
+
export declare function createTree(data: any, valField: string, name: string, val: string): SelectOption[];
|
|
15
|
+
/**
|
|
16
|
+
* 加载框
|
|
17
|
+
* @param msg
|
|
18
|
+
* @param defaultTarget
|
|
19
|
+
*/
|
|
20
|
+
export declare function load(msg: string, defaultTarget?: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* 关闭加载框
|
|
23
|
+
*/
|
|
24
|
+
export declare function closeLoad(): void;
|
|
25
|
+
/**
|
|
26
|
+
* 下划线转驼峰
|
|
27
|
+
* @param str
|
|
28
|
+
*/
|
|
29
|
+
export declare function convertToCamelCase(str: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* 驼峰转下划线
|
|
32
|
+
* @param str
|
|
33
|
+
*/
|
|
34
|
+
export declare function camelCaseToUnderline(str: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* 数据格式化
|
|
37
|
+
* @param name
|
|
38
|
+
* @param cellValue
|
|
39
|
+
*/
|
|
40
|
+
export declare function commonParseCodeToName(name: string, cellValue: any): any;
|
|
41
|
+
/**
|
|
42
|
+
* 数据匹配方式
|
|
43
|
+
*/
|
|
44
|
+
export declare function searchMatchList(): SelectOption[];
|
|
45
|
+
/**
|
|
46
|
+
* 排序方式
|
|
47
|
+
*/
|
|
48
|
+
export declare function orderBy(): SelectOption[];
|
|
49
|
+
/**
|
|
50
|
+
* 请求方式
|
|
51
|
+
*/
|
|
52
|
+
export declare function httpMethod(): SelectOption[];
|
|
53
|
+
/**
|
|
54
|
+
* 辅助函数 创建属性对象
|
|
55
|
+
* @param label 字段标签
|
|
56
|
+
* @param fieldName 字段名称
|
|
57
|
+
* @param type 字段类型
|
|
58
|
+
* @param defaultVisible 默认可见
|
|
59
|
+
* @param matchType 匹配方式
|
|
60
|
+
*/
|
|
61
|
+
export declare function createSearchField(label: string, fieldName: string, defaultVisible?: boolean, matchType?: string, type?: string): {
|
|
62
|
+
label: string;
|
|
63
|
+
fieldName: string;
|
|
64
|
+
type: string;
|
|
65
|
+
defaultVisible: boolean;
|
|
66
|
+
matchType: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 辅助函数 创建属性对象
|
|
70
|
+
* @param label 字段标签
|
|
71
|
+
* @param fieldName 字段名称
|
|
72
|
+
* @param type 字段类型
|
|
73
|
+
* @param formVisible 表单可见
|
|
74
|
+
* @param listVisible 表格可见
|
|
75
|
+
*/
|
|
76
|
+
export declare function createField(label: string, fieldName: string, type?: string, formVisible?: boolean, listVisible?: boolean): {
|
|
77
|
+
label: string;
|
|
78
|
+
fieldName: string;
|
|
79
|
+
type: string;
|
|
80
|
+
formVisible: boolean;
|
|
81
|
+
listVisible: boolean;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* 公共字段
|
|
85
|
+
* @param formVisibleFields 表单可见字段
|
|
86
|
+
* @param tableVisibleFields 表格可见字段
|
|
87
|
+
*/
|
|
88
|
+
export declare function commonField(formVisibleFields?: Array<string>, tableVisibleFields?: Array<string>): FieldInfo[];
|
|
89
|
+
/**
|
|
90
|
+
* 数据格式
|
|
91
|
+
*/
|
|
92
|
+
export declare function dataType(): SelectOption[];
|
|
93
|
+
/**
|
|
94
|
+
* 复制数据
|
|
95
|
+
* @param msg
|
|
96
|
+
*/
|
|
97
|
+
export declare function copyTxt(msg: string): void;
|
|
98
|
+
/**
|
|
99
|
+
* 表格序号
|
|
100
|
+
* @param row
|
|
101
|
+
* @param rowIndex
|
|
102
|
+
*/
|
|
103
|
+
export declare function rowClassName({ row, rowIndex }: any): void;
|
|
104
|
+
/**
|
|
105
|
+
* 创建条件
|
|
106
|
+
*/
|
|
107
|
+
export declare function createCondition(name: string, val: any, matchType?: string): SearchParams;
|
|
108
|
+
/**
|
|
109
|
+
* 创建关联条件
|
|
110
|
+
* @param leftFieldName 左表字段名称
|
|
111
|
+
* @param rightFieldName 右表字段名称
|
|
112
|
+
* @param matchType 匹配方式
|
|
113
|
+
*/
|
|
114
|
+
export declare function createJoinCondition(leftFieldName: string, rightFieldName: string, matchType?: string): JoinSearchParams;
|
|
115
|
+
/**
|
|
116
|
+
* 解析已组装的条件
|
|
117
|
+
* @param conditions
|
|
118
|
+
* @param name
|
|
119
|
+
*/
|
|
120
|
+
export declare function analysisField(conditions: SearchParams[], name: string): SearchParams;
|
|
121
|
+
/**
|
|
122
|
+
* 判断是不是Json
|
|
123
|
+
* @param v
|
|
124
|
+
*/
|
|
125
|
+
export declare function isJson(v: any): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* 解析表单字段映射
|
|
128
|
+
* @param fieldList
|
|
129
|
+
*/
|
|
130
|
+
export declare function formFieldMapping(fieldList: PageFieldInfo): {
|
|
131
|
+
defaultDatas: any;
|
|
132
|
+
mappingFields: any[];
|
|
133
|
+
batchDefaultValues: any;
|
|
134
|
+
actions: any[];
|
|
135
|
+
formFields: FieldInfo[];
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* 批量列表数据默认值
|
|
139
|
+
* @param datas
|
|
140
|
+
* @param dataForm
|
|
141
|
+
*/
|
|
142
|
+
export declare function batchFieldDefaultValues(datas: BatchFieldInfo, dataForm: any): any;
|
|
143
|
+
/**
|
|
144
|
+
* 动态组件数据
|
|
145
|
+
* @param field 组件参数信息
|
|
146
|
+
* @param analysisUrl 是否解析Url
|
|
147
|
+
*/
|
|
148
|
+
export declare function compDynamicData(field: any, analysisUrl?: false): Promise<any>;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @param preps 组件参数信息
|
|
152
|
+
* @param queryInfo 查询条件
|
|
153
|
+
* @param proxyUrl 代理接口,为空时,默认使用/system-config/redirect/execute
|
|
154
|
+
*/
|
|
155
|
+
export declare function dynamicUrlOperation(preps: any, queryInfo?: SearchParams[], proxyUrl?: string): Promise<SelectOption[]>;
|
|
156
|
+
/**
|
|
157
|
+
* 创建过滤器
|
|
158
|
+
* @param queryString 查询参数
|
|
159
|
+
*/
|
|
160
|
+
export declare function createFilter(queryString: string): Promise<(data: SelectOption) => number>;
|
|
161
|
+
/**
|
|
162
|
+
* 公共 Api 接口
|
|
163
|
+
* @param appName 应用名称或者接口前缀
|
|
164
|
+
* @param urlPrefix api 接口前缀
|
|
165
|
+
* @param condition 条件
|
|
166
|
+
*/
|
|
167
|
+
export declare function apiInstance(appName: string, urlPrefix: string, condition?: Array<any>): ApiUrls;
|
|
168
|
+
/**
|
|
169
|
+
* 模态窗口相关属性
|
|
170
|
+
*/
|
|
171
|
+
export declare function dialogPreps(title?: string, batchTitle?: string): Reactive<DialogProps>;
|
|
172
|
+
/**
|
|
173
|
+
* 参数编码
|
|
174
|
+
* @param param
|
|
175
|
+
*/
|
|
176
|
+
export declare function uriEncode(param: string | number | boolean): string;
|
|
177
|
+
/**
|
|
178
|
+
* 参数解码
|
|
179
|
+
* @param param
|
|
180
|
+
*/
|
|
181
|
+
export declare function uriDecode(param: string): string;
|
|
182
|
+
/**
|
|
183
|
+
* 字符串转base64
|
|
184
|
+
* @param param
|
|
185
|
+
*/
|
|
186
|
+
export declare function base64Encode(param: string): string;
|
|
187
|
+
/**
|
|
188
|
+
* 对象转base64
|
|
189
|
+
* @param object
|
|
190
|
+
*/
|
|
191
|
+
export declare function objectToBase64(object: any): string;
|
|
192
|
+
/**
|
|
193
|
+
* base64转字符串
|
|
194
|
+
* @param param
|
|
195
|
+
*/
|
|
196
|
+
export declare function base64Decode(param: string): string;
|
|
197
|
+
/**
|
|
198
|
+
* 预览图片
|
|
199
|
+
* @param images
|
|
200
|
+
*/
|
|
201
|
+
export declare function imagesPreview(images: Array<string> | string): void;
|
|
202
|
+
/**
|
|
203
|
+
* 设置css 全局变量
|
|
204
|
+
* @param name 变量名称
|
|
205
|
+
* @param val 变量值
|
|
206
|
+
* @param dom
|
|
207
|
+
*/
|
|
208
|
+
export declare function setCssVar(name: string, val: any, dom?: HTMLElement): void;
|
|
209
|
+
/**
|
|
210
|
+
* 去除空格
|
|
211
|
+
* @param data
|
|
212
|
+
*/
|
|
213
|
+
export declare function trim(data: string): string;
|