super-page-runtime 1.0.13 → 1.0.14
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/{runtime → components/runtime}/utils/charts/chart-util.js +3 -3
- package/dist/es/{wf-editor → components/wf-editor}/wf-editor.vue.js +1 -1
- package/dist/es/index.js +3 -3
- package/dist/lib/{runtime → components/runtime}/utils/charts/chart-util.js +3 -3
- package/dist/lib/{wf-editor → components/wf-editor}/wf-editor.vue.js +1 -1
- package/dist/lib/index.js +3 -3
- package/package.json +3 -2
- package/src/App.vue +9 -0
- package/src/assets/base.css +86 -0
- package/src/assets/chart-themes/theme1.ts +6 -0
- package/src/assets/chart-themes/theme2.ts +6 -0
- package/src/assets/chart-themes/theme3.ts +6 -0
- package/src/assets/images/button/button-group.png +0 -0
- package/src/assets/images/button/button.png +0 -0
- package/src/assets/images/chart/chart-column.png +0 -0
- package/src/assets/images/chart/chart-gauge.png +0 -0
- package/src/assets/images/chart/chart-pie.png +0 -0
- package/src/assets/images/chart/chart-radar.png +0 -0
- package/src/assets/images/chart/chart-scatter.png +0 -0
- package/src/assets/images/container/container-card.png +0 -0
- package/src/assets/images/container/container-collapse.png +0 -0
- package/src/assets/images/container/container-container.png +0 -0
- package/src/assets/images/container/container-flex.png +0 -0
- package/src/assets/images/container/container-form.png +0 -0
- package/src/assets/images/container/container-iframe.png +0 -0
- package/src/assets/images/container/container-normal.png +0 -0
- package/src/assets/images/container/container-tabs.png +0 -0
- package/src/assets/images/container/container-tools.png +0 -0
- package/src/assets/images/data/data-process.png +0 -0
- package/src/assets/images/data/data-step.png +0 -0
- package/src/assets/images/data/data-table-column.png +0 -0
- package/src/assets/images/data/data-table.png +0 -0
- package/src/assets/images/data/data-timeline.png +0 -0
- package/src/assets/images/data/data-tree.png +0 -0
- package/src/assets/images/form/form-cascader.png +0 -0
- package/src/assets/images/form/form-check.png +0 -0
- package/src/assets/images/form/form-color.png +0 -0
- package/src/assets/images/form/form-count.png +0 -0
- package/src/assets/images/form/form-custom.png +0 -0
- package/src/assets/images/form/form-date.png +0 -0
- package/src/assets/images/form/form-dept.png +0 -0
- package/src/assets/images/form/form-divider.png +0 -0
- package/src/assets/images/form/form-file.png +0 -0
- package/src/assets/images/form/form-image-upload.png +0 -0
- package/src/assets/images/form/form-img.png +0 -0
- package/src/assets/images/form/form-input.png +0 -0
- package/src/assets/images/form/form-label.png +0 -0
- package/src/assets/images/form/form-link.png +0 -0
- package/src/assets/images/form/form-radio.png +0 -0
- package/src/assets/images/form/form-scan.png +0 -0
- package/src/assets/images/form/form-score.png +0 -0
- package/src/assets/images/form/form-select.png +0 -0
- package/src/assets/images/form/form-slider.png +0 -0
- package/src/assets/images/form/form-space.png +0 -0
- package/src/assets/images/form/form-switch.png +0 -0
- package/src/assets/images/form/form-text.png +0 -0
- package/src/assets/images/form/form-textarea.png +0 -0
- package/src/assets/images/form/form-transfer.png +0 -0
- package/src/assets/images/form/form-zoom.png +0 -0
- package/src/assets/images/group-button.png +0 -0
- package/src/assets/images/group-chart.png +0 -0
- package/src/assets/images/group-container.png +0 -0
- package/src/assets/images/group-data.png +0 -0
- package/src/assets/images/group-form.png +0 -0
- package/src/assets/images/group-workflow.png +0 -0
- package/src/assets/images/workflow/workflow-button.png +0 -0
- package/src/assets/images/workflow/workflow-history-texts.png +0 -0
- package/src/assets/images/workflow/workflow-history.png +0 -0
- package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
- package/src/assets/images/workflow/workflow-texthistory .png +0 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/main.css +1 -0
- package/src/components/runtime/index.ts +2 -0
- package/src/components/runtime/utils/api/api-util.ts +176 -0
- package/src/components/runtime/utils/assemblys-config.js +294 -0
- package/src/components/runtime/utils/charts/chart-util.ts +37 -0
- package/src/components/runtime/utils/common-util.ts +96 -0
- package/src/components/runtime/utils/container-style-util.ts +223 -0
- package/src/components/runtime/utils/eventBus.ts +14 -0
- package/src/components/runtime/utils/events/event-util.ts +791 -0
- package/src/components/runtime/utils/events/jump-page-util.ts +0 -0
- package/src/components/runtime/utils/events/standard-event.ts +2075 -0
- package/src/components/runtime/utils/events/validator-util.ts +474 -0
- package/src/components/runtime/utils/global-refs.ts +160 -0
- package/src/components/runtime/utils/interfaces/page-design-types.ts +259 -0
- package/src/components/runtime/utils/page-helper-util.ts +850 -0
- package/src/components/runtime/utils/page-init-util.ts +291 -0
- package/src/components/runtime/utils/page-permission-util.ts +521 -0
- package/src/components/runtime/utils/store-util.ts +41 -0
- package/src/components/runtime/utils/store.ts +3 -0
- package/src/components/runtime/utils/table-utils.ts +31 -0
- package/src/components/runtime/views/assemblys/button/button/button-runtime.vue +46 -0
- package/src/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +27 -0
- package/src/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +85 -0
- package/src/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +61 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +32 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-base.vue +60 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +39 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +104 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +145 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +119 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-custom.vue +28 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +45 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +78 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +56 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-grid.vue +70 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-legend.vue +70 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +140 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +58 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +125 -0
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +67 -0
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +57 -0
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +23 -0
- package/src/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +209 -0
- package/src/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +54 -0
- package/src/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +57 -0
- package/src/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +56 -0
- package/src/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +58 -0
- package/src/components/runtime/views/assemblys/common/common-attr-cursor.vue +23 -0
- package/src/components/runtime/views/assemblys/common/common-attr-size.vue +54 -0
- package/src/components/runtime/views/assemblys/common/common-select-table.vue +287 -0
- package/src/components/runtime/views/assemblys/common/common-style-background.vue +46 -0
- package/src/components/runtime/views/assemblys/common/common-style-border.vue +37 -0
- package/src/components/runtime/views/assemblys/common/common-style-custom.vue +35 -0
- package/src/components/runtime/views/assemblys/common/common-style-font-head.vue +53 -0
- package/src/components/runtime/views/assemblys/common/common-style-font.vue +53 -0
- package/src/components/runtime/views/assemblys/common/common-style-margin.vue +34 -0
- package/src/components/runtime/views/assemblys/common/common-style-padding.vue +34 -0
- package/src/components/runtime/views/assemblys/common/common-style-position.vue +39 -0
- package/src/components/runtime/views/assemblys/common/common-style-shadow.vue +37 -0
- package/src/components/runtime/views/assemblys/common/export-form-report-dialog.vue +118 -0
- package/src/components/runtime/views/assemblys/common/remove-signer-dialog.vue +99 -0
- package/src/components/runtime/views/assemblys/common/task-informition-dialog.vue +69 -0
- package/src/components/runtime/views/assemblys/common-attr-events.vue +46 -0
- package/src/components/runtime/views/assemblys/container/card/card-runtime.vue +56 -0
- package/src/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +56 -0
- package/src/components/runtime/views/assemblys/container/container/container-runtime.vue +50 -0
- package/src/components/runtime/views/assemblys/container/flex/flex-runtime.vue +33 -0
- package/src/components/runtime/views/assemblys/container/form/form-runtime.vue +35 -0
- package/src/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +28 -0
- package/src/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +51 -0
- package/src/components/runtime/views/assemblys/container/tools/tools-runtime.vue +97 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +110 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +25 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +95 -0
- package/src/components/runtime/views/assemblys/data/component/attr-header.vue +69 -0
- package/src/components/runtime/views/assemblys/data/component/attr-style.vue +64 -0
- package/src/components/runtime/views/assemblys/data/component/column-config.vue +171 -0
- package/src/components/runtime/views/assemblys/data/component/combinedHeader.vue +96 -0
- package/src/components/runtime/views/assemblys/data/component/composite-header.vue +257 -0
- package/src/components/runtime/views/assemblys/data/component/configuration-value.vue +206 -0
- package/src/components/runtime/views/assemblys/data/component/data-origin-tree.vue +117 -0
- package/src/components/runtime/views/assemblys/data/component/data-origin.vue +260 -0
- package/src/components/runtime/views/assemblys/data/component/formatting.vue +200 -0
- package/src/components/runtime/views/assemblys/data/component/in-parameter.vue +56 -0
- package/src/components/runtime/views/assemblys/data/component/querySetting.vue +52 -0
- package/src/components/runtime/views/assemblys/data/component/return-set-table.vue +91 -0
- package/src/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +58 -0
- package/src/components/runtime/views/assemblys/data/component/select-data-table.vue +86 -0
- package/src/components/runtime/views/assemblys/data/table/main-table-runtime.vue +852 -0
- package/src/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +622 -0
- package/src/components/runtime/views/assemblys/data/table/table-runtime.vue +93 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +137 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +55 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-design.vue +114 -0
- package/src/components/runtime/views/assemblys/error-attr.vue +15 -0
- package/src/components/runtime/views/assemblys/error-render.vue +17 -0
- package/src/components/runtime/views/assemblys/form/cascader/cascader-design.vue +288 -0
- package/src/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +192 -0
- package/src/components/runtime/views/assemblys/form/colors/colors-design.vue +16 -0
- package/src/components/runtime/views/assemblys/form/common/analytic-rule.vue +148 -0
- package/src/components/runtime/views/assemblys/form/common/attr-event.vue +82 -0
- package/src/components/runtime/views/assemblys/form/common/attr-header.vue +54 -0
- package/src/components/runtime/views/assemblys/form/common/attr-style.vue +44 -0
- package/src/components/runtime/views/assemblys/form/common/bar-code-rule.vue +104 -0
- package/src/components/runtime/views/assemblys/form/common/condition.vue +147 -0
- package/src/components/runtime/views/assemblys/form/common/data-origin.vue +81 -0
- package/src/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +64 -0
- package/src/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +106 -0
- package/src/components/runtime/views/assemblys/form/common/default-value-setting.vue +362 -0
- package/src/components/runtime/views/assemblys/form/common/dimension-input.vue +68 -0
- package/src/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +115 -0
- package/src/components/runtime/views/assemblys/form/common/formatting-label.vue +81 -0
- package/src/components/runtime/views/assemblys/form/common/grid-num-select.vue +43 -0
- package/src/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +144 -0
- package/src/components/runtime/views/assemblys/form/common/linkage.vue +21 -0
- package/src/components/runtime/views/assemblys/form/common/overall-height.vue +20 -0
- package/src/components/runtime/views/assemblys/form/common/overall-width.vue +48 -0
- package/src/components/runtime/views/assemblys/form/common/pre-suffix.vue +33 -0
- package/src/components/runtime/views/assemblys/form/common/rich-text.vue +100 -0
- package/src/components/runtime/views/assemblys/form/common/row-ul-li.vue +55 -0
- package/src/components/runtime/views/assemblys/form/common/setoption-table.vue +86 -0
- package/src/components/runtime/views/assemblys/form/common/size-input.vue +65 -0
- package/src/components/runtime/views/assemblys/form/common/suffixmodule.vue +82 -0
- package/src/components/runtime/views/assemblys/form/common/title.vue +20 -0
- package/src/components/runtime/views/assemblys/form/common/uploading.vue +34 -0
- package/src/components/runtime/views/assemblys/form/common/verification.vue +79 -0
- package/src/components/runtime/views/assemblys/form/common/voluntarily.vue +27 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +81 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +14 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-design.vue +46 -0
- package/src/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +74 -0
- package/src/components/runtime/views/assemblys/form/datetime/datetime-design.vue +19 -0
- package/src/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +57 -0
- package/src/components/runtime/views/assemblys/form/divider/divider-runtime.vue +40 -0
- package/src/components/runtime/views/assemblys/form/file-picture/picture-design.vue +80 -0
- package/src/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +76 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +142 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +14 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +84 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +75 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +13 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +14 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +66 -0
- package/src/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +57 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +68 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +58 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-design.vue +132 -0
- package/src/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +139 -0
- package/src/components/runtime/views/assemblys/form/label/label-runtime.vue +115 -0
- package/src/components/runtime/views/assemblys/form/link/link-runtime.vue +67 -0
- package/src/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +23 -0
- package/src/components/runtime/views/assemblys/form/radio/radio-runtime.vue +197 -0
- package/src/components/runtime/views/assemblys/form/rate/rate-design.vue +16 -0
- package/src/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +153 -0
- package/src/components/runtime/views/assemblys/form/select/select-runtime.vue +241 -0
- package/src/components/runtime/views/assemblys/form/slider/slider-design.vue +16 -0
- package/src/components/runtime/views/assemblys/form/switch/switch-runtime.vue +58 -0
- package/src/components/runtime/views/assemblys/form/tag/tag-runtime.vue +60 -0
- package/src/components/runtime/views/assemblys/form/text/text-design.vue +19 -0
- package/src/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +60 -0
- package/src/components/runtime/views/assemblys/form/transfer/transfer-design.vue +32 -0
- package/src/components/runtime/views/assemblys/object-render.vue +176 -0
- package/src/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +179 -0
- package/src/components/runtime/views/assemblys/page/page-attr-base.vue +252 -0
- package/src/components/runtime/views/assemblys/page/page-attr-events.vue +50 -0
- package/src/components/runtime/views/assemblys/page/page-attr-style.vue +25 -0
- package/src/components/runtime/views/assemblys/page/page-attr.vue +84 -0
- package/src/components/runtime/views/assemblys/page/variable-dialog.vue +242 -0
- package/src/components/runtime/views/assemblys/workflow/component/combination.vue +206 -0
- package/src/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +99 -0
- package/src/components/runtime/views/assemblys/workflow/component/event-dialog.vue +278 -0
- package/src/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +174 -0
- package/src/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +155 -0
- package/src/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +47 -0
- package/src/components/runtime/views/assemblys/workflow/component/set-dialog.vue +130 -0
- package/src/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +96 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +43 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +27 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +17 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +60 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +27 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +17 -0
- package/src/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +61 -0
- package/src/components/runtime/views/render/page-view.vue +80 -0
- package/src/components/runtime/views/super-page copy.vue +61 -0
- package/src/components/runtime/views/super-page.vue +662 -0
- package/src/components/super-page-dialog/index.ts +2 -0
- package/src/components/super-page-dialog/super-page-dialog.vue +267 -0
- package/src/components/wf-editor/index.ts +2 -0
- package/src/components/wf-editor/wf-editor.vue +15 -0
- package/src/i18n/langs/cn.js +52 -0
- package/src/i18n/langs/en.js +52 -0
- package/src/index.ts +17 -0
- package/src/main.ts +11 -0
- package/src/stores/counter.ts +12 -0
- /package/dist/es/{runtime → components/runtime}/index.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/api/api-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/assemblys-config.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/common-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/events/event-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/events/standard-event.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/events/validator-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/global-refs.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/interfaces/page-design-types.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/page-helper-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/page-init-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/store-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/store.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/table-utils.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/error-render.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/error-render.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/object-render.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/object-render.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/super-page.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/super-page.vue2.js +0 -0
- /package/dist/es/{super-page-dialog → components/super-page-dialog}/index.js +0 -0
- /package/dist/es/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue.js +0 -0
- /package/dist/es/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue2.js +0 -0
- /package/dist/es/{wf-editor → components/wf-editor}/index.js +0 -0
- /package/dist/es/{wf-editor → components/wf-editor}/wf-editor.css +0 -0
- /package/dist/lib/{runtime → components/runtime}/index.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/api/api-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/assemblys-config.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/common-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/events/event-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/events/standard-event.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/events/validator-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/global-refs.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/interfaces/page-design-types.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/page-helper-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/page-init-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/store-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/store.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/table-utils.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/error-render.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/error-render.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/object-render.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/object-render.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/super-page.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/super-page.vue2.js +0 -0
- /package/dist/lib/{super-page-dialog → components/super-page-dialog}/index.js +0 -0
- /package/dist/lib/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue.js +0 -0
- /package/dist/lib/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue2.js +0 -0
- /package/dist/lib/{wf-editor → components/wf-editor}/index.js +0 -0
- /package/dist/lib/{wf-editor → components/wf-editor}/wf-editor.css +0 -0
|
@@ -0,0 +1,197 @@
|
|
|
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>
|
|
@@ -0,0 +1,16 @@
|
|
|
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>
|
|
@@ -0,0 +1,153 @@
|
|
|
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>
|
|
@@ -0,0 +1,241 @@
|
|
|
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>
|
|
@@ -0,0 +1,16 @@
|
|
|
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>
|
|
@@ -0,0 +1,58 @@
|
|
|
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>
|