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,157 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
|
-
import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../../../src/utils/page-helper-util.js";
|
|
3
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "checkbox-runtime",
|
|
6
|
-
props: {
|
|
7
|
-
pageContext: {},
|
|
8
|
-
configure: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props, { expose: __expose }) {
|
|
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 listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
28
|
-
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
29
|
-
if (cacheOptions.length > 0) {
|
|
30
|
-
listOptions.value = cacheOptions;
|
|
31
|
-
}
|
|
32
|
-
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
33
|
-
const valueType = dataOrigin.optionValueSetType;
|
|
34
|
-
let autoSets = [];
|
|
35
|
-
if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
|
|
36
|
-
if (dataOrigin.autoSets) {
|
|
37
|
-
for (let obj of dataOrigin.autoSets) {
|
|
38
|
-
if (obj.source) {
|
|
39
|
-
autoSets.push(obj);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
|
|
45
|
-
autoSets.push({
|
|
46
|
-
source: "label",
|
|
47
|
-
target: props.configure.props.base.optionProp
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
if (autoSets.length > -1) {
|
|
51
|
-
designProperty.changeMethod = optionChange;
|
|
52
|
-
}
|
|
53
|
-
const monitorFields = designProperty.monitorFields;
|
|
54
|
-
const monitorFieldInfos = [];
|
|
55
|
-
if (monitorFields) {
|
|
56
|
-
const preFields = [];
|
|
57
|
-
for (let propName of monitorFields) {
|
|
58
|
-
if (propName.startsWith("${")) {
|
|
59
|
-
propName = propName.substring(2, propName.length - 1);
|
|
60
|
-
const fields = propName.split(".");
|
|
61
|
-
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
62
|
-
monitorFieldInfos.push(fields);
|
|
63
|
-
if (!preFields.includes(fields[0])) {
|
|
64
|
-
preFields.push(fields[0]);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
for (let preField of preFields) {
|
|
70
|
-
watch(entity[preField], () => {
|
|
71
|
-
monitorFieldChange();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function getMonitorFieldValues() {
|
|
76
|
-
let values = "";
|
|
77
|
-
for (let fieldInfo of monitorFieldInfos) {
|
|
78
|
-
values += "_" + getVariableValue(entity, fieldInfo);
|
|
79
|
-
}
|
|
80
|
-
return values;
|
|
81
|
-
}
|
|
82
|
-
let initMonitorValue = getMonitorFieldValues();
|
|
83
|
-
let monitorTimeout = false;
|
|
84
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
85
|
-
function monitorFieldChange() {
|
|
86
|
-
if (monitorTimeout) {
|
|
87
|
-
clearTimeout(monitorTimeout);
|
|
88
|
-
}
|
|
89
|
-
monitorTimeout = setTimeout(function() {
|
|
90
|
-
const newValue = getMonitorFieldValues();
|
|
91
|
-
if (newValue == initMonitorValue) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
initMonitorValue = newValue;
|
|
95
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
|
|
96
|
-
console.log("查询失败!", error);
|
|
97
|
-
});
|
|
98
|
-
}, 200);
|
|
99
|
-
}
|
|
100
|
-
function optionChange(value) {
|
|
101
|
-
let selItems = null;
|
|
102
|
-
if (listOptions.value && value != void 0 && value != null) {
|
|
103
|
-
selItems = listOptions.value.filter((item) => {
|
|
104
|
-
return Array.isArray(value) ? value.includes(item.value) : value === item.value;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
108
|
-
}
|
|
109
|
-
function updateOptions(newOptions) {
|
|
110
|
-
listOptions.value = newOptions ? newOptions : [];
|
|
111
|
-
}
|
|
112
|
-
__expose({
|
|
113
|
-
updateOptions
|
|
114
|
-
});
|
|
115
|
-
return (_ctx, _cache) => {
|
|
116
|
-
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
117
|
-
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
118
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
119
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
120
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
121
|
-
"label-width": unref(designProperty).labelWidth,
|
|
122
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
123
|
-
}, {
|
|
124
|
-
label: withCtx(() => [
|
|
125
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
126
|
-
key: 0,
|
|
127
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
128
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
129
|
-
]),
|
|
130
|
-
default: withCtx(() => [
|
|
131
|
-
createVNode(_component_el_checkbox_group, {
|
|
132
|
-
disabled: unref(designProperty).state === "disabled",
|
|
133
|
-
size: unref(designProperty).size,
|
|
134
|
-
onChange: unref(designProperty).changeMethod,
|
|
135
|
-
modelValue: dynamicModelMethod.value,
|
|
136
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
137
|
-
}, {
|
|
138
|
-
default: withCtx(() => [
|
|
139
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
|
|
140
|
-
return openBlock(), createBlock(_component_el_checkbox, {
|
|
141
|
-
key: item.value,
|
|
142
|
-
value: item.value,
|
|
143
|
-
label: item.label
|
|
144
|
-
}, null, 8, ["value", "label"]);
|
|
145
|
-
}), 128))
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["disabled", "size", "onChange", "modelValue"])
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 8, ["class", "label-width", "style"]);
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
export {
|
|
156
|
-
_sfc_main as default
|
|
157
|
-
};
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, 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: "datepicker-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
|
-
return (_ctx, _cache) => {
|
|
28
|
-
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
29
|
-
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
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
|
-
unref(designProperty).dateType == "time" || unref(designProperty).dateType == "timerange" ? (openBlock(), createBlock(_component_el_time_picker, {
|
|
45
|
-
key: 0,
|
|
46
|
-
"is-range": unref(designProperty).dateType == "timerange",
|
|
47
|
-
"range-separator": "-",
|
|
48
|
-
clearable: unref(designProperty).clearable,
|
|
49
|
-
disabled: unref(designProperty).state === "disabled",
|
|
50
|
-
readonly: unref(designProperty).state === "readonly",
|
|
51
|
-
size: unref(designProperty).size,
|
|
52
|
-
placeholder: unref(designProperty).placeholder,
|
|
53
|
-
"start-placeholder": unref(designProperty).placeholder,
|
|
54
|
-
"end-placeholder": unref(designProperty).endPlaceholder,
|
|
55
|
-
format: unref(designProperty).format,
|
|
56
|
-
modelValue: dynamicModelMethod.value,
|
|
57
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
58
|
-
shortcuts: unref(designProperty).shortcuts,
|
|
59
|
-
type: unref(designProperty).dateType
|
|
60
|
-
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
|
|
61
|
-
key: 1,
|
|
62
|
-
clearable: unref(designProperty).clearable,
|
|
63
|
-
disabled: unref(designProperty).state === "disabled",
|
|
64
|
-
readonly: unref(designProperty).state === "readonly",
|
|
65
|
-
size: unref(designProperty).size,
|
|
66
|
-
placeholder: unref(designProperty).placeholder,
|
|
67
|
-
"start-placeholder": unref(designProperty).placeholder,
|
|
68
|
-
"end-placeholder": unref(designProperty).endPlaceholder,
|
|
69
|
-
format: unref(designProperty).format,
|
|
70
|
-
modelValue: dynamicModelMethod.value,
|
|
71
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dynamicModelMethod.value = $event),
|
|
72
|
-
shortcuts: unref(designProperty).shortcuts,
|
|
73
|
-
type: unref(designProperty).dateType
|
|
74
|
-
}, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"]))
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
_sfc_main as default
|
|
83
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "depttree-runtime",
|
|
5
|
-
props: {
|
|
6
|
-
pageContext: {},
|
|
7
|
-
configure: {}
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props;
|
|
11
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
12
|
-
if (!entity.data) {
|
|
13
|
-
entity.data = {};
|
|
14
|
-
}
|
|
15
|
-
const dataModel = entity.data;
|
|
16
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
17
|
-
const fieldName = dynamicFields.length > 0 ? dynamicFields[dynamicFields.length - 1] : props.configure.uuid;
|
|
18
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
19
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
20
|
-
const runtimeStyle = runtimeInfo.style;
|
|
21
|
-
const runtimeClass = runtimeInfo.class;
|
|
22
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
23
|
-
const autoSetFields = designProperty.autoSetFields ? designProperty.autoSetFields : [];
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
const _component_OrganizationInput = resolveComponent("OrganizationInput");
|
|
26
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
27
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
28
|
-
required: unref(designProperty).required,
|
|
29
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
30
|
-
"label-width": unref(designProperty).labelWidth,
|
|
31
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
32
|
-
}, {
|
|
33
|
-
label: withCtx(() => [
|
|
34
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
35
|
-
key: 0,
|
|
36
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
37
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
38
|
-
]),
|
|
39
|
-
default: withCtx(() => [
|
|
40
|
-
createVNode(_component_OrganizationInput, {
|
|
41
|
-
disabled: unref(designProperty).state == "disabled",
|
|
42
|
-
multiple: unref(designProperty).multiple,
|
|
43
|
-
treeType: unref(designProperty).treeType,
|
|
44
|
-
modelValue: unref(dataModel)[unref(fieldName)],
|
|
45
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(dataModel)[unref(fieldName)] = $event),
|
|
46
|
-
models: unref(dataModel),
|
|
47
|
-
fields: unref(autoSetFields),
|
|
48
|
-
size: unref(designProperty).size,
|
|
49
|
-
placeholder: "请选择",
|
|
50
|
-
separator: unref(designProperty).separator
|
|
51
|
-
}, null, 8, ["disabled", "multiple", "treeType", "modelValue", "models", "fields", "size", "separator"])
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
_sfc_main as default
|
|
60
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
|
2
|
-
import { formatVariableValue } from "../../../../../../src/utils/page-helper-util.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "divider-runtime",
|
|
5
|
-
props: {
|
|
6
|
-
pageContext: {},
|
|
7
|
-
configure: {}
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props;
|
|
11
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
12
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
13
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
14
|
-
let contentVariable = designProperty.value;
|
|
15
|
-
const dynamicValue = computed(() => {
|
|
16
|
-
if (!contentVariable) {
|
|
17
|
-
return "";
|
|
18
|
-
}
|
|
19
|
-
const resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
20
|
-
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
21
|
-
});
|
|
22
|
-
return (_ctx, _cache) => {
|
|
23
|
-
const _component_el_divider = resolveComponent("el-divider");
|
|
24
|
-
return openBlock(), createBlock(_component_el_divider, {
|
|
25
|
-
direction: unref(designProperty).direction,
|
|
26
|
-
"border-style": unref(designProperty).borderType,
|
|
27
|
-
"content-position": unref(designProperty).titlePosition
|
|
28
|
-
}, {
|
|
29
|
-
default: withCtx(() => [
|
|
30
|
-
createElementVNode("div", {
|
|
31
|
-
style: normalizeStyle(unref(headerStyle))
|
|
32
|
-
}, toDisplayString(dynamicValue.value), 5)
|
|
33
|
-
]),
|
|
34
|
-
_: 1
|
|
35
|
-
}, 8, ["direction", "border-style", "content-position"]);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
_sfc_main as default
|
|
41
|
-
};
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { defineComponent, watch, resolveComponent, unref, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
|
-
import { getVariableValue, setVariableValue } from "../../../../../../src/utils/page-helper-util.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "fileupload-runtime",
|
|
5
|
-
props: {
|
|
6
|
-
pageContext: {},
|
|
7
|
-
configure: {}
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props;
|
|
11
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
12
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
13
|
-
const runtimeStyle = runtimeInfo.style;
|
|
14
|
-
const runtimeClass = runtimeInfo.class;
|
|
15
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
16
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
17
|
-
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
18
|
-
propsBase.prop;
|
|
19
|
-
const pathFields = getFieldsByVariable(propsBase.prop);
|
|
20
|
-
const nameFields = getFieldsByVariable(propsBase.propName);
|
|
21
|
-
const initNames = getVariableValue(entity, nameFields);
|
|
22
|
-
const initPaths = getVariableValue(entity, pathFields);
|
|
23
|
-
const fileInfo = ref({
|
|
24
|
-
name: initNames ? initNames : "",
|
|
25
|
-
serverPath: initPaths ? initPaths : ""
|
|
26
|
-
});
|
|
27
|
-
watch(fileInfo, () => {
|
|
28
|
-
setVariableValue(entity, nameFields, fileInfo.name);
|
|
29
|
-
setVariableValue(entity, pathFields, fileInfo.serverPath);
|
|
30
|
-
});
|
|
31
|
-
function getFieldsByVariable(variableName) {
|
|
32
|
-
if (!variableName) {
|
|
33
|
-
return [];
|
|
34
|
-
}
|
|
35
|
-
if (variableName.startsWith("${")) {
|
|
36
|
-
variableName = variableName.substring(2, variableName.length - 1);
|
|
37
|
-
}
|
|
38
|
-
return variableName.split(".");
|
|
39
|
-
}
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
const _component_FsUploadList = resolveComponent("FsUploadList");
|
|
42
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
43
|
-
return unref(designProperty).tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
44
|
-
key: 0,
|
|
45
|
-
required: unref(designProperty).required,
|
|
46
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
47
|
-
"label-width": unref(designProperty).labelWidth,
|
|
48
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
49
|
-
}, {
|
|
50
|
-
label: withCtx(() => [
|
|
51
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
52
|
-
key: 0,
|
|
53
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
54
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
55
|
-
]),
|
|
56
|
-
default: withCtx(() => [
|
|
57
|
-
createVNode(_component_FsUploadList, {
|
|
58
|
-
disabled: unref(designProperty).state == "disabled",
|
|
59
|
-
fileSetObj: unref(designProperty).fileSetObj,
|
|
60
|
-
fileInfo: unref(fileInfo)
|
|
61
|
-
}, null, 8, ["disabled", "fileSetObj", "fileInfo"])
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createBlock(_component_FsUploadList, {
|
|
65
|
-
key: 1,
|
|
66
|
-
disabled: unref(designProperty).state == "disabled",
|
|
67
|
-
fileSetObj: unref(designProperty).fileSetObj,
|
|
68
|
-
fileInfo: unref(fileInfo)
|
|
69
|
-
}, null, 8, ["disabled", "fileSetObj", "fileInfo"]));
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
export {
|
|
74
|
-
_sfc_main as default
|
|
75
|
-
};
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
DELETED
|
@@ -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: "input-number-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
|
-
return (_ctx, _cache) => {
|
|
28
|
-
const _component_el_input_number = resolveComponent("el-input-number");
|
|
29
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
30
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
31
|
-
required: unref(designProperty).required,
|
|
32
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
33
|
-
"label-width": unref(designProperty).labelWidth,
|
|
34
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
35
|
-
}, {
|
|
36
|
-
label: withCtx(() => [
|
|
37
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
38
|
-
key: 0,
|
|
39
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
40
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
41
|
-
]),
|
|
42
|
-
default: withCtx(() => [
|
|
43
|
-
createVNode(_component_el_input_number, {
|
|
44
|
-
disabled: unref(designProperty).state === "disabled",
|
|
45
|
-
readonly: unref(designProperty).state === "readonly",
|
|
46
|
-
controls: unref(designProperty).showButton,
|
|
47
|
-
size: unref(designProperty).size,
|
|
48
|
-
placeholder: unref(designProperty).placeholder,
|
|
49
|
-
modelValue: dynamicModelMethod.value,
|
|
50
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
51
|
-
precision: unref(designProperty).precision,
|
|
52
|
-
step: unref(designProperty).step,
|
|
53
|
-
min: unref(designProperty).min,
|
|
54
|
-
max: unref(designProperty).max
|
|
55
|
-
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
56
|
-
]),
|
|
57
|
-
_: 1
|
|
58
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export {
|
|
63
|
-
_sfc_main as default
|
|
64
|
-
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createSlots, createTextVNode } from "vue";
|
|
2
|
-
import { SuperIcon } from "agilebuilder-ui";
|
|
3
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
4
|
-
import { getVariableValue, setVariableValue } from "../../../../../../src/utils/page-helper-util.js";
|
|
5
|
-
import { handleEvent } from "../../../../../../src/utils/events/event-util.js";
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "inputtext-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 designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
26
|
-
const runtimeStyle = runtimeInfo.style;
|
|
27
|
-
const runtimeClass = runtimeInfo.class;
|
|
28
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
29
|
-
function getValue() {
|
|
30
|
-
return getVariableValue(entity, dynamicFields);
|
|
31
|
-
}
|
|
32
|
-
function setValue(value) {
|
|
33
|
-
return setVariableValue(entity, dynamicFields, value);
|
|
34
|
-
}
|
|
35
|
-
__expose({
|
|
36
|
-
getValue,
|
|
37
|
-
setValue
|
|
38
|
-
});
|
|
39
|
-
return (_ctx, _cache) => {
|
|
40
|
-
const _component_el_input = resolveComponent("el-input");
|
|
41
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
42
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
43
|
-
required: unref(designProperty).required ? true : false,
|
|
44
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
45
|
-
"label-width": unref(designProperty).labelWidth,
|
|
46
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
47
|
-
}, {
|
|
48
|
-
label: withCtx(() => [
|
|
49
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
50
|
-
key: 0,
|
|
51
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
52
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
53
|
-
]),
|
|
54
|
-
default: withCtx(() => [
|
|
55
|
-
createVNode(_component_el_input, {
|
|
56
|
-
disabled: unref(designProperty).state === "disabled",
|
|
57
|
-
readonly: unref(designProperty).state === "readonly",
|
|
58
|
-
size: unref(designProperty).size,
|
|
59
|
-
clearable: unref(designProperty).clearable,
|
|
60
|
-
placeholder: unref(designProperty).placeholder,
|
|
61
|
-
maxlength: unref(designProperty).maxLength,
|
|
62
|
-
"show-word-limit": unref(designProperty).showInputNum,
|
|
63
|
-
modelValue: dynamicModelMethod.value,
|
|
64
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
65
|
-
onInput: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
66
|
-
onChange: _cache[2] || (_cache[2] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
67
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
68
|
-
onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
69
|
-
onClick: _cache[5] || (_cache[5] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
70
|
-
}, createSlots({ _: 2 }, [
|
|
71
|
-
unref(designProperty).iconPosition != "outer" && (unref(designProperty).preIconType && unref(designProperty).preIconValue || unref(designProperty).preText) ? {
|
|
72
|
-
name: "prefix",
|
|
73
|
-
fn: withCtx(() => [
|
|
74
|
-
unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
75
|
-
key: 0,
|
|
76
|
-
iconType: unref(designProperty).preIconType,
|
|
77
|
-
iconValue: unref(designProperty).preIconValue
|
|
78
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
79
|
-
createTextVNode(" " + toDisplayString(unref(designProperty).preText), 1)
|
|
80
|
-
]),
|
|
81
|
-
key: "0"
|
|
82
|
-
} : void 0,
|
|
83
|
-
unref(designProperty).iconPosition == "outer" && (unref(designProperty).preIconType && unref(designProperty).preIconValue || unref(designProperty).preText) ? {
|
|
84
|
-
name: "prepend",
|
|
85
|
-
fn: withCtx(() => [
|
|
86
|
-
unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
87
|
-
key: 0,
|
|
88
|
-
iconType: unref(designProperty).preIconType,
|
|
89
|
-
iconValue: unref(designProperty).preIconValue
|
|
90
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
91
|
-
createTextVNode(" " + toDisplayString(unref(designProperty).preText), 1)
|
|
92
|
-
]),
|
|
93
|
-
key: "1"
|
|
94
|
-
} : void 0,
|
|
95
|
-
unref(designProperty).iconPosition != "outer" && (unref(designProperty).sufIconType && unref(designProperty).sufIconValue || unref(designProperty).sufText) ? {
|
|
96
|
-
name: "suffix",
|
|
97
|
-
fn: withCtx(() => [
|
|
98
|
-
unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
99
|
-
key: 0,
|
|
100
|
-
iconType: unref(designProperty).sufIconType,
|
|
101
|
-
iconValue: unref(designProperty).sufIconValue
|
|
102
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
103
|
-
createTextVNode(" " + toDisplayString(unref(designProperty).sufText), 1)
|
|
104
|
-
]),
|
|
105
|
-
key: "2"
|
|
106
|
-
} : void 0,
|
|
107
|
-
unref(designProperty).iconPosition == "outer" && (unref(designProperty).sufIconType && unref(designProperty).sufIconValue || unref(designProperty).sufText) ? {
|
|
108
|
-
name: "append",
|
|
109
|
-
fn: withCtx(() => [
|
|
110
|
-
unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
111
|
-
key: 0,
|
|
112
|
-
iconType: unref(designProperty).sufIconType,
|
|
113
|
-
iconValue: unref(designProperty).sufIconValue
|
|
114
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
115
|
-
createTextVNode(" " + toDisplayString(unref(designProperty).sufText), 1)
|
|
116
|
-
]),
|
|
117
|
-
key: "3"
|
|
118
|
-
} : void 0
|
|
119
|
-
]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"])
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
export {
|
|
127
|
-
_sfc_main as default
|
|
128
|
-
};
|