super-page-runtime 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/index.d.ts +5 -0
- package/dist/es/components/index.js +8 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -9
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +3 -9
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -5
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -5
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -5
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +10 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -3
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -5
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +7 -8
- package/dist/es/components/super-page-dialog/super-page-dialog.vue.js +0 -1
- package/dist/es/components/wf-editor/wf-editor.css +1 -1
- package/dist/es/components/wf-editor/wf-editor.vue.js +2 -2
- package/dist/es/src/utils/charts/chart-util.js +15 -0
- package/dist/es/{components/runtime → src}/utils/events/event-util.d.ts +1 -1
- package/dist/lib/components/index.d.ts +5 -0
- package/dist/lib/{index.js → components/index.js} +3 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -9
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +3 -9
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -5
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -5
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -5
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +10 -4
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +5 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +1 -1
- package/dist/lib/components/runtime/views/super-page.vue.js +7 -8
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.js +0 -1
- package/dist/lib/components/wf-editor/wf-editor.css +1 -1
- package/dist/lib/components/wf-editor/wf-editor.vue.js +2 -2
- package/dist/lib/src/utils/charts/chart-util.js +15 -0
- package/dist/lib/{components/runtime → src}/utils/events/event-util.d.ts +1 -1
- package/lib/components/index.js +8 -0
- package/package.json +3 -3
- package/src/utils/charts/chart-util.ts +41 -0
- package/src/utils/container-style-util.ts +237 -0
- package/src/{components/runtime/utils → utils}/events/event-util.ts +2 -3
- package/src/{components/runtime/utils → utils}/events/standard-event.ts +1 -1
- package/src/{components/runtime/utils → utils}/events/validator-util.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +0 -15
- package/dist/es/index.d.ts +0 -5
- package/dist/es/index.js +0 -8
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -15
- package/dist/lib/index.d.ts +0 -5
- package/src/App.vue +0 -9
- package/src/components/runtime/index.ts +0 -2
- package/src/components/runtime/utils/assemblys-config.js +0 -294
- package/src/components/runtime/utils/charts/chart-util.ts +0 -37
- package/src/components/runtime/utils/container-style-util.ts +0 -223
- package/src/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -46
- package/src/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -27
- package/src/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -85
- package/src/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -61
- package/src/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
- package/src/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
- package/src/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
- package/src/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
- package/src/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
- package/src/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
- package/src/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
- package/src/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
- package/src/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
- package/src/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
- package/src/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
- package/src/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
- package/src/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
- package/src/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
- package/src/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
- package/src/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
- package/src/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -54
- package/src/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -57
- package/src/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -56
- package/src/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -58
- package/src/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
- package/src/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
- package/src/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
- package/src/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
- package/src/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
- package/src/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
- package/src/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
- package/src/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
- package/src/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
- package/src/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
- package/src/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
- package/src/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
- package/src/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -118
- package/src/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
- package/src/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
- package/src/components/runtime/views/assemblys/common-attr-events.vue +0 -46
- package/src/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -56
- package/src/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -56
- package/src/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -50
- package/src/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -33
- package/src/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -35
- package/src/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -28
- package/src/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -51
- package/src/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -97
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -110
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -95
- package/src/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
- package/src/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
- package/src/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
- package/src/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
- package/src/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
- package/src/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
- package/src/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
- package/src/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
- package/src/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
- package/src/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
- package/src/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
- package/src/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
- package/src/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
- package/src/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
- package/src/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -852
- package/src/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -622
- package/src/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
- package/src/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -114
- package/src/components/runtime/views/assemblys/error-attr.vue +0 -15
- package/src/components/runtime/views/assemblys/error-render.vue +0 -17
- package/src/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
- package/src/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -192
- package/src/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
- package/src/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
- package/src/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
- package/src/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
- package/src/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
- package/src/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
- package/src/components/runtime/views/assemblys/form/common/condition.vue +0 -147
- package/src/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
- package/src/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
- package/src/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
- package/src/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
- package/src/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
- package/src/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
- package/src/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
- package/src/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
- package/src/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
- package/src/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
- package/src/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
- package/src/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
- package/src/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
- package/src/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
- package/src/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
- package/src/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
- package/src/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
- package/src/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
- package/src/components/runtime/views/assemblys/form/common/title.vue +0 -20
- package/src/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
- package/src/components/runtime/views/assemblys/form/common/verification.vue +0 -79
- package/src/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
- package/src/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -46
- package/src/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -74
- package/src/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
- package/src/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -57
- package/src/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -40
- package/src/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
- package/src/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -76
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -84
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -66
- package/src/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -57
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -58
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -132
- package/src/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -139
- package/src/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -115
- package/src/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -67
- package/src/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -23
- package/src/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -197
- package/src/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
- package/src/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -153
- package/src/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -241
- package/src/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
- package/src/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -58
- package/src/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -60
- package/src/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
- package/src/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -60
- package/src/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
- package/src/components/runtime/views/assemblys/object-render.vue +0 -176
- package/src/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
- package/src/components/runtime/views/assemblys/page/page-attr-base.vue +0 -252
- package/src/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
- package/src/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
- package/src/components/runtime/views/assemblys/page/page-attr.vue +0 -84
- package/src/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
- package/src/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
- package/src/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
- package/src/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
- package/src/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
- package/src/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
- package/src/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
- package/src/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
- package/src/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
- package/src/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -61
- package/src/components/runtime/views/render/page-view.vue +0 -80
- package/src/components/runtime/views/super-page copy.vue +0 -61
- package/src/components/runtime/views/super-page.vue +0 -662
- package/src/components/super-page-dialog/index.ts +0 -2
- package/src/components/super-page-dialog/super-page-dialog.vue +0 -267
- package/src/components/wf-editor/index.ts +0 -2
- package/src/components/wf-editor/wf-editor.vue +0 -15
- package/src/index.ts +0 -17
- package/src/main.ts +0 -11
- /package/dist/es/{assets → src/assets}/chart-themes/theme1.js +0 -0
- /package/dist/es/{assets → src/assets}/chart-themes/theme2.js +0 -0
- /package/dist/es/{assets → src/assets}/chart-themes/theme3.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/api/api-util.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/api/api-util.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/common-util.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/common-util.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/events/event-util.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/events/standard-event.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/events/standard-event.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/events/validator-util.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/events/validator-util.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/global-refs.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/global-refs.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/interfaces/page-design-types.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/interfaces/page-design-types.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/page-helper-util.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/page-helper-util.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/page-init-util.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/page-init-util.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/store-util.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/store-util.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/store.d.ts +0 -0
- /package/dist/es/{components/runtime → src}/utils/store.js +0 -0
- /package/dist/es/{components/runtime → src}/utils/table-utils.js +0 -0
- /package/dist/lib/{assets → src/assets}/chart-themes/theme1.js +0 -0
- /package/dist/lib/{assets → src/assets}/chart-themes/theme2.js +0 -0
- /package/dist/lib/{assets → src/assets}/chart-themes/theme3.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/api/api-util.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/api/api-util.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/common-util.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/common-util.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/events/event-util.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/events/standard-event.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/events/standard-event.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/events/validator-util.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/events/validator-util.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/global-refs.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/global-refs.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/interfaces/page-design-types.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/interfaces/page-design-types.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/page-helper-util.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/page-helper-util.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/page-init-util.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/page-init-util.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/store-util.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/store-util.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/store.d.ts +0 -0
- /package/dist/lib/{components/runtime → src}/utils/store.js +0 -0
- /package/dist/lib/{components/runtime → src}/utils/table-utils.js +0 -0
- /package/src/{components/runtime/utils → utils}/api/api-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/common-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/eventBus.ts +0 -0
- /package/src/{components/runtime/utils → utils}/events/jump-page-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/global-refs.ts +0 -0
- /package/src/{components/runtime/utils → utils}/interfaces/page-design-types.ts +0 -0
- /package/src/{components/runtime/utils → utils}/page-helper-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/page-init-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/page-permission-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/store-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/store.ts +0 -0
- /package/src/{components/runtime/utils → utils}/table-utils.ts +0 -0
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form-item
|
|
3
|
-
:required="designProperty.required"
|
|
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-radio-group
|
|
14
|
-
:disabled="designProperty.state === 'disabled'"
|
|
15
|
-
:size="designProperty.size"
|
|
16
|
-
@change="designProperty.changeMethod"
|
|
17
|
-
v-model="dynamicModelMethod"
|
|
18
|
-
>
|
|
19
|
-
<el-radio
|
|
20
|
-
v-for="item in listOptions"
|
|
21
|
-
:key="item.value"
|
|
22
|
-
:value="item.value"
|
|
23
|
-
:label="item.label"
|
|
24
|
-
>
|
|
25
|
-
</el-radio>
|
|
26
|
-
</el-radio-group>
|
|
27
|
-
</el-form-item>
|
|
28
|
-
</template>
|
|
29
|
-
<script lang="ts" setup>
|
|
30
|
-
import { ref, computed, watch } from 'vue'
|
|
31
|
-
import type { Component, PageContext } from '../../../../utils/interfaces/page-design-types'
|
|
32
|
-
import { queryOptionDatasources, autoSetAfterSelect } from '../../../../utils/page-helper-util'
|
|
33
|
-
import { getFormModelFields } from '../../../../utils/page-init-util'
|
|
34
|
-
import {
|
|
35
|
-
getVariableValue,
|
|
36
|
-
setVariableValue,
|
|
37
|
-
getOptionDatasFromPage
|
|
38
|
-
} from '../../../../utils/page-helper-util'
|
|
39
|
-
|
|
40
|
-
//定义的属性对象
|
|
41
|
-
interface MyProps {
|
|
42
|
-
//页面对象
|
|
43
|
-
pageContext: PageContext
|
|
44
|
-
configure: Component
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const props = defineProps<MyProps>()
|
|
48
|
-
|
|
49
|
-
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
50
|
-
|
|
51
|
-
let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
|
|
52
|
-
|
|
53
|
-
//绑定模型的字段
|
|
54
|
-
const dynamicModelMethod = computed({
|
|
55
|
-
get() {
|
|
56
|
-
return getVariableValue(entity, dynamicFields)
|
|
57
|
-
},
|
|
58
|
-
set(value) {
|
|
59
|
-
setVariableValue(entity, dynamicFields, value)
|
|
60
|
-
}
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
//运行时信息
|
|
64
|
-
const runtimeInfo: any = props.configure.runtime ? props.configure.runtime : {}
|
|
65
|
-
const runtimeStyle = runtimeInfo.style
|
|
66
|
-
const runtimeClass = runtimeInfo.class
|
|
67
|
-
const headerStyle = runtimeInfo.headerStyle
|
|
68
|
-
const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
|
|
69
|
-
//选项组数据
|
|
70
|
-
const listOptions: any = ref(designProperty.options ? designProperty.options : [])
|
|
71
|
-
//缓存中有值时,从缓存中获取
|
|
72
|
-
const cacheOptions: any = getOptionDatasFromPage(props.pageContext, props.configure)
|
|
73
|
-
if (cacheOptions.length > 0) {
|
|
74
|
-
listOptions.value = cacheOptions
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
//检查是否需要绑定远程查询对象
|
|
78
|
-
const dataOrigin =
|
|
79
|
-
props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {}
|
|
80
|
-
const valueType = dataOrigin.optionValueSetType
|
|
81
|
-
//检查是否有自动设置值
|
|
82
|
-
let autoSets: any = []
|
|
83
|
-
//检查自动设置
|
|
84
|
-
if (valueType == 'dynamicData' || valueType == 'dataTable' || valueType == 'service') {
|
|
85
|
-
if (dataOrigin.autoSets) {
|
|
86
|
-
for (let obj of dataOrigin.autoSets) {
|
|
87
|
-
if (obj.source) {
|
|
88
|
-
autoSets.push(obj)
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
//检查是否有绑定标签的变量
|
|
94
|
-
if (
|
|
95
|
-
props.configure &&
|
|
96
|
-
props.configure.props &&
|
|
97
|
-
props.configure.props.base &&
|
|
98
|
-
props.configure.props.base.optionProp
|
|
99
|
-
) {
|
|
100
|
-
autoSets.push({
|
|
101
|
-
source: 'label',
|
|
102
|
-
target: props.configure.props.base.optionProp
|
|
103
|
-
})
|
|
104
|
-
}
|
|
105
|
-
if (autoSets.length > 0) {
|
|
106
|
-
designProperty.changeMethod = optionChange
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
//监控字段
|
|
110
|
-
const monitorFields: any = designProperty.monitorFields
|
|
111
|
-
const monitorFieldInfos: any = []
|
|
112
|
-
//监控对应的字段变化
|
|
113
|
-
if (monitorFields) {
|
|
114
|
-
const preFields: any = []
|
|
115
|
-
for (let propName of monitorFields) {
|
|
116
|
-
if (propName.startsWith('${')) {
|
|
117
|
-
propName = propName.substring(2, propName.length - 1)
|
|
118
|
-
const fields = propName.split('.')
|
|
119
|
-
if (fields[0] === 'page' || fields[0] === 'task' || fields[0] === 'data') {
|
|
120
|
-
monitorFieldInfos.push(fields)
|
|
121
|
-
if (!preFields.includes(fields[0])) {
|
|
122
|
-
preFields.push(fields[0])
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
//监控对应的字段
|
|
128
|
-
for (let preField of preFields) {
|
|
129
|
-
watch(entity[preField], () => {
|
|
130
|
-
monitorFieldChange()
|
|
131
|
-
})
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* 获取监控的数据值
|
|
137
|
-
*/
|
|
138
|
-
function getMonitorFieldValues(): any {
|
|
139
|
-
let values = ''
|
|
140
|
-
for (let fieldInfo of monitorFieldInfos) {
|
|
141
|
-
values += '_' + getVariableValue(entity, fieldInfo)
|
|
142
|
-
}
|
|
143
|
-
return values
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
//初始化时检查一次
|
|
147
|
-
let initMonitorValue: string = getMonitorFieldValues()
|
|
148
|
-
|
|
149
|
-
let monitorTimeout: any = false
|
|
150
|
-
|
|
151
|
-
//查询的参数
|
|
152
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {}
|
|
153
|
-
/**
|
|
154
|
-
* 监控数据变化时
|
|
155
|
-
*/
|
|
156
|
-
function monitorFieldChange() {
|
|
157
|
-
if (monitorTimeout) {
|
|
158
|
-
clearTimeout(monitorTimeout)
|
|
159
|
-
}
|
|
160
|
-
//延迟200毫秒执行
|
|
161
|
-
monitorTimeout = setTimeout(function () {
|
|
162
|
-
const newValue = getMonitorFieldValues()
|
|
163
|
-
if (newValue == initMonitorValue) {
|
|
164
|
-
return
|
|
165
|
-
}
|
|
166
|
-
initMonitorValue = newValue
|
|
167
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, undefined).then((error) => {
|
|
168
|
-
console.log('查询失败!', error)
|
|
169
|
-
})
|
|
170
|
-
}, 200)
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
//数据选择变化后自动设置值
|
|
174
|
-
function optionChange(value: any) {
|
|
175
|
-
let selItems: any = null
|
|
176
|
-
if (listOptions.value && value != undefined && value != null) {
|
|
177
|
-
selItems = listOptions.value.filter((item: any) => {
|
|
178
|
-
return value === item.value
|
|
179
|
-
})
|
|
180
|
-
}
|
|
181
|
-
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems)
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* 更新选项组
|
|
186
|
-
*/
|
|
187
|
-
function updateOptions(newOptions: any) {
|
|
188
|
-
listOptions.value = newOptions ? newOptions : []
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* 暴露更新选项组内容的方法
|
|
193
|
-
*/
|
|
194
|
-
defineExpose({
|
|
195
|
-
updateOptions
|
|
196
|
-
})
|
|
197
|
-
</script>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form-item :label="configure.title" :label-position="right">
|
|
3
|
-
<el-rate v-model="configure.fieldName" />
|
|
4
|
-
</el-form-item>
|
|
5
|
-
</template>
|
|
6
|
-
<script lang='ts' setup>
|
|
7
|
-
const props = defineProps({
|
|
8
|
-
configure:Object
|
|
9
|
-
});
|
|
10
|
-
if(props.configure.title==undefined){
|
|
11
|
-
props.configure.title = 'Rate';
|
|
12
|
-
}
|
|
13
|
-
</script>
|
|
14
|
-
<style scoped>
|
|
15
|
-
|
|
16
|
-
</style>
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!--无标题时不用form-item-->
|
|
3
|
-
<el-form-item
|
|
4
|
-
v-if="designProperty.tittleShow"
|
|
5
|
-
:required="designProperty.required"
|
|
6
|
-
:class="runtimeClass"
|
|
7
|
-
:label-width="designProperty.labelWidth"
|
|
8
|
-
:style="runtimeStyle">
|
|
9
|
-
<template #label>
|
|
10
|
-
<div v-if="designProperty.tittleShow" :style="{...headerStyle}">
|
|
11
|
-
{{ designProperty.title}}
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
<div style="width:100%;height:100%;">
|
|
15
|
-
<div ref="quillEditorRef" style="width:100%;">{{ initValue }}</div>
|
|
16
|
-
<!-- 使用自定义图片上传 -->
|
|
17
|
-
<input type="file" hidden accept=".jpg,.png" ref="fileBtn" @change="handleUpload" />
|
|
18
|
-
</div>
|
|
19
|
-
</el-form-item>
|
|
20
|
-
<div v-else style="width:100%;height:100%;" class="amb-widget-richtext-single">
|
|
21
|
-
<div ref="quillEditorRef" style="width:100%;">{{ initValue }}</div>
|
|
22
|
-
<!-- 使用自定义图片上传 -->
|
|
23
|
-
<input type="file" hidden accept=".jpg,.png" ref="fileBtn" @change="handleUpload" />
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
<script lang='ts' setup>
|
|
27
|
-
import {ref,onMounted} from "vue";
|
|
28
|
-
import type { Component,PageContext} from '../../../../utils/interfaces/page-design-types';
|
|
29
|
-
import { getFormModelFields} from '../../../../utils/page-init-util';
|
|
30
|
-
import {formatVariableValue, setVariableValue} from '../../../../utils/page-helper-util';
|
|
31
|
-
import Quill from 'quill';
|
|
32
|
-
import 'quill/dist/quill.snow.css'; // 引入样式文件
|
|
33
|
-
//定义的属性对象
|
|
34
|
-
interface MyProps{
|
|
35
|
-
//页面对象
|
|
36
|
-
pageContext:PageContext,
|
|
37
|
-
configure:Component
|
|
38
|
-
}
|
|
39
|
-
const props = defineProps<MyProps>();
|
|
40
|
-
|
|
41
|
-
const entity:any = props.pageContext.entity?props.pageContext.entity:{};
|
|
42
|
-
//初始化字段及默认值
|
|
43
|
-
const dynamicFields:string[] = getFormModelFields(props.pageContext,props.configure);
|
|
44
|
-
|
|
45
|
-
//定义自身详细参数
|
|
46
|
-
//运行时信息
|
|
47
|
-
const runtimeInfo:any = props.configure.runtime?props.configure.runtime:{};
|
|
48
|
-
const runtimeStyle = runtimeInfo.style;
|
|
49
|
-
const runtimeClass = runtimeInfo.class;
|
|
50
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
51
|
-
const designProperty:any = runtimeInfo.props?runtimeInfo.props:{};
|
|
52
|
-
|
|
53
|
-
//初始化显示内容
|
|
54
|
-
let contentVariable = designProperty.value;
|
|
55
|
-
const initValue = formatVariableValue(props.pageContext,contentVariable);
|
|
56
|
-
|
|
57
|
-
//富文本引用
|
|
58
|
-
const quillEditorRef = ref(null);
|
|
59
|
-
const quill:any = ref(null);
|
|
60
|
-
const fileBtn:any = ref(null);
|
|
61
|
-
//初始化富文本控件
|
|
62
|
-
const fontSize = ['12px', '13px', '14px', '15px', '16px', '18px', '20px', '24px', '28px', '32px', '36px'];
|
|
63
|
-
const option = ref({
|
|
64
|
-
modules: {
|
|
65
|
-
toolbar: [
|
|
66
|
-
['bold', 'italic', 'underline', 'strike'], // 加粗 斜体 下划线 删除线
|
|
67
|
-
["blockquote", "code-block"], // 引用
|
|
68
|
-
[{ list: 'ordered' }, { list: 'bullet' }], // 有序、无序列表
|
|
69
|
-
[{ script: "sub" }, { script: "super" }], // 上标/下标
|
|
70
|
-
[{ indent: '-1' }, { indent: '+1' }], // 缩进
|
|
71
|
-
[{ direction: 'rtl' }], // 文本方向
|
|
72
|
-
[{ size: fontSize }], // 字体大小
|
|
73
|
-
[{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题
|
|
74
|
-
[{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色
|
|
75
|
-
[{ font: [] }], // 字体种类
|
|
76
|
-
[{ align: [] }], // 对齐方式
|
|
77
|
-
['clean'], // 清除文本格式
|
|
78
|
-
['link', 'image'] // 链接、图片、视频
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
theme: 'snow',
|
|
82
|
-
placeholder:designProperty.placeholder,
|
|
83
|
-
readOnly:designProperty.state=='readonly'
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* 计算并更新高度
|
|
88
|
-
*/
|
|
89
|
-
function updateEditorHeight(){
|
|
90
|
-
//计算高度
|
|
91
|
-
if(quill&&quill.value){
|
|
92
|
-
if(quill.value.container){
|
|
93
|
-
//获取相对高度
|
|
94
|
-
const parentNode = quill.value.container.parentNode;
|
|
95
|
-
const parentRect = parentNode.getBoundingClientRect();
|
|
96
|
-
|
|
97
|
-
const thisRect = quill.value.container.getBoundingClientRect();
|
|
98
|
-
//计算高度
|
|
99
|
-
let newHeight = parentRect.height-(thisRect.top-parentRect.top);
|
|
100
|
-
if(newHeight<100){
|
|
101
|
-
newHeight = 100;
|
|
102
|
-
}
|
|
103
|
-
quill.value.container.style.height = newHeight+"px";
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
//上传图片
|
|
109
|
-
const imgHandler = (state) => {
|
|
110
|
-
if (fileBtn.value&&state) {
|
|
111
|
-
fileBtn.value.click();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
//上传
|
|
115
|
-
const handleUpload = (e) => {
|
|
116
|
-
const files = Array.prototype.slice.call(e.target.files);
|
|
117
|
-
if (!files) {
|
|
118
|
-
return
|
|
119
|
-
}
|
|
120
|
-
const formdata = new FormData()
|
|
121
|
-
formdata.append('file', files[0]);
|
|
122
|
-
alert("TODO:上传图片")
|
|
123
|
-
//此处使用服务端提供上传接口
|
|
124
|
-
/**backsite.uploadFile(formdata)
|
|
125
|
-
.then(res => {
|
|
126
|
-
if (res.data.url) {
|
|
127
|
-
const quill = toRaw(myQuillEditor.value).getQuill()
|
|
128
|
-
const length = quill.getSelection().index
|
|
129
|
-
quill.insertEmbed(length, 'image', res.data.url)
|
|
130
|
-
quill.setSelection(length + 1)
|
|
131
|
-
}
|
|
132
|
-
})*/
|
|
133
|
-
}
|
|
134
|
-
//初始化编辑器
|
|
135
|
-
onMounted(() => {
|
|
136
|
-
quill.value = new Quill(quillEditorRef.value, option.value);
|
|
137
|
-
//添加上传文件
|
|
138
|
-
quill.value.getModule('toolbar').addHandler('image',imgHandler);
|
|
139
|
-
//绑定事件
|
|
140
|
-
quill.value.on('text-change', function(delta, oldDelta, source) {
|
|
141
|
-
//1秒后设置到缓存中
|
|
142
|
-
if(window.updateQuillTimeout){
|
|
143
|
-
clearTimeout(window.updateQuillTimeout);
|
|
144
|
-
}
|
|
145
|
-
window.updateQuillTimeout = setTimeout(function(){
|
|
146
|
-
setVariableValue(entity,dynamicFields,quill.value.root.innerHTML);
|
|
147
|
-
console.log("new entity",entity)
|
|
148
|
-
},1000);
|
|
149
|
-
});
|
|
150
|
-
//计算高度
|
|
151
|
-
updateEditorHeight();
|
|
152
|
-
});
|
|
153
|
-
</script>
|
|
@@ -1,241 +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-select
|
|
14
|
-
:disabled="designProperty.state === 'disabled'"
|
|
15
|
-
:size="designProperty.size"
|
|
16
|
-
:clearable="designProperty.clearable"
|
|
17
|
-
:multiple="designProperty.multiple"
|
|
18
|
-
:collapse-tags="designProperty.collapseTags"
|
|
19
|
-
:collapse-tags-tooltip="designProperty.collapseTagsTooltip"
|
|
20
|
-
:filterable="designProperty.filterable"
|
|
21
|
-
:allow-create="designProperty.allowCreate"
|
|
22
|
-
:placeholder="designProperty.placeholder"
|
|
23
|
-
:remote-show-suffix="designProperty.remoteShowSuffix"
|
|
24
|
-
:remote="designProperty.remote"
|
|
25
|
-
:remote-method="designProperty.remoteMethod"
|
|
26
|
-
:loading="queryLoadingFlag"
|
|
27
|
-
@change="designProperty.changeMethod"
|
|
28
|
-
v-model="dynamicModelMethod"
|
|
29
|
-
>
|
|
30
|
-
<el-option
|
|
31
|
-
v-for="item in listOptions"
|
|
32
|
-
:key="item.value"
|
|
33
|
-
:label="item.label"
|
|
34
|
-
:value="item.value"
|
|
35
|
-
>
|
|
36
|
-
<template v-if="item._description_">
|
|
37
|
-
<span style="float: left">{{ item.label }}</span>
|
|
38
|
-
<span style="float: right; color: var(--el-text-color-secondary); font-size: 13px">
|
|
39
|
-
{{ item._description_ }}
|
|
40
|
-
</span>
|
|
41
|
-
</template>
|
|
42
|
-
</el-option>
|
|
43
|
-
</el-select>
|
|
44
|
-
</el-form-item>
|
|
45
|
-
</template>
|
|
46
|
-
<script lang="ts" setup>
|
|
47
|
-
import { ref, computed, watch } from 'vue'
|
|
48
|
-
import type { Component, PageContext } from '../../../../utils/interfaces/page-design-types'
|
|
49
|
-
import { queryOptionDatasources, autoSetAfterSelect } from '../../../../utils/page-helper-util'
|
|
50
|
-
import { getFormModelFields } from '../../../../utils/page-init-util'
|
|
51
|
-
import {
|
|
52
|
-
getVariableValue,
|
|
53
|
-
setVariableValue,
|
|
54
|
-
getOptionDatasFromPage
|
|
55
|
-
} from '../../../../utils/page-helper-util'
|
|
56
|
-
|
|
57
|
-
//定义的属性对象
|
|
58
|
-
interface MyProps {
|
|
59
|
-
//页面对象
|
|
60
|
-
pageContext: PageContext
|
|
61
|
-
configure: Component
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const props = defineProps<MyProps>()
|
|
65
|
-
|
|
66
|
-
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
67
|
-
let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
|
|
68
|
-
|
|
69
|
-
//绑定模型的字段
|
|
70
|
-
const dynamicModelMethod = computed({
|
|
71
|
-
get() {
|
|
72
|
-
return getVariableValue(entity, dynamicFields)
|
|
73
|
-
},
|
|
74
|
-
set(value) {
|
|
75
|
-
setVariableValue(entity, dynamicFields, value)
|
|
76
|
-
}
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
//运行时信息
|
|
80
|
-
const runtimeInfo: any = props.configure.runtime ? props.configure.runtime : {}
|
|
81
|
-
const runtimeStyle = runtimeInfo.style
|
|
82
|
-
const runtimeClass = runtimeInfo.class
|
|
83
|
-
const headerStyle = runtimeInfo.headerStyle
|
|
84
|
-
const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
|
|
85
|
-
//选项组数据
|
|
86
|
-
const listOptions: any = ref(designProperty.options ? designProperty.options : [])
|
|
87
|
-
//缓存中有值时,从缓存中获取
|
|
88
|
-
const cacheOptions: any = getOptionDatasFromPage(props.pageContext, props.configure)
|
|
89
|
-
if (cacheOptions.length > 0) {
|
|
90
|
-
listOptions.value = cacheOptions
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const queryLoadingFlag = ref(false)
|
|
94
|
-
//检查是否需要绑定远程查询对象
|
|
95
|
-
const dataOrigin =
|
|
96
|
-
props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {}
|
|
97
|
-
const valueType = dataOrigin.optionValueSetType
|
|
98
|
-
//检查是否有自动设置值
|
|
99
|
-
let autoSets: any = []
|
|
100
|
-
|
|
101
|
-
//开启动态查询
|
|
102
|
-
//查询的参数
|
|
103
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {}
|
|
104
|
-
//远程时固定开启模糊查询
|
|
105
|
-
if (valueType == 'dynamicData' || valueType == 'dataTable' || valueType == 'service') {
|
|
106
|
-
if (dataOrigin.filterType == 'remote') {
|
|
107
|
-
designProperty.filterable = true
|
|
108
|
-
designProperty.remote = true
|
|
109
|
-
designProperty.remoteShowSuffix = true
|
|
110
|
-
let hisQuery: any = undefined
|
|
111
|
-
designProperty.remoteMethod = function (query: string) {
|
|
112
|
-
//判断是否和之前的查询条件一致
|
|
113
|
-
if (hisQuery === query) {
|
|
114
|
-
return
|
|
115
|
-
}
|
|
116
|
-
hisQuery = query
|
|
117
|
-
queryLoadingFlag.value = true
|
|
118
|
-
console.log('query', query)
|
|
119
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, query)
|
|
120
|
-
.then((results) => {
|
|
121
|
-
queryLoadingFlag.value = false
|
|
122
|
-
})
|
|
123
|
-
.then((error) => {
|
|
124
|
-
console.log('查询失败!', error)
|
|
125
|
-
queryLoadingFlag.value = false
|
|
126
|
-
})
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
if (dataOrigin.autoSets) {
|
|
130
|
-
for (let obj of dataOrigin.autoSets) {
|
|
131
|
-
if (obj.source) {
|
|
132
|
-
autoSets.push(obj)
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
//检查是否有绑定标签的变量
|
|
138
|
-
if (
|
|
139
|
-
props.configure &&
|
|
140
|
-
props.configure.props &&
|
|
141
|
-
props.configure.props.base &&
|
|
142
|
-
props.configure.props.base.optionProp
|
|
143
|
-
) {
|
|
144
|
-
autoSets.push({
|
|
145
|
-
source: 'label',
|
|
146
|
-
target: props.configure.props.base.optionProp
|
|
147
|
-
})
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (autoSets.length > 0) {
|
|
151
|
-
designProperty.changeMethod = optionChange
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
//监控字段
|
|
155
|
-
const monitorFields: any = designProperty.monitorFields
|
|
156
|
-
const monitorFieldInfos: any = []
|
|
157
|
-
//监控对应的字段变化
|
|
158
|
-
if (monitorFields) {
|
|
159
|
-
const preFields: any = []
|
|
160
|
-
for (let propName of monitorFields) {
|
|
161
|
-
if (propName.startsWith('${')) {
|
|
162
|
-
propName = propName.substring(2, propName.length - 1)
|
|
163
|
-
const fields = propName.split('.')
|
|
164
|
-
if (fields[0] === 'page' || fields[0] === 'task' || fields[0] === 'data') {
|
|
165
|
-
monitorFieldInfos.push(fields)
|
|
166
|
-
if (!preFields.includes(fields[0])) {
|
|
167
|
-
preFields.push(fields[0])
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
//监控对应的字段
|
|
173
|
-
for (let preField of preFields) {
|
|
174
|
-
watch(entity[preField], () => {
|
|
175
|
-
monitorFieldChange()
|
|
176
|
-
})
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* 获取监控的数据值
|
|
182
|
-
*/
|
|
183
|
-
function getMonitorFieldValues(): any {
|
|
184
|
-
let values = ''
|
|
185
|
-
for (let fieldInfo of monitorFieldInfos) {
|
|
186
|
-
values += '_' + getVariableValue(entity, fieldInfo)
|
|
187
|
-
}
|
|
188
|
-
return values
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
//初始化时检查一次
|
|
192
|
-
let initMonitorValue: string = getMonitorFieldValues()
|
|
193
|
-
|
|
194
|
-
let monitorTimeout: any = false
|
|
195
|
-
/**
|
|
196
|
-
* 监控数据变化时
|
|
197
|
-
*/
|
|
198
|
-
function monitorFieldChange() {
|
|
199
|
-
if (monitorTimeout) {
|
|
200
|
-
clearTimeout(monitorTimeout)
|
|
201
|
-
}
|
|
202
|
-
//延迟200毫秒执行
|
|
203
|
-
monitorTimeout = setTimeout(function () {
|
|
204
|
-
const newValue = getMonitorFieldValues()
|
|
205
|
-
if (newValue == initMonitorValue) {
|
|
206
|
-
return
|
|
207
|
-
}
|
|
208
|
-
initMonitorValue = newValue
|
|
209
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, undefined).then((error) => {
|
|
210
|
-
console.log('查询失败!', error)
|
|
211
|
-
queryLoadingFlag.value = false
|
|
212
|
-
})
|
|
213
|
-
}, 200)
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
//数据选择变化后自动设置值
|
|
217
|
-
function optionChange(value: any) {
|
|
218
|
-
let selItems: any = null
|
|
219
|
-
if (listOptions.value && value != undefined && value != null) {
|
|
220
|
-
selItems = listOptions.value.filter((item: any) => {
|
|
221
|
-
return Array.isArray(value) ? value.includes(item.value) : value === item.value
|
|
222
|
-
})
|
|
223
|
-
}
|
|
224
|
-
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems)
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* 更新选项组
|
|
229
|
-
*/
|
|
230
|
-
function updateOptions(newOptions: any) {
|
|
231
|
-
listOptions.value = newOptions ? newOptions : []
|
|
232
|
-
console.log('updateOptions', newOptions)
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* 暴露更新选项组内容的方法
|
|
237
|
-
*/
|
|
238
|
-
defineExpose({
|
|
239
|
-
updateOptions
|
|
240
|
-
})
|
|
241
|
-
</script>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form-item :label="configure.title" :label-position="right">
|
|
3
|
-
<el-slider v-model="configure.fieldName" />
|
|
4
|
-
</el-form-item>
|
|
5
|
-
</template>
|
|
6
|
-
<script lang='ts' setup>
|
|
7
|
-
const props = defineProps({
|
|
8
|
-
configure:Object
|
|
9
|
-
});
|
|
10
|
-
if(props.configure.title==undefined){
|
|
11
|
-
props.configure.title = '';
|
|
12
|
-
}
|
|
13
|
-
</script>
|
|
14
|
-
<style scoped>
|
|
15
|
-
|
|
16
|
-
</style>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form-item
|
|
3
|
-
:required="designProperty.required"
|
|
4
|
-
:class="runtimeClass"
|
|
5
|
-
:label-width="designProperty.labelWidth"
|
|
6
|
-
:style="runtimeStyle">
|
|
7
|
-
<template #label>
|
|
8
|
-
<div v-if="designProperty.tittleShow" :style="{...headerStyle}">
|
|
9
|
-
{{ designProperty.title}}
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
<el-switch
|
|
13
|
-
:disabled="designProperty.state === 'disabled'"
|
|
14
|
-
:active-value:="designProperty.activeValue"
|
|
15
|
-
:active-text="designProperty.activeText"
|
|
16
|
-
:inactive-value="designProperty.inactiveValue"
|
|
17
|
-
:inactive-text="designProperty.inactiveText"
|
|
18
|
-
:width="designProperty.offOnWidth"
|
|
19
|
-
:size="designProperty.size"
|
|
20
|
-
:style="switchStyle"
|
|
21
|
-
v-model="dynamicModelMethod" />
|
|
22
|
-
</el-form-item>
|
|
23
|
-
</template>
|
|
24
|
-
<script lang='ts' setup>
|
|
25
|
-
import {computed} from "vue";
|
|
26
|
-
import type { Component,PageContext} from '../../../../utils/interfaces/page-design-types';
|
|
27
|
-
import { getFormModelFields} from '../../../../utils/page-init-util';
|
|
28
|
-
import { getVariableValue,setVariableValue} from '../../../../utils/page-helper-util';
|
|
29
|
-
|
|
30
|
-
//定义的属性对象
|
|
31
|
-
interface MyProps{
|
|
32
|
-
//页面对象
|
|
33
|
-
pageContext:PageContext,
|
|
34
|
-
configure:Component
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const props = defineProps<MyProps>();
|
|
38
|
-
|
|
39
|
-
const entity:any = props.pageContext.entity?props.pageContext.entity:{};
|
|
40
|
-
let dynamicFields:string[] = getFormModelFields(props.pageContext,props.configure);
|
|
41
|
-
|
|
42
|
-
//绑定模型的字段
|
|
43
|
-
const dynamicModelMethod = computed({
|
|
44
|
-
get(){
|
|
45
|
-
return getVariableValue(entity,dynamicFields);
|
|
46
|
-
},
|
|
47
|
-
set(value){
|
|
48
|
-
setVariableValue(entity,dynamicFields,value);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
//运行时信息
|
|
52
|
-
const runtimeInfo:any = props.configure.runtime?props.configure.runtime:{};
|
|
53
|
-
const runtimeStyle = runtimeInfo.style;
|
|
54
|
-
const runtimeClass = runtimeInfo.class;
|
|
55
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
56
|
-
const designProperty:any = runtimeInfo.props?runtimeInfo.props:{};
|
|
57
|
-
const switchStyle = runtimeInfo.switchStyle;
|
|
58
|
-
</script>
|