star-horse-lowcode 2.7.62 → 2.7.65

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 (221) hide show
  1. package/.env.development +3 -0
  2. package/.env.production +3 -0
  3. package/.eslintrc-auto-import.json +77 -0
  4. package/.gitignore +27 -0
  5. package/.idea/.gitignore +5 -0
  6. package/.idea/MarsCodeWorkspaceAppSettings.xml +6 -0
  7. package/.idea/inspectionProfiles/Project_Default.xml +7 -0
  8. package/.idea/modules.xml +8 -0
  9. package/.idea/testcode.iml +12 -0
  10. package/.idea/vcs.xml +6 -0
  11. package/.idea/watcherTasks.xml +4 -0
  12. package/.idea/workspace.xml +207 -0
  13. package/.npmignore +21 -0
  14. package/.prettierignore +26 -0
  15. package/README.md +2 -0
  16. package/auto-imports.d.ts +137 -0
  17. package/components.d.ts +189 -0
  18. package/dist/assets/index.css +1 -1
  19. package/dist/index.es.js +941 -720
  20. package/dist/types/index.d.ts +8 -8
  21. package/eslint.config.js +37 -0
  22. package/index.html +14 -0
  23. package/package-lock.json +8276 -0
  24. package/package.json +6 -6
  25. package/prettier.config.js +20 -0
  26. package/public/logo.svg +660 -0
  27. package/src/App.vue +11 -0
  28. package/src/api/date_utils.ts +219 -0
  29. package/src/api/finger_utils.ts +71 -0
  30. package/src/api/form_utils.ts +281 -0
  31. package/src/api/jquery.min.js +2 -0
  32. package/src/api/pcas-code.json +1 -0
  33. package/src/api/settings.ts +81 -0
  34. package/src/api/star_horse_apis.ts +196 -0
  35. package/src/api/star_horse_utils.ts +797 -0
  36. package/src/api/system.ts +351 -0
  37. package/src/api/user_func.ts +147 -0
  38. package/src/api/valid_utils.ts +165 -0
  39. package/src/assets/css/index.scss +908 -0
  40. package/src/assets/icons.css +574 -0
  41. package/src/assets/star-horse-icons.woff +0 -0
  42. package/src/components/comp/ShDynamicForm.vue +160 -0
  43. package/src/components/comp/ShForm.vue +30 -0
  44. package/src/components/comp/ShTableListColumn.vue +61 -0
  45. package/src/components/comp/StarHorseDataSelector.vue +139 -0
  46. package/src/components/comp/StarHorseDataView.vue +110 -0
  47. package/src/components/comp/StarHorseDataViewItems.vue +61 -0
  48. package/src/components/comp/StarHorseDataViewTable.vue +102 -0
  49. package/src/components/comp/StarHorseDialog.vue +383 -0
  50. package/src/components/comp/StarHorseDraggable.vue +401 -0
  51. package/src/components/comp/StarHorseForm.vue +458 -0
  52. package/src/components/comp/StarHorseFormItem.vue +82 -0
  53. package/src/components/comp/StarHorseFormList.vue +516 -0
  54. package/src/components/comp/StarHorseFormTable.vue +56 -0
  55. package/src/components/comp/StarHorseIcon.vue +76 -0
  56. package/src/components/comp/StarHorseItem.vue +302 -0
  57. package/src/components/comp/StarHorseJsonEditor.vue +115 -0
  58. package/src/components/comp/StarHorsePopover.vue +66 -0
  59. package/src/components/comp/StarHorseSearchComp.vue +253 -0
  60. package/src/components/comp/StarHorseStaticTable.vue +395 -0
  61. package/src/components/comp/StarHorseTableColumn.vue +249 -0
  62. package/src/components/comp/StarHorseTableComp.vue +1193 -0
  63. package/src/components/comp/StarHorseTableViewColumn.vue +61 -0
  64. package/src/components/comp/StarHorseTree.vue +494 -0
  65. package/src/components/comp/index.ts +22 -0
  66. package/src/components/comp/items/UTableColumn.vue +65 -0
  67. package/src/components/comp/items/boxItem.vue +98 -0
  68. package/src/components/comp/items/callitem.ts +9 -0
  69. package/src/components/comp/items/cardItem.vue +152 -0
  70. package/src/components/comp/items/collapseItem.vue +134 -0
  71. package/src/components/comp/items/dytableItem.vue +135 -0
  72. package/src/components/comp/items/otherItem.vue +65 -0
  73. package/src/components/comp/items/tabItem.vue +155 -0
  74. package/src/components/comp/items/tabPanelItem.vue +110 -0
  75. package/src/components/comp/items/tableColumn.vue +129 -0
  76. package/src/components/comp/items/tableItem.vue +97 -0
  77. package/src/components/comp/items/tablebtn.vue +158 -0
  78. package/src/components/comp/items/viewBoxItem.vue +55 -0
  79. package/src/components/comp/items/viewCardItem.vue +47 -0
  80. package/src/components/comp/items/viewCollapseItem.vue +71 -0
  81. package/src/components/comp/items/viewDytableItem.vue +77 -0
  82. package/src/components/comp/items/viewOtherItem.vue +55 -0
  83. package/src/components/comp/items/viewTabItem.vue +77 -0
  84. package/src/components/comp/items/viewTabPanelItem.vue +54 -0
  85. package/src/components/comp/items/viewTableItem.vue +74 -0
  86. package/src/components/comp/selfcomp.ts +9 -0
  87. package/src/components/comp/utils/DataPicker.vue +302 -0
  88. package/src/components/comp/utils/DataTag.vue +51 -0
  89. package/src/components/cron/Crontab-Day.vue +230 -0
  90. package/src/components/cron/Crontab-Hour.vue +165 -0
  91. package/src/components/cron/Crontab-Min.vue +166 -0
  92. package/src/components/cron/Crontab-Month.vue +166 -0
  93. package/src/components/cron/Crontab-Result.vue +615 -0
  94. package/src/components/cron/Crontab-Second.vue +185 -0
  95. package/src/components/cron/Crontab-Week.vue +208 -0
  96. package/src/components/cron/Crontab-Year.vue +183 -0
  97. package/src/components/cron/Crontab.vue +474 -0
  98. package/src/components/enums/ModuleEnums.ts +10 -0
  99. package/src/components/enums/ServiceEnums.ts +18 -0
  100. package/src/components/formcomp/container/box-container.vue +162 -0
  101. package/src/components/formcomp/container/callitem.ts +9 -0
  102. package/src/components/formcomp/container/card-container.vue +170 -0
  103. package/src/components/formcomp/container/collapse-container.vue +133 -0
  104. package/src/components/formcomp/container/dytable-col.vue +448 -0
  105. package/src/components/formcomp/container/dytable-container.vue +57 -0
  106. package/src/components/formcomp/container/dytableUtils.ts +358 -0
  107. package/src/components/formcomp/container/group-box-container.vue +331 -0
  108. package/src/components/formcomp/container/index.ts +6 -0
  109. package/src/components/formcomp/container/tab-container.vue +153 -0
  110. package/src/components/formcomp/container/table-container.vue +249 -0
  111. package/src/components/formcomp/items/allitem.ts +9 -0
  112. package/src/components/formcomp/items/area-item.vue +116 -0
  113. package/src/components/formcomp/items/audio-item.vue +163 -0
  114. package/src/components/formcomp/items/autocomplete-item.vue +118 -0
  115. package/src/components/formcomp/items/barcode-item.vue +87 -0
  116. package/src/components/formcomp/items/base-json-item.vue +207 -0
  117. package/src/components/formcomp/items/button-item.vue +228 -0
  118. package/src/components/formcomp/items/cascade-item.vue +113 -0
  119. package/src/components/formcomp/items/checkbox-item.vue +97 -0
  120. package/src/components/formcomp/items/color-item.vue +70 -0
  121. package/src/components/formcomp/items/cron-item.vue +115 -0
  122. package/src/components/formcomp/items/datetime-item.vue +99 -0
  123. package/src/components/formcomp/items/depart-item.vue +51 -0
  124. package/src/components/formcomp/items/dialog-input-item.vue +207 -0
  125. package/src/components/formcomp/items/divider-item.vue +66 -0
  126. package/src/components/formcomp/items/html-item.vue +65 -0
  127. package/src/components/formcomp/items/htmleditor-item.vue +104 -0
  128. package/src/components/formcomp/items/icon-item.vue +195 -0
  129. package/src/components/formcomp/items/image-item.vue +247 -0
  130. package/src/components/formcomp/items/index.ts +44 -0
  131. package/src/components/formcomp/items/input-item.vue +150 -0
  132. package/src/components/formcomp/items/json-array-item.vue +67 -0
  133. package/src/components/formcomp/items/json-item.vue +66 -0
  134. package/src/components/formcomp/items/markdown-item.vue +77 -0
  135. package/src/components/formcomp/items/number-item.vue +94 -0
  136. package/src/components/formcomp/items/number-range-item.vue +278 -0
  137. package/src/components/formcomp/items/page-select-item.vue +407 -0
  138. package/src/components/formcomp/items/password-item.vue +71 -0
  139. package/src/components/formcomp/items/qrcode-item.vue +84 -0
  140. package/src/components/formcomp/items/radio-item.vue +112 -0
  141. package/src/components/formcomp/items/rate-item.vue +68 -0
  142. package/src/components/formcomp/items/select-item.vue +133 -0
  143. package/src/components/formcomp/items/signature-item.vue +216 -0
  144. package/src/components/formcomp/items/slider-item.vue +68 -0
  145. package/src/components/formcomp/items/starhorse-form-item.vue +334 -0
  146. package/src/components/formcomp/items/switch-item.vue +77 -0
  147. package/src/components/formcomp/items/tag-item.vue +77 -0
  148. package/src/components/formcomp/items/text-item.vue +75 -0
  149. package/src/components/formcomp/items/textarea-item.vue +85 -0
  150. package/src/components/formcomp/items/time-item.vue +77 -0
  151. package/src/components/formcomp/items/time-picker-item.vue +74 -0
  152. package/src/components/formcomp/items/transfer-item.vue +93 -0
  153. package/src/components/formcomp/items/tselect-item.vue +121 -0
  154. package/src/components/formcomp/items/unknown-item.vue +51 -0
  155. package/src/components/formcomp/items/upload-item.vue +189 -0
  156. package/src/components/formcomp/items/user-item.vue +177 -0
  157. package/src/components/formcomp/items/usercomp-item.vue +85 -0
  158. package/src/components/formcomp/items/view-markdown-item.vue +77 -0
  159. package/src/components/formcomp/utils/EditDataDialog.vue +67 -0
  160. package/src/components/formcomp/utils/FieldList.vue +125 -0
  161. package/src/components/formcomp/utils/ItemRelationEventUtils.ts +284 -0
  162. package/src/components/help.vue +31 -0
  163. package/src/components/menu/MenuItem.vue +95 -0
  164. package/src/components/menu/SubMenu.vue +68 -0
  165. package/src/components/menu/SubSystemMenu.vue +142 -0
  166. package/src/components/register.ts +24 -0
  167. package/src/components/system/ContentMenu.vue +260 -0
  168. package/src/components/system/StarHorseButtonList.vue +344 -0
  169. package/src/components/system/StarHorseMenu.vue +97 -0
  170. package/src/components/system/StarHorseSvg.vue +62 -0
  171. package/src/components/system/SystemComp.ts +9 -0
  172. package/src/components/system/index.ts +4 -0
  173. package/src/components/types/ApiUrls.ts +168 -0
  174. package/src/components/types/BtnAction.ts +51 -0
  175. package/src/components/types/BtnAuth.ts +43 -0
  176. package/src/components/types/CompInfo.ts +81 -0
  177. package/src/components/types/DialogProps.ts +55 -0
  178. package/src/components/types/DyCompField.ts +23 -0
  179. package/src/components/types/DynamicNode.ts +42 -0
  180. package/src/components/types/MenusInfo.ts +45 -0
  181. package/src/components/types/PageFieldInfo.ts +530 -0
  182. package/src/components/types/PageProps.ts +25 -0
  183. package/src/components/types/Params.ts +93 -0
  184. package/src/components/types/RuleType.ts +10 -0
  185. package/src/components/types/SearchProps.ts +42 -0
  186. package/src/components/types/ShortKey.ts +30 -0
  187. package/src/components/types/StarHorseType.ts +18 -0
  188. package/src/components/types/index.ts +15 -0
  189. package/src/config/element.ts +15 -0
  190. package/src/config/styles.ts +4 -0
  191. package/src/index.ts +98 -0
  192. package/src/install.ts +33 -0
  193. package/src/lang/en_US.ts +81 -0
  194. package/src/lang/index.ts +35 -0
  195. package/src/lang/zh_CN.ts +84 -0
  196. package/src/main.ts +57 -0
  197. package/src/plugins/AblesPlugin.ts +618 -0
  198. package/src/plugins/registerCompPlugin.ts +15 -0
  199. package/src/sample/test.vue +9 -0
  200. package/src/store/ButtonPermission.ts +101 -0
  201. package/src/store/ConsumerView.ts +52 -0
  202. package/src/store/ContinusConfig.ts +78 -0
  203. package/src/store/CopyerOperation.ts +74 -0
  204. package/src/store/DesignForm.ts +481 -0
  205. package/src/store/DesignPage.ts +59 -0
  206. package/src/store/DynamicForm.ts +241 -0
  207. package/src/store/GlobalConfig.ts +90 -0
  208. package/src/store/SelfOperation.ts +95 -0
  209. package/src/store/UserInfo.ts +88 -0
  210. package/src/store/index.ts +6 -0
  211. package/src/theme/localStorge.ts +16 -0
  212. package/src/theme/theme.ts +27 -0
  213. package/src/utils/FieldOperationUtils.ts +91 -0
  214. package/src/utils/auth.ts +83 -0
  215. package/src/utils/message.ts +69 -0
  216. package/src/utils/preview.ts +125 -0
  217. package/tsconfig.json +39 -0
  218. package/tsconfig.node.json +10 -0
  219. package/vite-env.d.ts +16 -0
  220. package/vite.config.ts +162 -0
  221. package/yarn.lock +4627 -0
