super-page-runtime 1.0.16 → 1.0.17

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 (214) hide show
  1. package/package.json +5 -1
  2. package/.eslintrc.cjs +0 -26
  3. package/.prettierrc.json +0 -8
  4. package/App.vue +0 -9
  5. package/components/index.ts +0 -17
  6. package/components/runtime/index.ts +0 -2
  7. package/components/runtime/utils/assemblys-config.js +0 -294
  8. package/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -49
  9. package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -26
  10. package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -93
  11. package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -59
  12. package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
  13. package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
  14. package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
  15. package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
  16. package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
  17. package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
  18. package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
  19. package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
  20. package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
  21. package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
  22. package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
  23. package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
  24. package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
  25. package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
  26. package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
  27. package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
  28. package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
  29. package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
  30. package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
  31. package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -46
  32. package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -56
  33. package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -55
  34. package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -57
  35. package/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
  36. package/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
  37. package/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
  38. package/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
  39. package/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
  40. package/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
  41. package/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
  42. package/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
  43. package/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
  44. package/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
  45. package/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
  46. package/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
  47. package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -108
  48. package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
  49. package/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
  50. package/components/runtime/views/assemblys/common-attr-events.vue +0 -46
  51. package/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -59
  52. package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -59
  53. package/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -41
  54. package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -35
  55. package/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -37
  56. package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -32
  57. package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -54
  58. package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -99
  59. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -117
  60. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
  61. package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
  62. package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -28
  63. package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -103
  64. package/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
  65. package/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
  66. package/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
  67. package/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
  68. package/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
  69. package/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
  70. package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
  71. package/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
  72. package/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
  73. package/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
  74. package/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
  75. package/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
  76. package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
  77. package/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
  78. package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -858
  79. package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -625
  80. package/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
  81. package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
  82. package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
  83. package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
  84. package/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -28
  85. package/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -125
  86. package/components/runtime/views/assemblys/error-attr.vue +0 -15
  87. package/components/runtime/views/assemblys/error-render.vue +0 -17
  88. package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
  89. package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -198
  90. package/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
  91. package/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
  92. package/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
  93. package/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
  94. package/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
  95. package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
  96. package/components/runtime/views/assemblys/form/common/condition.vue +0 -147
  97. package/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
  98. package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
  99. package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
  100. package/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
  101. package/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
  102. package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
  103. package/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
  104. package/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
  105. package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
  106. package/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
  107. package/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
  108. package/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
  109. package/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
  110. package/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
  111. package/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
  112. package/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
  113. package/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
  114. package/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
  115. package/components/runtime/views/assemblys/form/common/title.vue +0 -20
  116. package/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
  117. package/components/runtime/views/assemblys/form/common/verification.vue +0 -79
  118. package/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
  119. package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
  120. package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
  121. package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
  122. package/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -28
  123. package/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -57
  124. package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -80
  125. package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
  126. package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -60
  127. package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -44
  128. package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
  129. package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -79
  130. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
  131. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
  132. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
  133. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -28
  134. package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -104
  135. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
  136. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
  137. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
  138. package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -28
  139. package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -76
  140. package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -62
  141. package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
  142. package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
  143. package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -70
  144. package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -28
  145. package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -155
  146. package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -142
  147. package/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -143
  148. package/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -70
  149. package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -24
  150. package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -203
  151. package/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
  152. package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -169
  153. package/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -247
  154. package/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
  155. package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -63
  156. package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -65
  157. package/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
  158. package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -63
  159. package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
  160. package/components/runtime/views/assemblys/object-render.vue +0 -176
  161. package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
  162. package/components/runtime/views/assemblys/page/page-attr-base.vue +0 -259
  163. package/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
  164. package/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
  165. package/components/runtime/views/assemblys/page/page-attr.vue +0 -84
  166. package/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
  167. package/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
  168. package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
  169. package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
  170. package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
  171. package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
  172. package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
  173. package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
  174. package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
  175. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
  176. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
  177. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
  178. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -28
  179. package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
  180. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
  181. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
  182. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
  183. package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -28
  184. package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
  185. package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -64
  186. package/components/runtime/views/render/page-view.vue +0 -80
  187. package/components/runtime/views/super-page copy.vue +0 -61
  188. package/components/runtime/views/super-page.vue +0 -667
  189. package/components/super-page-dialog/index.ts +0 -2
  190. package/components/super-page-dialog/super-page-dialog.vue +0 -267
  191. package/components/wf-editor/index.ts +0 -2
  192. package/components/wf-editor/wf-editor.vue +0 -15
  193. package/cypress/e2e/example.cy.ts +0 -8
  194. package/cypress/e2e/tsconfig.json +0 -10
  195. package/cypress/fixtures/example.json +0 -5
  196. package/cypress/support/commands.ts +0 -39
  197. package/cypress/support/e2e.ts +0 -20
  198. package/cypress.config.ts +0 -8
  199. package/env.d.ts +0 -1
  200. package/index.html +0 -13
  201. package/main.ts +0 -11
  202. package/package-ws.json +0 -70
  203. package/public/favicon.ico +0 -0
  204. package/tsconfig copy.json +0 -17
  205. package/tsconfig.app copy.json +0 -14
  206. package/tsconfig.app.json +0 -14
  207. package/tsconfig.json +0 -17
  208. package/tsconfig.node copy.json +0 -19
  209. package/tsconfig.node.json +0 -19
  210. package/tsconfig.vitest copy.json +0 -11
  211. package/tsconfig.vitest.json +0 -11
  212. package/vite.config copy.ts +0 -109
  213. package/vite.config.ts +0 -86
  214. package/vitest.config.ts +0 -14
