super-page-runtime 1.0.12 → 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,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form-item
|
|
3
|
+
v-if="designProperty.tittleShow"
|
|
4
|
+
:required="designProperty.required"
|
|
5
|
+
:class="runtimeClass"
|
|
6
|
+
:label-width="designProperty.labelWidth"
|
|
7
|
+
:style="runtimeStyle"
|
|
8
|
+
>
|
|
9
|
+
<template #label>
|
|
10
|
+
<div v-if="designProperty.tittleShow" :style="{ ...headerStyle }">
|
|
11
|
+
{{ designProperty.title }}
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<FsUploadList
|
|
15
|
+
:disabled="designProperty.state == 'disabled'"
|
|
16
|
+
:fileSetObj="designProperty.fileSetObj"
|
|
17
|
+
:fileInfo="fileInfo"
|
|
18
|
+
></FsUploadList>
|
|
19
|
+
</el-form-item>
|
|
20
|
+
<FsUploadList
|
|
21
|
+
v-else
|
|
22
|
+
:disabled="designProperty.state == 'disabled'"
|
|
23
|
+
:fileSetObj="designProperty.fileSetObj"
|
|
24
|
+
:fileInfo="fileInfo"
|
|
25
|
+
></FsUploadList>
|
|
26
|
+
</template>
|
|
27
|
+
<script lang="ts" setup>
|
|
28
|
+
import { computed, watch } from 'vue'
|
|
29
|
+
import type { Component, PageContext } from '../../../../utils/interfaces/page-design-types'
|
|
30
|
+
import { getVariableValue, setVariableValue } from '../../../../utils/page-helper-util'
|
|
31
|
+
interface MyProps {
|
|
32
|
+
pageContext: PageContext
|
|
33
|
+
configure: Component
|
|
34
|
+
}
|
|
35
|
+
const props = defineProps<MyProps>()
|
|
36
|
+
|
|
37
|
+
//获取默认的样式及配置
|
|
38
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
|
|
39
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {}
|
|
40
|
+
const runtimeStyle = runtimeInfo.style
|
|
41
|
+
const runtimeClass = runtimeInfo.class
|
|
42
|
+
const headerStyle = runtimeInfo.headerStyle
|
|
43
|
+
//回显设置
|
|
44
|
+
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
45
|
+
//{name:'',serverPath:''}
|
|
46
|
+
const propsBase = props.configure.props.base ? props.configure.props.base : {}
|
|
47
|
+
let propName = propsBase.prop
|
|
48
|
+
const pathFields = getFieldsByVariable(propsBase.prop)
|
|
49
|
+
const nameFields = getFieldsByVariable(propsBase.propName)
|
|
50
|
+
const initNames = getVariableValue(entity, nameFields)
|
|
51
|
+
const initPaths = getVariableValue(entity, pathFields)
|
|
52
|
+
const fileInfo: any = ref({
|
|
53
|
+
name: initNames ? initNames : '',
|
|
54
|
+
serverPath: initPaths ? initPaths : ''
|
|
55
|
+
})
|
|
56
|
+
//监听对象,设置到变量中
|
|
57
|
+
watch(fileInfo, () => {
|
|
58
|
+
//名称
|
|
59
|
+
setVariableValue(entity, nameFields, fileInfo.name)
|
|
60
|
+
//路径
|
|
61
|
+
setVariableValue(entity, pathFields, fileInfo.serverPath)
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 获取变量各层级的字段
|
|
66
|
+
*/
|
|
67
|
+
function getFieldsByVariable(variableName) {
|
|
68
|
+
if (!variableName) {
|
|
69
|
+
return []
|
|
70
|
+
}
|
|
71
|
+
if (variableName.startsWith('${')) {
|
|
72
|
+
variableName = variableName.substring(2, variableName.length - 1)
|
|
73
|
+
}
|
|
74
|
+
return variableName.split('.')
|
|
75
|
+
}
|
|
76
|
+
</script>
|
package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<el-collapse v-model="openCollapseItems" style="margin-top:6px;">
|
|
4
|
+
<el-collapse-item
|
|
5
|
+
title="基本"
|
|
6
|
+
name="base"
|
|
7
|
+
class="amb-design-attr-group-header">
|
|
8
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
9
|
+
<el-form-item label="组件类型" class="amb-design-attr-item">
|
|
10
|
+
<el-select v-model="configure.name" placeholder="请选择" >
|
|
11
|
+
<el-option
|
|
12
|
+
v-for="item in getFormComponentOptions()"
|
|
13
|
+
:key="item.name"
|
|
14
|
+
:label="item.label"
|
|
15
|
+
:value="item.name"
|
|
16
|
+
/>
|
|
17
|
+
</el-select>
|
|
18
|
+
</el-form-item>
|
|
19
|
+
<el-form-item label="组件名" class="amb-design-attr-item">
|
|
20
|
+
<el-input v-model="configure.props.base.name" placeholder="请输入" />
|
|
21
|
+
</el-form-item>
|
|
22
|
+
<el-form-item label="绑定变量" class="amb-design-attr-item">
|
|
23
|
+
<el-input v-model="configure.props.base.prop" placeholder="请输入" />
|
|
24
|
+
</el-form-item>
|
|
25
|
+
<el-form-item label="标题" class="amb-design-attr-item">
|
|
26
|
+
<el-input v-model="configure.props.base.title" placeholder="请输入" />
|
|
27
|
+
</el-form-item>
|
|
28
|
+
<el-form-item label="文件大小" class="amb-design-attr-item">
|
|
29
|
+
<SizeInput v-model:modelValue="configure.props.base.fileSize" v-model:selectedUnit="configure.props.base.fileSizeUnit"></SizeInput>
|
|
30
|
+
</el-form-item>
|
|
31
|
+
<el-form-item label="文件数量" class="amb-design-attr-item">
|
|
32
|
+
<el-input v-model="configure.props.base.fileNumber" placeholder="请输入" />
|
|
33
|
+
</el-form-item>
|
|
34
|
+
<el-form-item label="支持多选" class="amb-design-attr-item">
|
|
35
|
+
<el-radio-group v-model="configure.props.base.multiSelect" class="ml-4">
|
|
36
|
+
<el-radio :value="false">否</el-radio>
|
|
37
|
+
<el-radio :value="true">是</el-radio>
|
|
38
|
+
</el-radio-group>
|
|
39
|
+
</el-form-item>
|
|
40
|
+
<el-form-item label="懒加载" class="amb-design-attr-item">
|
|
41
|
+
<el-radio-group v-model="configure.props.base.multiSelect" class="ml-4">
|
|
42
|
+
<el-radio :value="false">否</el-radio>
|
|
43
|
+
<el-radio :value="true">是</el-radio>
|
|
44
|
+
</el-radio-group>
|
|
45
|
+
</el-form-item>
|
|
46
|
+
<el-form-item label="显示方式" class="amb-design-attr-item">
|
|
47
|
+
<el-radio-group v-model="configure.props.base.fit" class="ml-4">
|
|
48
|
+
<el-radio label="fill"> fill </el-radio>
|
|
49
|
+
<el-radio label="contain"> contain </el-radio>
|
|
50
|
+
<el-radio label="cover"> cover </el-radio>
|
|
51
|
+
<el-radio label="none"> none </el-radio>
|
|
52
|
+
<el-radio label="scale-down"> scale-down </el-radio>
|
|
53
|
+
</el-radio-group>
|
|
54
|
+
</el-form-item>
|
|
55
|
+
</div>
|
|
56
|
+
</el-collapse-item>
|
|
57
|
+
<el-collapse-item
|
|
58
|
+
title="图片源"
|
|
59
|
+
name="imageSearch"
|
|
60
|
+
class="amb-design-attr-group-header">
|
|
61
|
+
<div style="padding:8px 0px 0px 0px;display: block">
|
|
62
|
+
<div
|
|
63
|
+
v-for="(item,index) in configure.props.imageSearch"
|
|
64
|
+
:key="index"
|
|
65
|
+
class="amb-design-attr-image-thumbnail-search">
|
|
66
|
+
<el-input class="search-input" v-model="item.imageUrl" />
|
|
67
|
+
<el-icon class="search-icon" @click="romoveImageUrl(item)"><Minus /></el-icon>
|
|
68
|
+
<el-icon class="search-icon" @click="addImageUrl"><Plus /></el-icon>
|
|
69
|
+
</div>
|
|
70
|
+
<el-icon
|
|
71
|
+
v-if="configure.props.imageSearch && configure.props.imageSearch.length == 0"
|
|
72
|
+
class="search-icon"
|
|
73
|
+
@click="addImageUrl">
|
|
74
|
+
<Plus />
|
|
75
|
+
</el-icon>
|
|
76
|
+
</div>
|
|
77
|
+
</el-collapse-item>
|
|
78
|
+
<el-collapse-item
|
|
79
|
+
title="校验"
|
|
80
|
+
name="verification"
|
|
81
|
+
class="amb-design-attr-group-header">
|
|
82
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
83
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
84
|
+
<el-checkbox v-model="configure.props.verification.required" label="必填"/>
|
|
85
|
+
</el-form-item>
|
|
86
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
87
|
+
<el-col :span="8">
|
|
88
|
+
<el-checkbox label="自定义" value="custom" />
|
|
89
|
+
</el-col>
|
|
90
|
+
<el-col :span="14">
|
|
91
|
+
<el-button>自定义逻辑</el-button><el-button :icon="Search" circle />
|
|
92
|
+
</el-col>
|
|
93
|
+
</el-form-item>
|
|
94
|
+
</div>
|
|
95
|
+
</el-collapse-item>
|
|
96
|
+
<el-collapse-item
|
|
97
|
+
title="缩略图"
|
|
98
|
+
name="thumbnail"
|
|
99
|
+
class="amb-design-attr-group-header">
|
|
100
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
101
|
+
<el-form-item label="宽度" class="amb-design-attr-item">
|
|
102
|
+
<el-input v-model="configure.props.base.imgWidth" placeholder="请输入" />
|
|
103
|
+
</el-form-item>
|
|
104
|
+
<el-form-item label="高度" class="amb-design-attr-item">
|
|
105
|
+
<el-input v-model="configure.props.base.imgHeight" placeholder="请输入" />
|
|
106
|
+
</el-form-item>
|
|
107
|
+
<el-form-item label="附件结果集合中文件存储路径的数据绑定key" style="margin-bottom: 60px">
|
|
108
|
+
<el-input v-model="configure.props.base.serverPathModel" placeholder="请输入" />
|
|
109
|
+
</el-form-item>
|
|
110
|
+
</div>
|
|
111
|
+
</el-collapse-item>
|
|
112
|
+
<CommonAttrSize :size="configure.props.size" />
|
|
113
|
+
<Title :title="configure.props.title" />
|
|
114
|
+
</el-collapse>
|
|
115
|
+
</el-form>
|
|
116
|
+
</template>
|
|
117
|
+
<script lang='ts' setup>
|
|
118
|
+
import {Minus, Plus} from '@element-plus/icons-vue';
|
|
119
|
+
import { ref } from 'vue';
|
|
120
|
+
import { getFormComponentOptions } from '../../../../utils/assemblys-config.js'
|
|
121
|
+
// import Verification from '../common/verification.vue'
|
|
122
|
+
import CommonAttrSize from '../../common/common-attr-size.vue'
|
|
123
|
+
import Title from '../common/title.vue'
|
|
124
|
+
import SizeInput from '../common/size-input.vue'
|
|
125
|
+
import DimensionInput from '../common/dimension-input.vue'
|
|
126
|
+
|
|
127
|
+
const props = defineProps({
|
|
128
|
+
configure: Object,
|
|
129
|
+
default: () => ({props: {}})
|
|
130
|
+
});
|
|
131
|
+
const openCollapseItems = ref("")
|
|
132
|
+
|
|
133
|
+
function addImageUrl() {
|
|
134
|
+
props.configure.props.imageSearch.push({imageUrl:''})
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function romoveImageUrl(imageUrl:object) {
|
|
138
|
+
props.configure.props.imageSearch =
|
|
139
|
+
props.configure.props.imageSearch.filter(item => item != imageUrl)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
</script>
|
package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<AttrEvent :events="events"></AttrEvent>
|
|
4
|
+
</el-form>
|
|
5
|
+
</template>
|
|
6
|
+
<script lang='ts' setup>
|
|
7
|
+
import { ref, computed, defineEmits } from 'vue';
|
|
8
|
+
import AttrEvent from '../common/attr-event.vue'
|
|
9
|
+
import {getFormComponentOptions} from '../../../../utils/assemblys-config.js'
|
|
10
|
+
defineProps({
|
|
11
|
+
configure:Object
|
|
12
|
+
});
|
|
13
|
+
const events = ['click', 'change', 'show', 'hidden','upload','select']
|
|
14
|
+
</script>
|
package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<el-collapse v-model="openCollapseItems" style="margin-top:6px;">
|
|
4
|
+
<AttrStyle :configure="configure"></AttrStyle>
|
|
5
|
+
</el-collapse>
|
|
6
|
+
</el-form>
|
|
7
|
+
</template>
|
|
8
|
+
<script lang='ts' setup>
|
|
9
|
+
import { defineProps } from 'vue';
|
|
10
|
+
import AttrStyle from '../common/attr-style.vue'
|
|
11
|
+
defineProps({
|
|
12
|
+
configure:Object
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="amb-design-attr-content">
|
|
3
|
+
<AttrHeader v-model="currentConfigType"/>
|
|
4
|
+
<div class="amb-design-attr-list">
|
|
5
|
+
<AttrBase v-show="currentConfigType === 'base'" :configure="configure"></AttrBase>
|
|
6
|
+
<AttrStyle v-show="currentConfigType === 'style'" :configure="configure"></AttrStyle>
|
|
7
|
+
<AttrEvent v-show="currentConfigType === 'event'" :configure="configure"></AttrEvent>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<script lang='ts' setup>
|
|
12
|
+
import AttrBase from './imagethumbnail-attr-base.vue';
|
|
13
|
+
import AttrStyle from './imagethumbnail-attr-style.vue';
|
|
14
|
+
import AttrHeader from '../common/attr-header.vue'
|
|
15
|
+
import AttrEvent from './imagethumbnail-attr-event.vue';
|
|
16
|
+
import { ref } from 'vue';
|
|
17
|
+
|
|
18
|
+
defineProps({
|
|
19
|
+
configure: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({ title: 'Text',props: {type: 'input-text'} }) // 设置默认值
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
let currentConfigType = ref("base")
|
|
25
|
+
|
|
26
|
+
</script>
|
|
27
|
+
<style >
|
|
28
|
+
@import '../../../../../../assets/design-attr.css';
|
|
29
|
+
</style>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="max-height: 400px;overflow-y: scroll">
|
|
3
|
+
<el-form-item
|
|
4
|
+
:required="designProperty.required?true:false"
|
|
5
|
+
:class="designClass"
|
|
6
|
+
:label-width="designProperty.labelWidth"
|
|
7
|
+
:style="designStyle">
|
|
8
|
+
<template #label>
|
|
9
|
+
<div :style="designHeaderStyle">
|
|
10
|
+
{{ designProperty.title?designProperty.title:'image' }}
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
<div>
|
|
14
|
+
<el-image
|
|
15
|
+
:style="{'width': designProperty.imgWidth,'height':designProperty.imgHeight,'margin-bottom':'10px','display':'block'}"
|
|
16
|
+
v-for="(item,index) in designProperty.imageSearchList"
|
|
17
|
+
:fit="designProperty.fit"
|
|
18
|
+
:src="item.imageUrl?item.imageUrl:''"
|
|
19
|
+
:key="index" />
|
|
20
|
+
</div>
|
|
21
|
+
</el-form-item>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
<script lang='ts' setup>
|
|
25
|
+
import {caculateDetailComponentStyle,caculateComponentProps} from "../../../../utils/form-design-util";
|
|
26
|
+
|
|
27
|
+
import {ref, confineProps, watch} from 'vue';
|
|
28
|
+
const props = defineProps({
|
|
29
|
+
configure:Object
|
|
30
|
+
});
|
|
31
|
+
//定义自身详细参数
|
|
32
|
+
const designStyle = ref({});
|
|
33
|
+
const designClass = ref('');
|
|
34
|
+
const designHeaderStyle = ref({});
|
|
35
|
+
const designProperty = ref({})
|
|
36
|
+
function getRestsParameter(){
|
|
37
|
+
let defineProps = {}
|
|
38
|
+
const tempProps = {}
|
|
39
|
+
|
|
40
|
+
if (props.configure.props.preSuffix){
|
|
41
|
+
defineProps = props.configure.props
|
|
42
|
+
}
|
|
43
|
+
// 图片源
|
|
44
|
+
if (defineProps['imageSearch']){
|
|
45
|
+
tempProps['imageSearchList'] = defineProps['imageSearch']
|
|
46
|
+
}else {
|
|
47
|
+
tempProps['imageSearchList'] = [{imageUrl:''}]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 显示方式
|
|
51
|
+
if (defineProps['base']['fit']){
|
|
52
|
+
tempProps['fit'] = defineProps['base']['fit']
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// 图片宽度
|
|
56
|
+
if (defineProps['base']['imgWidth']){
|
|
57
|
+
tempProps['imgWidth'] = defineProps['base']['imgWidth'] + 'px'
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// 图片高度
|
|
61
|
+
if (defineProps['base']['imgHeight']){
|
|
62
|
+
tempProps['imgHeight'] = defineProps['base']['imgHeight'] + 'px'
|
|
63
|
+
}
|
|
64
|
+
if (tempProps != {}){
|
|
65
|
+
for (const tempPropsKey in tempProps) {
|
|
66
|
+
designProperty.value[tempPropsKey] = tempProps[tempPropsKey]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//监控配置样式的变化
|
|
71
|
+
watch(props.configure.style,()=>{
|
|
72
|
+
caculateDetailComponentStyle(props.configure,designStyle,designClass,designHeaderStyle);
|
|
73
|
+
},{immediate:true});
|
|
74
|
+
|
|
75
|
+
//监控配置属性的变化
|
|
76
|
+
watch(props.configure.props,()=>{
|
|
77
|
+
caculateComponentProps(props.configure,designProperty)
|
|
78
|
+
getRestsParameter()
|
|
79
|
+
console.log('%c描述-091621','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',designProperty.value);
|
|
80
|
+
},{immediate:true});
|
|
81
|
+
</script>
|
|
82
|
+
<style scoped>
|
|
83
|
+
|
|
84
|
+
</style>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<el-collapse v-model="openCollapseItems" style="margin-top:6px;">
|
|
4
|
+
<el-collapse-item
|
|
5
|
+
title="基本"
|
|
6
|
+
name="base"
|
|
7
|
+
class="amb-design-attr-group-header">
|
|
8
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
9
|
+
<el-form-item label="组件类型" class="amb-design-attr-item">
|
|
10
|
+
<el-select v-model="configure.name" placeholder="请选择" >
|
|
11
|
+
<el-option
|
|
12
|
+
v-for="item in getFormComponentOptions()"
|
|
13
|
+
:key="item.name"
|
|
14
|
+
:label="item.label"
|
|
15
|
+
:value="item.name"
|
|
16
|
+
/>
|
|
17
|
+
</el-select>
|
|
18
|
+
</el-form-item>
|
|
19
|
+
<el-form-item label="组件名" class="amb-design-attr-item">
|
|
20
|
+
<el-input v-model="configure.props.base.name" placeholder="请输入" />
|
|
21
|
+
</el-form-item>
|
|
22
|
+
<el-form-item label="绑定变量" class="amb-design-attr-item">
|
|
23
|
+
<el-input v-model="configure.props.base.prop" placeholder="请输入" />
|
|
24
|
+
</el-form-item>
|
|
25
|
+
<el-form-item label="标题" class="amb-design-attr-item">
|
|
26
|
+
<el-input v-model="configure.props.base.title" placeholder="请输入" />
|
|
27
|
+
</el-form-item>
|
|
28
|
+
<el-form-item label="状态" class="amb-design-attr-item">
|
|
29
|
+
<el-radio-group v-model="configure.props.base.state" class="ml-4">
|
|
30
|
+
<el-radio value="default">普通</el-radio>
|
|
31
|
+
<el-radio value="disabled">禁用</el-radio>
|
|
32
|
+
<el-radio value="hidden">隐藏</el-radio>
|
|
33
|
+
</el-radio-group>
|
|
34
|
+
</el-form-item>
|
|
35
|
+
</div>
|
|
36
|
+
</el-collapse-item>
|
|
37
|
+
<el-collapse-item
|
|
38
|
+
title="校验"
|
|
39
|
+
name="verification"
|
|
40
|
+
class="amb-design-attr-group-header">
|
|
41
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
42
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
43
|
+
<el-checkbox v-model="configure.props.verification.required" label="必填"/>
|
|
44
|
+
</el-form-item>
|
|
45
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
46
|
+
<el-col :span="8">
|
|
47
|
+
<el-checkbox label="自定义" value="custom" />
|
|
48
|
+
</el-col>
|
|
49
|
+
<el-col :span="14">
|
|
50
|
+
<el-button>自定义逻辑</el-button><el-button :icon="Search" circle />
|
|
51
|
+
</el-col>
|
|
52
|
+
</el-form-item>
|
|
53
|
+
</div>
|
|
54
|
+
</el-collapse-item>
|
|
55
|
+
<uploading :uploadConfig="configure.props.uploadConfig"></uploading>
|
|
56
|
+
<CommonAttrSize :size="configure.props.size" />
|
|
57
|
+
<Title :title="configure.props.title" />
|
|
58
|
+
</el-collapse>
|
|
59
|
+
</el-form>
|
|
60
|
+
</template>
|
|
61
|
+
<script lang='ts' setup>
|
|
62
|
+
import { ref } from 'vue';
|
|
63
|
+
import { getFormComponentOptions } from '../../../../utils/assemblys-config.js'
|
|
64
|
+
import Verification from '../common/verification.vue'
|
|
65
|
+
import CommonAttrSize from '../../common/common-attr-size.vue'
|
|
66
|
+
import Title from '../common/title.vue'
|
|
67
|
+
import uploading from '../common/uploading.vue'
|
|
68
|
+
|
|
69
|
+
defineProps({
|
|
70
|
+
configure: Object,
|
|
71
|
+
default: () => ({props: {}})
|
|
72
|
+
});
|
|
73
|
+
const openCollapseItems = ref("")
|
|
74
|
+
|
|
75
|
+
</script>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<AttrEvent :events="events"></AttrEvent>
|
|
4
|
+
</el-form>
|
|
5
|
+
</template>
|
|
6
|
+
<script lang='ts' setup>
|
|
7
|
+
import { ref, computed, defineEmits } from 'vue';
|
|
8
|
+
import AttrEvent from '../common/attr-event.vue'
|
|
9
|
+
defineProps({
|
|
10
|
+
configure:Object
|
|
11
|
+
});
|
|
12
|
+
const events = ['click', 'change', 'show', 'hidden']
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<el-collapse v-model="openCollapseItems" style="margin-top:6px;">
|
|
4
|
+
<AttrStyle :configure="configure"></AttrStyle>
|
|
5
|
+
</el-collapse>
|
|
6
|
+
</el-form>
|
|
7
|
+
</template>
|
|
8
|
+
<script lang='ts' setup>
|
|
9
|
+
import { defineProps } from 'vue';
|
|
10
|
+
import AttrStyle from '../common/attr-style.vue'
|
|
11
|
+
defineProps({
|
|
12
|
+
configure:Object
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="amb-design-attr-content">
|
|
3
|
+
<AttrHeader v-model="currentConfigType"/>
|
|
4
|
+
<div class="amb-design-attr-list">
|
|
5
|
+
<AttrBase v-show="currentConfigType === 'base'" :configure="configure"></AttrBase>
|
|
6
|
+
<AttrStyle v-show="currentConfigType === 'style'" :configure="configure"></AttrStyle>
|
|
7
|
+
<AttrEvent v-show="currentConfigType === 'event'" :configure="configure"></AttrEvent>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<script lang='ts' setup>
|
|
12
|
+
import AttrBase from './imageupload-attr-base.vue';
|
|
13
|
+
import AttrStyle from './imageupload-attr-style.vue';
|
|
14
|
+
import AttrHeader from '../common/attr-header.vue'
|
|
15
|
+
import AttrEvent from './imageupload-attr-event.vue';
|
|
16
|
+
import { ref } from 'vue';
|
|
17
|
+
|
|
18
|
+
defineProps({
|
|
19
|
+
configure: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({ title: 'Text',props: {type: 'input-text'} }) // 设置默认值
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
let currentConfigType = ref("base")
|
|
25
|
+
|
|
26
|
+
</script>
|
|
27
|
+
<style >
|
|
28
|
+
@import '../../../../../../assets/design-attr.css';
|
|
29
|
+
</style>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form-item
|
|
3
|
+
:required="designProperty.required?true:false"
|
|
4
|
+
:class="designClass"
|
|
5
|
+
:label-width="designProperty.labelWidth"
|
|
6
|
+
:style="designStyle">
|
|
7
|
+
<template #label>
|
|
8
|
+
<div :style="designHeaderStyle">
|
|
9
|
+
{{ designProperty.title?designProperty.title:'image-upload' }}
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
<el-upload
|
|
13
|
+
:disabled="designProperty.state === 'disabled'? true : false"
|
|
14
|
+
class="avatar-uploader"
|
|
15
|
+
>
|
|
16
|
+
<el-icon class="avatar-uploader-icon"><Plus /></el-icon>
|
|
17
|
+
</el-upload>
|
|
18
|
+
</el-form-item>
|
|
19
|
+
</template>
|
|
20
|
+
<script lang='ts' setup>
|
|
21
|
+
import {Plus} from '@element-plus/icons-vue'
|
|
22
|
+
import {ref, watch} from "vue";
|
|
23
|
+
import {caculateDetailComponentStyle,caculateComponentProps} from "../../../../utils/form-design-util";
|
|
24
|
+
const props = defineProps({
|
|
25
|
+
configure:Object
|
|
26
|
+
});
|
|
27
|
+
if(props.configure.title==undefined){
|
|
28
|
+
props.configure.title = 'Text';
|
|
29
|
+
}
|
|
30
|
+
//定义自身详细参数
|
|
31
|
+
const designStyle = ref({});
|
|
32
|
+
const designClass = ref('');
|
|
33
|
+
const designHeaderStyle = ref({});
|
|
34
|
+
const designProperty = ref({})
|
|
35
|
+
function getRestsParameter(){
|
|
36
|
+
let defineProps = {}
|
|
37
|
+
const tempProps = {}
|
|
38
|
+
|
|
39
|
+
if (props.configure.props.preSuffix){
|
|
40
|
+
defineProps = props.configure.props
|
|
41
|
+
}
|
|
42
|
+
// 行数
|
|
43
|
+
if (defineProps['base']['rows']){
|
|
44
|
+
tempProps['rows'] = defineProps['base']['rows']
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (tempProps != {}){
|
|
48
|
+
for (const tempPropsKey in tempProps) {
|
|
49
|
+
designProperty.value[tempPropsKey] = tempProps[tempPropsKey]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//监控配置样式的变化
|
|
54
|
+
watch(props.configure.style,()=>{
|
|
55
|
+
caculateDetailComponentStyle(props.configure,designStyle,designClass,designHeaderStyle);
|
|
56
|
+
},{immediate:true});
|
|
57
|
+
|
|
58
|
+
//监控配置属性的变化
|
|
59
|
+
watch(props.configure.props,()=>{
|
|
60
|
+
caculateComponentProps(props.configure,designProperty)
|
|
61
|
+
getRestsParameter()
|
|
62
|
+
},{immediate:true});
|
|
63
|
+
</script>
|
|
64
|
+
<style scoped>
|
|
65
|
+
|
|
66
|
+
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
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-input-number
|
|
13
|
+
:disabled="designProperty.state === 'disabled'"
|
|
14
|
+
:readonly="designProperty.state === 'readonly'"
|
|
15
|
+
:controls="designProperty.showButton"
|
|
16
|
+
:size="designProperty.size"
|
|
17
|
+
:placeholder="designProperty.placeholder"
|
|
18
|
+
v-model="dynamicModelMethod"
|
|
19
|
+
:precision="designProperty.precision"
|
|
20
|
+
:step="designProperty.step"
|
|
21
|
+
:min="designProperty.min"
|
|
22
|
+
:max="designProperty.max" />
|
|
23
|
+
</el-form-item>
|
|
24
|
+
</template>
|
|
25
|
+
<script lang='ts' setup>
|
|
26
|
+
import {computed} from "vue";
|
|
27
|
+
import type { Component,PageContext} from '../../../../utils/interfaces/page-design-types';
|
|
28
|
+
import { getFormModelFields} from '../../../../utils/page-init-util';
|
|
29
|
+
import { getVariableValue,setVariableValue} from '../../../../utils/page-helper-util';
|
|
30
|
+
|
|
31
|
+
//定义的属性对象
|
|
32
|
+
interface MyProps{
|
|
33
|
+
//页面对象
|
|
34
|
+
pageContext:PageContext,
|
|
35
|
+
configure:Component
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const props = defineProps<MyProps>();
|
|
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
|
+
</script>
|