super-page-runtime 1.0.15 → 1.0.16
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/.eslintrc.cjs +26 -0
- package/.prettierrc.json +8 -0
- package/App.vue +9 -0
- package/components/index.ts +17 -0
- package/components/runtime/index.ts +2 -0
- package/components/runtime/utils/assemblys-config.js +294 -0
- package/components/runtime/views/assemblys/button/button/button-runtime.vue +49 -0
- package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +26 -0
- package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +93 -0
- package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +59 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +32 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +60 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +39 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +104 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +145 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +119 -0
- package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +28 -0
- package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +45 -0
- package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +78 -0
- package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +56 -0
- package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +70 -0
- package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +70 -0
- package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +140 -0
- package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +58 -0
- package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +125 -0
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +67 -0
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +57 -0
- package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +23 -0
- package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +209 -0
- package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +46 -0
- package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +56 -0
- package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +55 -0
- package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +57 -0
- package/components/runtime/views/assemblys/common/common-attr-cursor.vue +23 -0
- package/components/runtime/views/assemblys/common/common-attr-size.vue +54 -0
- package/components/runtime/views/assemblys/common/common-select-table.vue +287 -0
- package/components/runtime/views/assemblys/common/common-style-background.vue +46 -0
- package/components/runtime/views/assemblys/common/common-style-border.vue +37 -0
- package/components/runtime/views/assemblys/common/common-style-custom.vue +35 -0
- package/components/runtime/views/assemblys/common/common-style-font-head.vue +53 -0
- package/components/runtime/views/assemblys/common/common-style-font.vue +53 -0
- package/components/runtime/views/assemblys/common/common-style-margin.vue +34 -0
- package/components/runtime/views/assemblys/common/common-style-padding.vue +34 -0
- package/components/runtime/views/assemblys/common/common-style-position.vue +39 -0
- package/components/runtime/views/assemblys/common/common-style-shadow.vue +37 -0
- package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +108 -0
- package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +99 -0
- package/components/runtime/views/assemblys/common/task-informition-dialog.vue +69 -0
- package/components/runtime/views/assemblys/common-attr-events.vue +46 -0
- package/components/runtime/views/assemblys/container/card/card-runtime.vue +59 -0
- package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +59 -0
- package/components/runtime/views/assemblys/container/container/container-runtime.vue +41 -0
- package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +35 -0
- package/components/runtime/views/assemblys/container/form/form-runtime.vue +37 -0
- package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +32 -0
- package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +54 -0
- package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +99 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +117 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +25 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +28 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +103 -0
- package/components/runtime/views/assemblys/data/component/attr-header.vue +69 -0
- package/components/runtime/views/assemblys/data/component/attr-style.vue +64 -0
- package/components/runtime/views/assemblys/data/component/column-config.vue +171 -0
- package/components/runtime/views/assemblys/data/component/combinedHeader.vue +96 -0
- package/components/runtime/views/assemblys/data/component/composite-header.vue +257 -0
- package/components/runtime/views/assemblys/data/component/configuration-value.vue +206 -0
- package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +117 -0
- package/components/runtime/views/assemblys/data/component/data-origin.vue +260 -0
- package/components/runtime/views/assemblys/data/component/formatting.vue +200 -0
- package/components/runtime/views/assemblys/data/component/in-parameter.vue +56 -0
- package/components/runtime/views/assemblys/data/component/querySetting.vue +52 -0
- package/components/runtime/views/assemblys/data/component/return-set-table.vue +91 -0
- package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +58 -0
- package/components/runtime/views/assemblys/data/component/select-data-table.vue +86 -0
- package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +858 -0
- package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +625 -0
- package/components/runtime/views/assemblys/data/table/table-runtime.vue +93 -0
- package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +137 -0
- package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +55 -0
- package/components/runtime/views/assemblys/data/tree/tree-attr.vue +28 -0
- package/components/runtime/views/assemblys/data/tree/tree-design.vue +125 -0
- package/components/runtime/views/assemblys/error-attr.vue +15 -0
- package/components/runtime/views/assemblys/error-render.vue +17 -0
- package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +288 -0
- package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +198 -0
- package/components/runtime/views/assemblys/form/colors/colors-design.vue +16 -0
- package/components/runtime/views/assemblys/form/common/analytic-rule.vue +148 -0
- package/components/runtime/views/assemblys/form/common/attr-event.vue +82 -0
- package/components/runtime/views/assemblys/form/common/attr-header.vue +54 -0
- package/components/runtime/views/assemblys/form/common/attr-style.vue +44 -0
- package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +104 -0
- package/components/runtime/views/assemblys/form/common/condition.vue +147 -0
- package/components/runtime/views/assemblys/form/common/data-origin.vue +81 -0
- package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +64 -0
- package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +106 -0
- package/components/runtime/views/assemblys/form/common/default-value-setting.vue +362 -0
- package/components/runtime/views/assemblys/form/common/dimension-input.vue +68 -0
- package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +115 -0
- package/components/runtime/views/assemblys/form/common/formatting-label.vue +81 -0
- package/components/runtime/views/assemblys/form/common/grid-num-select.vue +43 -0
- package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +144 -0
- package/components/runtime/views/assemblys/form/common/linkage.vue +21 -0
- package/components/runtime/views/assemblys/form/common/overall-height.vue +20 -0
- package/components/runtime/views/assemblys/form/common/overall-width.vue +48 -0
- package/components/runtime/views/assemblys/form/common/pre-suffix.vue +33 -0
- package/components/runtime/views/assemblys/form/common/rich-text.vue +100 -0
- package/components/runtime/views/assemblys/form/common/row-ul-li.vue +55 -0
- package/components/runtime/views/assemblys/form/common/setoption-table.vue +86 -0
- package/components/runtime/views/assemblys/form/common/size-input.vue +65 -0
- package/components/runtime/views/assemblys/form/common/suffixmodule.vue +82 -0
- package/components/runtime/views/assemblys/form/common/title.vue +20 -0
- package/components/runtime/views/assemblys/form/common/uploading.vue +34 -0
- package/components/runtime/views/assemblys/form/common/verification.vue +79 -0
- package/components/runtime/views/assemblys/form/common/voluntarily.vue +27 -0
- package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +81 -0
- package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +14 -0
- package/components/runtime/views/assemblys/form/custom/custom-attr.vue +28 -0
- package/components/runtime/views/assemblys/form/custom/custom-design.vue +57 -0
- package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +80 -0
- package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +19 -0
- package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +60 -0
- package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +44 -0
- package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +80 -0
- package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +79 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +142 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +14 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +28 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +104 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +75 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +13 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +14 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +28 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +76 -0
- package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +62 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +68 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +70 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +28 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +155 -0
- package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +142 -0
- package/components/runtime/views/assemblys/form/label/label-runtime.vue +143 -0
- package/components/runtime/views/assemblys/form/link/link-runtime.vue +70 -0
- package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +24 -0
- package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +203 -0
- package/components/runtime/views/assemblys/form/rate/rate-design.vue +16 -0
- package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +169 -0
- package/components/runtime/views/assemblys/form/select/select-runtime.vue +247 -0
- package/components/runtime/views/assemblys/form/slider/slider-design.vue +16 -0
- package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +63 -0
- package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +65 -0
- package/components/runtime/views/assemblys/form/text/text-design.vue +19 -0
- package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +63 -0
- package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +32 -0
- package/components/runtime/views/assemblys/object-render.vue +176 -0
- package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +179 -0
- package/components/runtime/views/assemblys/page/page-attr-base.vue +259 -0
- package/components/runtime/views/assemblys/page/page-attr-events.vue +50 -0
- package/components/runtime/views/assemblys/page/page-attr-style.vue +25 -0
- package/components/runtime/views/assemblys/page/page-attr.vue +84 -0
- package/components/runtime/views/assemblys/page/variable-dialog.vue +242 -0
- package/components/runtime/views/assemblys/workflow/component/combination.vue +206 -0
- package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +99 -0
- package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +278 -0
- package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +174 -0
- package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +155 -0
- package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +47 -0
- package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +130 -0
- package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +96 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +43 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +27 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +28 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +17 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +60 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +27 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +28 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +17 -0
- package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +64 -0
- package/components/runtime/views/render/page-view.vue +80 -0
- package/components/runtime/views/super-page copy.vue +61 -0
- package/components/runtime/views/super-page.vue +667 -0
- package/components/super-page-dialog/index.ts +2 -0
- package/components/super-page-dialog/super-page-dialog.vue +267 -0
- package/components/wf-editor/index.ts +2 -0
- package/components/wf-editor/wf-editor.vue +15 -0
- package/cypress/e2e/example.cy.ts +8 -0
- package/cypress/e2e/tsconfig.json +10 -0
- package/cypress/fixtures/example.json +5 -0
- package/cypress/support/commands.ts +39 -0
- package/cypress/support/e2e.ts +20 -0
- package/cypress.config.ts +8 -0
- package/env.d.ts +1 -0
- package/index.html +13 -0
- package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -4
- package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue.js +4 -4
- package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/super-page.vue.js +7 -7
- package/{dist/lib/components → lib}/wf-editor/wf-editor.vue.js +1 -1
- package/main.ts +11 -0
- package/package-ws.json +70 -0
- package/package.json +3 -7
- package/tsconfig copy.json +17 -0
- package/tsconfig.app copy.json +14 -0
- package/tsconfig.app.json +14 -0
- package/tsconfig.json +17 -0
- package/tsconfig.node copy.json +19 -0
- package/tsconfig.node.json +19 -0
- package/tsconfig.vitest copy.json +11 -0
- package/tsconfig.vitest.json +11 -0
- package/vite.config copy.ts +109 -0
- package/vite.config.ts +86 -0
- package/vitest.config.ts +14 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/es/components/index.js +0 -8
- package/dist/es/components/runtime/index.js +0 -4
- package/dist/es/components/runtime/utils/assemblys-config.js +0 -257
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -55
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -36
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -111
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -54
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -43
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -51
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -51
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -52
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -142
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -128
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -105
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -73
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -641
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +0 -23
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -157
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -60
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -41
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -75
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -128
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -134
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -30
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -158
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -175
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -202
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -66
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +0 -143
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -62
- package/dist/es/components/runtime/views/super-page.vue.js +0 -480
- package/dist/es/components/runtime/views/super-page.vue2.js +0 -4
- package/dist/es/components/super-page-dialog/index.js +0 -4
- package/dist/es/components/super-page-dialog/super-page-dialog.vue.js +0 -74
- package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +0 -4
- package/dist/es/components/wf-editor/index.js +0 -4
- package/dist/es/components/wf-editor/wf-editor.vue.js +0 -16
- package/dist/es/src/assets/chart-themes/theme1.js +0 -8
- package/dist/es/src/assets/chart-themes/theme2.js +0 -8
- package/dist/es/src/assets/chart-themes/theme3.js +0 -8
- package/dist/es/src/utils/api/api-util.js +0 -128
- package/dist/es/src/utils/charts/chart-util.js +0 -15
- package/dist/es/src/utils/common-util.js +0 -81
- package/dist/es/src/utils/events/event-util.js +0 -525
- package/dist/es/src/utils/events/standard-event.js +0 -1623
- package/dist/es/src/utils/events/validator-util.js +0 -389
- package/dist/es/src/utils/global-refs.js +0 -65
- package/dist/es/src/utils/interfaces/page-design-types.js +0 -9
- package/dist/es/src/utils/page-helper-util.js +0 -503
- package/dist/es/src/utils/page-init-util.js +0 -200
- package/dist/es/src/utils/store-util.js +0 -17
- package/dist/es/src/utils/store.js +0 -4
- package/dist/es/src/utils/table-utils.js +0 -23
- package/dist/lib/components/index.d.ts +0 -5
- package/dist/lib/components/runtime/index.d.ts +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/lib/components/super-page-dialog/index.d.ts +0 -3
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/wf-editor/index.d.ts +0 -3
- package/dist/lib/components/wf-editor/wf-editor.css +0 -4
- package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/src/utils/api/api-util.d.ts +0 -11
- package/dist/lib/src/utils/common-util.d.ts +0 -11
- package/dist/lib/src/utils/events/event-util.d.ts +0 -48
- package/dist/lib/src/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/src/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/src/utils/global-refs.d.ts +0 -59
- package/dist/lib/src/utils/interfaces/page-design-types.d.ts +0 -221
- package/dist/lib/src/utils/page-helper-util.d.ts +0 -87
- package/dist/lib/src/utils/page-init-util.d.ts +0 -38
- package/dist/lib/src/utils/store-util.d.ts +0 -15
- package/dist/lib/src/utils/store.d.ts +0 -2
- package/lib/components/index.js +0 -8
- /package/{dist/lib → lib}/_virtual/_plugin-vue_export-helper.js +0 -0
- /package/{dist/es → lib}/components/index.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/index.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/object-render.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/super-page.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/super-page-dialog/index.d.ts +0 -0
- /package/{dist/es → lib}/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/wf-editor/index.d.ts +0 -0
- /package/{dist/es → lib}/components/wf-editor/wf-editor.vue.d.ts +0 -0
- /package/{dist/es → lib}/favicon.ico +0 -0
- /package/{dist/lib/components → lib}/index.js +0 -0
- /package/{dist/lib/components → lib}/runtime/index.js +0 -0
- /package/{dist/lib/components → lib}/runtime/utils/assemblys-config.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/super-page.vue2.js +0 -0
- /package/{dist/lib → lib}/src/assets/chart-themes/theme1.js +0 -0
- /package/{dist/lib → lib}/src/assets/chart-themes/theme2.js +0 -0
- /package/{dist/lib → lib}/src/assets/chart-themes/theme3.js +0 -0
- /package/{dist/es → lib}/src/utils/api/api-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/api/api-util.js +0 -0
- /package/{dist/lib → lib}/src/utils/charts/chart-util.js +0 -0
- /package/{dist/es → lib}/src/utils/common-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/common-util.js +0 -0
- /package/{dist/es → lib}/src/utils/events/event-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/event-util.js +0 -0
- /package/{dist/es → lib}/src/utils/events/standard-event.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/standard-event.js +0 -0
- /package/{dist/es → lib}/src/utils/events/validator-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/validator-util.js +0 -0
- /package/{dist/es → lib}/src/utils/global-refs.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/global-refs.js +0 -0
- /package/{dist/es → lib}/src/utils/interfaces/page-design-types.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/interfaces/page-design-types.js +0 -0
- /package/{dist/es → lib}/src/utils/page-helper-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/page-helper-util.js +0 -0
- /package/{dist/es → lib}/src/utils/page-init-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/page-init-util.js +0 -0
- /package/{dist/es → lib}/src/utils/store-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/store-util.js +0 -0
- /package/{dist/es → lib}/src/utils/store.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/store.js +0 -0
- /package/{dist/lib → lib}/src/utils/table-utils.js +0 -0
- /package/{dist/lib/components → lib}/super-page-dialog/index.js +0 -0
- /package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue.js +0 -0
- /package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/wf-editor/index.js +0 -0
- /package/{dist/es/components → lib}/wf-editor/wf-editor.css +0 -0
- /package/{dist → public}/favicon.ico +0 -0
|
@@ -0,0 +1,247 @@
|
|
|
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 {
|
|
49
|
+
Component,
|
|
50
|
+
PageContext
|
|
51
|
+
} from '../../../../../../src/utils/interfaces/page-design-types'
|
|
52
|
+
import {
|
|
53
|
+
queryOptionDatasources,
|
|
54
|
+
autoSetAfterSelect
|
|
55
|
+
} from '../../../../../../src/utils/page-helper-util'
|
|
56
|
+
import { getFormModelFields } from '../../../../../../src/utils/page-init-util'
|
|
57
|
+
import {
|
|
58
|
+
getVariableValue,
|
|
59
|
+
setVariableValue,
|
|
60
|
+
getOptionDatasFromPage
|
|
61
|
+
} from '../../../../../../src/utils/page-helper-util'
|
|
62
|
+
|
|
63
|
+
//定义的属性对象
|
|
64
|
+
interface MyProps {
|
|
65
|
+
//页面对象
|
|
66
|
+
pageContext: PageContext
|
|
67
|
+
configure: Component
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const props = defineProps<MyProps>()
|
|
71
|
+
|
|
72
|
+
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
73
|
+
let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
|
|
74
|
+
|
|
75
|
+
//绑定模型的字段
|
|
76
|
+
const dynamicModelMethod = computed({
|
|
77
|
+
get() {
|
|
78
|
+
return getVariableValue(entity, dynamicFields)
|
|
79
|
+
},
|
|
80
|
+
set(value) {
|
|
81
|
+
setVariableValue(entity, dynamicFields, value)
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
//运行时信息
|
|
86
|
+
const runtimeInfo: any = props.configure.runtime ? props.configure.runtime : {}
|
|
87
|
+
const runtimeStyle = runtimeInfo.style
|
|
88
|
+
const runtimeClass = runtimeInfo.class
|
|
89
|
+
const headerStyle = runtimeInfo.headerStyle
|
|
90
|
+
const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
|
|
91
|
+
//选项组数据
|
|
92
|
+
const listOptions: any = ref(designProperty.options ? designProperty.options : [])
|
|
93
|
+
//缓存中有值时,从缓存中获取
|
|
94
|
+
const cacheOptions: any = getOptionDatasFromPage(props.pageContext, props.configure)
|
|
95
|
+
if (cacheOptions.length > 0) {
|
|
96
|
+
listOptions.value = cacheOptions
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const queryLoadingFlag = ref(false)
|
|
100
|
+
//检查是否需要绑定远程查询对象
|
|
101
|
+
const dataOrigin =
|
|
102
|
+
props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {}
|
|
103
|
+
const valueType = dataOrigin.optionValueSetType
|
|
104
|
+
//检查是否有自动设置值
|
|
105
|
+
let autoSets: any = []
|
|
106
|
+
|
|
107
|
+
//开启动态查询
|
|
108
|
+
//查询的参数
|
|
109
|
+
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {}
|
|
110
|
+
//远程时固定开启模糊查询
|
|
111
|
+
if (valueType == 'dynamicData' || valueType == 'dataTable' || valueType == 'service') {
|
|
112
|
+
if (dataOrigin.filterType == 'remote') {
|
|
113
|
+
designProperty.filterable = true
|
|
114
|
+
designProperty.remote = true
|
|
115
|
+
designProperty.remoteShowSuffix = true
|
|
116
|
+
let hisQuery: any = undefined
|
|
117
|
+
designProperty.remoteMethod = function (query: string) {
|
|
118
|
+
//判断是否和之前的查询条件一致
|
|
119
|
+
if (hisQuery === query) {
|
|
120
|
+
return
|
|
121
|
+
}
|
|
122
|
+
hisQuery = query
|
|
123
|
+
queryLoadingFlag.value = true
|
|
124
|
+
console.log('query', query)
|
|
125
|
+
queryOptionDatasources(props.pageContext, optionconfigInfo, query)
|
|
126
|
+
.then((results) => {
|
|
127
|
+
queryLoadingFlag.value = false
|
|
128
|
+
})
|
|
129
|
+
.then((error) => {
|
|
130
|
+
console.log('查询失败!', error)
|
|
131
|
+
queryLoadingFlag.value = false
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (dataOrigin.autoSets) {
|
|
136
|
+
for (let obj of dataOrigin.autoSets) {
|
|
137
|
+
if (obj.source) {
|
|
138
|
+
autoSets.push(obj)
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
//检查是否有绑定标签的变量
|
|
144
|
+
if (
|
|
145
|
+
props.configure &&
|
|
146
|
+
props.configure.props &&
|
|
147
|
+
props.configure.props.base &&
|
|
148
|
+
props.configure.props.base.optionProp
|
|
149
|
+
) {
|
|
150
|
+
autoSets.push({
|
|
151
|
+
source: 'label',
|
|
152
|
+
target: props.configure.props.base.optionProp
|
|
153
|
+
})
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (autoSets.length > 0) {
|
|
157
|
+
designProperty.changeMethod = optionChange
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
//监控字段
|
|
161
|
+
const monitorFields: any = designProperty.monitorFields
|
|
162
|
+
const monitorFieldInfos: any = []
|
|
163
|
+
//监控对应的字段变化
|
|
164
|
+
if (monitorFields) {
|
|
165
|
+
const preFields: any = []
|
|
166
|
+
for (let propName of monitorFields) {
|
|
167
|
+
if (propName.startsWith('${')) {
|
|
168
|
+
propName = propName.substring(2, propName.length - 1)
|
|
169
|
+
const fields = propName.split('.')
|
|
170
|
+
if (fields[0] === 'page' || fields[0] === 'task' || fields[0] === 'data') {
|
|
171
|
+
monitorFieldInfos.push(fields)
|
|
172
|
+
if (!preFields.includes(fields[0])) {
|
|
173
|
+
preFields.push(fields[0])
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
//监控对应的字段
|
|
179
|
+
for (let preField of preFields) {
|
|
180
|
+
watch(entity[preField], () => {
|
|
181
|
+
monitorFieldChange()
|
|
182
|
+
})
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* 获取监控的数据值
|
|
188
|
+
*/
|
|
189
|
+
function getMonitorFieldValues(): any {
|
|
190
|
+
let values = ''
|
|
191
|
+
for (let fieldInfo of monitorFieldInfos) {
|
|
192
|
+
values += '_' + getVariableValue(entity, fieldInfo)
|
|
193
|
+
}
|
|
194
|
+
return values
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
//初始化时检查一次
|
|
198
|
+
let initMonitorValue: string = getMonitorFieldValues()
|
|
199
|
+
|
|
200
|
+
let monitorTimeout: any = false
|
|
201
|
+
/**
|
|
202
|
+
* 监控数据变化时
|
|
203
|
+
*/
|
|
204
|
+
function monitorFieldChange() {
|
|
205
|
+
if (monitorTimeout) {
|
|
206
|
+
clearTimeout(monitorTimeout)
|
|
207
|
+
}
|
|
208
|
+
//延迟200毫秒执行
|
|
209
|
+
monitorTimeout = setTimeout(function () {
|
|
210
|
+
const newValue = getMonitorFieldValues()
|
|
211
|
+
if (newValue == initMonitorValue) {
|
|
212
|
+
return
|
|
213
|
+
}
|
|
214
|
+
initMonitorValue = newValue
|
|
215
|
+
queryOptionDatasources(props.pageContext, optionconfigInfo, undefined).then((error) => {
|
|
216
|
+
console.log('查询失败!', error)
|
|
217
|
+
queryLoadingFlag.value = false
|
|
218
|
+
})
|
|
219
|
+
}, 200)
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
//数据选择变化后自动设置值
|
|
223
|
+
function optionChange(value: any) {
|
|
224
|
+
let selItems: any = null
|
|
225
|
+
if (listOptions.value && value != undefined && value != null) {
|
|
226
|
+
selItems = listOptions.value.filter((item: any) => {
|
|
227
|
+
return Array.isArray(value) ? value.includes(item.value) : value === item.value
|
|
228
|
+
})
|
|
229
|
+
}
|
|
230
|
+
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems)
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* 更新选项组
|
|
235
|
+
*/
|
|
236
|
+
function updateOptions(newOptions: any) {
|
|
237
|
+
listOptions.value = newOptions ? newOptions : []
|
|
238
|
+
console.log('updateOptions', newOptions)
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* 暴露更新选项组内容的方法
|
|
243
|
+
*/
|
|
244
|
+
defineExpose({
|
|
245
|
+
updateOptions
|
|
246
|
+
})
|
|
247
|
+
</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,63 @@
|
|
|
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-switch
|
|
14
|
+
:disabled="designProperty.state === 'disabled'"
|
|
15
|
+
:active-value:="designProperty.activeValue"
|
|
16
|
+
:active-text="designProperty.activeText"
|
|
17
|
+
:inactive-value="designProperty.inactiveValue"
|
|
18
|
+
:inactive-text="designProperty.inactiveText"
|
|
19
|
+
:width="designProperty.offOnWidth"
|
|
20
|
+
:size="designProperty.size"
|
|
21
|
+
:style="switchStyle"
|
|
22
|
+
v-model="dynamicModelMethod"
|
|
23
|
+
/>
|
|
24
|
+
</el-form-item>
|
|
25
|
+
</template>
|
|
26
|
+
<script lang="ts" setup>
|
|
27
|
+
import { computed } from 'vue'
|
|
28
|
+
import type {
|
|
29
|
+
Component,
|
|
30
|
+
PageContext
|
|
31
|
+
} from '../../../../../../src/utils/interfaces/page-design-types'
|
|
32
|
+
import { getFormModelFields } from '../../../../../../src/utils/page-init-util'
|
|
33
|
+
import { getVariableValue, setVariableValue } from '../../../../../../src/utils/page-helper-util'
|
|
34
|
+
|
|
35
|
+
//定义的属性对象
|
|
36
|
+
interface MyProps {
|
|
37
|
+
//页面对象
|
|
38
|
+
pageContext: PageContext
|
|
39
|
+
configure: Component
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const props = defineProps<MyProps>()
|
|
43
|
+
|
|
44
|
+
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
45
|
+
let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
|
|
46
|
+
|
|
47
|
+
//绑定模型的字段
|
|
48
|
+
const dynamicModelMethod = computed({
|
|
49
|
+
get() {
|
|
50
|
+
return getVariableValue(entity, dynamicFields)
|
|
51
|
+
},
|
|
52
|
+
set(value) {
|
|
53
|
+
setVariableValue(entity, dynamicFields, value)
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
//运行时信息
|
|
57
|
+
const runtimeInfo: any = props.configure.runtime ? props.configure.runtime : {}
|
|
58
|
+
const runtimeStyle = runtimeInfo.style
|
|
59
|
+
const runtimeClass = runtimeInfo.class
|
|
60
|
+
const headerStyle = runtimeInfo.headerStyle
|
|
61
|
+
const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
|
|
62
|
+
const switchStyle = runtimeInfo.switchStyle
|
|
63
|
+
</script>
|
|
@@ -0,0 +1,65 @@
|
|
|
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-tag
|
|
14
|
+
:size="designProperty.size"
|
|
15
|
+
:closable="designProperty.closable"
|
|
16
|
+
:type="designProperty.type"
|
|
17
|
+
>
|
|
18
|
+
{{ dynamicValue }}
|
|
19
|
+
</el-tag>
|
|
20
|
+
</el-form-item>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script lang="ts" setup>
|
|
24
|
+
import { computed } from 'vue'
|
|
25
|
+
import type {
|
|
26
|
+
Component,
|
|
27
|
+
PageContext
|
|
28
|
+
} from '../../../../../../src/utils/interfaces/page-design-types'
|
|
29
|
+
import { getFormModelFields } from '../../../../../../src/utils/page-init-util'
|
|
30
|
+
import { formatVariableValue } from '../../../../../../src/utils/page-helper-util'
|
|
31
|
+
|
|
32
|
+
//定义的属性对象
|
|
33
|
+
interface MyProps {
|
|
34
|
+
//页面对象
|
|
35
|
+
pageContext: PageContext
|
|
36
|
+
configure: Component
|
|
37
|
+
}
|
|
38
|
+
const props = defineProps<MyProps>()
|
|
39
|
+
//初始化字段及默认值
|
|
40
|
+
getFormModelFields(props.pageContext, props.configure)
|
|
41
|
+
|
|
42
|
+
//定义自身详细参数
|
|
43
|
+
//运行时信息
|
|
44
|
+
const runtimeInfo: any = props.configure.runtime ? props.configure.runtime : {}
|
|
45
|
+
const runtimeStyle = runtimeInfo.style
|
|
46
|
+
const runtimeClass = runtimeInfo.class
|
|
47
|
+
const headerStyle = runtimeInfo.headerStyle
|
|
48
|
+
const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
|
|
49
|
+
|
|
50
|
+
//定义内容
|
|
51
|
+
let contentVariable = designProperty.formatting
|
|
52
|
+
if (!contentVariable) {
|
|
53
|
+
const propsBase = props.configure.props.base ? props.configure.props.base : {}
|
|
54
|
+
contentVariable = propsBase.prop
|
|
55
|
+
}
|
|
56
|
+
//无值时,按UUID
|
|
57
|
+
if (!contentVariable) {
|
|
58
|
+
contentVariable = '${page.' + props.configure.uuid + '}'
|
|
59
|
+
}
|
|
60
|
+
//显示内容
|
|
61
|
+
const dynamicValue = computed(() => {
|
|
62
|
+
const resultValue = formatVariableValue(props.pageContext, contentVariable)
|
|
63
|
+
return resultValue == undefined || resultValue == null ? '' : resultValue
|
|
64
|
+
})
|
|
65
|
+
</script>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form-item :label="configure.title" :label-position="right">
|
|
3
|
+
<el-text type="success">{{ configure.fieldName }}</el-text>
|
|
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 = 'Text';
|
|
12
|
+
}
|
|
13
|
+
if(props.configure.fieldName==undefined){
|
|
14
|
+
props.configure.fieldName = 'Success';
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
<style scoped>
|
|
18
|
+
|
|
19
|
+
</style>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item
|
|
4
|
+
:required="designProperty.required ? true : false"
|
|
5
|
+
:class="runtimeClass"
|
|
6
|
+
:label-width="designProperty.labelWidth"
|
|
7
|
+
:style="runtimeStyle"
|
|
8
|
+
>
|
|
9
|
+
<template #label>
|
|
10
|
+
<div v-if="designProperty.tittleShow" :style="{ ...headerStyle }">
|
|
11
|
+
{{ designProperty.title }}
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<el-input
|
|
15
|
+
:disabled="designProperty.state === 'disabled'"
|
|
16
|
+
:readonly="designProperty.state === 'readonly'"
|
|
17
|
+
:size="designProperty.size"
|
|
18
|
+
:clearable="designProperty.clearable"
|
|
19
|
+
:placeholder="designProperty.placeholder"
|
|
20
|
+
v-model="dynamicModelMethod"
|
|
21
|
+
:rows="designProperty.rows ? designProperty.rows : 2"
|
|
22
|
+
:maxlength="designProperty.maxLength"
|
|
23
|
+
:show-word-limit="designProperty.showInputNum"
|
|
24
|
+
type="textarea"
|
|
25
|
+
/>
|
|
26
|
+
</el-form-item>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
<script lang="ts" setup>
|
|
30
|
+
import { computed } from 'vue'
|
|
31
|
+
import type {
|
|
32
|
+
Component,
|
|
33
|
+
PageContext
|
|
34
|
+
} from '../../../../../../src/utils/interfaces/page-design-types'
|
|
35
|
+
import { getFormModelFields } from '../../../../../../src/utils/page-init-util'
|
|
36
|
+
import { getVariableValue, setVariableValue } from '../../../../../../src/utils/page-helper-util'
|
|
37
|
+
interface MyProps {
|
|
38
|
+
pageContext: PageContext
|
|
39
|
+
configure: Component
|
|
40
|
+
}
|
|
41
|
+
const props = defineProps<MyProps>()
|
|
42
|
+
|
|
43
|
+
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
44
|
+
|
|
45
|
+
let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
|
|
46
|
+
|
|
47
|
+
//绑定模型的字段
|
|
48
|
+
const dynamicModelMethod = computed({
|
|
49
|
+
get() {
|
|
50
|
+
return getVariableValue(entity, dynamicFields)
|
|
51
|
+
},
|
|
52
|
+
set(value) {
|
|
53
|
+
setVariableValue(entity, dynamicFields, value)
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
//获取默认的样式及配置
|
|
58
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
|
|
59
|
+
const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
|
|
60
|
+
const runtimeStyle = runtimeInfo.style
|
|
61
|
+
const runtimeClass = runtimeInfo.class
|
|
62
|
+
const headerStyle = runtimeInfo.headerStyle
|
|
63
|
+
</script>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form-item :label="configure.title" :label-position="right">
|
|
3
|
+
<el-transfer v-model="configure.fieldName" :data="configure.options" />
|
|
4
|
+
</el-form-item>
|
|
5
|
+
</template>
|
|
6
|
+
<script lang='ts' setup>
|
|
7
|
+
import {ref} from 'vue'
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
configure:Object
|
|
10
|
+
});
|
|
11
|
+
if(props.configure.title==undefined){
|
|
12
|
+
props.configure.title = '';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const generateData = () => {
|
|
16
|
+
const data: Option[] = []
|
|
17
|
+
for (let i = 1; i <= 15; i++) {
|
|
18
|
+
data.push({
|
|
19
|
+
key: i,
|
|
20
|
+
label: `Option ${i}`,
|
|
21
|
+
disabled: i % 4 === 0,
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
return data
|
|
25
|
+
}
|
|
26
|
+
if(props.configure.options==undefined){
|
|
27
|
+
props.configure.options = ref<Option[]>(generateData());
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
<style scoped>
|
|
31
|
+
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="dynamicComponent"
|
|
4
|
+
v-show="showFlag"
|
|
5
|
+
v-permission="permissionCodes"
|
|
6
|
+
:ref="setComponentRef"
|
|
7
|
+
:style="runtimeStyle"
|
|
8
|
+
:class="runtimeClass"
|
|
9
|
+
:configure="configure"
|
|
10
|
+
:pageContext="pageContext"
|
|
11
|
+
>
|
|
12
|
+
</component>
|
|
13
|
+
</template>
|
|
14
|
+
<script lang="ts" setup>
|
|
15
|
+
import { ref, markRaw, onMounted, computed } from 'vue'
|
|
16
|
+
import ErrorRender from './error-render.vue'
|
|
17
|
+
import { getRuntimeComponentByName } from '../../utils/assemblys-config.js'
|
|
18
|
+
import type { PageContext, Component } from '../../../../src/utils/interfaces/page-design-types'
|
|
19
|
+
import { PageDimensions } from '../../../../src/utils/interfaces/page-design-types'
|
|
20
|
+
import { addComponentRef, addComponentRefByCode } from '../../../../src/utils/global-refs'
|
|
21
|
+
import { getPermissionCodes } from '../../../../src/utils/page-init-util'
|
|
22
|
+
import { caculateShowCondition } from '../../../../src/utils/page-helper-util'
|
|
23
|
+
//定义的属性对象
|
|
24
|
+
interface MyProps {
|
|
25
|
+
//页面对象
|
|
26
|
+
pageContext: PageContext
|
|
27
|
+
configure: Component
|
|
28
|
+
}
|
|
29
|
+
const props = defineProps<MyProps>()
|
|
30
|
+
if (props.configure.style == undefined) {
|
|
31
|
+
props.configure.style = {}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//获取权限编码
|
|
35
|
+
const permissionCodes = getPermissionCodes(props.configure, props.pageContext)
|
|
36
|
+
|
|
37
|
+
//显示的标识
|
|
38
|
+
let handleShowFlag = ref(true) //手工点击隐藏或显示的标识
|
|
39
|
+
let showFlag: any = ref(true)
|
|
40
|
+
if (props.configure && props.configure.props && props.configure.props.showConditions) {
|
|
41
|
+
const showConditions = props.configure.props.showConditions
|
|
42
|
+
if (showConditions.length > 0) {
|
|
43
|
+
showFlag = computed(() => {
|
|
44
|
+
//手动指定为不显示时,直接为不显示
|
|
45
|
+
if (!handleShowFlag.value) {
|
|
46
|
+
return false
|
|
47
|
+
}
|
|
48
|
+
return caculateShowCondition(props.pageContext, props.configure, showConditions)
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const dynamicComponent = ref({})
|
|
54
|
+
dynamicComponent.value = markRaw(getRuntimeComponentByName(props.configure.name))
|
|
55
|
+
const showCopy = ref(true)
|
|
56
|
+
if (dynamicComponent.value == null) {
|
|
57
|
+
dynamicComponent.value = ErrorRender
|
|
58
|
+
showCopy.value = false
|
|
59
|
+
}
|
|
60
|
+
//对象引用,通用的外部样式
|
|
61
|
+
const thisRef: any = ref(null)
|
|
62
|
+
const runtimeStyle: any = ref({})
|
|
63
|
+
const runtimeClass: any = ref('')
|
|
64
|
+
|
|
65
|
+
//设计时保存的通用样式
|
|
66
|
+
const commonRuntime =
|
|
67
|
+
props.configure.runtime && props.configure.runtime.common ? props.configure.runtime.common : {}
|
|
68
|
+
|
|
69
|
+
//通用的class
|
|
70
|
+
if (commonRuntime.class) {
|
|
71
|
+
runtimeClass.value = commonRuntime.class
|
|
72
|
+
}
|
|
73
|
+
if (commonRuntime.style) {
|
|
74
|
+
Object.assign(runtimeStyle.value, commonRuntime.style)
|
|
75
|
+
//获取尺寸的宽度和高度信息
|
|
76
|
+
const pageDimensions =
|
|
77
|
+
props.pageContext && props.pageContext.dimensions
|
|
78
|
+
? props.pageContext.dimensions
|
|
79
|
+
: PageDimensions.PC
|
|
80
|
+
const sizeStyle = commonRuntime.style[pageDimensions + '_style']
|
|
81
|
+
if (sizeStyle) {
|
|
82
|
+
Object.assign(runtimeStyle.value, sizeStyle)
|
|
83
|
+
}
|
|
84
|
+
const sizeClass = commonRuntime.style[pageDimensions + '_class']
|
|
85
|
+
if (sizeClass) {
|
|
86
|
+
runtimeClass.value += ' ' + sizeClass
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 添加组件的引用
|
|
92
|
+
* @param el
|
|
93
|
+
*/
|
|
94
|
+
function setComponentRef(el: any) {
|
|
95
|
+
thisRef.value = el
|
|
96
|
+
//绑定默认的show和hide方法
|
|
97
|
+
//TODO:触发show和hide事件
|
|
98
|
+
if (el && !el.show) {
|
|
99
|
+
el.show = function () {
|
|
100
|
+
handleShowFlag.value = true
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (el && !el.hide) {
|
|
104
|
+
el.hide = function () {
|
|
105
|
+
handleShowFlag.value = false
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
//添加到全局变量
|
|
110
|
+
if (props.configure.uuid) {
|
|
111
|
+
addComponentRef(props.pageContext, props.configure.uuid, thisRef)
|
|
112
|
+
}
|
|
113
|
+
//添加code的引用
|
|
114
|
+
if (props.configure.code) {
|
|
115
|
+
addComponentRefByCode(props.pageContext, props.configure.code, thisRef)
|
|
116
|
+
} else if (props.configure.props && props.configure.props.base) {
|
|
117
|
+
const propsBase = props.configure.props.base
|
|
118
|
+
if (propsBase.prop) {
|
|
119
|
+
//获取字段名,以后缀
|
|
120
|
+
let propName = propsBase.prop
|
|
121
|
+
if (propName.startsWith('${')) {
|
|
122
|
+
propName = propName.substring(2, propName.length - 1)
|
|
123
|
+
}
|
|
124
|
+
if (propName.includes('.')) {
|
|
125
|
+
propName = propName.substring(propName.indexOf('.') + 1)
|
|
126
|
+
}
|
|
127
|
+
addComponentRefByCode(props.pageContext, propName, thisRef)
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
//加载后计算位置
|
|
133
|
+
onMounted(() => {
|
|
134
|
+
if (!thisRef.value || !thisRef.value.parentNode) {
|
|
135
|
+
return
|
|
136
|
+
}
|
|
137
|
+
//计算位置
|
|
138
|
+
const thisProps = props.configure.props ? props.configure.props : {}
|
|
139
|
+
const thisStyle = props.configure.style ? props.configure.style : {}
|
|
140
|
+
//检查是否固定位置
|
|
141
|
+
const position = thisProps.position
|
|
142
|
+
//工具栏位置
|
|
143
|
+
if (position == 'top' || position == 'bottom') {
|
|
144
|
+
//找展示容器的位置x
|
|
145
|
+
const contentObj = [thisRef.value.parentNode]
|
|
146
|
+
if (contentObj && contentObj.length > 0) {
|
|
147
|
+
const contentRec = contentObj[0].getBoundingClientRect()
|
|
148
|
+
if (position == 'top') {
|
|
149
|
+
runtimeStyle.value['top'] = contentRec.top + 'px'
|
|
150
|
+
}
|
|
151
|
+
if (position == 'bottom') {
|
|
152
|
+
runtimeStyle.value['bottom'] = '10px'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
//宽
|
|
156
|
+
const thisRec = thisRef.value.getBoundingClientRect()
|
|
157
|
+
runtimeStyle.value['width'] = thisRec.width + 'px'
|
|
158
|
+
} else if (thisStyle.position) {
|
|
159
|
+
//按定位设置
|
|
160
|
+
runtimeStyle.value['position'] = thisStyle.position
|
|
161
|
+
if (runtimeStyle.value.position != 'relative') {
|
|
162
|
+
//其余需要默认当前的宽度
|
|
163
|
+
if (!runtimeStyle.value['width']) {
|
|
164
|
+
const thisRec = thisRef.value.getBoundingClientRect()
|
|
165
|
+
runtimeStyle.value['width'] = thisRec.width + 'px'
|
|
166
|
+
}
|
|
167
|
+
if (thisStyle.left) {
|
|
168
|
+
runtimeStyle.value['left'] = thisStyle.left + 'px'
|
|
169
|
+
}
|
|
170
|
+
if (thisStyle.top) {
|
|
171
|
+
runtimeStyle.value['top'] = thisStyle.top + 'px'
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
</script>
|