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
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList, createElementVNode } from "vue";
|
|
2
|
-
import { getVariableValue, setVariableValue, getOptionDatasFromPage, queryOptionDatasources, autoSetAfterSelect } from "../../../../../../src/utils/page-helper-util.js";
|
|
3
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
4
|
-
const _hoisted_1 = { style: { "float": "left" } };
|
|
5
|
-
const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "select-runtime",
|
|
8
|
-
props: {
|
|
9
|
-
pageContext: {},
|
|
10
|
-
configure: {}
|
|
11
|
-
},
|
|
12
|
-
setup(__props, { expose: __expose }) {
|
|
13
|
-
const props = __props;
|
|
14
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
15
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
16
|
-
const dynamicModelMethod = computed({
|
|
17
|
-
get() {
|
|
18
|
-
return getVariableValue(entity, dynamicFields);
|
|
19
|
-
},
|
|
20
|
-
set(value) {
|
|
21
|
-
setVariableValue(entity, dynamicFields, value);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
|
-
const runtimeStyle = runtimeInfo.style;
|
|
26
|
-
const runtimeClass = runtimeInfo.class;
|
|
27
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
28
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
29
|
-
const listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
30
|
-
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
31
|
-
if (cacheOptions.length > 0) {
|
|
32
|
-
listOptions.value = cacheOptions;
|
|
33
|
-
}
|
|
34
|
-
const queryLoadingFlag = ref(false);
|
|
35
|
-
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
36
|
-
const valueType = dataOrigin.optionValueSetType;
|
|
37
|
-
let autoSets = [];
|
|
38
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
39
|
-
if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
|
|
40
|
-
if (dataOrigin.filterType == "remote") {
|
|
41
|
-
designProperty.filterable = true;
|
|
42
|
-
designProperty.remote = true;
|
|
43
|
-
designProperty.remoteShowSuffix = true;
|
|
44
|
-
let hisQuery = void 0;
|
|
45
|
-
designProperty.remoteMethod = function(query) {
|
|
46
|
-
if (hisQuery === query) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
hisQuery = query;
|
|
50
|
-
queryLoadingFlag.value = true;
|
|
51
|
-
console.log("query", query);
|
|
52
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, query).then((results) => {
|
|
53
|
-
queryLoadingFlag.value = false;
|
|
54
|
-
}).then((error) => {
|
|
55
|
-
console.log("查询失败!", error);
|
|
56
|
-
queryLoadingFlag.value = false;
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
if (dataOrigin.autoSets) {
|
|
61
|
-
for (let obj of dataOrigin.autoSets) {
|
|
62
|
-
if (obj.source) {
|
|
63
|
-
autoSets.push(obj);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
|
|
69
|
-
autoSets.push({
|
|
70
|
-
source: "label",
|
|
71
|
-
target: props.configure.props.base.optionProp
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
if (autoSets.length > 0) {
|
|
75
|
-
designProperty.changeMethod = optionChange;
|
|
76
|
-
}
|
|
77
|
-
const monitorFields = designProperty.monitorFields;
|
|
78
|
-
const monitorFieldInfos = [];
|
|
79
|
-
if (monitorFields) {
|
|
80
|
-
const preFields = [];
|
|
81
|
-
for (let propName of monitorFields) {
|
|
82
|
-
if (propName.startsWith("${")) {
|
|
83
|
-
propName = propName.substring(2, propName.length - 1);
|
|
84
|
-
const fields = propName.split(".");
|
|
85
|
-
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
86
|
-
monitorFieldInfos.push(fields);
|
|
87
|
-
if (!preFields.includes(fields[0])) {
|
|
88
|
-
preFields.push(fields[0]);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
for (let preField of preFields) {
|
|
94
|
-
watch(entity[preField], () => {
|
|
95
|
-
monitorFieldChange();
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function getMonitorFieldValues() {
|
|
100
|
-
let values = "";
|
|
101
|
-
for (let fieldInfo of monitorFieldInfos) {
|
|
102
|
-
values += "_" + getVariableValue(entity, fieldInfo);
|
|
103
|
-
}
|
|
104
|
-
return values;
|
|
105
|
-
}
|
|
106
|
-
let initMonitorValue = getMonitorFieldValues();
|
|
107
|
-
let monitorTimeout = false;
|
|
108
|
-
function monitorFieldChange() {
|
|
109
|
-
if (monitorTimeout) {
|
|
110
|
-
clearTimeout(monitorTimeout);
|
|
111
|
-
}
|
|
112
|
-
monitorTimeout = setTimeout(function() {
|
|
113
|
-
const newValue = getMonitorFieldValues();
|
|
114
|
-
if (newValue == initMonitorValue) {
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
initMonitorValue = newValue;
|
|
118
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
|
|
119
|
-
console.log("查询失败!", error);
|
|
120
|
-
queryLoadingFlag.value = false;
|
|
121
|
-
});
|
|
122
|
-
}, 200);
|
|
123
|
-
}
|
|
124
|
-
function optionChange(value) {
|
|
125
|
-
let selItems = null;
|
|
126
|
-
if (listOptions.value && value != void 0 && value != null) {
|
|
127
|
-
selItems = listOptions.value.filter((item) => {
|
|
128
|
-
return Array.isArray(value) ? value.includes(item.value) : value === item.value;
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
132
|
-
}
|
|
133
|
-
function updateOptions(newOptions) {
|
|
134
|
-
listOptions.value = newOptions ? newOptions : [];
|
|
135
|
-
console.log("updateOptions", newOptions);
|
|
136
|
-
}
|
|
137
|
-
__expose({
|
|
138
|
-
updateOptions
|
|
139
|
-
});
|
|
140
|
-
return (_ctx, _cache) => {
|
|
141
|
-
const _component_el_option = resolveComponent("el-option");
|
|
142
|
-
const _component_el_select = resolveComponent("el-select");
|
|
143
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
144
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
145
|
-
required: unref(designProperty).required ? true : false,
|
|
146
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
147
|
-
"label-width": unref(designProperty).labelWidth,
|
|
148
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
149
|
-
}, {
|
|
150
|
-
label: withCtx(() => [
|
|
151
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
152
|
-
key: 0,
|
|
153
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
154
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
155
|
-
]),
|
|
156
|
-
default: withCtx(() => [
|
|
157
|
-
createVNode(_component_el_select, {
|
|
158
|
-
disabled: unref(designProperty).state === "disabled",
|
|
159
|
-
size: unref(designProperty).size,
|
|
160
|
-
clearable: unref(designProperty).clearable,
|
|
161
|
-
multiple: unref(designProperty).multiple,
|
|
162
|
-
"collapse-tags": unref(designProperty).collapseTags,
|
|
163
|
-
"collapse-tags-tooltip": unref(designProperty).collapseTagsTooltip,
|
|
164
|
-
filterable: unref(designProperty).filterable,
|
|
165
|
-
"allow-create": unref(designProperty).allowCreate,
|
|
166
|
-
placeholder: unref(designProperty).placeholder,
|
|
167
|
-
"remote-show-suffix": unref(designProperty).remoteShowSuffix,
|
|
168
|
-
remote: unref(designProperty).remote,
|
|
169
|
-
"remote-method": unref(designProperty).remoteMethod,
|
|
170
|
-
loading: queryLoadingFlag.value,
|
|
171
|
-
onChange: unref(designProperty).changeMethod,
|
|
172
|
-
modelValue: dynamicModelMethod.value,
|
|
173
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
174
|
-
}, {
|
|
175
|
-
default: withCtx(() => [
|
|
176
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
|
|
177
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
178
|
-
key: item.value,
|
|
179
|
-
label: item.label,
|
|
180
|
-
value: item.value
|
|
181
|
-
}, {
|
|
182
|
-
default: withCtx(() => [
|
|
183
|
-
item._description_ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
184
|
-
createElementVNode("span", _hoisted_1, toDisplayString(item.label), 1),
|
|
185
|
-
createElementVNode("span", _hoisted_2, toDisplayString(item._description_), 1)
|
|
186
|
-
], 64)) : createCommentVNode("", true)
|
|
187
|
-
]),
|
|
188
|
-
_: 2
|
|
189
|
-
}, 1032, ["label", "value"]);
|
|
190
|
-
}), 128))
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
}, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
export {
|
|
201
|
-
_sfc_main as default
|
|
202
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue, setVariableValue } from "../../../../../../src/utils/page-helper-util.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "switch-runtime",
|
|
6
|
-
props: {
|
|
7
|
-
pageContext: {},
|
|
8
|
-
configure: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
13
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
14
|
-
const dynamicModelMethod = computed({
|
|
15
|
-
get() {
|
|
16
|
-
return getVariableValue(entity, dynamicFields);
|
|
17
|
-
},
|
|
18
|
-
set(value) {
|
|
19
|
-
setVariableValue(entity, dynamicFields, value);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
23
|
-
const runtimeStyle = runtimeInfo.style;
|
|
24
|
-
const runtimeClass = runtimeInfo.class;
|
|
25
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
26
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
-
const switchStyle = runtimeInfo.switchStyle;
|
|
28
|
-
return (_ctx, _cache) => {
|
|
29
|
-
const _component_el_switch = resolveComponent("el-switch");
|
|
30
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
31
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
32
|
-
required: unref(designProperty).required,
|
|
33
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
34
|
-
"label-width": unref(designProperty).labelWidth,
|
|
35
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
36
|
-
}, {
|
|
37
|
-
label: withCtx(() => [
|
|
38
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
39
|
-
key: 0,
|
|
40
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
41
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
42
|
-
]),
|
|
43
|
-
default: withCtx(() => [
|
|
44
|
-
createVNode(_component_el_switch, {
|
|
45
|
-
disabled: unref(designProperty).state === "disabled",
|
|
46
|
-
"active-value:": unref(designProperty).activeValue,
|
|
47
|
-
"active-text": unref(designProperty).activeText,
|
|
48
|
-
"inactive-value": unref(designProperty).inactiveValue,
|
|
49
|
-
"inactive-text": unref(designProperty).inactiveText,
|
|
50
|
-
width: unref(designProperty).offOnWidth,
|
|
51
|
-
size: unref(designProperty).size,
|
|
52
|
-
style: normalizeStyle(unref(switchStyle)),
|
|
53
|
-
modelValue: dynamicModelMethod.value,
|
|
54
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
55
|
-
}, null, 8, ["disabled", "active-value:", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
|
|
56
|
-
]),
|
|
57
|
-
_: 1
|
|
58
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export {
|
|
63
|
-
_sfc_main as default
|
|
64
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
3
|
-
import { formatVariableValue } from "../../../../../../src/utils/page-helper-util.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "tag-runtime",
|
|
6
|
-
props: {
|
|
7
|
-
pageContext: {},
|
|
8
|
-
configure: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
getFormModelFields(props.pageContext, props.configure);
|
|
13
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
14
|
-
const runtimeStyle = runtimeInfo.style;
|
|
15
|
-
const runtimeClass = runtimeInfo.class;
|
|
16
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
17
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
18
|
-
let contentVariable = designProperty.formatting;
|
|
19
|
-
if (!contentVariable) {
|
|
20
|
-
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
21
|
-
contentVariable = propsBase.prop;
|
|
22
|
-
}
|
|
23
|
-
if (!contentVariable) {
|
|
24
|
-
contentVariable = "${page." + props.configure.uuid + "}";
|
|
25
|
-
}
|
|
26
|
-
const dynamicValue = computed(() => {
|
|
27
|
-
const resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
28
|
-
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
29
|
-
});
|
|
30
|
-
return (_ctx, _cache) => {
|
|
31
|
-
const _component_el_tag = resolveComponent("el-tag");
|
|
32
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
33
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
34
|
-
required: unref(designProperty).required,
|
|
35
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
36
|
-
"label-width": unref(designProperty).labelWidth,
|
|
37
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
38
|
-
}, {
|
|
39
|
-
label: withCtx(() => [
|
|
40
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
41
|
-
key: 0,
|
|
42
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
43
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
44
|
-
]),
|
|
45
|
-
default: withCtx(() => [
|
|
46
|
-
createVNode(_component_el_tag, {
|
|
47
|
-
size: unref(designProperty).size,
|
|
48
|
-
closable: unref(designProperty).closable,
|
|
49
|
-
type: unref(designProperty).type
|
|
50
|
-
}, {
|
|
51
|
-
default: withCtx(() => [
|
|
52
|
-
createTextVNode(toDisplayString(dynamicValue.value), 1)
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["size", "closable", "type"])
|
|
56
|
-
]),
|
|
57
|
-
_: 1
|
|
58
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export {
|
|
63
|
-
_sfc_main as default
|
|
64
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, unref, normalizeClass, normalizeStyle, withCtx, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue, setVariableValue } from "../../../../../../src/utils/page-helper-util.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "textarea-runtime",
|
|
6
|
-
props: {
|
|
7
|
-
pageContext: {},
|
|
8
|
-
configure: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
13
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
14
|
-
const dynamicModelMethod = computed({
|
|
15
|
-
get() {
|
|
16
|
-
return getVariableValue(entity, dynamicFields);
|
|
17
|
-
},
|
|
18
|
-
set(value) {
|
|
19
|
-
setVariableValue(entity, dynamicFields, value);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
23
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
24
|
-
const runtimeStyle = runtimeInfo.style;
|
|
25
|
-
const runtimeClass = runtimeInfo.class;
|
|
26
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
return (_ctx, _cache) => {
|
|
28
|
-
const _component_el_input = resolveComponent("el-input");
|
|
29
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
30
|
-
return openBlock(), createElementBlock("div", null, [
|
|
31
|
-
createVNode(_component_el_form_item, {
|
|
32
|
-
required: unref(designProperty).required ? true : false,
|
|
33
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
34
|
-
"label-width": unref(designProperty).labelWidth,
|
|
35
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
36
|
-
}, {
|
|
37
|
-
label: withCtx(() => [
|
|
38
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
39
|
-
key: 0,
|
|
40
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
41
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
42
|
-
]),
|
|
43
|
-
default: withCtx(() => [
|
|
44
|
-
createVNode(_component_el_input, {
|
|
45
|
-
disabled: unref(designProperty).state === "disabled",
|
|
46
|
-
readonly: unref(designProperty).state === "readonly",
|
|
47
|
-
size: unref(designProperty).size,
|
|
48
|
-
clearable: unref(designProperty).clearable,
|
|
49
|
-
placeholder: unref(designProperty).placeholder,
|
|
50
|
-
modelValue: dynamicModelMethod.value,
|
|
51
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
52
|
-
rows: unref(designProperty).rows ? unref(designProperty).rows : 2,
|
|
53
|
-
maxlength: unref(designProperty).maxLength,
|
|
54
|
-
"show-word-limit": unref(designProperty).showInputNum,
|
|
55
|
-
type: "textarea"
|
|
56
|
-
}, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])
|
|
57
|
-
]),
|
|
58
|
-
_: 1
|
|
59
|
-
}, 8, ["required", "class", "label-width", "style"])
|
|
60
|
-
]);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
export {
|
|
65
|
-
_sfc_main as default
|
|
66
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, markRaw, onMounted, resolveDirective, withDirectives, openBlock, createBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, vShow, unref } from "vue";
|
|
2
|
-
import _sfc_main$1 from "./error-render.vue.js";
|
|
3
|
-
import { getRuntimeComponentByName } from "../../utils/assemblys-config.js";
|
|
4
|
-
import { PageDimensions } from "../../../../src/utils/interfaces/page-design-types.js";
|
|
5
|
-
import { addComponentRef, addComponentRefByCode } from "../../../../src/utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes } from "../../../../src/utils/page-init-util.js";
|
|
7
|
-
import { caculateShowCondition } from "../../../../src/utils/page-helper-util.js";
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "object-render",
|
|
10
|
-
props: {
|
|
11
|
-
pageContext: {},
|
|
12
|
-
configure: {}
|
|
13
|
-
},
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const props = __props;
|
|
16
|
-
if (props.configure.style == void 0) {
|
|
17
|
-
props.configure.style = {};
|
|
18
|
-
}
|
|
19
|
-
const permissionCodes = getPermissionCodes(props.configure, props.pageContext);
|
|
20
|
-
let handleShowFlag = ref(true);
|
|
21
|
-
let showFlag = ref(true);
|
|
22
|
-
if (props.configure && props.configure.props && props.configure.props.showConditions) {
|
|
23
|
-
const showConditions = props.configure.props.showConditions;
|
|
24
|
-
if (showConditions.length > 0) {
|
|
25
|
-
showFlag = computed(() => {
|
|
26
|
-
if (!handleShowFlag.value) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
return caculateShowCondition(props.pageContext, props.configure, showConditions);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const dynamicComponent = ref({});
|
|
34
|
-
dynamicComponent.value = markRaw(getRuntimeComponentByName(props.configure.name));
|
|
35
|
-
const showCopy = ref(true);
|
|
36
|
-
if (dynamicComponent.value == null) {
|
|
37
|
-
dynamicComponent.value = _sfc_main$1;
|
|
38
|
-
showCopy.value = false;
|
|
39
|
-
}
|
|
40
|
-
const thisRef = ref(null);
|
|
41
|
-
const runtimeStyle = ref({});
|
|
42
|
-
const runtimeClass = ref("");
|
|
43
|
-
const commonRuntime = props.configure.runtime && props.configure.runtime.common ? props.configure.runtime.common : {};
|
|
44
|
-
if (commonRuntime.class) {
|
|
45
|
-
runtimeClass.value = commonRuntime.class;
|
|
46
|
-
}
|
|
47
|
-
if (commonRuntime.style) {
|
|
48
|
-
Object.assign(runtimeStyle.value, commonRuntime.style);
|
|
49
|
-
const pageDimensions = props.pageContext && props.pageContext.dimensions ? props.pageContext.dimensions : PageDimensions.PC;
|
|
50
|
-
const sizeStyle = commonRuntime.style[pageDimensions + "_style"];
|
|
51
|
-
if (sizeStyle) {
|
|
52
|
-
Object.assign(runtimeStyle.value, sizeStyle);
|
|
53
|
-
}
|
|
54
|
-
const sizeClass = commonRuntime.style[pageDimensions + "_class"];
|
|
55
|
-
if (sizeClass) {
|
|
56
|
-
runtimeClass.value += " " + sizeClass;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function setComponentRef(el) {
|
|
60
|
-
thisRef.value = el;
|
|
61
|
-
if (el && !el.show) {
|
|
62
|
-
el.show = function() {
|
|
63
|
-
handleShowFlag.value = true;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
if (el && !el.hide) {
|
|
67
|
-
el.hide = function() {
|
|
68
|
-
handleShowFlag.value = false;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
if (props.configure.uuid) {
|
|
72
|
-
addComponentRef(props.pageContext, props.configure.uuid, thisRef);
|
|
73
|
-
}
|
|
74
|
-
if (props.configure.code) {
|
|
75
|
-
addComponentRefByCode(props.pageContext, props.configure.code, thisRef);
|
|
76
|
-
} else if (props.configure.props && props.configure.props.base) {
|
|
77
|
-
const propsBase = props.configure.props.base;
|
|
78
|
-
if (propsBase.prop) {
|
|
79
|
-
let propName = propsBase.prop;
|
|
80
|
-
if (propName.startsWith("${")) {
|
|
81
|
-
propName = propName.substring(2, propName.length - 1);
|
|
82
|
-
}
|
|
83
|
-
if (propName.includes(".")) {
|
|
84
|
-
propName = propName.substring(propName.indexOf(".") + 1);
|
|
85
|
-
}
|
|
86
|
-
addComponentRefByCode(props.pageContext, propName, thisRef);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
onMounted(() => {
|
|
91
|
-
if (!thisRef.value || !thisRef.value.parentNode) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
const thisProps = props.configure.props ? props.configure.props : {};
|
|
95
|
-
const thisStyle = props.configure.style ? props.configure.style : {};
|
|
96
|
-
const position = thisProps.position;
|
|
97
|
-
if (position == "top" || position == "bottom") {
|
|
98
|
-
const contentObj = [thisRef.value.parentNode];
|
|
99
|
-
if (contentObj && contentObj.length > 0) {
|
|
100
|
-
const contentRec = contentObj[0].getBoundingClientRect();
|
|
101
|
-
if (position == "top") {
|
|
102
|
-
runtimeStyle.value["top"] = contentRec.top + "px";
|
|
103
|
-
}
|
|
104
|
-
if (position == "bottom") {
|
|
105
|
-
runtimeStyle.value["bottom"] = "10px";
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
const thisRec = thisRef.value.getBoundingClientRect();
|
|
109
|
-
runtimeStyle.value["width"] = thisRec.width + "px";
|
|
110
|
-
} else if (thisStyle.position) {
|
|
111
|
-
runtimeStyle.value["position"] = thisStyle.position;
|
|
112
|
-
if (runtimeStyle.value.position != "relative") {
|
|
113
|
-
if (!runtimeStyle.value["width"]) {
|
|
114
|
-
const thisRec = thisRef.value.getBoundingClientRect();
|
|
115
|
-
runtimeStyle.value["width"] = thisRec.width + "px";
|
|
116
|
-
}
|
|
117
|
-
if (thisStyle.left) {
|
|
118
|
-
runtimeStyle.value["left"] = thisStyle.left + "px";
|
|
119
|
-
}
|
|
120
|
-
if (thisStyle.top) {
|
|
121
|
-
runtimeStyle.value["top"] = thisStyle.top + "px";
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
return (_ctx, _cache) => {
|
|
127
|
-
const _directive_permission = resolveDirective("permission");
|
|
128
|
-
return withDirectives((openBlock(), createBlock(resolveDynamicComponent(dynamicComponent.value), {
|
|
129
|
-
ref: setComponentRef,
|
|
130
|
-
style: normalizeStyle(runtimeStyle.value),
|
|
131
|
-
class: normalizeClass(runtimeClass.value),
|
|
132
|
-
configure: _ctx.configure,
|
|
133
|
-
pageContext: _ctx.pageContext
|
|
134
|
-
}, null, 8, ["style", "class", "configure", "pageContext"])), [
|
|
135
|
-
[vShow, unref(showFlag)],
|
|
136
|
-
[_directive_permission, unref(permissionCodes)]
|
|
137
|
-
]);
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
export {
|
|
142
|
-
_sfc_main as default
|
|
143
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createElementBlock, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
|
-
import { getClickEventFuncByType } from "../../../../../../src/utils/events/event-util.js";
|
|
4
|
-
import { isVisibleWorkflowButton } from "../../../../../../src/utils/events/standard-event.js";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "workflowbutton-runtime",
|
|
7
|
-
props: {
|
|
8
|
-
pageContext: {},
|
|
9
|
-
configure: {}
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const props = __props;
|
|
13
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
14
|
-
ref(runtimeInfo.style ? runtimeInfo.style : {});
|
|
15
|
-
runtimeInfo.class;
|
|
16
|
-
const buttonInfo = props.pageContext.workflowButtonComponent;
|
|
17
|
-
const completeTaskParam = props.pageContext.completeTaskParam;
|
|
18
|
-
const visibleBtns = ref([]);
|
|
19
|
-
props.configure.items.forEach((item) => {
|
|
20
|
-
const pageCode = props.pageContext.code;
|
|
21
|
-
const pageVersion = props.pageContext.version;
|
|
22
|
-
if (isVisibleBtn(item, pageCode, pageVersion)) {
|
|
23
|
-
visibleBtns.value.push(item);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
function getStandardClickEvent(events, pageCode, pageVersion) {
|
|
27
|
-
const clickEventFunObj = getClickEventFuncByType(pageCode, pageVersion, events);
|
|
28
|
-
if (clickEventFunObj) {
|
|
29
|
-
const isStandardEvent = clickEventFunObj.isStandard;
|
|
30
|
-
if (isStandardEvent) {
|
|
31
|
-
return clickEventFunObj.event.eventName;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function isVisibleBtn(btnConfigure, pageCode, pageVersion) {
|
|
36
|
-
const events = btnConfigure.events;
|
|
37
|
-
const workflowStandardEventName = getStandardClickEvent(events, pageCode, pageVersion);
|
|
38
|
-
const isVisible = isVisibleWorkflowButton(
|
|
39
|
-
workflowStandardEventName,
|
|
40
|
-
buttonInfo,
|
|
41
|
-
completeTaskParam
|
|
42
|
-
);
|
|
43
|
-
return isVisible;
|
|
44
|
-
}
|
|
45
|
-
return (_ctx, _cache) => {
|
|
46
|
-
return openBlock(), createElementBlock("span", null, [
|
|
47
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleBtns.value, (element, itemIndex) => {
|
|
48
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
49
|
-
element.check ? (openBlock(), createBlock(_sfc_main$1, {
|
|
50
|
-
key: itemIndex,
|
|
51
|
-
pageContext: _ctx.pageContext,
|
|
52
|
-
configure: element
|
|
53
|
-
}, null, 8, ["pageContext", "configure"])) : createCommentVNode("", true)
|
|
54
|
-
], 64);
|
|
55
|
-
}), 256))
|
|
56
|
-
]);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
export {
|
|
61
|
-
_sfc_main as default
|
|
62
|
-
};
|