@@ -0,0 +1,62 @@
1
+ <script setup lang="ts" name="StarHorseSvg">
2
+ import { computed, PropType } from "vue";
3
+
4
+ const props = defineProps({
5
+ className: { type: String },
6
+ title: { type: String, default: "" },
7
+ size: { type: String, default: "20px" },
8
+ width: { type: Number, default: 200 },
9
+ height: { type: Number, default: 200 },
10
+ data: { type: Object as PropType<any>, default: {} },
11
+ borderOffset: { type: Number, default: 0 },
12
+ color: { type: String, default: "var(--star-horse-style)" },
13
+ backgroundColor: { type: String, default: "#fff" },
14
+ borderColor: { type: String, default: "#ebebeb" },
15
+ borderWidth: { type: Number, default: 0 },
16
+ cursor: { type: String, default: "default" },
17
+ });
18
+ const svgClass = computed(() => {
19
+ if (props.className) {
20
+ return "svg-icon " + props.className;
21
+ } else {
22
+ return "svg-icon";
23
+ }
24
+ });
25
+ </script>
26
+ <style lang="scss" scoped>
27
+ .svg-icon {
28
+ cursor: v-bind(cursor);
29
+ width: v-bind(size);
30
+ height: v-bind(size);
31
+ color: v-bind(color);
32
+ margin-left: 0.35em;
33
+ margin-right: 0.35em;
34
+ vertical-align: -0.15em;
35
+ fill: currentColor;
36
+ }
37
+ </style>
38
+ <template>
39
+ <svg :class="svgClass" :width="width" :height="height">
40
+ <!--'+(width - borderOffset)/ data.viewBox[0]+','+(height - borderOffset) / data.viewBox[1]+'-->
41
+ <g
42
+ :transform="
43
+ 'scale(' +
44
+ (width - borderOffset) / data.viewBox[0] +
45
+ ',' +
46
+ (height - borderOffset) / data.viewBox[1] +
47
+ ') translate(0,0) matrix(1,0,0,1,0,0)'
48
+ "
49
+ >
50
+ <path
51
+ :class="data.outlined ? 'outlined' : ''"
52
+ :d="data.path"
53
+ vector-effect="non-scaling-stroke"
54
+ stroke-linecap="butt"
55
+ stroke-miterlimit="8"
56
+ :fill="color"
57
+ :stroke="borderColor"
58
+ :stroke-width="borderWidth"
59
+ ></path>
60
+ </g>
61
+ </svg>
62
+ </template>
@@ -0,0 +1,9 @@
1
+ import { App, defineAsyncComponent } from "vue";
2
+
3
+ const items = import.meta.glob("@/components/system/*.vue");
4
+ export default function install(app: App<Element>) {
5
+ for (const [key, value] of Object.entries(items)) {
6
+ const name = key.slice(key.lastIndexOf("/") + 1, key.lastIndexOf("."));
7
+ app.component(name, defineAsyncComponent(value));
8
+ }
9
+ }
@@ -0,0 +1,4 @@
1
+ export { default as StarHorseButtonList } from "./StarHorseButtonList.vue";
2
+ export { default as StarHorseMenu } from "./StarHorseMenu.vue";
3
+ export { default as StarHorseSvg } from "./StarHorseSvg.vue";
4
+ export { default as ContentMenu } from "./ContentMenu.vue";
@@ -0,0 +1,168 @@
1
+ import { SearchParams } from "@/components/types/Params";
2
+
3
+ /**
4
+ * 组件用到的属性
5
+ */
6
+ export type ApiUrls = {
7
+ /**
8
+ * 分页接口
9
+ */
10
+ pageListUrl: string;
11
+ /**
12
+ * merge接口
13
+ */
14
+ mergeUrl: string;
15
+ /**
16
+ * merge暂存接口
17
+ */
18
+ mergeDraftUrl: string;
19
+ /**
20
+ * 批量Merge接口
21
+ */
22
+ batchMergeUrl: string;
23
+ /**
24
+ * 批量暂存接口
25
+ */
26
+ batchMergeDraftUrl: string;
27
+ /**
28
+ * 根据Id获取数据接口
29
+ */
30
+ loadByIdUrl: string;
31
+ /**
32
+ * 根据Id获取数据接口
33
+ */
34
+ loadByIdForViewUrl: string;
35
+ /**
36
+ * 删除数据接口
37
+ */
38
+ deleteUrl: string;
39
+ /**
40
+ * 根据条件删除数据
41
+ */
42
+ deleteByConditionUrl?: string;
43
+ /**
44
+ * 导出数据接口
45
+ */
46
+ exportAllUrl?: string;
47
+ /**
48
+ * 下载模板接口
49
+ */
50
+ downloadTemplateUrl?: string;
51
+ /**
52
+ * 自定义查询接口 返回满足条件的所有数据
53
+ */
54
+ listConditionUrl?: string;
55
+ /**
56
+ * 自定义查询接口 返回满足条件的一条数据
57
+ */
58
+ oneConditionUrl?: string;
59
+ /**
60
+ * 上载接口
61
+ */
62
+ uploadUrl?: string;
63
+ /**
64
+ * 导入数据接口
65
+ */
66
+ importUrl?: string;
67
+ /**
68
+ * 执行接口
69
+ */
70
+ executeUrl?: string;
71
+ /**
72
+ * 修改字段接口
73
+ */
74
+ modifyColumnsUrl?: string;
75
+ /**
76
+ * 接口路径前缀
77
+ */
78
+ basePrefix?: string;
79
+ /**
80
+ * 应用名称
81
+ */
82
+ appName?: string;
83
+ /**
84
+ * 权限隔离属性字段,如果提供则所有Post请求都会带上该字段
85
+ * 接口过滤条件
86
+ */
87
+ condition?: Array<SearchParams>;
88
+ /**
89
+ * 是否接口转发
90
+ */
91
+ redirect?: boolean;
92
+ /**
93
+ * 接口请求方式
94
+ */
95
+ httpMethod?: string;
96
+ /**
97
+ * 数据请求方式
98
+ */
99
+ dataType?: string;
100
+ /**
101
+ * 分页接口
102
+ */
103
+ pageAction?: Function;
104
+ /**
105
+ * 编辑接口
106
+ */
107
+ mergeAction?: Function;
108
+ /**
109
+ * 编辑暂存接口
110
+ */
111
+ mergeDraftAction?: Function;
112
+ /**
113
+ * 批量编辑接口
114
+ */
115
+ batchMergeAction?: Function;
116
+ /**
117
+ * 批量编辑暂存接口
118
+ */
119
+ batchMergeDraftAction?: Function;
120
+ /**
121
+ * 根据Id获取数据接口
122
+ */
123
+ loadByIdAction?: Function;
124
+ /**
125
+ * 删除数据接口
126
+ */
127
+ deleteAction?: Function;
128
+ /**
129
+ * 根据条件删除数据
130
+ */
131
+ deleteByConditionAction?: Function;
132
+ /**
133
+ * 导出数据接口
134
+ */
135
+ exportDataAction?: Function;
136
+ /**
137
+ * 下载模板接口
138
+ */
139
+ downloadTemplateAction?: Function;
140
+ /**
141
+ * 自定义查询接口
142
+ */
143
+ queryConditionAction?: Function;
144
+ /**
145
+ * 自定义查询接口
146
+ */
147
+ queryOneByConditionAction?: Function;
148
+ /**
149
+ * 上载接口
150
+ */
151
+ uploadAction?: Function;
152
+ /**
153
+ * 导入数据接口
154
+ */
155
+ importAction?: Function;
156
+ /**
157
+ * 执行接口
158
+ */
159
+ executeAction?: Function;
160
+ /**
161
+ * 修改字段接口,
162
+ * 接收的参数为:{
163
+ * columnsInfo:{},//要修改的字段及修改后的值
164
+ * conditions:[] //修改条件
165
+ * }
166
+ */
167
+ modifyColumnsAction?: Function;
168
+ };
@@ -0,0 +1,51 @@
1
+ import { SearchParams } from "@/components/types/Params";
2
+
3
+ export declare interface DynamicParamField {
4
+ //参数名称
5
+ paramName: string;
6
+ //匹配类型
7
+ matchType: string;
8
+ //默认值
9
+ defaultValue?: any;
10
+ }
11
+
12
+ /**
13
+ * 按钮事件
14
+ */
15
+ export declare interface BtnAction {
16
+ //视图类型
17
+ viewType: "inter" | "comp" | "code" | "method";
18
+ //动态表单参数
19
+ idDynamicForm?: string;
20
+ //动态组件名称
21
+ componentName?: string;
22
+ //是否动态参数
23
+ isDynamicParam?: string;
24
+ //动态参数
25
+ params?: SearchParams[] | DynamicParamField[];
26
+ //接口地址
27
+ url?: string;
28
+ //请求方式
29
+ method?: string;
30
+ //是否需要确认
31
+ needConfirm?: string;
32
+ //确认提示信息
33
+ confirmMsg?: string;
34
+ //是否需要刷新
35
+ needRefresh?: string;
36
+ /**
37
+ * 接口执行完成后的动作,
38
+ * assignCurrentName 赋值当前名称
39
+ * assignForm 赋值给表单
40
+ */
41
+
42
+ afterAction?: string;
43
+ /**
44
+ * 执行函数
45
+ */
46
+ actions?: Function;
47
+ /**
48
+ * js代码块
49
+ */
50
+ code?: string;
51
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * 按钮自定义方法跳转
3
+ */
4
+ export declare interface BtnAuth {
5
+ /**
6
+ * 按钮名字
7
+ */
8
+ btnName: string;
9
+ /**
10
+ * 图标
11
+ */
12
+ icon?: string;
13
+ /**
14
+ * 标签名字
15
+ */
16
+ labelName: string;
17
+ /**
18
+ * 自定义调用方法
19
+ */
20
+ exec?: Function;
21
+ /**
22
+ * 是否禁用 Y 是 N否
23
+ */
24
+ disabled?: string;
25
+ /**
26
+ * 子节点
27
+ */
28
+ children?: BtnAuth[];
29
+ }
30
+ /**
31
+ * 按钮响应事件前置校验
32
+ */
33
+ export declare interface PreValid {
34
+ authority: string;
35
+ /**
36
+ * 校验方法
37
+ */
38
+ valid: Function;
39
+ /**
40
+ * 校验失败提示信息
41
+ */
42
+ msg?: string;
43
+ }
@@ -0,0 +1,81 @@
1
+ /**
2
+ * 组件信息
3
+ */
4
+ interface CompInfo {
5
+ //ID
6
+ id?: string;
7
+ //属性名称
8
+ name: string;
9
+ //标签名称
10
+ label: string;
11
+ //是否允许拖拽,默认允许
12
+ disableDrag: boolean;
13
+ //子元素
14
+ items?: Array<any>;
15
+ }
16
+
17
+ /**
18
+ * 定义折叠面板数据格式
19
+ */
20
+ export interface CustomerItem {
21
+ //折叠面板名称
22
+ name: string;
23
+ //折叠面板标题
24
+ title: string;
25
+ //面板内的数据元素
26
+ compItems?: Array<CompInfo>;
27
+ }
28
+
29
+ /**
30
+ * 节点信息
31
+ */
32
+ export interface NodeInfo {
33
+ //节点Id
34
+ id?: string;
35
+ //节点索引
36
+ index: number;
37
+ //节点样式
38
+ shape: string;
39
+ //节点名称
40
+ name: string;
41
+ //节点类型为空则取normal
42
+ compType?: string;
43
+ //标签名称
44
+ label: string;
45
+ //业务数据
46
+ data?: any;
47
+ //节点的x坐标
48
+ posX?: number;
49
+ //节点的y坐标
50
+ posY?: number;
51
+ //节点图标
52
+ icon?: string;
53
+ //节点宽度
54
+ width?: number;
55
+ //行高
56
+ lineHeight?: number;
57
+ //表格时的字段属性
58
+ items?: Array<any>;
59
+ }
60
+
61
+ /**
62
+ * 边构建信息
63
+ */
64
+ export interface EdgeInfo {
65
+ //边Id
66
+ id?: string;
67
+ //连接起点组件Id
68
+ sourceId: string;
69
+ //链接终点组件Id
70
+ targetId: string;
71
+ //链接起点桩
72
+ sourcePoint: string;
73
+ //链接终点桩
74
+ targetPoint: string;
75
+ //业务数据
76
+ data?: any;
77
+ //标签名称
78
+ label: string;
79
+ //标签颜色
80
+ color: string;
81
+ }
@@ -0,0 +1,55 @@
1
+ import { ApiUrls } from "@/components/types/ApiUrls";
2
+
3
+ /**
4
+ * 弹窗属性
5
+ */
6
+ export type DialogProps = {
7
+ /**
8
+ * 批量编辑标题
9
+ */
10
+ batchDialogTitle?: string;
11
+ /**
12
+ * 编辑标题
13
+ */
14
+ dialogTitle?: string;
15
+ /**
16
+ * 批量编辑弹窗控制变量
17
+ */
18
+ batchEditVisible?: boolean;
19
+ /**
20
+ * 编辑弹窗控制变量
21
+ */
22
+ editVisible?: boolean;
23
+ /**
24
+ * 上传组件控制变量
25
+ */
26
+ uploadVisible?: boolean;
27
+ /**
28
+ * 查看数据控制变量
29
+ */
30
+ viewVisible?: boolean;
31
+ /**
32
+ * 弹窗显示/隐藏备用1
33
+ */
34
+ bakeVisible1?: boolean;
35
+ /**
36
+ * 弹窗显示/隐藏备用2
37
+ */
38
+ bakeVisible2?: boolean;
39
+ /**
40
+ * 弹窗显示/隐藏备用3
41
+ */
42
+ bakeVisible3?: boolean;
43
+ /**
44
+ * 数据id
45
+ */
46
+ ids?: number | string | undefined | null;
47
+ /**
48
+ * 是否扩展表
49
+ */
50
+ isExpand?: boolean;
51
+ /**
52
+ * 扩展表的接口API
53
+ */
54
+ expandUrl?: ApiUrls;
55
+ };
@@ -0,0 +1,23 @@
1
+ export interface DyCompField {
2
+ //组件名称
3
+ name: string;
4
+ //模板名称
5
+ template: any;
6
+ //数据定义
7
+ data?: any;
8
+ //参数
9
+ props?: any;
10
+ //执行方法
11
+ methods?: any;
12
+ //向外传递的事件
13
+ emits?: Array<string>;
14
+ //挂着方法
15
+ onMounted?: Function;
16
+ computed?: any;
17
+ //组件
18
+ components?: any;
19
+ //
20
+ onActivated?: Function;
21
+ onDeactivated?: Function;
22
+ watch?: any;
23
+ }
@@ -0,0 +1,42 @@
1
+ export declare interface DynamicNode {
2
+ /**
3
+ * 节点ID
4
+ */
5
+ id: string;
6
+ /**
7
+ * 层级
8
+ */
9
+ zIndex?: number;
10
+ /**
11
+ * 节点的宽度
12
+ */
13
+ width: number;
14
+ /**
15
+ * 节点的高度
16
+ */
17
+ height: number;
18
+ /**
19
+ * 节点的left位置
20
+ */
21
+ left: number;
22
+ /**
23
+ * 节点的Top位置
24
+ */
25
+ top: number;
26
+ /**
27
+ * 节点名称
28
+ */
29
+ name: string;
30
+ /**
31
+ * 节点类型
32
+ */
33
+ type?: string;
34
+ /**
35
+ * 节点属性
36
+ */
37
+ properties?: any;
38
+ /**
39
+ * 子节点
40
+ */
41
+ children?: DynamicNode[];
42
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Meta 信息
3
+ */
4
+ interface Meta {
5
+ /**
6
+ * 标题
7
+ */
8
+ title: string;
9
+ /**
10
+ * 菜单Id
11
+ */
12
+ menuId: string;
13
+ /**
14
+ * 是否缓存页面
15
+ */
16
+ keepAlive: boolean;
17
+ /**
18
+ * 菜单图标
19
+ */
20
+ menuIcon: string;
21
+ }
22
+
23
+ /**
24
+ * 菜单信息
25
+ */
26
+ export declare interface MenusInfo {
27
+ /**
28
+ * 菜单路径
29
+ */
30
+ path: string;
31
+ /* @vite-ignore */
32
+ component: object;
33
+ /**
34
+ * 菜单名称
35
+ */
36
+ name: string;
37
+ /**
38
+ * 子菜单
39
+ */
40
+ children: Array<MenusInfo>;
41
+ /**
42
+ * 菜单meta 信息
43
+ */
44
+ meta: Meta;
45
+ }