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,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-collapse-item
|
|
3
|
+
title="上传"
|
|
4
|
+
name="uploadConfig"
|
|
5
|
+
class="amb-design-attr-group-header">
|
|
6
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
7
|
+
<slot name="addition" :row="uploadConfig"></slot>
|
|
8
|
+
<el-form-item label="立即上传" class="amb-design-attr-item">
|
|
9
|
+
<el-switch v-model="uploadConfig.autoUpload" />
|
|
10
|
+
</el-form-item>
|
|
11
|
+
<el-form-item label="上传地址" class="amb-design-attr-item">
|
|
12
|
+
<el-input v-model="uploadConfig.action" placeholder="请输入" />
|
|
13
|
+
</el-form-item>
|
|
14
|
+
<el-form-item label="附件多选" class="amb-design-attr-item">
|
|
15
|
+
<el-switch v-model="uploadConfig.multiple" />
|
|
16
|
+
</el-form-item>
|
|
17
|
+
<el-form-item label="文件字段名" class="amb-design-attr-item">
|
|
18
|
+
<el-input v-model="uploadConfig.name" placeholder="请输入" />
|
|
19
|
+
</el-form-item>
|
|
20
|
+
<el-form-item label="文件限制(M)" class="amb-design-attr-item">
|
|
21
|
+
<el-input-number v-model="uploadConfig.limitFileSize" />
|
|
22
|
+
</el-form-item>
|
|
23
|
+
<el-form-item label="实时删除" class="amb-design-attr-item">
|
|
24
|
+
<el-switch v-model="uploadConfig.isDeleteNow" />
|
|
25
|
+
</el-form-item>
|
|
26
|
+
</div>
|
|
27
|
+
</el-collapse-item>
|
|
28
|
+
</template>
|
|
29
|
+
<script lang='ts' setup>
|
|
30
|
+
const props = defineProps({
|
|
31
|
+
uploadConfig:Object
|
|
32
|
+
});
|
|
33
|
+
</script>
|
|
34
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-collapse-item
|
|
3
|
+
title="校验"
|
|
4
|
+
name="verification"
|
|
5
|
+
class="amb-design-attr-group-header">
|
|
6
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
7
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
8
|
+
<el-checkbox v-model="verification.required" label="必填"/>
|
|
9
|
+
</el-form-item>
|
|
10
|
+
<el-checkbox-group v-model="verification.type">
|
|
11
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
12
|
+
<el-checkbox label="整形" value="int" />
|
|
13
|
+
<el-checkbox label="数字" value="number" />
|
|
14
|
+
<el-checkbox label="bool" value="boolean" />
|
|
15
|
+
</el-form-item>
|
|
16
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
17
|
+
<el-checkbox label="邮件" value="mail" />
|
|
18
|
+
<el-checkbox label="网址" value="ip" />
|
|
19
|
+
</el-form-item>
|
|
20
|
+
</el-checkbox-group>
|
|
21
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
22
|
+
<el-col :span="8">
|
|
23
|
+
<el-checkbox v-model="verification.verifyMinLength" label="最小长度" value="min" />
|
|
24
|
+
</el-col>
|
|
25
|
+
<el-col :span="14">
|
|
26
|
+
<el-input-number
|
|
27
|
+
v-model="verification.minLength"
|
|
28
|
+
class="mx-4"
|
|
29
|
+
:min="0"
|
|
30
|
+
controls-position="right"
|
|
31
|
+
placeholder="请输入"
|
|
32
|
+
/>
|
|
33
|
+
</el-col>
|
|
34
|
+
</el-form-item>
|
|
35
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
36
|
+
<el-col :span="8">
|
|
37
|
+
<el-checkbox v-model="verification.verifyMaxLength" label="最大长度" value="max" />
|
|
38
|
+
</el-col>
|
|
39
|
+
<el-col :span="14">
|
|
40
|
+
<el-input-number
|
|
41
|
+
v-model="verification.maxLength"
|
|
42
|
+
class="mx-4"
|
|
43
|
+
:min="0"
|
|
44
|
+
controls-position="right"
|
|
45
|
+
placeholder="请输入"
|
|
46
|
+
/>
|
|
47
|
+
</el-col>
|
|
48
|
+
</el-form-item>
|
|
49
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
50
|
+
<el-col :span="8">
|
|
51
|
+
<el-checkbox v-model="verification.verifyRegex" label="正则" value="regex" />
|
|
52
|
+
</el-col>
|
|
53
|
+
<el-col :span="14">
|
|
54
|
+
<el-input
|
|
55
|
+
v-model="verification.regex"
|
|
56
|
+
class="mx-4"
|
|
57
|
+
controls-position="right"
|
|
58
|
+
placeholder="请输入"
|
|
59
|
+
/>
|
|
60
|
+
</el-col>
|
|
61
|
+
</el-form-item>
|
|
62
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
63
|
+
<el-col :span="8">
|
|
64
|
+
<el-checkbox label="自定义" value="custom" />
|
|
65
|
+
</el-col>
|
|
66
|
+
<el-col :span="14">
|
|
67
|
+
<el-button>自定义逻辑</el-button><el-button :icon="Search" circle />
|
|
68
|
+
</el-col>
|
|
69
|
+
</el-form-item>
|
|
70
|
+
</div>
|
|
71
|
+
</el-collapse-item>
|
|
72
|
+
</template>
|
|
73
|
+
<script lang='ts' setup>
|
|
74
|
+
import { Search } from '@element-plus/icons-vue'
|
|
75
|
+
defineProps({
|
|
76
|
+
verification:Object
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
</script>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-collapse-item
|
|
3
|
+
title="选择后自动设置"
|
|
4
|
+
name="voluntarily"
|
|
5
|
+
class="amb-design-attr-group-header">
|
|
6
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
7
|
+
<RowUlLi
|
|
8
|
+
type="input"
|
|
9
|
+
:tittle="true"
|
|
10
|
+
:showIndex="true"
|
|
11
|
+
leftTittle="可选属性"
|
|
12
|
+
rightTittle="设置到变量"
|
|
13
|
+
:list="voluntarily"></RowUlLi>
|
|
14
|
+
</div>
|
|
15
|
+
</el-collapse-item>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
import RowUlLi from '../common/row-ul-li.vue'
|
|
20
|
+
const props = defineProps({
|
|
21
|
+
voluntarily:Object,
|
|
22
|
+
});
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
|
|
27
|
+
</style>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<el-collapse v-model="openCollapseItems" style="margin-top:6px;">
|
|
4
|
+
<el-collapse-item
|
|
5
|
+
title="基本"
|
|
6
|
+
name="base"
|
|
7
|
+
class="amb-design-attr-group-header">
|
|
8
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
9
|
+
<el-form-item label="组件类型" class="amb-design-attr-item">
|
|
10
|
+
<el-select v-model="configure.name" placeholder="请选择" >
|
|
11
|
+
<el-option
|
|
12
|
+
v-for="item in getFormComponentOptions()"
|
|
13
|
+
:key="item.name"
|
|
14
|
+
:label="item.label"
|
|
15
|
+
:value="item.name"
|
|
16
|
+
/>
|
|
17
|
+
</el-select>
|
|
18
|
+
</el-form-item>
|
|
19
|
+
<el-form-item label="组件名" class="amb-design-attr-item">
|
|
20
|
+
<el-input v-model="configure.props.base.name" placeholder="请输入" />
|
|
21
|
+
</el-form-item>
|
|
22
|
+
<el-form-item label="绑定变量" class="amb-design-attr-item">
|
|
23
|
+
<el-input v-model="configure.props.base.prop" placeholder="请输入" />
|
|
24
|
+
</el-form-item>
|
|
25
|
+
<el-form-item label="标题" class="amb-design-attr-item">
|
|
26
|
+
<el-input v-model="configure.props.base.title" placeholder="请输入" />
|
|
27
|
+
</el-form-item>
|
|
28
|
+
<el-form-item label="状态" class="amb-design-attr-item">
|
|
29
|
+
<el-radio-group v-model="configure.props.base.state" class="ml-4">
|
|
30
|
+
<el-radio value="default">普通</el-radio>
|
|
31
|
+
<el-radio value="disabled">禁用</el-radio>
|
|
32
|
+
<el-radio value="hidden">隐藏</el-radio>
|
|
33
|
+
</el-radio-group>
|
|
34
|
+
</el-form-item>
|
|
35
|
+
</div>
|
|
36
|
+
</el-collapse-item>
|
|
37
|
+
<el-collapse-item
|
|
38
|
+
title="参数"
|
|
39
|
+
name="parameter"
|
|
40
|
+
class="amb-design-attr-group-header">
|
|
41
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
42
|
+
<RowUlLi type="input" :list="configure.props.parameter"></RowUlLi>
|
|
43
|
+
</div>
|
|
44
|
+
</el-collapse-item>
|
|
45
|
+
<el-collapse-item
|
|
46
|
+
title="校验"
|
|
47
|
+
name="verification"
|
|
48
|
+
class="amb-design-attr-group-header">
|
|
49
|
+
<div style="padding:8px 0px 0px 0px;">
|
|
50
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
51
|
+
<el-checkbox v-model="configure.props.verification.required" label="必填"/>
|
|
52
|
+
</el-form-item>
|
|
53
|
+
<el-form-item class="amb-design-attr-item" label-width="0">
|
|
54
|
+
<el-col :span="8">
|
|
55
|
+
<el-checkbox label="自定义" value="custom" />
|
|
56
|
+
</el-col>
|
|
57
|
+
<el-col :span="14">
|
|
58
|
+
<el-button>自定义逻辑</el-button><el-button :icon="Search" circle />
|
|
59
|
+
</el-col>
|
|
60
|
+
</el-form-item>
|
|
61
|
+
</div>
|
|
62
|
+
</el-collapse-item>
|
|
63
|
+
<CommonAttrSize :size="configure.props.size" />
|
|
64
|
+
<Title :title="configure.props.title" />
|
|
65
|
+
</el-collapse>
|
|
66
|
+
</el-form>
|
|
67
|
+
</template>
|
|
68
|
+
<script lang='ts' setup>
|
|
69
|
+
import { ref } from 'vue';
|
|
70
|
+
import { getFormComponentOptions } from '../../../../utils/assemblys-config.js'
|
|
71
|
+
import CommonAttrSize from '../../common/common-attr-size.vue'
|
|
72
|
+
import Title from '../common/title.vue'
|
|
73
|
+
import RowUlLi from '../common/row-ul-li.vue'
|
|
74
|
+
|
|
75
|
+
defineProps({
|
|
76
|
+
configure: Object,
|
|
77
|
+
default: () => ({props: {}})
|
|
78
|
+
});
|
|
79
|
+
const openCollapseItems = ref("")
|
|
80
|
+
|
|
81
|
+
</script>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<AttrEvent :events="events"></AttrEvent>
|
|
4
|
+
</el-form>
|
|
5
|
+
</template>
|
|
6
|
+
<script lang='ts' setup>
|
|
7
|
+
import { ref, computed, defineEmits } from 'vue';
|
|
8
|
+
import AttrEvent from '../common/attr-event.vue'
|
|
9
|
+
import {getFormComponentOptions} from '../../../../utils/assemblys-config.js'
|
|
10
|
+
defineProps({
|
|
11
|
+
configure:Object
|
|
12
|
+
});
|
|
13
|
+
const events = ['click', 'change', 'show', 'hidden']
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form label-width="80px" size="small">
|
|
3
|
+
<el-collapse v-model="openCollapseItems" style="margin-top:6px;">
|
|
4
|
+
<AttrStyle :configure="configure"></AttrStyle>
|
|
5
|
+
</el-collapse>
|
|
6
|
+
</el-form>
|
|
7
|
+
</template>
|
|
8
|
+
<script lang='ts' setup>
|
|
9
|
+
import { defineProps } from 'vue';
|
|
10
|
+
import AttrStyle from '../common/attr-style.vue'
|
|
11
|
+
defineProps({
|
|
12
|
+
configure:Object
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="amb-design-attr-content">
|
|
3
|
+
<AttrHeader v-model="currentConfigType" />
|
|
4
|
+
<div class="amb-design-attr-list">
|
|
5
|
+
<AttrBase v-show="currentConfigType === 'base'" :configure="configure"></AttrBase>
|
|
6
|
+
<AttrStyle v-show="currentConfigType === 'style'" :configure="configure"></AttrStyle>
|
|
7
|
+
<AttrEvent v-show="currentConfigType === 'event'" :configure="configure"></AttrEvent>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<script lang="ts" setup>
|
|
12
|
+
import AttrBase from './custom-attr-base.vue'
|
|
13
|
+
import AttrStyle from './custom-attr-style.vue'
|
|
14
|
+
import AttrHeader from '../common/attr-header.vue'
|
|
15
|
+
import AttrEvent from './custom-attr-event.vue'
|
|
16
|
+
import { ref } from 'vue'
|
|
17
|
+
|
|
18
|
+
defineProps({
|
|
19
|
+
configure: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({ title: 'Text', props: { type: 'input-text' } }) // 设置默认值
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
let currentConfigType = ref('base')
|
|
25
|
+
</script>
|
|
26
|
+
<style>
|
|
27
|
+
/* @import '../../../../../../assets/design-attr.css'; */
|
|
28
|
+
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="designClass" :style="designStyle">
|
|
3
|
+
<el-form-item
|
|
4
|
+
:required="designProperty.required ? true : false"
|
|
5
|
+
:class="designClass"
|
|
6
|
+
:label-width="designProperty.labelWidth"
|
|
7
|
+
:style="designStyle"
|
|
8
|
+
>
|
|
9
|
+
<template #label>
|
|
10
|
+
<div :style="designHeaderStyle">
|
|
11
|
+
{{ designProperty.title ? designProperty.title : 'custom' }}
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<el-button
|
|
15
|
+
:disabled="designProperty.state === 'disabled' ? true : false"
|
|
16
|
+
:size="designProperty.size"
|
|
17
|
+
type="primary"
|
|
18
|
+
>
|
|
19
|
+
自定义组件
|
|
20
|
+
</el-button>
|
|
21
|
+
</el-form-item>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
<script lang="ts" setup>
|
|
25
|
+
import {
|
|
26
|
+
caculateDetailComponentStyle,
|
|
27
|
+
caculateComponentProps
|
|
28
|
+
} from '../../../../../../src/utils/form-design-util'
|
|
29
|
+
import { FullScreen } from '@element-plus/icons-vue'
|
|
30
|
+
import { ref, watch } from 'vue'
|
|
31
|
+
const props = defineProps({
|
|
32
|
+
configure: Object
|
|
33
|
+
})
|
|
34
|
+
//定义自身详细参数
|
|
35
|
+
const designStyle = ref({})
|
|
36
|
+
const designClass = ref('')
|
|
37
|
+
const designHeaderStyle = ref({})
|
|
38
|
+
const designProperty = ref({})
|
|
39
|
+
//监控配置样式的变化
|
|
40
|
+
watch(
|
|
41
|
+
props.configure.style,
|
|
42
|
+
() => {
|
|
43
|
+
caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle)
|
|
44
|
+
},
|
|
45
|
+
{ immediate: true }
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
//监控配置属性的变化
|
|
49
|
+
watch(
|
|
50
|
+
props.configure.props,
|
|
51
|
+
() => {
|
|
52
|
+
caculateComponentProps(props.configure, designProperty)
|
|
53
|
+
},
|
|
54
|
+
{ immediate: true }
|
|
55
|
+
)
|
|
56
|
+
</script>
|
|
57
|
+
<style scoped></style>
|
|
@@ -0,0 +1,80 @@
|
|
|
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-time-picker
|
|
14
|
+
v-if="designProperty.dateType == 'time' || designProperty.dateType == 'timerange'"
|
|
15
|
+
:is-range="designProperty.dateType == 'timerange'"
|
|
16
|
+
range-separator="-"
|
|
17
|
+
:clearable="designProperty.clearable"
|
|
18
|
+
:disabled="designProperty.state === 'disabled'"
|
|
19
|
+
:readonly="designProperty.state === 'readonly'"
|
|
20
|
+
:size="designProperty.size"
|
|
21
|
+
:placeholder="designProperty.placeholder"
|
|
22
|
+
:start-placeholder="designProperty.placeholder"
|
|
23
|
+
:end-placeholder="designProperty.endPlaceholder"
|
|
24
|
+
:format="designProperty.format"
|
|
25
|
+
v-model="dynamicModelMethod"
|
|
26
|
+
:shortcuts="designProperty.shortcuts"
|
|
27
|
+
:type="designProperty.dateType"
|
|
28
|
+
/>
|
|
29
|
+
<el-date-picker
|
|
30
|
+
v-else
|
|
31
|
+
:clearable="designProperty.clearable"
|
|
32
|
+
:disabled="designProperty.state === 'disabled'"
|
|
33
|
+
:readonly="designProperty.state === 'readonly'"
|
|
34
|
+
:size="designProperty.size"
|
|
35
|
+
:placeholder="designProperty.placeholder"
|
|
36
|
+
:start-placeholder="designProperty.placeholder"
|
|
37
|
+
:end-placeholder="designProperty.endPlaceholder"
|
|
38
|
+
:format="designProperty.format"
|
|
39
|
+
v-model="dynamicModelMethod"
|
|
40
|
+
:shortcuts="designProperty.shortcuts"
|
|
41
|
+
:type="designProperty.dateType"
|
|
42
|
+
/>
|
|
43
|
+
</el-form-item>
|
|
44
|
+
</template>
|
|
45
|
+
<script lang="ts" setup>
|
|
46
|
+
import { computed } from 'vue'
|
|
47
|
+
import type {
|
|
48
|
+
Component,
|
|
49
|
+
PageContext
|
|
50
|
+
} from '../../../../../../src/utils/interfaces/page-design-types'
|
|
51
|
+
import { getFormModelFields } from '../../../../../../src/utils/page-init-util'
|
|
52
|
+
import { getVariableValue, setVariableValue } from '../../../../../../src/utils/page-helper-util'
|
|
53
|
+
//定义的属性对象
|
|
54
|
+
interface MyProps {
|
|
55
|
+
//页面对象
|
|
56
|
+
pageContext: PageContext
|
|
57
|
+
configure: Component
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const props = defineProps<MyProps>()
|
|
61
|
+
|
|
62
|
+
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
63
|
+
let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
|
|
64
|
+
//绑定模型的字段
|
|
65
|
+
const dynamicModelMethod = computed({
|
|
66
|
+
get() {
|
|
67
|
+
return getVariableValue(entity, dynamicFields)
|
|
68
|
+
},
|
|
69
|
+
set(value) {
|
|
70
|
+
setVariableValue(entity, dynamicFields, value)
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
//运行时信息
|
|
75
|
+
const runtimeInfo: any = props.configure.runtime ? props.configure.runtime : {}
|
|
76
|
+
const runtimeStyle = runtimeInfo.style
|
|
77
|
+
const runtimeClass = runtimeInfo.class
|
|
78
|
+
const headerStyle = runtimeInfo.headerStyle
|
|
79
|
+
const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
|
|
80
|
+
</script>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form-item :label="configure.title" :label-position="right">
|
|
3
|
+
<el-date-picker
|
|
4
|
+
v-model="configure.fieldName"
|
|
5
|
+
type="date"
|
|
6
|
+
placeholder="Pick a day"/>
|
|
7
|
+
</el-form-item>
|
|
8
|
+
</template>
|
|
9
|
+
<script lang='ts' setup>
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
configure:Object
|
|
12
|
+
});
|
|
13
|
+
if(props.configure.title==undefined){
|
|
14
|
+
props.configure.title = 'Date or Time';
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
<style scoped>
|
|
18
|
+
|
|
19
|
+
</style>
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
<OrganizationInput
|
|
14
|
+
:disabled="designProperty.state == 'disabled'"
|
|
15
|
+
:multiple="designProperty.multiple"
|
|
16
|
+
:treeType="designProperty.treeType"
|
|
17
|
+
v-model="dataModel[fieldName]"
|
|
18
|
+
:models="dataModel"
|
|
19
|
+
:fields="autoSetFields"
|
|
20
|
+
:size="designProperty.size"
|
|
21
|
+
placeholder="请选择"
|
|
22
|
+
:separator="designProperty.separator"
|
|
23
|
+
></OrganizationInput>
|
|
24
|
+
</el-form-item>
|
|
25
|
+
</template>
|
|
26
|
+
<script lang="ts" setup>
|
|
27
|
+
import { ref, watch } 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
|
+
interface MyProps {
|
|
36
|
+
pageContext: PageContext
|
|
37
|
+
configure: Component
|
|
38
|
+
}
|
|
39
|
+
const props = defineProps<MyProps>()
|
|
40
|
+
|
|
41
|
+
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
42
|
+
if (!entity.data) {
|
|
43
|
+
entity.data = {}
|
|
44
|
+
}
|
|
45
|
+
const dataModel = entity.data
|
|
46
|
+
//设计时有限制只能选择data
|
|
47
|
+
let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
|
|
48
|
+
const fieldName =
|
|
49
|
+
dynamicFields.length > 0 ? dynamicFields[dynamicFields.length - 1] : props.configure.uuid
|
|
50
|
+
|
|
51
|
+
//获取默认的样式及配置
|
|
52
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
|
|
53
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {}
|
|
54
|
+
const runtimeStyle = runtimeInfo.style
|
|
55
|
+
const runtimeClass = runtimeInfo.class
|
|
56
|
+
const headerStyle = runtimeInfo.headerStyle
|
|
57
|
+
|
|
58
|
+
//关联字段设置
|
|
59
|
+
const autoSetFields = designProperty.autoSetFields ? designProperty.autoSetFields : []
|
|
60
|
+
</script>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-divider
|
|
3
|
+
:direction="designProperty.direction"
|
|
4
|
+
:border-style="designProperty.borderType"
|
|
5
|
+
:content-position="designProperty.titlePosition"
|
|
6
|
+
>
|
|
7
|
+
<div :style="headerStyle">
|
|
8
|
+
{{ dynamicValue }}
|
|
9
|
+
</div>
|
|
10
|
+
</el-divider>
|
|
11
|
+
</template>
|
|
12
|
+
<script lang="ts" setup>
|
|
13
|
+
import { computed } from 'vue'
|
|
14
|
+
import type {
|
|
15
|
+
Component,
|
|
16
|
+
PageContext
|
|
17
|
+
} from '../../../../../../src/utils/interfaces/page-design-types'
|
|
18
|
+
import { formatVariableValue } from '../../../../../../src/utils/page-helper-util'
|
|
19
|
+
|
|
20
|
+
//定义的属性对象
|
|
21
|
+
interface MyProps {
|
|
22
|
+
//页面对象
|
|
23
|
+
pageContext: PageContext
|
|
24
|
+
configure: Component
|
|
25
|
+
}
|
|
26
|
+
const props = defineProps<MyProps>()
|
|
27
|
+
|
|
28
|
+
//定义自身详细参数
|
|
29
|
+
//运行时信息
|
|
30
|
+
const runtimeInfo: any = props.configure.runtime ? props.configure.runtime : {}
|
|
31
|
+
const headerStyle = runtimeInfo.headerStyle
|
|
32
|
+
const designProperty: any = runtimeInfo.props ? runtimeInfo.props : {}
|
|
33
|
+
|
|
34
|
+
//定义内容
|
|
35
|
+
let contentVariable = designProperty.value
|
|
36
|
+
//显示内容
|
|
37
|
+
const dynamicValue = computed(() => {
|
|
38
|
+
if (!contentVariable) {
|
|
39
|
+
return ''
|
|
40
|
+
}
|
|
41
|
+
const resultValue = formatVariableValue(props.pageContext, contentVariable)
|
|
42
|
+
return resultValue == undefined || resultValue == null ? '' : resultValue
|
|
43
|
+
})
|
|
44
|
+
</script>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form-item :label="configure.title" :label-position="right">
|
|
3
|
+
<el-upload
|
|
4
|
+
v-model:file-list="fileList"
|
|
5
|
+
action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
|
|
6
|
+
list-type="picture-card"
|
|
7
|
+
:on-preview="handlePictureCardPreview"
|
|
8
|
+
:on-remove="handleRemove"
|
|
9
|
+
>
|
|
10
|
+
<el-icon><Plus /></el-icon>
|
|
11
|
+
</el-upload>
|
|
12
|
+
<el-dialog v-model="dialogVisible">
|
|
13
|
+
<img w-full :src="dialogImageUrl" alt="Preview Image" />
|
|
14
|
+
</el-dialog>
|
|
15
|
+
</el-form-item>
|
|
16
|
+
</template>
|
|
17
|
+
<script lang='ts' setup>
|
|
18
|
+
import { ref } from 'vue'
|
|
19
|
+
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
20
|
+
import { Plus } from '@element-plus/icons-vue'
|
|
21
|
+
import type { UploadProps, UploadUserFile } from 'element-plus'
|
|
22
|
+
|
|
23
|
+
//配置参数
|
|
24
|
+
const props = defineProps({
|
|
25
|
+
configure:Object
|
|
26
|
+
});
|
|
27
|
+
if(props.configure.title==undefined){
|
|
28
|
+
props.configure.title = '';
|
|
29
|
+
}
|
|
30
|
+
const dialogImageUrl = ref('')
|
|
31
|
+
const dialogVisible = ref(false)
|
|
32
|
+
|
|
33
|
+
//默认的文件
|
|
34
|
+
const fileList = ref<UploadUserFile[]>([
|
|
35
|
+
{
|
|
36
|
+
name: 'food.jpeg',
|
|
37
|
+
url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'plant-1.png',
|
|
41
|
+
url: 'https://element-plus.org/images/plant-1.png',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'food.jpeg',
|
|
45
|
+
url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'plant-2.png',
|
|
49
|
+
url: 'https://element-plus.org/images/plant-2.png',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'food.jpeg',
|
|
53
|
+
url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'figure-1.png',
|
|
57
|
+
url: 'https://element-plus.org/images/figure-1.png',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'food.jpeg',
|
|
61
|
+
url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'figure-2.png',
|
|
65
|
+
url: 'https://element-plus.org/images/figure-2.png',
|
|
66
|
+
},
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
const handleRemove: UploadProps['onRemove'] = (file, uploadFiles) => {
|
|
70
|
+
console.log(file, uploadFiles)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const handlePictureCardPreview: UploadProps['onPreview'] = (uploadFile) => {
|
|
74
|
+
dialogImageUrl.value = uploadFile.url!
|
|
75
|
+
dialogVisible.value = true
|
|
76
|
+
}
|
|
77
|
+
</script>
|
|
78
|
+
<style scoped>
|
|
79
|
+
|
|
80
|
+
</style>
|