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.
Files changed (403) hide show
  1. package/README.md +12 -0
  2. package/dist/api/WebSocketUtils.d.ts +97 -0
  3. package/dist/api/date_utils.d.ts +85 -0
  4. package/dist/api/device.d.ts +21 -0
  5. package/dist/api/finger_utils.d.ts +9 -0
  6. package/dist/api/form_utils.d.ts +151 -0
  7. package/dist/api/settings.d.ts +1 -0
  8. package/dist/api/star_horse_apis.d.ts +93 -0
  9. package/dist/api/star_horse_utils.d.ts +213 -0
  10. package/dist/api/system.d.ts +78 -0
  11. package/dist/api/user_func.d.ts +25 -0
  12. package/dist/api/valid_utils.d.ts +8 -0
  13. package/dist/assets/index.css +1 -1
  14. package/dist/components/comp/ShDynamicForm.vue.d.ts +56 -0
  15. package/dist/components/comp/ShForm.vue.d.ts +58 -0
  16. package/dist/components/comp/ShTableListColumn.vue.d.ts +79 -0
  17. package/dist/components/comp/StarHorseDataSelector.vue.d.ts +50 -0
  18. package/dist/components/comp/StarHorseDataView.vue.d.ts +161 -0
  19. package/dist/components/comp/StarHorseDialog.vue.d.ts +242 -0
  20. package/dist/components/comp/StarHorseDraggable.vue.d.ts +82 -0
  21. package/dist/components/comp/StarHorseForm.vue.d.ts +176 -0
  22. package/dist/components/comp/StarHorseFormItem.vue.d.ts +22 -0
  23. package/dist/components/comp/StarHorseFormList.vue.d.ts +159 -0
  24. package/dist/components/comp/StarHorseFormTable.vue.d.ts +67 -0
  25. package/dist/components/comp/StarHorseIcon.vue.d.ts +119 -0
  26. package/dist/components/comp/StarHorseItem.vue.d.ts +100 -0
  27. package/dist/components/comp/StarHorseJsonEditor.vue.d.ts +44 -0
  28. package/dist/components/comp/StarHorsePopover.vue.d.ts +50 -0
  29. package/dist/components/comp/StarHorseSearchComp.vue.d.ts +48 -0
  30. package/dist/components/comp/StarHorseSearchForm.vue.d.ts +77 -0
  31. package/dist/components/comp/StarHorseStaticTable.vue.d.ts +101 -0
  32. package/dist/components/comp/StarHorseTableColumn.vue.d.ts +116 -0
  33. package/dist/components/comp/StarHorseTableComp.vue.d.ts +43 -0
  34. package/dist/components/comp/StarHorseTree.vue.d.ts +256 -0
  35. package/dist/components/comp/app/MainBar.vue.d.ts +20 -0
  36. package/dist/components/comp/app/MainContainer.vue.d.ts +18 -0
  37. package/dist/components/comp/app/MainContent.vue.d.ts +26 -0
  38. package/dist/components/comp/app/MainSubBar.vue.d.ts +36 -0
  39. package/dist/components/comp/app/MenuShot.vue.d.ts +79 -0
  40. package/dist/components/comp/index.d.ts +25 -0
  41. package/dist/components/comp/items/UTableColumn.vue.d.ts +72 -0
  42. package/dist/components/comp/items/callitem.d.ts +2 -0
  43. package/dist/components/comp/items/tableColumnItem.vue.d.ts +96 -0
  44. package/dist/components/comp/items/tablebtn.vue.d.ts +60 -0
  45. package/dist/components/comp/selfcomp.d.ts +2 -0
  46. package/dist/components/comp/utils/DataPicker.vue.d.ts +85 -0
  47. package/dist/components/comp/utils/DataSelectorUtils.d.ts +23 -0
  48. package/dist/components/cron/Crontab-Day.vue.d.ts +29 -0
  49. package/dist/components/cron/Crontab-Hour.vue.d.ts +28 -0
  50. package/dist/components/cron/Crontab-Min.vue.d.ts +28 -0
  51. package/dist/components/cron/Crontab-Month.vue.d.ts +28 -0
  52. package/dist/components/cron/Crontab-Second.vue.d.ts +31 -0
  53. package/dist/components/cron/Crontab-Week.vue.d.ts +29 -0
  54. package/dist/components/cron/Crontab-Year.vue.d.ts +30 -0
  55. package/dist/components/cron/Crontab.vue.d.ts +15 -0
  56. package/dist/components/enums/ModuleEnums.d.ts +10 -0
  57. package/dist/components/enums/ServiceEnums.d.ts +18 -0
  58. package/dist/components/formcomp/items/allitem.d.ts +2 -0
  59. package/dist/components/formcomp/items/area-item.vue.d.ts +19 -0
  60. package/dist/components/formcomp/items/audio-item.vue.d.ts +19 -0
  61. package/dist/components/formcomp/items/autocomplete-item.vue.d.ts +19 -0
  62. package/dist/components/formcomp/items/barcode-item.vue.d.ts +19 -0
  63. package/dist/components/formcomp/items/button-item.vue.d.ts +19 -0
  64. package/dist/components/formcomp/items/cascade-item.vue.d.ts +19 -0
  65. package/dist/components/formcomp/items/checkbox-item.vue.d.ts +19 -0
  66. package/dist/components/formcomp/items/color-item.vue.d.ts +19 -0
  67. package/dist/components/formcomp/items/cron-item.vue.d.ts +19 -0
  68. package/dist/components/formcomp/items/date-item.vue.d.ts +19 -0
  69. package/dist/components/formcomp/items/datetime-item.vue.d.ts +19 -0
  70. package/dist/components/formcomp/items/depart-item.vue.d.ts +16 -0
  71. package/dist/components/formcomp/items/description-item.vue.d.ts +19 -0
  72. package/dist/components/formcomp/items/dialog-input-item.vue.d.ts +19 -0
  73. package/dist/components/formcomp/items/dialog-item.vue.d.ts +19 -0
  74. package/dist/components/formcomp/items/divider-item.vue.d.ts +19 -0
  75. package/dist/components/formcomp/items/drawer-item.vue.d.ts +19 -0
  76. package/dist/components/formcomp/items/empty-item.vue.d.ts +16 -0
  77. package/dist/components/formcomp/items/html-item.vue.d.ts +19 -0
  78. package/dist/components/formcomp/items/htmleditor-item.vue.d.ts +19 -0
  79. package/dist/components/formcomp/items/icon-item.vue.d.ts +19 -0
  80. package/dist/components/formcomp/items/image-item.vue.d.ts +19 -0
  81. package/dist/components/formcomp/items/index.d.ts +57 -0
  82. package/dist/components/formcomp/items/input-item.vue.d.ts +13 -0
  83. package/dist/components/formcomp/items/input-tag-item.vue.d.ts +19 -0
  84. package/dist/components/formcomp/items/json-array-item.vue.d.ts +19 -0
  85. package/dist/components/formcomp/items/json-item.vue.d.ts +19 -0
  86. package/dist/components/formcomp/items/link-item.vue.d.ts +19 -0
  87. package/dist/components/formcomp/items/location-item.vue.d.ts +19 -0
  88. package/dist/components/formcomp/items/markdown-item.vue.d.ts +19 -0
  89. package/dist/components/formcomp/items/number-item.vue.d.ts +19 -0
  90. package/dist/components/formcomp/items/number-range-item.vue.d.ts +19 -0
  91. package/dist/components/formcomp/items/org-item.vue.d.ts +19 -0
  92. package/dist/components/formcomp/items/page-select-item.vue.d.ts +19 -0
  93. package/dist/components/formcomp/items/password-item.vue.d.ts +19 -0
  94. package/dist/components/formcomp/items/progress-item.vue.d.ts +19 -0
  95. package/dist/components/formcomp/items/qrcode-item.vue.d.ts +19 -0
  96. package/dist/components/formcomp/items/radio-item.vue.d.ts +19 -0
  97. package/dist/components/formcomp/items/rate-item.vue.d.ts +19 -0
  98. package/dist/components/formcomp/items/select-item.vue.d.ts +19 -0
  99. package/dist/components/formcomp/items/signature-item.vue.d.ts +19 -0
  100. package/dist/components/formcomp/items/slider-item.vue.d.ts +19 -0
  101. package/dist/components/formcomp/items/starhorse-form-item.vue.d.ts +23 -0
  102. package/dist/components/formcomp/items/switch-item.vue.d.ts +19 -0
  103. package/dist/components/formcomp/items/tag-item.vue.d.ts +19 -0
  104. package/dist/components/formcomp/items/text-item.vue.d.ts +19 -0
  105. package/dist/components/formcomp/items/textarea-item.vue.d.ts +19 -0
  106. package/dist/components/formcomp/items/time-item.vue.d.ts +19 -0
  107. package/dist/components/formcomp/items/time-picker-item.vue.d.ts +19 -0
  108. package/dist/components/formcomp/items/transfer-item.vue.d.ts +19 -0
  109. package/dist/components/formcomp/items/tree-select-item.vue.d.ts +19 -0
  110. package/dist/components/formcomp/items/tselect-item.vue.d.ts +19 -0
  111. package/dist/components/formcomp/items/unknown-item.vue.d.ts +16 -0
  112. package/dist/components/formcomp/items/upload-item.vue.d.ts +19 -0
  113. package/dist/components/formcomp/items/user-item.vue.d.ts +19 -0
  114. package/dist/components/formcomp/items/usercomp-item.vue.d.ts +20 -0
  115. package/dist/components/formcomp/items/view-markdown-item.vue.d.ts +19 -0
  116. package/dist/components/formcomp/utils/EditDataDialog.vue.d.ts +55 -0
  117. package/dist/components/formcomp/utils/FieldList.vue.d.ts +7 -0
  118. package/dist/components/formcomp/utils/FormulaEngine.d.ts +129 -0
  119. package/dist/components/formcomp/utils/ItemRelationEventUtils.d.ts +16 -0
  120. package/dist/components/formcomp/utils/prefixSuffixUtils.d.ts +28 -0
  121. package/dist/components/help.vue.d.ts +26 -0
  122. package/dist/components/menu/MenuItem.vue.d.ts +49 -0
  123. package/dist/components/system/ContentMenu.vue.d.ts +77 -0
  124. package/dist/components/system/PageConfig.vue.d.ts +66 -0
  125. package/dist/components/system/StarHorseButtonList.vue.d.ts +72 -0
  126. package/dist/components/system/StarHorseDiffEditor.vue.d.ts +229 -0
  127. package/dist/components/system/StarHorseEditor.vue.d.ts +126 -0
  128. package/dist/components/system/StarHorseMenu.vue.d.ts +38 -0
  129. package/dist/components/system/StarHorseSidebar.vue.d.ts +13 -0
  130. package/dist/components/system/StarHorseSvg.vue.d.ts +112 -0
  131. package/dist/components/system/SvgLoader.vue.d.ts +59 -0
  132. package/dist/components/system/SystemComp.d.ts +2 -0
  133. package/dist/components/system/code-editor/ConsolePanel.vue.d.ts +20 -0
  134. package/dist/components/system/code-editor/ContextMenu.vue.d.ts +24 -0
  135. package/dist/components/system/code-editor/constants.d.ts +78 -0
  136. package/dist/components/system/code-editor/index.d.ts +7 -0
  137. package/dist/components/system/code-editor/theme.d.ts +10 -0
  138. package/dist/components/system/code-editor/types.d.ts +39 -0
  139. package/dist/components/system/code-editor/useApiConfig.d.ts +55 -0
  140. package/dist/components/system/code-editor/useConsole.d.ts +17 -0
  141. package/dist/components/system/code-editor/useFileApi.d.ts +57 -0
  142. package/dist/components/system/code-editor/useFileTree.d.ts +34 -0
  143. package/dist/components/system/code-editor/useIdeActions.d.ts +27 -0
  144. package/dist/components/system/code-editor/useLsp.d.ts +12 -0
  145. package/dist/components/system/code-editor/useModuleDialog.d.ts +47 -0
  146. package/dist/components/system/index.d.ts +8 -0
  147. package/dist/components/types/ApiUrls.d.ts +192 -0
  148. package/dist/components/types/BtnAction.d.ts +35 -0
  149. package/dist/components/types/BtnAuth.d.ts +43 -0
  150. package/dist/components/types/CompInfo.d.ts +50 -0
  151. package/dist/components/types/DialogProps.d.ts +54 -0
  152. package/dist/components/types/DyCompField.d.ts +14 -0
  153. package/dist/components/types/DynamicNode.d.ts +34 -0
  154. package/dist/components/types/FormType.d.ts +113 -0
  155. package/dist/components/types/ItemPreps.d.ts +155 -0
  156. package/dist/components/types/MenusInfo.d.ts +44 -0
  157. package/dist/components/types/PageFieldInfo.d.ts +559 -0
  158. package/dist/components/types/PageProps.d.ts +177 -0
  159. package/dist/components/types/Params.d.ts +146 -0
  160. package/dist/components/types/RuleType.d.ts +10 -0
  161. package/dist/components/types/SearchProps.d.ts +59 -0
  162. package/dist/components/types/ShortKey.d.ts +30 -0
  163. package/dist/components/types/StarHorseType.d.ts +18 -0
  164. package/dist/components/types/UserinfoType.d.ts +46 -0
  165. package/dist/components/types/index.d.ts +18 -0
  166. package/dist/index.d.ts +54 -0
  167. package/dist/index.es.js +6 -6
  168. package/dist/lang/en_US.d.ts +1052 -0
  169. package/dist/lang/index.d.ts +17 -0
  170. package/dist/lang/zh_CN.d.ts +1070 -0
  171. package/dist/plugins/AblesPlugin.d.ts +48 -0
  172. package/dist/plugins/registerCompPlugin.d.ts +10 -0
  173. package/dist/store/ButtonPermission.d.ts +32 -0
  174. package/dist/store/ConsumerView.d.ts +22 -0
  175. package/dist/store/CopyerOperation.d.ts +35 -0
  176. package/dist/store/DesignForm.d.ts +1731 -0
  177. package/dist/store/DesignPage.d.ts +149 -0
  178. package/dist/store/DynamicForm.d.ts +52 -0
  179. package/dist/store/FormDataCache.d.ts +4622 -0
  180. package/dist/store/GlobalConfig.d.ts +13 -0
  181. package/dist/store/SelfOperation.d.ts +681 -0
  182. package/dist/store/StoreManager.d.ts +14763 -0
  183. package/dist/store/UserInfo.d.ts +44 -0
  184. package/dist/store/index.d.ts +2 -0
  185. package/dist/theme/localStorge.d.ts +10 -0
  186. package/dist/theme/theme.d.ts +24 -0
  187. package/dist/types/api/WebSocketUtils.d.ts +97 -0
  188. package/dist/types/api/date_utils.d.ts +85 -0
  189. package/dist/types/api/device.d.ts +21 -0
  190. package/dist/types/api/finger_utils.d.ts +9 -0
  191. package/dist/types/api/form_utils.d.ts +151 -0
  192. package/dist/types/api/settings.d.ts +1 -0
  193. package/dist/types/api/star_horse_apis.d.ts +93 -0
  194. package/dist/types/api/star_horse_utils.d.ts +214 -0
  195. package/dist/types/api/system.d.ts +78 -0
  196. package/dist/types/api/user_func.d.ts +25 -0
  197. package/dist/types/api/valid_utils.d.ts +8 -0
  198. package/dist/types/components/comp/ShDynamicForm.vue.d.ts +56 -0
  199. package/dist/types/components/comp/ShForm.vue.d.ts +58 -0
  200. package/dist/types/components/comp/ShTableListColumn.vue.d.ts +79 -0
  201. package/dist/types/components/comp/StarHorseDataSelector.vue.d.ts +50 -0
  202. package/dist/types/components/comp/StarHorseDataView.vue.d.ts +161 -0
  203. package/dist/types/components/comp/StarHorseDialog.vue.d.ts +242 -0
  204. package/dist/types/components/comp/StarHorseDraggable.vue.d.ts +82 -0
  205. package/dist/types/components/comp/StarHorseForm.vue.d.ts +176 -0
  206. package/dist/types/components/comp/StarHorseFormItem.vue.d.ts +22 -0
  207. package/dist/types/components/comp/StarHorseFormList.vue.d.ts +159 -0
  208. package/dist/types/components/comp/StarHorseFormTable.vue.d.ts +67 -0
  209. package/dist/types/components/comp/StarHorseIcon.vue.d.ts +119 -0
  210. package/dist/types/components/comp/StarHorseItem.vue.d.ts +100 -0
  211. package/dist/types/components/comp/StarHorseJsonEditor.vue.d.ts +44 -0
  212. package/dist/types/components/comp/StarHorsePopover.vue.d.ts +50 -0
  213. package/dist/types/components/comp/StarHorseSearchComp.vue.d.ts +48 -0
  214. package/dist/types/components/comp/StarHorseSearchForm.vue.d.ts +77 -0
  215. package/dist/types/components/comp/StarHorseStaticTable.vue.d.ts +101 -0
  216. package/dist/types/components/comp/StarHorseTableColumn.vue.d.ts +116 -0
  217. package/dist/types/components/comp/StarHorseTableComp.vue.d.ts +43 -0
  218. package/dist/types/components/comp/StarHorseTree.vue.d.ts +256 -0
  219. package/dist/types/components/comp/app/MainBar.vue.d.ts +20 -0
  220. package/dist/types/components/comp/app/MainContainer.vue.d.ts +18 -0
  221. package/dist/types/components/comp/app/MainContent.vue.d.ts +26 -0
  222. package/dist/types/components/comp/app/MainSubBar.vue.d.ts +36 -0
  223. package/dist/types/components/comp/app/MenuShot.vue.d.ts +79 -0
  224. package/dist/types/components/comp/index.d.ts +25 -0
  225. package/dist/types/components/comp/items/UTableColumn.vue.d.ts +72 -0
  226. package/dist/types/components/comp/items/appItem.vue.d.ts +22 -0
  227. package/dist/types/components/comp/items/boxItem.vue.d.ts +22 -0
  228. package/dist/types/components/comp/items/callitem.d.ts +2 -0
  229. package/dist/types/components/comp/items/cardItem.vue.d.ts +22 -0
  230. package/dist/types/components/comp/items/collapseItem.vue.d.ts +22 -0
  231. package/dist/types/components/comp/items/dytableItem.vue.d.ts +22 -0
  232. package/dist/types/components/comp/items/groupItem.vue.d.ts +23 -0
  233. package/dist/types/components/comp/items/otherItem.vue.d.ts +22 -0
  234. package/dist/types/components/comp/items/splitterItem.vue.d.ts +22 -0
  235. package/dist/types/components/comp/items/tabItem.vue.d.ts +22 -0
  236. package/dist/types/components/comp/items/tabPanelItem.vue.d.ts +102 -0
  237. package/dist/types/components/comp/items/tableColumnItem.vue.d.ts +96 -0
  238. package/dist/types/components/comp/items/tableItem.vue.d.ts +22 -0
  239. package/dist/types/components/comp/items/tablebtn.vue.d.ts +60 -0
  240. package/dist/types/components/comp/selfcomp.d.ts +2 -0
  241. package/dist/types/components/comp/utils/DataPicker.vue.d.ts +85 -0
  242. package/dist/types/components/comp/utils/DataSelectorUtils.d.ts +23 -0
  243. package/dist/types/components/comp/utils/DataTag.vue.d.ts +19 -0
  244. package/dist/types/components/cron/Crontab-Day.vue.d.ts +29 -0
  245. package/dist/types/components/cron/Crontab-Hour.vue.d.ts +28 -0
  246. package/dist/types/components/cron/Crontab-Min.vue.d.ts +28 -0
  247. package/dist/types/components/cron/Crontab-Month.vue.d.ts +28 -0
  248. package/dist/types/components/cron/Crontab-Result.vue.d.ts +11 -0
  249. package/dist/types/components/cron/Crontab-Second.vue.d.ts +31 -0
  250. package/dist/types/components/cron/Crontab-Week.vue.d.ts +29 -0
  251. package/dist/types/components/cron/Crontab-Year.vue.d.ts +30 -0
  252. package/dist/types/components/cron/Crontab.vue.d.ts +15 -0
  253. package/dist/types/components/enums/ModuleEnums.d.ts +10 -0
  254. package/dist/types/components/enums/ServiceEnums.d.ts +18 -0
  255. package/dist/types/components/formcomp/items/allitem.d.ts +2 -0
  256. package/dist/types/components/formcomp/items/area-item.vue.d.ts +19 -0
  257. package/dist/types/components/formcomp/items/audio-item.vue.d.ts +19 -0
  258. package/dist/types/components/formcomp/items/autocomplete-item.vue.d.ts +19 -0
  259. package/dist/types/components/formcomp/items/barcode-item.vue.d.ts +19 -0
  260. package/dist/types/components/formcomp/items/base-json-item.vue.d.ts +93 -0
  261. package/dist/types/components/formcomp/items/button-item.vue.d.ts +19 -0
  262. package/dist/types/components/formcomp/items/cascade-item.vue.d.ts +19 -0
  263. package/dist/types/components/formcomp/items/checkbox-item.vue.d.ts +19 -0
  264. package/dist/types/components/formcomp/items/color-item.vue.d.ts +19 -0
  265. package/dist/types/components/formcomp/items/cron-item.vue.d.ts +19 -0
  266. package/dist/types/components/formcomp/items/datapicker-item.vue.d.ts +19 -0
  267. package/dist/types/components/formcomp/items/date-item.vue.d.ts +19 -0
  268. package/dist/types/components/formcomp/items/datetime-item.vue.d.ts +19 -0
  269. package/dist/types/components/formcomp/items/depart-item.vue.d.ts +16 -0
  270. package/dist/types/components/formcomp/items/description-item.vue.d.ts +19 -0
  271. package/dist/types/components/formcomp/items/dialog-input-item.vue.d.ts +19 -0
  272. package/dist/types/components/formcomp/items/dialog-item.vue.d.ts +19 -0
  273. package/dist/types/components/formcomp/items/divider-item.vue.d.ts +19 -0
  274. package/dist/types/components/formcomp/items/drawer-item.vue.d.ts +19 -0
  275. package/dist/types/components/formcomp/items/empty-item.vue.d.ts +16 -0
  276. package/dist/types/components/formcomp/items/html-item.vue.d.ts +19 -0
  277. package/dist/types/components/formcomp/items/htmleditor-item.vue.d.ts +20 -0
  278. package/dist/types/components/formcomp/items/icon-item.vue.d.ts +19 -0
  279. package/dist/types/components/formcomp/items/image-item.vue.d.ts +19 -0
  280. package/dist/types/components/formcomp/items/index.d.ts +57 -0
  281. package/dist/types/components/formcomp/items/input-item.vue.d.ts +13 -0
  282. package/dist/types/components/formcomp/items/input-tag-item.vue.d.ts +19 -0
  283. package/dist/types/components/formcomp/items/json-array-item.vue.d.ts +19 -0
  284. package/dist/types/components/formcomp/items/json-item.vue.d.ts +19 -0
  285. package/dist/types/components/formcomp/items/link-item.vue.d.ts +19 -0
  286. package/dist/types/components/formcomp/items/location-item.vue.d.ts +19 -0
  287. package/dist/types/components/formcomp/items/markdown-item.vue.d.ts +20 -0
  288. package/dist/types/components/formcomp/items/number-item.vue.d.ts +19 -0
  289. package/dist/types/components/formcomp/items/number-range-item.vue.d.ts +19 -0
  290. package/dist/types/components/formcomp/items/org-item.vue.d.ts +19 -0
  291. package/dist/types/components/formcomp/items/page-select-item.vue.d.ts +19 -0
  292. package/dist/types/components/formcomp/items/password-item.vue.d.ts +19 -0
  293. package/dist/types/components/formcomp/items/progress-item.vue.d.ts +19 -0
  294. package/dist/types/components/formcomp/items/qrcode-item.vue.d.ts +19 -0
  295. package/dist/types/components/formcomp/items/radio-item.vue.d.ts +19 -0
  296. package/dist/types/components/formcomp/items/rate-item.vue.d.ts +19 -0
  297. package/dist/types/components/formcomp/items/select-item.vue.d.ts +19 -0
  298. package/dist/types/components/formcomp/items/signature-item.vue.d.ts +19 -0
  299. package/dist/types/components/formcomp/items/slider-item.vue.d.ts +19 -0
  300. package/dist/types/components/formcomp/items/starhorse-form-item.vue.d.ts +23 -0
  301. package/dist/types/components/formcomp/items/switch-item.vue.d.ts +19 -0
  302. package/dist/types/components/formcomp/items/tag-item.vue.d.ts +19 -0
  303. package/dist/types/components/formcomp/items/text-item.vue.d.ts +19 -0
  304. package/dist/types/components/formcomp/items/textarea-item.vue.d.ts +19 -0
  305. package/dist/types/components/formcomp/items/time-item.vue.d.ts +19 -0
  306. package/dist/types/components/formcomp/items/time-picker-item.vue.d.ts +19 -0
  307. package/dist/types/components/formcomp/items/transfer-item.vue.d.ts +19 -0
  308. package/dist/types/components/formcomp/items/tree-select-item.vue.d.ts +19 -0
  309. package/dist/types/components/formcomp/items/tselect-item.vue.d.ts +19 -0
  310. package/dist/types/components/formcomp/items/unknown-item.vue.d.ts +16 -0
  311. package/dist/types/components/formcomp/items/upload-item.vue.d.ts +19 -0
  312. package/dist/types/components/formcomp/items/user-item.vue.d.ts +19 -0
  313. package/dist/types/components/formcomp/items/usercomp-item.vue.d.ts +20 -0
  314. package/dist/types/components/formcomp/items/view-markdown-item.vue.d.ts +19 -0
  315. package/dist/types/components/formcomp/utils/EditDataDialog.vue.d.ts +55 -0
  316. package/dist/types/components/formcomp/utils/FieldList.vue.d.ts +7 -0
  317. package/dist/types/components/formcomp/utils/FormulaEngine.d.ts +129 -0
  318. package/dist/types/components/formcomp/utils/ItemRelationEventUtils.d.ts +16 -0
  319. package/dist/types/components/formcomp/utils/prefixSuffixUtils.d.ts +28 -0
  320. package/dist/types/components/help.vue.d.ts +26 -0
  321. package/dist/types/components/menu/MenuItem.vue.d.ts +49 -0
  322. package/dist/types/components/menu/SubMenu.vue.d.ts +25 -0
  323. package/dist/types/components/menu/SubSystemMenu.vue.d.ts +102 -0
  324. package/dist/types/components/system/ContentMenu.vue.d.ts +77 -0
  325. package/dist/types/components/system/PageConfig.vue.d.ts +66 -0
  326. package/dist/types/components/system/StarHorseButtonList.vue.d.ts +72 -0
  327. package/dist/types/components/system/StarHorseCodeEditor.vue.d.ts +258 -0
  328. package/dist/types/components/system/StarHorseDiffEditor.vue.d.ts +229 -0
  329. package/dist/types/components/system/StarHorseEditor.vue.d.ts +126 -0
  330. package/dist/types/components/system/StarHorseMenu.vue.d.ts +38 -0
  331. package/dist/types/components/system/StarHorseSidebar.vue.d.ts +13 -0
  332. package/dist/types/components/system/StarHorseSvg.vue.d.ts +112 -0
  333. package/dist/types/components/system/SvgLoader.vue.d.ts +59 -0
  334. package/dist/types/components/system/SystemComp.d.ts +2 -0
  335. package/dist/types/components/system/code-editor/ActivityBar.vue.d.ts +11 -0
  336. package/dist/types/components/system/code-editor/ApiConfigDialog.vue.d.ts +18 -0
  337. package/dist/types/components/system/code-editor/ConsolePanel.vue.d.ts +20 -0
  338. package/dist/types/components/system/code-editor/ContextMenu.vue.d.ts +24 -0
  339. package/dist/types/components/system/code-editor/FileTreeNode.vue.d.ts +68 -0
  340. package/dist/types/components/system/code-editor/MenuBar.vue.d.ts +14 -0
  341. package/dist/types/components/system/code-editor/StatusBar.vue.d.ts +17 -0
  342. package/dist/types/components/system/code-editor/TabBar.vue.d.ts +14 -0
  343. package/dist/types/components/system/code-editor/constants.d.ts +78 -0
  344. package/dist/types/components/system/code-editor/index.d.ts +7 -0
  345. package/dist/types/components/system/code-editor/theme.d.ts +10 -0
  346. package/dist/types/components/system/code-editor/types.d.ts +39 -0
  347. package/dist/types/components/system/code-editor/useApiConfig.d.ts +55 -0
  348. package/dist/types/components/system/code-editor/useConsole.d.ts +17 -0
  349. package/dist/types/components/system/code-editor/useFileApi.d.ts +57 -0
  350. package/dist/types/components/system/code-editor/useFileTree.d.ts +34 -0
  351. package/dist/types/components/system/code-editor/useIdeActions.d.ts +27 -0
  352. package/dist/types/components/system/code-editor/useLsp.d.ts +12 -0
  353. package/dist/types/components/system/code-editor/useModuleDialog.d.ts +47 -0
  354. package/dist/types/components/system/index.d.ts +8 -0
  355. package/dist/types/components/types/ApiUrls.d.ts +192 -0
  356. package/dist/types/components/types/BtnAction.d.ts +35 -0
  357. package/dist/types/components/types/BtnAuth.d.ts +43 -0
  358. package/dist/types/components/types/CompInfo.d.ts +50 -0
  359. package/dist/types/components/types/DialogProps.d.ts +54 -0
  360. package/dist/types/components/types/DyCompField.d.ts +14 -0
  361. package/dist/types/components/types/DynamicNode.d.ts +34 -0
  362. package/dist/types/components/types/FormType.d.ts +113 -0
  363. package/dist/types/components/types/ItemPreps.d.ts +155 -0
  364. package/dist/types/components/types/MenusInfo.d.ts +44 -0
  365. package/dist/types/components/types/PageFieldInfo.d.ts +559 -0
  366. package/dist/types/components/types/PageProps.d.ts +177 -0
  367. package/dist/types/components/types/Params.d.ts +146 -0
  368. package/dist/types/components/types/RuleType.d.ts +10 -0
  369. package/dist/types/components/types/SearchProps.d.ts +59 -0
  370. package/dist/types/components/types/ShortKey.d.ts +30 -0
  371. package/dist/types/components/types/StarHorseType.d.ts +18 -0
  372. package/dist/types/components/types/UserinfoType.d.ts +46 -0
  373. package/dist/types/components/types/index.d.ts +18 -0
  374. package/dist/types/index.d.ts +58 -1
  375. package/dist/types/lang/en_US.d.ts +1052 -0
  376. package/dist/types/lang/index.d.ts +17 -0
  377. package/dist/types/lang/zh_CN.d.ts +1070 -0
  378. package/dist/types/plugins/AblesPlugin.d.ts +48 -0
  379. package/dist/types/plugins/registerCompPlugin.d.ts +10 -0
  380. package/dist/types/sample/commonpage/dynamic_form_utils.d.ts +89 -0
  381. package/dist/types/store/ButtonPermission.d.ts +32 -0
  382. package/dist/types/store/ConsumerView.d.ts +22 -0
  383. package/dist/types/store/CopyerOperation.d.ts +35 -0
  384. package/dist/types/store/DesignForm.d.ts +1731 -0
  385. package/dist/types/store/DesignPage.d.ts +149 -0
  386. package/dist/types/store/DynamicForm.d.ts +52 -0
  387. package/dist/types/store/FormDataCache.d.ts +4622 -0
  388. package/dist/types/store/GlobalConfig.d.ts +13 -0
  389. package/dist/types/store/SelfOperation.d.ts +681 -0
  390. package/dist/types/store/StoreManager.d.ts +14763 -0
  391. package/dist/types/store/UserInfo.d.ts +44 -0
  392. package/dist/types/store/index.d.ts +2 -0
  393. package/dist/types/theme/localStorge.d.ts +10 -0
  394. package/dist/types/theme/theme.d.ts +24 -0
  395. package/dist/types/utils/FieldOperationUtils.d.ts +6 -0
  396. package/dist/types/utils/auth.d.ts +25 -0
  397. package/dist/types/utils/message.d.ts +26 -0
  398. package/dist/types/utils/preview.d.ts +16 -0
  399. package/dist/utils/FieldOperationUtils.d.ts +6 -0
  400. package/dist/utils/auth.d.ts +25 -0
  401. package/dist/utils/message.d.ts +25 -0
  402. package/dist/utils/preview.d.ts +16 -0
  403. 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,9 @@
1
+ /**
2
+ * 生成设备 ID
3
+ * @param userIp
4
+ */
5
+ export declare function generateDeviceId(userIp: string): Promise<string>;
6
+ /**
7
+ * 获取设备 ID
8
+ */
9
+ export declare function getFingerId(): string;
@@ -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;