super-page-runtime 2.0.19 → 2.0.25

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 (195) hide show
  1. package/dist/es/components/runtime/utils/api/api-util.js +18 -16
  2. package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +206 -0
  4. package/dist/es/components/runtime/utils/assemblys-config.js +16 -7
  5. package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
  6. package/dist/es/components/runtime/utils/common-util.js +8 -12
  7. package/dist/es/components/runtime/utils/events/event-util.d.ts +14 -0
  8. package/dist/es/components/runtime/utils/events/event-util.js +101 -32
  9. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -0
  10. package/dist/es/components/runtime/utils/events/standard-event.js +189 -133
  11. package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
  12. package/dist/es/components/runtime/utils/form/scan-util.js +191 -0
  13. package/dist/es/components/runtime/utils/global-refs.js +12 -0
  14. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  15. package/dist/es/components/runtime/utils/page-helper-util.js +20 -4
  16. package/dist/es/components/runtime/utils/page-init-util.js +9 -15
  17. package/dist/es/components/runtime/utils/table-utils.js +4 -5
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
  19. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
  20. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
  21. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
  22. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
  23. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  24. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +207 -0
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +99 -68
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -2
  27. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
  28. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
  29. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
  30. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
  31. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  32. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
  33. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +24 -1
  34. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
  35. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  36. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
  37. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +96 -26
  38. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  39. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
  40. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
  41. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
  42. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -2
  43. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
  44. package/dist/es/components/runtime/views/super-page.vue.js +18 -7
  45. package/package.json +3 -2
  46. package/dist/lib/_virtual/AttributeMap.js +0 -4
  47. package/dist/lib/_virtual/Delta.js +0 -4
  48. package/dist/lib/_virtual/Op.js +0 -4
  49. package/dist/lib/_virtual/OpIterator.js +0 -4
  50. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  51. package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
  52. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  53. package/dist/lib/_virtual/dayjs.min.js +0 -4
  54. package/dist/lib/_virtual/index.js +0 -4
  55. package/dist/lib/_virtual/index2.js +0 -4
  56. package/dist/lib/_virtual/index3.js +0 -4
  57. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  58. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  59. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  60. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  61. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  62. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  63. package/dist/lib/components/runtime/index.d.ts +0 -4
  64. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
  65. package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
  66. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
  67. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
  68. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
  69. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
  70. package/dist/lib/components/runtime/utils/common-util.js +0 -94
  71. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  72. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  73. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
  74. package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
  75. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
  76. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
  77. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
  78. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
  79. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  80. package/dist/lib/components/runtime/utils/global-refs.js +0 -65
  81. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
  82. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  83. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
  84. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
  85. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
  86. package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
  87. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  88. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  89. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  90. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  91. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  92. package/dist/lib/components/runtime/utils/store.js +0 -3
  93. package/dist/lib/components/runtime/utils/table-utils.js +0 -24
  94. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  95. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  96. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  97. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  98. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  99. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  100. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  101. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
  102. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  103. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  104. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  105. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  106. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
  107. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  108. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  109. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
  110. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  111. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
  112. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  113. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
  114. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  115. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
  116. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  117. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  118. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  119. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  120. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  121. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  122. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  123. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  124. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  125. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  126. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  127. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  128. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  129. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  130. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  131. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  132. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
  133. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  134. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
  135. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  136. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  137. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  138. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
  139. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  140. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  141. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
  142. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  143. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  144. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  145. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  146. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  147. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  148. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  149. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  150. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  151. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  152. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  153. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  154. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  155. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
  156. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  157. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  158. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  159. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  160. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  161. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  162. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  163. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  164. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  165. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
  166. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  167. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  168. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  169. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  170. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  171. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  172. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  173. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
  174. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  175. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  176. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  177. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  178. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  179. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  180. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  181. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  182. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  183. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
  184. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  185. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  186. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  187. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  188. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
  189. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  190. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
  191. package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
  192. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  193. package/dist/lib/favicon.ico +0 -0
  194. package/dist/lib/index.d.ts +0 -8
  195. package/dist/lib/index.js +0 -15