@@ -1,68 +0,0 @@
1
- <template>
2
- <el-form label-width="80px" size="small">
3
- <el-collapse v-model="openCollapseItems" style="margin-top:6px;">
4
- <el-collapse-item
5
- title="基本"
6
- name="base"
7
- class="amb-design-attr-group-header">
8
- <div style="padding:8px 0px 0px 0px;">
9
- <el-form-item label="组件类型" class="amb-design-attr-item">
10
- <el-select v-model="configure.name" placeholder="请选择" >
11
- <el-option
12
- v-for="item in getFormComponentOptions()"
13
- :key="item.name"
14
- :label="item.label"
15
- :value="item.name"
16
- />
17
- </el-select>
18
- </el-form-item>
19
- <el-form-item label="组件名" class="amb-design-attr-item">
20
- <el-input v-model="configure.props.base.name" placeholder="请输入" />
21
- </el-form-item>
22
- <el-form-item label="绑定变量" class="amb-design-attr-item">
23
- <el-input v-model="configure.props.base.prop" placeholder="请输入" />
24
- </el-form-item>
25
- <el-form-item label="标题" class="amb-design-attr-item">
26
- <el-input v-model="configure.props.base.title" placeholder="请输入" />
27
- </el-form-item>
28
- <el-form-item label="默认值" class="amb-design-attr-item">
29
- <el-input v-model="configure.props.base.defaultValue" placeholder="请输入" />
30
- </el-form-item>
31
- <el-form-item label="文本格式化" class="amb-design-attr-item">
32
- <el-input v-model="configure.props.base.placeholder" type="textarea" placeholder="请输入" />
33
- </el-form-item>
34
- <el-form-item label="尺寸" class="amb-design-attr-item">
35
- <el-radio-group v-model="configure.props.base.size" class="ml-4">
36
- <el-radio value="large">大</el-radio>
37
- <el-radio value="default">中</el-radio>
38
- <el-radio value="small">小</el-radio>
39
- </el-radio-group>
40
- </el-form-item>
41
- <el-form-item label="状态" class="amb-design-attr-item">
42
- <el-radio-group v-model="configure.props.base.state" class="ml-4">
43
- <el-radio value="default">普通</el-radio>
44
- <el-radio value="hidden">隐藏</el-radio>
45
- </el-radio-group>
46
- </el-form-item>
47
- </div>
48
- </el-collapse-item>
49
- <PreSuffix :preSuffix="configure.props.preSuffix" />
50
- <CommonAttrSize :size="configure.props.size" />
51
- <Title :title="configure.props.title" />
52
- </el-collapse>
53
- </el-form>
54
- </template>
55
- <script lang='ts' setup>
56
- import { ref } from 'vue';
57
- import { getFormComponentOptions } from '../../../../utils/assemblys-config.js'
58
- import CommonAttrSize from '../../common/common-attr-size.vue'
59
- import Title from '../common/title.vue'
60
- import PreSuffix from '../common/pre-suffix.vue'
61
-
62
- defineProps({
63
- configure: Object,
64
- default: () => ({props: {}})
65
- });
66
- const openCollapseItems = ref("")
67
-
68
- </script>
@@ -1,14 +0,0 @@
1
- <template>
2
- <el-form label-width="80px" size="small">
3
- <AttrEvent :events="events"></AttrEvent>
4
- </el-form>
5
- </template>
6
- <script lang='ts' setup>
7
- import { ref, computed, defineEmits } from 'vue';
8
- import AttrEvent from '../common/attr-event.vue'
9
- import {getFormComponentOptions} from '../../../../utils/assemblys-config.js'
10
- defineProps({
11
- configure:Object
12
- });
13
- const events = ['click', 'change', 'blur', 'focus', 'show', 'hidden']
14
- </script>
@@ -1,70 +0,0 @@
1
- <template>
2
- <el-form-item
3
- :required="designProperty.required ? true : false"
4
- :class="designClass"
5
- :label-width="designProperty.labelWidth"
6
- :style="designStyle"
7
- >
8
- <template #label>
9
- <div :style="designHeaderStyle">
10
- {{ designProperty.title ? designProperty.title : 'input-text' }}
11
- </div>
12
- </template>
13
- <el-text :size="designProperty.size">{{
14
- designProperty.title ? designProperty.title : 'text'
15
- }}</el-text>
16
- </el-form-item>
17
- </template>
18
- <script lang="ts" setup>
19
- import { ref, watch } from 'vue'
20
- import {
21
- caculateDetailComponentStyle,
22
- caculateComponentProps
23
- } from '../../../../../../src/utils/form-design-util'
24
-
25
- const props = defineProps({
26
- configure: Object
27
- })
28
- //定义自身详细参数
29
- const designStyle = ref({})
30
- const designClass = ref('')
31
- const designHeaderStyle = ref({})
32
- const designProperty = ref({})
33
- function getRestsParameter() {
34
- let defineProps = {}
35
- const tempProps = {}
36
-
37
- if (props.configure.props.preSuffix) {
38
- defineProps = props.configure.props
39
- }
40
- // 行数
41
- // if (defineProps['base']['rows']){
42
- // tempProps['rows'] = defineProps['base']['rows']
43
- // }
44
-
45
- if (tempProps != {}) {
46
- for (const tempPropsKey in tempProps) {
47
- designProperty.value[tempPropsKey] = tempProps[tempPropsKey]
48
- }
49
- }
50
- }
51
- //监控配置样式的变化
52
- watch(
53
- props.configure.style,
54
- () => {
55
- caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle)
56
- },
57
- { immediate: true }
58
- )
59
-
60
- //监控配置属性的变化
61
- watch(
62
- props.configure.props,
63
- () => {
64
- caculateComponentProps(props.configure, designProperty)
65
- getRestsParameter()
66
- },
67
- { immediate: true }
68
- )
69
- </script>
70
- <style scoped></style>
@@ -1,28 +0,0 @@
1
- <template>
2
- <div class="amb-design-attr-content">
3
- <AttrHeader v-model="currentConfigType" />
4
- <div class="amb-design-attr-list">
5
- <AttrBase v-show="currentConfigType === 'base'" :configure="configure"></AttrBase>
6
- <AttrStyle v-show="currentConfigType === 'style'" :configure="configure"></AttrStyle>
7
- <AttrEvent v-show="currentConfigType === 'event'" :configure="configure"></AttrEvent>
8
- </div>
9
- </div>
10
- </template>
11
- <script lang="ts" setup>
12
- import AttrBase from './input-show-attr-base.vue'
13
- import AttrStyle from './input-show-attr-style.vue'
14
- import AttrHeader from '../common/attr-header.vue'
15
- import AttrEvent from './input-show-attr-event.vue'
16
- import { ref } from 'vue'
17
-
18
- defineProps({
19
- configure: {
20
- type: Object,
21
- default: () => ({ title: 'Text', props: { type: 'input-text' } }) // 设置默认值
22
- }
23
- })
24
- let currentConfigType = ref('base')
25
- </script>
26
- <style>
27
- /* @import '../../../../../../assets/design-attr.css'; */
28
- </style>
@@ -1,155 +0,0 @@
1
- <template>
2
- <el-form-item
3
- :required="designProperty.required ? true : false"
4
- :class="designClass"
5
- :label-width="designProperty.labelWidth"
6
- :style="designStyle"
7
- >
8
- <template #label>
9
- <div :style="designHeaderStyle">
10
- {{ designProperty.title ? designProperty.title : 'input-show' }}
11
- </div>
12
- </template>
13
- <el-input
14
- :disabled="designProperty.state === 'disabled' ? true : false"
15
- :readonly="designProperty.state === 'readonly' ? true : false"
16
- :size="designProperty.size"
17
- :clearable="designProperty.clearable"
18
- :placeholder="designProperty.placeholder"
19
- v-model="designProperty.defaultValue"
20
- >
21
- <template
22
- v-if="designProperty && (designProperty.innerPreIcon || designProperty.innerPreText)"
23
- #prefix
24
- >
25
- {{ designProperty.innerPreText }}
26
- </template>
27
- <template
28
- v-show="
29
- designProperty.enable ||
30
- (designProperty && (designProperty.innerSufIcon || designProperty.innerSufText))
31
- "
32
- #suffix
33
- >
34
- {{ designProperty.innerSufText }}
35
- <el-icon v-show="designProperty.enable"><FullScreen /></el-icon>
36
- </template>
37
- <template
38
- v-if="designProperty && (designProperty.outerPreIcon || designProperty.outerPreText)"
39
- #prepend
40
- >
41
- <!--<el-icon v-if="designProperty.outerPreIcon">-->
42
- <!-- <component :is="designProperty.outerPreIcon" />-->
43
- <!--</el-icon>-->
44
- <span v-if="designProperty.outerPreText">{{ designProperty.outerPreText }}</span>
45
- </template>
46
- <template
47
- v-if="designProperty && (designProperty.outerSufIcon || designProperty.outerSufText)"
48
- #append
49
- >
50
- {{ designProperty.outerSufText }}
51
- </template>
52
- </el-input>
53
- </el-form-item>
54
- </template>
55
- <script lang="ts" setup>
56
- import { ref, watch } from 'vue'
57
- import {
58
- caculateDetailComponentStyle,
59
- caculateComponentProps
60
- } from '../../../../../../src/utils/form-design-util'
61
-
62
- const props = defineProps({
63
- configure: Object
64
- })
65
- //定义自身详细参数
66
- const designStyle = ref({})
67
- const designClass = ref('')
68
- const designHeaderStyle = ref({})
69
- const designProperty = ref({})
70
- function getRestsParameter() {
71
- let defineProps = {}
72
- const tempProps = {}
73
-
74
- if (props.configure.props.preSuffix) {
75
- defineProps = props.configure.props
76
- }
77
-
78
- if (defineProps['scan']['enable']) {
79
- tempProps['enable'] = true
80
- } else {
81
- tempProps['enable'] = false
82
- }
83
-
84
- // 前后缀/外部
85
- if (defineProps['preSuffix']['position'] === 'outer') {
86
- // 前缀图标
87
- if (defineProps['preSuffix']['preIcon']) {
88
- tempProps['outerPreIcon'] = defineProps['preSuffix']['preIcon']
89
- }
90
-
91
- // 前缀文本
92
- if (defineProps['preSuffix']['preText']) {
93
- tempProps['outerPreText'] = defineProps['preSuffix']['preText']
94
- }
95
-
96
- // 后缀图标
97
- if (defineProps['preSuffix']['sufIcon']) {
98
- tempProps['outerSufIcon'] = defineProps['preSuffix']['sufIcon']
99
- }
100
-
101
- // 后缀文本
102
- if (defineProps['preSuffix']['sufText']) {
103
- tempProps['outerSufText'] = defineProps['preSuffix']['sufText']
104
- }
105
- }
106
-
107
- // 前后缀/内部
108
- if (defineProps['preSuffix']['position'] === 'inner') {
109
- // 前缀图标
110
- if (defineProps['preSuffix']['preIcon']) {
111
- tempProps['innerPreIcon'] = defineProps['preSuffix']['preIcon']
112
- }
113
-
114
- // 前缀文本
115
- if (defineProps['preSuffix']['preText']) {
116
- tempProps['innerPreText'] = defineProps['preSuffix']['preText']
117
- }
118
-
119
- // 后缀图标
120
- if (defineProps['preSuffix']['sufIcon']) {
121
- tempProps['innerSufIcon'] = defineProps['preSuffix']['sufIcon']
122
- }
123
-
124
- // 后缀文本
125
- if (defineProps['preSuffix']['sufText']) {
126
- tempProps['innerSufText'] = defineProps['preSuffix']['sufText']
127
- }
128
- }
129
-
130
- if (tempProps != {}) {
131
- for (const tempPropsKey in tempProps) {
132
- designProperty.value[tempPropsKey] = tempProps[tempPropsKey]
133
- }
134
- }
135
- }
136
- //监控配置样式的变化
137
- watch(
138
- props.configure.style,
139
- () => {
140
- caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle)
141
- },
142
- { immediate: true }
143
- )
144
-
145
- //监控配置属性的变化
146
- watch(
147
- props.configure.props,
148
- () => {
149
- caculateComponentProps(props.configure, designProperty)
150
- getRestsParameter()
151
- },
152
- { immediate: true }
153
- )
154
- </script>
155
- <style scoped></style>
@@ -1,142 +0,0 @@
1
- <template>
2
- <el-form-item
3
- :required="designProperty.required ? true : false"
4
- :class="runtimeClass"
5
- :label-width="designProperty.labelWidth"
6
- :style="runtimeStyle"
7
- >
8
- <template #label>
9
- <div v-if="designProperty.tittleShow" :style="{ ...headerStyle }">
10
- {{ designProperty.title }}
11
- </div>
12
- </template>
13
- <el-input
14
- :disabled="designProperty.state === 'disabled'"
15
- :readonly="designProperty.state === 'readonly'"
16
- :size="designProperty.size"
17
- :clearable="designProperty.clearable"
18
- :placeholder="designProperty.placeholder"
19
- :maxlength="designProperty.maxLength"
20
- :show-word-limit="designProperty.showInputNum"
21
- v-model="dynamicModelMethod"
22
- @input="handleEvent($event, pageContext, configure, 'input')"
23
- @change="handleEvent($event, pageContext, configure, 'change')"
24
- @blur="handleEvent($event, pageContext, configure, 'blur')"
25
- @focus="handleEvent($event, pageContext, configure, 'focus')"
26
- @click="handleEvent($event, pageContext, configure, 'click')"
27
- >
28
- <template
29
- v-if="
30
- designProperty.iconPosition != 'outer' &&
31
- ((designProperty.preIconType && designProperty.preIconValue) || designProperty.preText)
32
- "
33
- #prefix
34
- >
35
- <SuperIcon
36
- v-if="designProperty.preIconType && designProperty.preIconValue"
37
- :iconType="designProperty.preIconType"
38
- :iconValue="designProperty.preIconValue"
39
- ></SuperIcon>
40
- {{ designProperty.preText }}
41
- </template>
42
- <template
43
- v-if="
44
- designProperty.iconPosition == 'outer' &&
45
- ((designProperty.preIconType && designProperty.preIconValue) || designProperty.preText)
46
- "
47
- #prepend
48
- >
49
- <SuperIcon
50
- v-if="designProperty.preIconType && designProperty.preIconValue"
51
- :iconType="designProperty.preIconType"
52
- :iconValue="designProperty.preIconValue"
53
- ></SuperIcon>
54
- {{ designProperty.preText }}
55
- </template>
56
- <template
57
- v-if="
58
- designProperty.iconPosition != 'outer' &&
59
- ((designProperty.sufIconType && designProperty.sufIconValue) || designProperty.sufText)
60
- "
61
- #suffix
62
- >
63
- <SuperIcon
64
- v-if="designProperty.sufIconType && designProperty.sufIconValue"
65
- :iconType="designProperty.sufIconType"
66
- :iconValue="designProperty.sufIconValue"
67
- ></SuperIcon>
68
- {{ designProperty.sufText }}
69
- </template>
70
- <template
71
- v-if="
72
- designProperty.iconPosition == 'outer' &&
73
- ((designProperty.sufIconType && designProperty.sufIconValue) || designProperty.sufText)
74
- "
75
- #append
76
- >
77
- <SuperIcon
78
- v-if="designProperty.sufIconType && designProperty.sufIconValue"
79
- :iconType="designProperty.sufIconType"
80
- :iconValue="designProperty.sufIconValue"
81
- ></SuperIcon>
82
- {{ designProperty.sufText }}
83
- </template>
84
- </el-input>
85
- </el-form-item>
86
- </template>
87
- <script lang="ts" setup>
88
- import { SuperIcon } from 'agilebuilder-ui'
89
- import { computed, onMounted, watch } from 'vue'
90
- import type {
91
- Component,
92
- PageContext
93
- } from '../../../../../../src/utils/interfaces/page-design-types'
94
- import { getFormModelFields } from '../../../../../../src/utils/page-init-util'
95
- import { getVariableValue, setVariableValue } from '../../../../../../src/utils/page-helper-util'
96
- import { handleEvent } from '../../../../../../src/utils/events/event-util'
97
- interface MyProps {
98
- pageContext: PageContext
99
- configure: Component
100
- }
101
- const props = defineProps<MyProps>()
102
-
103
- const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
104
-
105
- let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
106
-
107
- //绑定模型的字段
108
- const dynamicModelMethod = computed({
109
- get() {
110
- return getVariableValue(entity, dynamicFields)
111
- },
112
- set(value) {
113
- setVariableValue(entity, dynamicFields, value)
114
- }
115
- })
116
- //获取默认的样式及配置
117
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
118
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {}
119
- const runtimeStyle = runtimeInfo.style
120
- const runtimeClass = runtimeInfo.class
121
- const headerStyle = runtimeInfo.headerStyle
122
-
123
- /**
124
- * 获取值
125
- */
126
- function getValue() {
127
- return getVariableValue(entity, dynamicFields)
128
- }
129
-
130
- /**
131
- * 设置值
132
- */
133
- function setValue(value: any) {
134
- return setVariableValue(entity, dynamicFields, value)
135
- }
136
-
137
- //暴露方法
138
- defineExpose({
139
- getValue,
140
- setValue
141
- })
142
- </script>
@@ -1,143 +0,0 @@
1
- <template>
2
- <el-form-item
3
- v-if="designProperty.tittleShow"
4
- :required="designProperty.required ? true : false"
5
- :class="runtimeClass"
6
- :label-width="designProperty.labelWidth"
7
- :style="runtimeStyle"
8
- >
9
- <template #label>
10
- <div v-if="designProperty.tittleShow" :style="{ ...headerStyle }">
11
- {{ designProperty.title }}
12
- </div>
13
- </template>
14
- <div style="display: flex; width: 100%; justify-content: space-between">
15
- <span style="overflow: hidden; white-space: nowrap">
16
- <span
17
- v-if="designProperty.preIconValue || designProperty.preText"
18
- :class="{
19
- 'el-input__suffix': designProperty.iconPosition != 'outer',
20
- 'el-input-group__append': designProperty.iconPosition == 'outer'
21
- }"
22
- :style="appendStyle"
23
- >
24
- <SuperIcon
25
- v-if="designProperty.preIconType && designProperty.preIconValue"
26
- :iconType="designProperty.preIconType"
27
- :iconValue="designProperty.preIconValue"
28
- ></SuperIcon>
29
- {{ designProperty.preText }}
30
- </span>
31
- &nbsp;{{ dynamicValue }}
32
- </span>
33
- <span
34
- v-if="designProperty.sufIconValue || designProperty.sufText"
35
- :class="{
36
- 'el-input__suffix': designProperty.iconPosition != 'outer',
37
- 'el-input-group__append': designProperty.iconPosition == 'outer'
38
- }"
39
- >
40
- <SuperIcon
41
- style=""
42
- v-if="designProperty.sufIconType && designProperty.sufIconValue"
43
- :iconType="designProperty.sufIconType"
44
- :iconValue="designProperty.sufIconValue"
45
- ></SuperIcon>
46
- <span>&nbsp;{{ designProperty.sufText }}</span>
47
- </span>
48
- </div>
49
- </el-form-item>
50
- <span v-else style="display: flex; justify-content: space-between">
51
- <span style="overflow: hidden; white-space: nowrap" :title="dynamicValue"
52
- >{{ designProperty.prefixIcon }}&nbsp;{{ dynamicValue }}</span
53
- >
54
- <span v-if="designProperty.suffixTxt" :class="appendClass" :style="appendStyle">{{
55
- designProperty.suffixTxt
56
- }}</span>
57
- </span>
58
- </template>
59
- <script lang="ts" setup>
60
- import { ref, computed } from 'vue'
61
- import type {
62
- Component,
63
- PageContext
64
- } from '../../../../../../src/utils/interfaces/page-design-types'
65
- import { getFormModelFields } from '../../../../../../src/utils/page-init-util'
66
- import {
67
- formatVariableValue,
68
- queryOptions,
69
- formatValueByType
70
- } from '../../../../../../src/utils/page-helper-util'
71
- import { SuperIcon } from 'agilebuilder-ui'
72
-
73
- //定义的属性对象
74
- interface MyProps {
75
- //页面对象
76
- pageContext: PageContext
77
- configure: Component
78
- }
79
- const props = defineProps<MyProps>()
80
- //初始化字段及默认值
81
- getFormModelFields(props.pageContext, props.configure)
82
-
83
- //定义自身详细参数
84
- //运行时信息
85
- const runtimeInfo: any = props.configure.runtime ? props.configure.runtime : {}
86
- const runtimeStyle = runtimeInfo.style
87
- const runtimeClass = runtimeInfo.class
88
- const headerStyle = runtimeInfo.headerStyle
89
- const appendClass = runtimeInfo.appendClass
90
- const appendStyle = runtimeInfo.appendStyle
91
- const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
92
-
93
- //查询数据源
94
- //选项组数据
95
- const listOptions: any = designProperty.options ? designProperty.options : []
96
- //检查是否需要绑定远程查询对象
97
- const dataOrigin =
98
- props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {}
99
- const valueType = dataOrigin.optionValueSetType
100
- //查询数据
101
- if (valueType == 'dynamicData' || valueType == 'dynamicData' || valueType == 'service') {
102
- queryOptions(props.configure, props.pageContext, '')
103
- .then((results) => {
104
- listOptions.value = results
105
- })
106
- .catch((error) => {
107
- console.log('lable组件查询数据源失败!', error)
108
- })
109
- }
110
-
111
- //定义内容
112
- let contentVariable = designProperty.formatting
113
- if (!contentVariable) {
114
- const propsBase = props.configure.props.base ? props.configure.props.base : {}
115
- contentVariable = propsBase.prop
116
- }
117
- //无值时,按UUID
118
- if (!contentVariable) {
119
- contentVariable = '${page.' + props.configure.uuid + '}'
120
- }
121
- //格式化分类
122
- const formatType = designProperty.formatType
123
- //显示内容
124
- const dynamicValue = computed(() => {
125
- let resultValue: any = formatVariableValue(props.pageContext, contentVariable)
126
- console.log('formatType', formatType)
127
- if (formatType) {
128
- if (designProperty.hasOptions) {
129
- let selItems: any = null
130
- if (listOptions.value) {
131
- selItems = listOptions.value.filter((item: any) => item.value == resultValue)
132
- }
133
- if (selItems && selItems.length > 0) {
134
- resultValue = selItems[0].label
135
- }
136
- } else {
137
- //其他格式化
138
- resultValue = formatValueByType(resultValue, formatType, designProperty)
139
- }
140
- }
141
- return resultValue == undefined || resultValue == null ? '' : resultValue
142
- })
143
- </script>