@@ -1,201 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
4
- const pageInitUtil = require("../../../../utils/page-init-util.js");
5
- const _hoisted_1 = { style: { "float": "left" } };
6
- const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
7
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
8
- __name: "select-runtime",
9
- props: {
10
- pageContext: {},
11
- configure: {}
12
- },
13
- setup(__props, { expose: __expose }) {
14
- const props = __props;
15
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
16
- let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
17
- const dynamicModelMethod = Vue.computed({
18
- get() {
19
- return pageHelperUtil.getVariableValue(entity, dynamicFields);
20
- },
21
- set(value) {
22
- pageHelperUtil.setVariableValue(entity, dynamicFields, value);
23
- }
24
- });
25
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
26
- const runtimeStyle = runtimeInfo.style;
27
- const runtimeClass = runtimeInfo.class;
28
- const headerStyle = runtimeInfo.headerStyle;
29
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
30
- const listOptions = Vue.ref(designProperty.options ? designProperty.options : []);
31
- const cacheOptions = pageHelperUtil.getOptionDatasFromPage(props.pageContext, props.configure);
32
- if (cacheOptions.length > 0) {
33
- listOptions.value = cacheOptions;
34
- }
35
- const queryLoadingFlag = Vue.ref(false);
36
- const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
37
- const valueType = dataOrigin.optionValueSetType;
38
- let autoSets = [];
39
- const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
40
- if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
41
- if (dataOrigin.filterType == "remote") {
42
- designProperty.filterable = true;
43
- designProperty.remote = true;
44
- designProperty.remoteShowSuffix = true;
45
- let hisQuery = void 0;
46
- designProperty.remoteMethod = function(query) {
47
- if (hisQuery === query) {
48
- return;
49
- }
50
- hisQuery = query;
51
- queryLoadingFlag.value = true;
52
- console.log("query", query);
53
- pageHelperUtil.queryOptionDatasources(props.pageContext, optionconfigInfo, query).then((results) => {
54
- queryLoadingFlag.value = false;
55
- }).then((error) => {
56
- console.log("查询失败!", error);
57
- queryLoadingFlag.value = false;
58
- });
59
- };
60
- }
61
- if (dataOrigin.autoSets) {
62
- for (let obj of dataOrigin.autoSets) {
63
- if (obj.source) {
64
- autoSets.push(obj);
65
- }
66
- }
67
- }
68
- }
69
- if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
70
- autoSets.push({
71
- source: "label",
72
- target: props.configure.props.base.optionProp
73
- });
74
- }
75
- if (autoSets.length > 0) {
76
- designProperty.changeMethod = optionChange;
77
- }
78
- const monitorFields = designProperty.monitorFields;
79
- const monitorFieldInfos = [];
80
- if (monitorFields) {
81
- const preFields = [];
82
- for (let propName of monitorFields) {
83
- if (propName.startsWith("${")) {
84
- propName = propName.substring(2, propName.length - 1);
85
- const fields = propName.split(".");
86
- if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
87
- monitorFieldInfos.push(fields);
88
- if (!preFields.includes(fields[0])) {
89
- preFields.push(fields[0]);
90
- }
91
- }
92
- }
93
- }
94
- for (let preField of preFields) {
95
- Vue.watch(entity[preField], () => {
96
- monitorFieldChange();
97
- });
98
- }
99
- }
100
- function getMonitorFieldValues() {
101
- let values = "";
102
- for (let fieldInfo of monitorFieldInfos) {
103
- values += "_" + pageHelperUtil.getVariableValue(entity, fieldInfo);
104
- }
105
- return values;
106
- }
107
- let initMonitorValue = getMonitorFieldValues();
108
- let monitorTimeout = false;
109
- function monitorFieldChange() {
110
- if (monitorTimeout) {
111
- clearTimeout(monitorTimeout);
112
- }
113
- monitorTimeout = setTimeout(function() {
114
- const newValue = getMonitorFieldValues();
115
- if (newValue == initMonitorValue) {
116
- return;
117
- }
118
- initMonitorValue = newValue;
119
- pageHelperUtil.queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
120
- console.log("查询失败!", error);
121
- queryLoadingFlag.value = false;
122
- });
123
- }, 200);
124
- }
125
- function optionChange(value) {
126
- let selItems = null;
127
- if (listOptions.value && value != void 0 && value != null) {
128
- selItems = listOptions.value.filter((item) => {
129
- return Array.isArray(value) ? value.includes(item.value) : value === item.value;
130
- });
131
- }
132
- pageHelperUtil.autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
133
- }
134
- function updateOptions(newOptions) {
135
- listOptions.value = newOptions ? newOptions : [];
136
- console.log("updateOptions", newOptions);
137
- }
138
- __expose({
139
- updateOptions
140
- });
141
- return (_ctx, _cache) => {
142
- const _component_el_option = Vue.resolveComponent("el-option");
143
- const _component_el_select = Vue.resolveComponent("el-select");
144
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
145
- return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
146
- required: Vue.unref(designProperty).required ? true : false,
147
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
148
- "label-width": Vue.unref(designProperty).labelWidth,
149
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
150
- }, {
151
- label: Vue.withCtx(() => [
152
- Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
153
- key: 0,
154
- style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
155
- }, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
156
- ]),
157
- default: Vue.withCtx(() => [
158
- Vue.createVNode(_component_el_select, {
159
- disabled: Vue.unref(designProperty).state === "disabled",
160
- size: Vue.unref(designProperty).size,
161
- clearable: Vue.unref(designProperty).clearable,
162
- multiple: Vue.unref(designProperty).multiple,
163
- "collapse-tags": Vue.unref(designProperty).collapseTags,
164
- "collapse-tags-tooltip": Vue.unref(designProperty).collapseTagsTooltip,
165
- filterable: Vue.unref(designProperty).filterable,
166
- "allow-create": Vue.unref(designProperty).allowCreate,
167
- placeholder: Vue.unref(designProperty).placeholder,
168
- "remote-show-suffix": Vue.unref(designProperty).remoteShowSuffix,
169
- remote: Vue.unref(designProperty).remote,
170
- "remote-method": Vue.unref(designProperty).remoteMethod,
171
- loading: queryLoadingFlag.value,
172
- onChange: Vue.unref(designProperty).changeMethod,
173
- modelValue: dynamicModelMethod.value,
174
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
175
- }, {
176
- default: Vue.withCtx(() => [
177
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(listOptions.value, (item) => {
178
- return Vue.openBlock(), Vue.createBlock(_component_el_option, {
179
- key: item.value,
180
- label: item.label,
181
- value: item.value
182
- }, {
183
- default: Vue.withCtx(() => [
184
- item._description_ ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
185
- Vue.createElementVNode("span", _hoisted_1, Vue.toDisplayString(item.label), 1),
186
- Vue.createElementVNode("span", _hoisted_2, Vue.toDisplayString(item._description_), 1)
187
- ], 64)) : Vue.createCommentVNode("", true)
188
- ]),
189
- _: 2
190
- }, 1032, ["label", "value"]);
191
- }), 128))
192
- ]),
193
- _: 1
194
- }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])
195
- ]),
196
- _: 1
197
- }, 8, ["required", "class", "label-width", "style"]);
198
- };
199
- }
200
- });
201
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const switchRuntime_vue_vue_type_script_setup_true_lang = require("./switch-runtime.vue2.js");
3
- module.exports = switchRuntime_vue_vue_type_script_setup_true_lang;
@@ -1,63 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const pageInitUtil = require("../../../../utils/page-init-util.js");
4
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
5
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
6
- __name: "switch-runtime",
7
- props: {
8
- pageContext: {},
9
- configure: {}
10
- },
11
- setup(__props) {
12
- const props = __props;
13
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
14
- let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
15
- const dynamicModelMethod = Vue.computed({
16
- get() {
17
- return pageHelperUtil.getVariableValue(entity, dynamicFields);
18
- },
19
- set(value) {
20
- pageHelperUtil.setVariableValue(entity, dynamicFields, value);
21
- }
22
- });
23
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
24
- const runtimeStyle = runtimeInfo.style;
25
- const runtimeClass = runtimeInfo.class;
26
- const headerStyle = runtimeInfo.headerStyle;
27
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
28
- const switchStyle = runtimeInfo.switchStyle;
29
- return (_ctx, _cache) => {
30
- const _component_el_switch = Vue.resolveComponent("el-switch");
31
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
32
- return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
33
- required: Vue.unref(designProperty).required,
34
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
35
- "label-width": Vue.unref(designProperty).labelWidth,
36
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
37
- }, {
38
- label: Vue.withCtx(() => [
39
- Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
40
- key: 0,
41
- style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
42
- }, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
43
- ]),
44
- default: Vue.withCtx(() => [
45
- Vue.createVNode(_component_el_switch, {
46
- disabled: Vue.unref(designProperty).state === "disabled",
47
- "active-value:": Vue.unref(designProperty).activeValue,
48
- "active-text": Vue.unref(designProperty).activeText,
49
- "inactive-value": Vue.unref(designProperty).inactiveValue,
50
- "inactive-text": Vue.unref(designProperty).inactiveText,
51
- width: Vue.unref(designProperty).offOnWidth,
52
- size: Vue.unref(designProperty).size,
53
- style: Vue.normalizeStyle(Vue.unref(switchStyle)),
54
- modelValue: dynamicModelMethod.value,
55
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
56
- }, null, 8, ["disabled", "active-value:", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
57
- ]),
58
- _: 1
59
- }, 8, ["required", "class", "label-width", "style"]);
60
- };
61
- }
62
- });
63
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const tagRuntime_vue_vue_type_script_setup_true_lang = require("./tag-runtime.vue2.js");
3
- module.exports = tagRuntime_vue_vue_type_script_setup_true_lang;
@@ -1,63 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const pageInitUtil = require("../../../../utils/page-init-util.js");
4
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
5
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
6
- __name: "tag-runtime",
7
- props: {
8
- pageContext: {},
9
- configure: {}
10
- },
11
- setup(__props) {
12
- const props = __props;
13
- pageInitUtil.getFormModelFields(props.pageContext, props.configure);
14
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
15
- const runtimeStyle = runtimeInfo.style;
16
- const runtimeClass = runtimeInfo.class;
17
- const headerStyle = runtimeInfo.headerStyle;
18
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
19
- let contentVariable = designProperty.formatting;
20
- if (!contentVariable) {
21
- const propsBase = props.configure.props.base ? props.configure.props.base : {};
22
- contentVariable = propsBase.prop;
23
- }
24
- if (!contentVariable) {
25
- contentVariable = "${page." + props.configure.uuid + "}";
26
- }
27
- const dynamicValue = Vue.computed(() => {
28
- const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
29
- return resultValue == void 0 || resultValue == null ? "" : resultValue;
30
- });
31
- return (_ctx, _cache) => {
32
- const _component_el_tag = Vue.resolveComponent("el-tag");
33
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
34
- return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
35
- required: Vue.unref(designProperty).required,
36
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
37
- "label-width": Vue.unref(designProperty).labelWidth,
38
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
39
- }, {
40
- label: Vue.withCtx(() => [
41
- Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
42
- key: 0,
43
- style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
44
- }, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
45
- ]),
46
- default: Vue.withCtx(() => [
47
- Vue.createVNode(_component_el_tag, {
48
- size: Vue.unref(designProperty).size,
49
- closable: Vue.unref(designProperty).closable,
50
- type: Vue.unref(designProperty).type
51
- }, {
52
- default: Vue.withCtx(() => [
53
- Vue.createTextVNode(Vue.toDisplayString(dynamicValue.value), 1)
54
- ]),
55
- _: 1
56
- }, 8, ["size", "closable", "type"])
57
- ]),
58
- _: 1
59
- }, 8, ["required", "class", "label-width", "style"]);
60
- };
61
- }
62
- });
63
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const textareaRuntime_vue_vue_type_script_setup_true_lang = require("./textarea-runtime.vue2.js");
3
- module.exports = textareaRuntime_vue_vue_type_script_setup_true_lang;
@@ -1,65 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const pageInitUtil = require("../../../../utils/page-init-util.js");
4
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
5
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
6
- __name: "textarea-runtime",
7
- props: {
8
- pageContext: {},
9
- configure: {}
10
- },
11
- setup(__props) {
12
- const props = __props;
13
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
14
- let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
15
- const dynamicModelMethod = Vue.computed({
16
- get() {
17
- return pageHelperUtil.getVariableValue(entity, dynamicFields);
18
- },
19
- set(value) {
20
- pageHelperUtil.setVariableValue(entity, dynamicFields, value);
21
- }
22
- });
23
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
24
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
25
- const runtimeStyle = runtimeInfo.style;
26
- const runtimeClass = runtimeInfo.class;
27
- const headerStyle = runtimeInfo.headerStyle;
28
- return (_ctx, _cache) => {
29
- const _component_el_input = Vue.resolveComponent("el-input");
30
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
31
- return Vue.openBlock(), Vue.createElementBlock("div", null, [
32
- Vue.createVNode(_component_el_form_item, {
33
- required: Vue.unref(designProperty).required ? true : false,
34
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
35
- "label-width": Vue.unref(designProperty).labelWidth,
36
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
37
- }, {
38
- label: Vue.withCtx(() => [
39
- Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
40
- key: 0,
41
- style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
42
- }, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
43
- ]),
44
- default: Vue.withCtx(() => [
45
- Vue.createVNode(_component_el_input, {
46
- disabled: Vue.unref(designProperty).state === "disabled",
47
- readonly: Vue.unref(designProperty).state === "readonly",
48
- size: Vue.unref(designProperty).size,
49
- clearable: Vue.unref(designProperty).clearable,
50
- placeholder: Vue.unref(designProperty).placeholder,
51
- modelValue: dynamicModelMethod.value,
52
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
53
- rows: Vue.unref(designProperty).rows ? Vue.unref(designProperty).rows : 2,
54
- maxlength: Vue.unref(designProperty).maxLength,
55
- "show-word-limit": Vue.unref(designProperty).showInputNum,
56
- type: "textarea"
57
- }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])
58
- ]),
59
- _: 1
60
- }, 8, ["required", "class", "label-width", "style"])
61
- ]);
62
- };
63
- }
64
- });
65
- module.exports = _sfc_main;
@@ -1,17 +0,0 @@
1
- import { PageContext, Component } from '../../utils/interfaces/page-design-types';
2
-
3
- interface MyProps {
4
- pageContext: PageContext;
5
- configure: Component;
6
- }
7
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<MyProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>>, {}, {}>;
8
- export default _default;
9
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
- type __VLS_TypePropsToRuntimeProps<T> = {
11
- [K in keyof T]-?: {} extends Pick<T, K> ? {
12
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
- } : {
14
- type: import('vue').PropType<T[K]>;
15
- required: true;
16
- };
17
- };
@@ -1,142 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const errorRender_vue_vue_type_script_setup_true_lang = require("./error-render.vue.js");
4
- const assemblysConfig = require("../../utils/assemblys-config.js");
5
- const pageDesignTypes = require("../../utils/interfaces/page-design-types.js");
6
- const globalRefs = require("../../utils/global-refs.js");
7
- const pageInitUtil = require("../../utils/page-init-util.js");
8
- const pageHelperUtil = require("../../utils/page-helper-util.js");
9
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
10
- __name: "object-render",
11
- props: {
12
- pageContext: {},
13
- configure: {}
14
- },
15
- setup(__props) {
16
- const props = __props;
17
- if (props.configure.style == void 0) {
18
- props.configure.style = {};
19
- }
20
- const permissionCodes = pageInitUtil.getPermissionCodes(props.configure, props.pageContext);
21
- let handleShowFlag = Vue.ref(true);
22
- let showFlag = Vue.ref(true);
23
- if (props.configure && props.configure.props && props.configure.props.showConditions) {
24
- const showConditions = props.configure.props.showConditions;
25
- if (showConditions.length > 0) {
26
- showFlag = Vue.computed(() => {
27
- if (!handleShowFlag.value) {
28
- return false;
29
- }
30
- return pageHelperUtil.caculateShowCondition(props.pageContext, props.configure, showConditions);
31
- });
32
- }
33
- }
34
- const dynamicComponent = Vue.ref({});
35
- dynamicComponent.value = Vue.markRaw(assemblysConfig.getRuntimeComponentByName(props.configure.name));
36
- const showCopy = Vue.ref(true);
37
- if (dynamicComponent.value == null) {
38
- dynamicComponent.value = errorRender_vue_vue_type_script_setup_true_lang;
39
- showCopy.value = false;
40
- }
41
- const thisRef = Vue.ref(null);
42
- const runtimeStyle = Vue.ref({});
43
- const runtimeClass = Vue.ref("");
44
- const commonRuntime = props.configure.runtime && props.configure.runtime.common ? props.configure.runtime.common : {};
45
- if (commonRuntime.class) {
46
- runtimeClass.value = commonRuntime.class;
47
- }
48
- if (commonRuntime.style) {
49
- Object.assign(runtimeStyle.value, commonRuntime.style);
50
- const pageDimensions = props.pageContext && props.pageContext.dimensions ? props.pageContext.dimensions : pageDesignTypes.PageDimensions.PC;
51
- const sizeStyle = commonRuntime.style[pageDimensions + "_style"];
52
- if (sizeStyle) {
53
- Object.assign(runtimeStyle.value, sizeStyle);
54
- }
55
- const sizeClass = commonRuntime.style[pageDimensions + "_class"];
56
- if (sizeClass) {
57
- runtimeClass.value += " " + sizeClass;
58
- }
59
- }
60
- function setComponentRef(el) {
61
- thisRef.value = el;
62
- if (el && !el.show) {
63
- el.show = function() {
64
- handleShowFlag.value = true;
65
- };
66
- }
67
- if (el && !el.hide) {
68
- el.hide = function() {
69
- handleShowFlag.value = false;
70
- };
71
- }
72
- if (props.configure.uuid) {
73
- globalRefs.addComponentRef(props.pageContext, props.configure.uuid, thisRef);
74
- }
75
- if (props.configure.code) {
76
- globalRefs.addComponentRefByCode(props.pageContext, props.configure.code, thisRef);
77
- } else if (props.configure.props && props.configure.props.base) {
78
- const propsBase = props.configure.props.base;
79
- if (propsBase.prop) {
80
- let propName = propsBase.prop;
81
- if (propName.startsWith("${")) {
82
- propName = propName.substring(2, propName.length - 1);
83
- }
84
- if (propName.includes(".")) {
85
- propName = propName.substring(propName.indexOf(".") + 1);
86
- }
87
- globalRefs.addComponentRefByCode(props.pageContext, propName, thisRef);
88
- }
89
- }
90
- }
91
- Vue.onMounted(() => {
92
- if (!thisRef.value || !thisRef.value.parentNode) {
93
- return;
94
- }
95
- const thisProps = props.configure.props ? props.configure.props : {};
96
- const thisStyle = props.configure.style ? props.configure.style : {};
97
- const position = thisProps.position;
98
- if (position == "top" || position == "bottom") {
99
- const contentObj = [thisRef.value.parentNode];
100
- if (contentObj && contentObj.length > 0) {
101
- const contentRec = contentObj[0].getBoundingClientRect();
102
- if (position == "top") {
103
- runtimeStyle.value["top"] = contentRec.top + "px";
104
- }
105
- if (position == "bottom") {
106
- runtimeStyle.value["bottom"] = "10px";
107
- }
108
- }
109
- const thisRec = thisRef.value.getBoundingClientRect();
110
- runtimeStyle.value["width"] = thisRec.width + "px";
111
- } else if (thisStyle.position) {
112
- runtimeStyle.value["position"] = thisStyle.position;
113
- if (runtimeStyle.position != "relative") {
114
- if (!runtimeStyle.value["width"]) {
115
- const thisRec = thisRef.value.getBoundingClientRect();
116
- runtimeStyle.value["width"] = thisRec.width + "px";
117
- }
118
- if (thisStyle.left) {
119
- runtimeStyle.value["left"] = thisStyle.left + "px";
120
- }
121
- if (thisStyle.top) {
122
- runtimeStyle.value["top"] = thisStyle.top + "px";
123
- }
124
- }
125
- }
126
- });
127
- return (_ctx, _cache) => {
128
- const _directive_permission = Vue.resolveDirective("permission");
129
- return Vue.withDirectives((Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(dynamicComponent.value), {
130
- ref: setComponentRef,
131
- style: Vue.normalizeStyle(runtimeStyle.value),
132
- class: Vue.normalizeClass(runtimeClass.value),
133
- configure: _ctx.configure,
134
- pageContext: _ctx.pageContext
135
- }, null, 8, ["style", "class", "configure", "pageContext"])), [
136
- [Vue.vShow, Vue.unref(showFlag)],
137
- [_directive_permission, Vue.unref(permissionCodes)]
138
- ]);
139
- };
140
- }
141
- });
142
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const objectRender_vue_vue_type_script_setup_true_lang = require("./object-render.vue.js");
3
- module.exports = objectRender_vue_vue_type_script_setup_true_lang;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const workflowbuttonRuntime_vue_vue_type_script_setup_true_lang = require("./workflowbutton-runtime.vue2.js");
3
- module.exports = workflowbuttonRuntime_vue_vue_type_script_setup_true_lang;
@@ -1,61 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const objectRender_vue_vue_type_script_setup_true_lang = require("../../object-render.vue.js");
4
- const eventUtil = require("../../../../utils/events/event-util.js");
5
- const standardEvent = require("../../../../utils/events/standard-event.js");
6
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
7
- __name: "workflowbutton-runtime",
8
- props: {
9
- pageContext: {},
10
- configure: {}
11
- },
12
- setup(__props) {
13
- const props = __props;
14
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
15
- Vue.ref(runtimeInfo.style ? runtimeInfo.style : {});
16
- runtimeInfo.class;
17
- const buttonInfo = props.pageContext.workflowButtonComponent;
18
- const completeTaskParam = props.pageContext.completeTaskParam;
19
- const visibleBtns = Vue.ref([]);
20
- props.configure.items.forEach((item) => {
21
- const pageCode = props.pageContext.code;
22
- const pageVersion = props.pageContext.version;
23
- if (isVisibleBtn(item, pageCode, pageVersion)) {
24
- visibleBtns.value.push(item);
25
- }
26
- });
27
- function getStandardClickEvent(events, pageCode, pageVersion) {
28
- const clickEventFunObj = eventUtil.getClickEventFuncByType(pageCode, pageVersion, events);
29
- if (clickEventFunObj) {
30
- const isStandardEvent = clickEventFunObj.isStandard;
31
- if (isStandardEvent) {
32
- return clickEventFunObj.event.eventName;
33
- }
34
- }
35
- }
36
- function isVisibleBtn(btnConfigure, pageCode, pageVersion) {
37
- const events = btnConfigure.events;
38
- const workflowStandardEventName = getStandardClickEvent(events, pageCode, pageVersion);
39
- const isVisible = standardEvent.isVisibleWorkflowButton(
40
- workflowStandardEventName,
41
- buttonInfo,
42
- completeTaskParam
43
- );
44
- return isVisible;
45
- }
46
- return (_ctx, _cache) => {
47
- return Vue.openBlock(), Vue.createElementBlock("span", null, [
48
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(visibleBtns.value, (element, itemIndex) => {
49
- return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, [
50
- element.check ? (Vue.openBlock(), Vue.createBlock(objectRender_vue_vue_type_script_setup_true_lang, {
51
- key: itemIndex,
52
- pageContext: _ctx.pageContext,
53
- configure: element
54
- }, null, 8, ["pageContext", "configure"])) : Vue.createCommentVNode("", true)
55
- ], 64);
56
- }), 256))
57
- ]);
58
- };
59
- }
60
- });
61
- module.exports = _sfc_main;