super-page-runtime 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/{runtime → components/runtime}/utils/charts/chart-util.js +3 -3
- package/dist/es/{wf-editor → components/wf-editor}/wf-editor.vue.js +1 -1
- package/dist/es/index.js +3 -3
- package/dist/lib/{runtime → components/runtime}/utils/charts/chart-util.js +3 -3
- package/dist/lib/{wf-editor → components/wf-editor}/wf-editor.vue.js +1 -1
- package/dist/lib/index.js +3 -3
- package/package.json +3 -2
- package/src/App.vue +9 -0
- package/src/assets/base.css +86 -0
- package/src/assets/chart-themes/theme1.ts +6 -0
- package/src/assets/chart-themes/theme2.ts +6 -0
- package/src/assets/chart-themes/theme3.ts +6 -0
- package/src/assets/images/button/button-group.png +0 -0
- package/src/assets/images/button/button.png +0 -0
- package/src/assets/images/chart/chart-column.png +0 -0
- package/src/assets/images/chart/chart-gauge.png +0 -0
- package/src/assets/images/chart/chart-pie.png +0 -0
- package/src/assets/images/chart/chart-radar.png +0 -0
- package/src/assets/images/chart/chart-scatter.png +0 -0
- package/src/assets/images/container/container-card.png +0 -0
- package/src/assets/images/container/container-collapse.png +0 -0
- package/src/assets/images/container/container-container.png +0 -0
- package/src/assets/images/container/container-flex.png +0 -0
- package/src/assets/images/container/container-form.png +0 -0
- package/src/assets/images/container/container-iframe.png +0 -0
- package/src/assets/images/container/container-normal.png +0 -0
- package/src/assets/images/container/container-tabs.png +0 -0
- package/src/assets/images/container/container-tools.png +0 -0
- package/src/assets/images/data/data-process.png +0 -0
- package/src/assets/images/data/data-step.png +0 -0
- package/src/assets/images/data/data-table-column.png +0 -0
- package/src/assets/images/data/data-table.png +0 -0
- package/src/assets/images/data/data-timeline.png +0 -0
- package/src/assets/images/data/data-tree.png +0 -0
- package/src/assets/images/form/form-cascader.png +0 -0
- package/src/assets/images/form/form-check.png +0 -0
- package/src/assets/images/form/form-color.png +0 -0
- package/src/assets/images/form/form-count.png +0 -0
- package/src/assets/images/form/form-custom.png +0 -0
- package/src/assets/images/form/form-date.png +0 -0
- package/src/assets/images/form/form-dept.png +0 -0
- package/src/assets/images/form/form-divider.png +0 -0
- package/src/assets/images/form/form-file.png +0 -0
- package/src/assets/images/form/form-image-upload.png +0 -0
- package/src/assets/images/form/form-img.png +0 -0
- package/src/assets/images/form/form-input.png +0 -0
- package/src/assets/images/form/form-label.png +0 -0
- package/src/assets/images/form/form-link.png +0 -0
- package/src/assets/images/form/form-radio.png +0 -0
- package/src/assets/images/form/form-scan.png +0 -0
- package/src/assets/images/form/form-score.png +0 -0
- package/src/assets/images/form/form-select.png +0 -0
- package/src/assets/images/form/form-slider.png +0 -0
- package/src/assets/images/form/form-space.png +0 -0
- package/src/assets/images/form/form-switch.png +0 -0
- package/src/assets/images/form/form-text.png +0 -0
- package/src/assets/images/form/form-textarea.png +0 -0
- package/src/assets/images/form/form-transfer.png +0 -0
- package/src/assets/images/form/form-zoom.png +0 -0
- package/src/assets/images/group-button.png +0 -0
- package/src/assets/images/group-chart.png +0 -0
- package/src/assets/images/group-container.png +0 -0
- package/src/assets/images/group-data.png +0 -0
- package/src/assets/images/group-form.png +0 -0
- package/src/assets/images/group-workflow.png +0 -0
- package/src/assets/images/workflow/workflow-button.png +0 -0
- package/src/assets/images/workflow/workflow-history-texts.png +0 -0
- package/src/assets/images/workflow/workflow-history.png +0 -0
- package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
- package/src/assets/images/workflow/workflow-texthistory .png +0 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/main.css +1 -0
- package/src/components/runtime/index.ts +2 -0
- package/src/components/runtime/utils/api/api-util.ts +176 -0
- package/src/components/runtime/utils/assemblys-config.js +294 -0
- package/src/components/runtime/utils/charts/chart-util.ts +37 -0
- package/src/components/runtime/utils/common-util.ts +96 -0
- package/src/components/runtime/utils/container-style-util.ts +223 -0
- package/src/components/runtime/utils/eventBus.ts +14 -0
- package/src/components/runtime/utils/events/event-util.ts +791 -0
- package/src/components/runtime/utils/events/jump-page-util.ts +0 -0
- package/src/components/runtime/utils/events/standard-event.ts +2075 -0
- package/src/components/runtime/utils/events/validator-util.ts +474 -0
- package/src/components/runtime/utils/global-refs.ts +160 -0
- package/src/components/runtime/utils/interfaces/page-design-types.ts +259 -0
- package/src/components/runtime/utils/page-helper-util.ts +850 -0
- package/src/components/runtime/utils/page-init-util.ts +291 -0
- package/src/components/runtime/utils/page-permission-util.ts +521 -0
- package/src/components/runtime/utils/store-util.ts +41 -0
- package/src/components/runtime/utils/store.ts +3 -0
- package/src/components/runtime/utils/table-utils.ts +31 -0
- package/src/components/runtime/views/assemblys/button/button/button-runtime.vue +46 -0
- package/src/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +27 -0
- package/src/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +85 -0
- package/src/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +61 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +32 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-base.vue +60 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +39 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +104 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +145 -0
- package/src/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +119 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-custom.vue +28 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +45 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +78 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +56 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-grid.vue +70 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-legend.vue +70 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +140 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +58 -0
- package/src/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +125 -0
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +67 -0
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +57 -0
- package/src/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +23 -0
- package/src/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +209 -0
- package/src/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +54 -0
- package/src/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +57 -0
- package/src/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +56 -0
- package/src/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +58 -0
- package/src/components/runtime/views/assemblys/common/common-attr-cursor.vue +23 -0
- package/src/components/runtime/views/assemblys/common/common-attr-size.vue +54 -0
- package/src/components/runtime/views/assemblys/common/common-select-table.vue +287 -0
- package/src/components/runtime/views/assemblys/common/common-style-background.vue +46 -0
- package/src/components/runtime/views/assemblys/common/common-style-border.vue +37 -0
- package/src/components/runtime/views/assemblys/common/common-style-custom.vue +35 -0
- package/src/components/runtime/views/assemblys/common/common-style-font-head.vue +53 -0
- package/src/components/runtime/views/assemblys/common/common-style-font.vue +53 -0
- package/src/components/runtime/views/assemblys/common/common-style-margin.vue +34 -0
- package/src/components/runtime/views/assemblys/common/common-style-padding.vue +34 -0
- package/src/components/runtime/views/assemblys/common/common-style-position.vue +39 -0
- package/src/components/runtime/views/assemblys/common/common-style-shadow.vue +37 -0
- package/src/components/runtime/views/assemblys/common/export-form-report-dialog.vue +118 -0
- package/src/components/runtime/views/assemblys/common/remove-signer-dialog.vue +99 -0
- package/src/components/runtime/views/assemblys/common/task-informition-dialog.vue +69 -0
- package/src/components/runtime/views/assemblys/common-attr-events.vue +46 -0
- package/src/components/runtime/views/assemblys/container/card/card-runtime.vue +56 -0
- package/src/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +56 -0
- package/src/components/runtime/views/assemblys/container/container/container-runtime.vue +50 -0
- package/src/components/runtime/views/assemblys/container/flex/flex-runtime.vue +33 -0
- package/src/components/runtime/views/assemblys/container/form/form-runtime.vue +35 -0
- package/src/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +28 -0
- package/src/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +51 -0
- package/src/components/runtime/views/assemblys/container/tools/tools-runtime.vue +97 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +110 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +25 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +95 -0
- package/src/components/runtime/views/assemblys/data/component/attr-header.vue +69 -0
- package/src/components/runtime/views/assemblys/data/component/attr-style.vue +64 -0
- package/src/components/runtime/views/assemblys/data/component/column-config.vue +171 -0
- package/src/components/runtime/views/assemblys/data/component/combinedHeader.vue +96 -0
- package/src/components/runtime/views/assemblys/data/component/composite-header.vue +257 -0
- package/src/components/runtime/views/assemblys/data/component/configuration-value.vue +206 -0
- package/src/components/runtime/views/assemblys/data/component/data-origin-tree.vue +117 -0
- package/src/components/runtime/views/assemblys/data/component/data-origin.vue +260 -0
- package/src/components/runtime/views/assemblys/data/component/formatting.vue +200 -0
- package/src/components/runtime/views/assemblys/data/component/in-parameter.vue +56 -0
- package/src/components/runtime/views/assemblys/data/component/querySetting.vue +52 -0
- package/src/components/runtime/views/assemblys/data/component/return-set-table.vue +91 -0
- package/src/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +58 -0
- package/src/components/runtime/views/assemblys/data/component/select-data-table.vue +86 -0
- package/src/components/runtime/views/assemblys/data/table/main-table-runtime.vue +852 -0
- package/src/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +622 -0
- package/src/components/runtime/views/assemblys/data/table/table-runtime.vue +93 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +137 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +55 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/data/tree/tree-design.vue +114 -0
- package/src/components/runtime/views/assemblys/error-attr.vue +15 -0
- package/src/components/runtime/views/assemblys/error-render.vue +17 -0
- package/src/components/runtime/views/assemblys/form/cascader/cascader-design.vue +288 -0
- package/src/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +192 -0
- package/src/components/runtime/views/assemblys/form/colors/colors-design.vue +16 -0
- package/src/components/runtime/views/assemblys/form/common/analytic-rule.vue +148 -0
- package/src/components/runtime/views/assemblys/form/common/attr-event.vue +82 -0
- package/src/components/runtime/views/assemblys/form/common/attr-header.vue +54 -0
- package/src/components/runtime/views/assemblys/form/common/attr-style.vue +44 -0
- package/src/components/runtime/views/assemblys/form/common/bar-code-rule.vue +104 -0
- package/src/components/runtime/views/assemblys/form/common/condition.vue +147 -0
- package/src/components/runtime/views/assemblys/form/common/data-origin.vue +81 -0
- package/src/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +64 -0
- package/src/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +106 -0
- package/src/components/runtime/views/assemblys/form/common/default-value-setting.vue +362 -0
- package/src/components/runtime/views/assemblys/form/common/dimension-input.vue +68 -0
- package/src/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +115 -0
- package/src/components/runtime/views/assemblys/form/common/formatting-label.vue +81 -0
- package/src/components/runtime/views/assemblys/form/common/grid-num-select.vue +43 -0
- package/src/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +144 -0
- package/src/components/runtime/views/assemblys/form/common/linkage.vue +21 -0
- package/src/components/runtime/views/assemblys/form/common/overall-height.vue +20 -0
- package/src/components/runtime/views/assemblys/form/common/overall-width.vue +48 -0
- package/src/components/runtime/views/assemblys/form/common/pre-suffix.vue +33 -0
- package/src/components/runtime/views/assemblys/form/common/rich-text.vue +100 -0
- package/src/components/runtime/views/assemblys/form/common/row-ul-li.vue +55 -0
- package/src/components/runtime/views/assemblys/form/common/setoption-table.vue +86 -0
- package/src/components/runtime/views/assemblys/form/common/size-input.vue +65 -0
- package/src/components/runtime/views/assemblys/form/common/suffixmodule.vue +82 -0
- package/src/components/runtime/views/assemblys/form/common/title.vue +20 -0
- package/src/components/runtime/views/assemblys/form/common/uploading.vue +34 -0
- package/src/components/runtime/views/assemblys/form/common/verification.vue +79 -0
- package/src/components/runtime/views/assemblys/form/common/voluntarily.vue +27 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +81 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +14 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/form/custom/custom-design.vue +46 -0
- package/src/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +74 -0
- package/src/components/runtime/views/assemblys/form/datetime/datetime-design.vue +19 -0
- package/src/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +57 -0
- package/src/components/runtime/views/assemblys/form/divider/divider-runtime.vue +40 -0
- package/src/components/runtime/views/assemblys/form/file-picture/picture-design.vue +80 -0
- package/src/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +76 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +142 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +14 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +84 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +75 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +13 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +14 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +66 -0
- package/src/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +57 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +68 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +58 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/form/input-show/input-show-design.vue +132 -0
- package/src/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +139 -0
- package/src/components/runtime/views/assemblys/form/label/label-runtime.vue +115 -0
- package/src/components/runtime/views/assemblys/form/link/link-runtime.vue +67 -0
- package/src/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +23 -0
- package/src/components/runtime/views/assemblys/form/radio/radio-runtime.vue +197 -0
- package/src/components/runtime/views/assemblys/form/rate/rate-design.vue +16 -0
- package/src/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +153 -0
- package/src/components/runtime/views/assemblys/form/select/select-runtime.vue +241 -0
- package/src/components/runtime/views/assemblys/form/slider/slider-design.vue +16 -0
- package/src/components/runtime/views/assemblys/form/switch/switch-runtime.vue +58 -0
- package/src/components/runtime/views/assemblys/form/tag/tag-runtime.vue +60 -0
- package/src/components/runtime/views/assemblys/form/text/text-design.vue +19 -0
- package/src/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +60 -0
- package/src/components/runtime/views/assemblys/form/transfer/transfer-design.vue +32 -0
- package/src/components/runtime/views/assemblys/object-render.vue +176 -0
- package/src/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +179 -0
- package/src/components/runtime/views/assemblys/page/page-attr-base.vue +252 -0
- package/src/components/runtime/views/assemblys/page/page-attr-events.vue +50 -0
- package/src/components/runtime/views/assemblys/page/page-attr-style.vue +25 -0
- package/src/components/runtime/views/assemblys/page/page-attr.vue +84 -0
- package/src/components/runtime/views/assemblys/page/variable-dialog.vue +242 -0
- package/src/components/runtime/views/assemblys/workflow/component/combination.vue +206 -0
- package/src/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +99 -0
- package/src/components/runtime/views/assemblys/workflow/component/event-dialog.vue +278 -0
- package/src/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +174 -0
- package/src/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +155 -0
- package/src/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +47 -0
- package/src/components/runtime/views/assemblys/workflow/component/set-dialog.vue +130 -0
- package/src/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +96 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +43 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +27 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +17 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +60 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +14 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +27 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +29 -0
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +17 -0
- package/src/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +61 -0
- package/src/components/runtime/views/render/page-view.vue +80 -0
- package/src/components/runtime/views/super-page copy.vue +61 -0
- package/src/components/runtime/views/super-page.vue +662 -0
- package/src/components/super-page-dialog/index.ts +2 -0
- package/src/components/super-page-dialog/super-page-dialog.vue +267 -0
- package/src/components/wf-editor/index.ts +2 -0
- package/src/components/wf-editor/wf-editor.vue +15 -0
- package/src/i18n/langs/cn.js +52 -0
- package/src/i18n/langs/en.js +52 -0
- package/src/index.ts +17 -0
- package/src/main.ts +11 -0
- package/src/stores/counter.ts +12 -0
- /package/dist/es/{runtime → components/runtime}/index.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/api/api-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/assemblys-config.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/common-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/events/event-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/events/standard-event.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/events/validator-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/global-refs.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/interfaces/page-design-types.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/page-helper-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/page-init-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/store-util.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/store.js +0 -0
- /package/dist/es/{runtime → components/runtime}/utils/table-utils.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/error-render.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/error-render.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/object-render.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/object-render.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/super-page.vue.js +0 -0
- /package/dist/es/{runtime → components/runtime}/views/super-page.vue2.js +0 -0
- /package/dist/es/{super-page-dialog → components/super-page-dialog}/index.js +0 -0
- /package/dist/es/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue.js +0 -0
- /package/dist/es/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue2.js +0 -0
- /package/dist/es/{wf-editor → components/wf-editor}/index.js +0 -0
- /package/dist/es/{wf-editor → components/wf-editor}/wf-editor.css +0 -0
- /package/dist/lib/{runtime → components/runtime}/index.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/api/api-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/assemblys-config.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/common-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/events/event-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/events/standard-event.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/events/validator-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/global-refs.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/interfaces/page-design-types.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/page-helper-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/page-init-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/store-util.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/store.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/utils/table-utils.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button/button-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/card/card-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/container/container-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/flex/flex-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/form/form-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/container/tools/tools-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/data/table/table-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/error-render.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/error-render.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/divider/divider-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/label/label-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/link/link-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/radio/radio-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/select/select-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/switch/switch-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/tag/tag-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/object-render.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/object-render.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/super-page.vue.js +0 -0
- /package/dist/lib/{runtime → components/runtime}/views/super-page.vue2.js +0 -0
- /package/dist/lib/{super-page-dialog → components/super-page-dialog}/index.js +0 -0
- /package/dist/lib/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue.js +0 -0
- /package/dist/lib/{super-page-dialog → components/super-page-dialog}/super-page-dialog.vue2.js +0 -0
- /package/dist/lib/{wf-editor → components/wf-editor}/index.js +0 -0
- /package/dist/lib/{wf-editor → components/wf-editor}/wf-editor.css +0 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import {defineAsyncComponent} from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 定义的可选类型
|
|
5
|
+
*/
|
|
6
|
+
export const assemblyGroups = [{
|
|
7
|
+
name:'container',
|
|
8
|
+
label:'容器',
|
|
9
|
+
icon:'assets/images/group-container.png',
|
|
10
|
+
items:[{
|
|
11
|
+
name:'form',
|
|
12
|
+
label:'表单',
|
|
13
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
14
|
+
return import('../views/assemblys/container/form/form-runtime.vue')
|
|
15
|
+
})
|
|
16
|
+
},{
|
|
17
|
+
name:'card',
|
|
18
|
+
label:'卡片',
|
|
19
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
20
|
+
return import('../views/assemblys/container/card/card-runtime.vue')
|
|
21
|
+
})
|
|
22
|
+
},{
|
|
23
|
+
name:'collapse',
|
|
24
|
+
label:'折叠面板',
|
|
25
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
26
|
+
return import('../views/assemblys/container/collapse/collapse-runtime.vue')
|
|
27
|
+
})
|
|
28
|
+
},{
|
|
29
|
+
name:'layout',
|
|
30
|
+
label:'Flex',
|
|
31
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
32
|
+
return import('../views/assemblys/container/flex/flex-runtime.vue')
|
|
33
|
+
})
|
|
34
|
+
},{
|
|
35
|
+
name:'tabs',
|
|
36
|
+
label:'Tabs',
|
|
37
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
38
|
+
return import('../views/assemblys/container/tabs/tabs-runtime.vue')
|
|
39
|
+
})
|
|
40
|
+
},{
|
|
41
|
+
name:'tools',
|
|
42
|
+
label:'工具栏',
|
|
43
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
44
|
+
return import('../views/assemblys/container/tools/tools-runtime.vue')
|
|
45
|
+
})
|
|
46
|
+
},{
|
|
47
|
+
name:'iframe',
|
|
48
|
+
label:'Iframe',
|
|
49
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
50
|
+
return import('../views/assemblys/container/iframe/iframe-runtime.vue')
|
|
51
|
+
})
|
|
52
|
+
},{
|
|
53
|
+
name:'container',
|
|
54
|
+
label:'布局',
|
|
55
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
56
|
+
return import('../views/assemblys/container/container/container-runtime.vue')
|
|
57
|
+
})
|
|
58
|
+
}]},{
|
|
59
|
+
name:'form',
|
|
60
|
+
label:'表单',
|
|
61
|
+
items:[{
|
|
62
|
+
name:'input-text',
|
|
63
|
+
label:'文本框',
|
|
64
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
65
|
+
return import('../views/assemblys/form/input-text/inputtext-runtime.vue')
|
|
66
|
+
})
|
|
67
|
+
},{
|
|
68
|
+
name:'select',
|
|
69
|
+
label:'下拉框',
|
|
70
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
71
|
+
return import('../views/assemblys/form/select/select-runtime.vue')
|
|
72
|
+
})
|
|
73
|
+
},{
|
|
74
|
+
name:'radio',
|
|
75
|
+
label:'单选框',
|
|
76
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
77
|
+
return import('../views/assemblys/form/radio/radio-runtime.vue')
|
|
78
|
+
})
|
|
79
|
+
},{
|
|
80
|
+
name:'checkbox',
|
|
81
|
+
label:'复选框',
|
|
82
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
83
|
+
return import('../views/assemblys/form/checkbox/checkbox-runtime.vue')
|
|
84
|
+
})
|
|
85
|
+
},{
|
|
86
|
+
name:'textarea',
|
|
87
|
+
label:'文本域',
|
|
88
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
89
|
+
return import('../views/assemblys/form/textarea/textarea-runtime.vue')
|
|
90
|
+
})
|
|
91
|
+
},{
|
|
92
|
+
name:'datePicker',
|
|
93
|
+
label:'日期/时间',
|
|
94
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
95
|
+
return import('../views/assemblys/form/date-picker/datepicker-runtime.vue')
|
|
96
|
+
})
|
|
97
|
+
},{
|
|
98
|
+
name:'switch',
|
|
99
|
+
label:'开关',
|
|
100
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
101
|
+
return import('../views/assemblys/form/switch/switch-runtime.vue')
|
|
102
|
+
})
|
|
103
|
+
},{
|
|
104
|
+
name:'inputNumber',
|
|
105
|
+
label:'计数器',
|
|
106
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
107
|
+
return import('../views/assemblys/form/input-number/input-number-runtime.vue')
|
|
108
|
+
})
|
|
109
|
+
},{
|
|
110
|
+
name:'tag',
|
|
111
|
+
label:'标签',
|
|
112
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
113
|
+
return import('../views/assemblys/form/tag/tag-runtime.vue')
|
|
114
|
+
})
|
|
115
|
+
},{
|
|
116
|
+
name:'richText',
|
|
117
|
+
label:'富文本',
|
|
118
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
119
|
+
return import('../views/assemblys/form/rich-text/richtext-runtime.vue')
|
|
120
|
+
})
|
|
121
|
+
},{
|
|
122
|
+
name:'divider',
|
|
123
|
+
label:'分割线',
|
|
124
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
125
|
+
return import('../views/assemblys/form/divider/divider-runtime.vue')
|
|
126
|
+
})
|
|
127
|
+
},{
|
|
128
|
+
name:'placeholder',
|
|
129
|
+
label:'占位符',
|
|
130
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
131
|
+
return import('../views/assemblys/form/placeholder/placeholder-runtime.vue')
|
|
132
|
+
})
|
|
133
|
+
},{
|
|
134
|
+
name:'link',
|
|
135
|
+
label:'链接',
|
|
136
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
137
|
+
return import('../views/assemblys/form/link/link-runtime.vue')
|
|
138
|
+
})
|
|
139
|
+
},{
|
|
140
|
+
name:'label',
|
|
141
|
+
label:'Label组件',
|
|
142
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
143
|
+
return import('../views/assemblys/form/label/label-runtime.vue')
|
|
144
|
+
})
|
|
145
|
+
},{
|
|
146
|
+
name:'dept-tree',
|
|
147
|
+
label:'组织树',
|
|
148
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
149
|
+
return import('../views/assemblys/form/dept-tree/depttree-runtime.vue')
|
|
150
|
+
})
|
|
151
|
+
},{
|
|
152
|
+
name:'file-upload',
|
|
153
|
+
label:'文件上传',
|
|
154
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
155
|
+
return import('../views/assemblys/form/file-upload/fileupload-runtime.vue')
|
|
156
|
+
})
|
|
157
|
+
}]
|
|
158
|
+
},{
|
|
159
|
+
name:'button',
|
|
160
|
+
label:'按钮',
|
|
161
|
+
items:[{
|
|
162
|
+
name:'button-detail',
|
|
163
|
+
label:'按钮',
|
|
164
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
165
|
+
return import('../views/assemblys/button/button/button-runtime.vue')
|
|
166
|
+
})
|
|
167
|
+
},{
|
|
168
|
+
name:'button-group',
|
|
169
|
+
label:'按钮组',
|
|
170
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
171
|
+
return import('../views/assemblys/button/button-group/buttongroup-runtime.vue')
|
|
172
|
+
})
|
|
173
|
+
},{
|
|
174
|
+
name:'dropdown',
|
|
175
|
+
label:'下拉菜单',
|
|
176
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
177
|
+
return import('../views/assemblys/button/dropdown/dropdown-runtime.vue')
|
|
178
|
+
})
|
|
179
|
+
}]
|
|
180
|
+
},{
|
|
181
|
+
name:'workflow',
|
|
182
|
+
label:'工作流',
|
|
183
|
+
items:[{
|
|
184
|
+
name:'workflow-button',
|
|
185
|
+
label:'工作流按钮',
|
|
186
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
187
|
+
return import('../views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue')
|
|
188
|
+
})
|
|
189
|
+
}]
|
|
190
|
+
},{
|
|
191
|
+
name:'chart',
|
|
192
|
+
label:'统计图',
|
|
193
|
+
items:[{
|
|
194
|
+
name:'chart-column-line',
|
|
195
|
+
label:'柱/折图',
|
|
196
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
197
|
+
return import('../views/assemblys/chart/column-line/column-line-runtime.vue')
|
|
198
|
+
})
|
|
199
|
+
},{
|
|
200
|
+
name:'chart-pie',
|
|
201
|
+
label:'饼图',
|
|
202
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
203
|
+
return import('../views/assemblys/chart/pie/pie-runtime.vue')
|
|
204
|
+
})
|
|
205
|
+
},{
|
|
206
|
+
name:'chart-gauge',
|
|
207
|
+
label:'仪表盘',
|
|
208
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
209
|
+
return import('../views/assemblys/chart/gauge/gauge-runtime.vue')
|
|
210
|
+
})
|
|
211
|
+
},{
|
|
212
|
+
name:'chart-radar',
|
|
213
|
+
label:'雷达图',
|
|
214
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
215
|
+
return import('../views/assemblys/chart/radar/radar-runtime.vue')
|
|
216
|
+
})
|
|
217
|
+
},{
|
|
218
|
+
name:'chart-scatter',
|
|
219
|
+
label:'散点图',
|
|
220
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
221
|
+
return import('../views/assemblys/chart/scatter/scatter-runtime.vue')
|
|
222
|
+
})
|
|
223
|
+
}]
|
|
224
|
+
},{
|
|
225
|
+
name:'data',
|
|
226
|
+
label:'数据',
|
|
227
|
+
items:[{
|
|
228
|
+
name:'table',
|
|
229
|
+
label:'表格',
|
|
230
|
+
runtimeComponent:defineAsyncComponent(()=>{
|
|
231
|
+
return import('../views/assemblys/data/table/table-runtime.vue')
|
|
232
|
+
})
|
|
233
|
+
}]
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* 根据组件名称获取运行时的组件
|
|
239
|
+
* @param {} name
|
|
240
|
+
* @returns
|
|
241
|
+
*/
|
|
242
|
+
export function getRuntimeComponentByName(name){
|
|
243
|
+
if(!name){
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
246
|
+
for(let i =0;i<assemblyGroups.length;i++){
|
|
247
|
+
let items = assemblyGroups[i].items;
|
|
248
|
+
for(let j =0;j<items.length;j++){
|
|
249
|
+
let item = items[j];
|
|
250
|
+
if(item.name==name){
|
|
251
|
+
return item.runtimeComponent;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return null;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @returns 获取所有属于表单的组件集合
|
|
261
|
+
*/
|
|
262
|
+
export function getFormComponentOptions () {
|
|
263
|
+
for (let assemblyGroup of assemblyGroups) {
|
|
264
|
+
if (assemblyGroup.name === 'form') {
|
|
265
|
+
const options = []
|
|
266
|
+
assemblyGroup.items.forEach(item => {
|
|
267
|
+
options.push({name: item.name, label: item.label})
|
|
268
|
+
})
|
|
269
|
+
return options
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @param componentName 图表组件时值为固定的chart
|
|
276
|
+
* @returns 获取指定组件的事件集合
|
|
277
|
+
*/
|
|
278
|
+
export function getComponentEventOptions (componentName) {
|
|
279
|
+
if(componentName && componentName === 'page') {
|
|
280
|
+
// 为了提升效率,当点击的是页面节点时,不再遍历该数组
|
|
281
|
+
return
|
|
282
|
+
}
|
|
283
|
+
for (let assemblyGroup of assemblyGroups) {
|
|
284
|
+
if (assemblyGroup.name === componentName) {
|
|
285
|
+
return assemblyGroup.events
|
|
286
|
+
} else {
|
|
287
|
+
for (let item of assemblyGroup.items) {
|
|
288
|
+
if(item.name === componentName) {
|
|
289
|
+
return item.events
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import theme1 from '../../../../assets/chart-themes/theme1';
|
|
2
|
+
import theme2 from '../../../../assets/chart-themes/theme2';
|
|
3
|
+
import theme3 from '../../../../assets/chart-themes/theme3';
|
|
4
|
+
|
|
5
|
+
//缓存主题
|
|
6
|
+
const themeMap:any = {
|
|
7
|
+
'theme1':theme1,
|
|
8
|
+
'theme2':theme2,
|
|
9
|
+
'theme3':theme3
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 获取主题对象
|
|
14
|
+
* @param themeName 获取自定义的主题名称
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export function getCustomTheme(themeName:string) {
|
|
18
|
+
console.log("getdd",themeName);
|
|
19
|
+
return themeMap[themeName];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 获取所有主题对象
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export function getCustomThemeOptions():Array<any>{
|
|
27
|
+
return [{
|
|
28
|
+
value:'theme1',
|
|
29
|
+
label:'主题1'
|
|
30
|
+
},{
|
|
31
|
+
value:'theme2',
|
|
32
|
+
label:'主题2'
|
|
33
|
+
},{
|
|
34
|
+
value:'theme3',
|
|
35
|
+
label:'主题3'
|
|
36
|
+
}];
|
|
37
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { getSystemBackendUrl } from 'agilebuilder-ui/src/utils/common-util'
|
|
2
|
+
import { getLanguageWithLocale } from 'agilebuilder-ui/src/utils/util'
|
|
3
|
+
import { getPageStoreKey } from './store-util'
|
|
4
|
+
export function isArrayFn(value) {
|
|
5
|
+
// 首先判断浏览器是否支持Array.isArray这个方法
|
|
6
|
+
if (typeof Array.isArray === 'function') {
|
|
7
|
+
return Array.isArray(value)
|
|
8
|
+
} else {
|
|
9
|
+
return Object.prototype.toString.call(value) === '[object Array]'
|
|
10
|
+
// return obj.__proto__ === Array.prototype;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function getBaseUrl(system) {
|
|
15
|
+
// window['$vueApp'].config.globalProperties.baseURL 应该是自定义扩展系统的后台访问路径
|
|
16
|
+
let baseUrl = window['$vueApp'].config.globalProperties.baseURL
|
|
17
|
+
if (system) {
|
|
18
|
+
baseUrl = getSystemBackendUrl(system.backendUrl)
|
|
19
|
+
}
|
|
20
|
+
return baseUrl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function getRealRestApiPath(orgRestApiPath, system) {
|
|
24
|
+
let path = orgRestApiPath
|
|
25
|
+
if (orgRestApiPath) {
|
|
26
|
+
if (system && !isFullPath(orgRestApiPath)) {
|
|
27
|
+
const baseUrl = getBaseUrl(system)
|
|
28
|
+
if (system.standard === false) {
|
|
29
|
+
// 自定义系统
|
|
30
|
+
// 扩展系统的后台地址格式为:/dsc/systemCode/xxx/x,例如:/dsc/demo/orders/list,配置的路径为/orders/list即可
|
|
31
|
+
path = baseUrl + '/' + system.code + orgRestApiPath
|
|
32
|
+
} else {
|
|
33
|
+
// 标准系统
|
|
34
|
+
path = baseUrl + orgRestApiPath
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return path
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// 表示是全路径
|
|
42
|
+
function isFullPath(path) {
|
|
43
|
+
return path.indexOf('http:') === 0 || path.indexOf('https:') === 0
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 封装模板文件列表
|
|
48
|
+
* @param templateFiles
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
export function packageTemplateFiles(templateFiles) {
|
|
52
|
+
if (!templateFiles) {
|
|
53
|
+
return templateFiles
|
|
54
|
+
}
|
|
55
|
+
const currentLocale = getLanguageWithLocale()
|
|
56
|
+
if (Array.isArray(templateFiles)) {
|
|
57
|
+
// 表示是上传的多个模板
|
|
58
|
+
let templateFilesResult = []
|
|
59
|
+
let fileCodes = []
|
|
60
|
+
const fileSeperate = '~-~-'
|
|
61
|
+
templateFiles.forEach((template) => {
|
|
62
|
+
let showName = template.templateShowPath
|
|
63
|
+
if (showName.indexOf(fileSeperate) > 0) {
|
|
64
|
+
// 表示是多语言模板
|
|
65
|
+
const fileCode = showName.substring(0, showName.indexOf(fileSeperate))
|
|
66
|
+
const fileLanguage = showName.substring(
|
|
67
|
+
showName.indexOf(fileSeperate) + fileSeperate.length,
|
|
68
|
+
showName.lastIndexOf(fileSeperate)
|
|
69
|
+
)
|
|
70
|
+
const fileName = showName.substring(
|
|
71
|
+
showName.lastIndexOf(fileSeperate) + fileSeperate.length
|
|
72
|
+
)
|
|
73
|
+
if (currentLocale === fileLanguage && fileCodes.indexOf(fileCode) < 0) {
|
|
74
|
+
templateFilesResult.push({
|
|
75
|
+
templateUUID: template.templateUUID,
|
|
76
|
+
templateShowPath: fileName
|
|
77
|
+
})
|
|
78
|
+
fileCodes.push(fileCode)
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
templateFilesResult.push(template)
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
return templateFilesResult
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// 首字母大写
|
|
89
|
+
export function upperFirstCase(str) {
|
|
90
|
+
return str.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase()) // 执行代码
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// 获得列表编码
|
|
94
|
+
export function getListCode(pageCode, pageVersion, tableUuid) {
|
|
95
|
+
return pageCode + ':V' + pageVersion + ':' + tableUuid
|
|
96
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import type { Component } from "./interfaces/page-design-types";
|
|
2
|
+
/**
|
|
3
|
+
* 生成通用的样式和Class
|
|
4
|
+
*/
|
|
5
|
+
export function caculateCommonStyle(configure:Component,commonStyle:any,commonClass:any):void{
|
|
6
|
+
//清空设置
|
|
7
|
+
const tempStyle:any = {};
|
|
8
|
+
let tempClass = '';
|
|
9
|
+
const thisProps = configure.props?configure.props:{};
|
|
10
|
+
const thisStyle = configure.style?configure.style:{};
|
|
11
|
+
const thisSize = thisProps.size?thisProps.size:{};
|
|
12
|
+
//宽度
|
|
13
|
+
//固定
|
|
14
|
+
//默认按100
|
|
15
|
+
if(thisSize.widthType=='fix'&&thisSize.fixWidth){
|
|
16
|
+
tempStyle['width']=thisSize.fixWidth;
|
|
17
|
+
if(!tempStyle['width'].indexOf||tempStyle['width'].indexOf("px")==-1){
|
|
18
|
+
tempStyle['width'] = tempStyle['width']+"px";
|
|
19
|
+
}
|
|
20
|
+
}else{
|
|
21
|
+
if(thisSize.flexSpan){
|
|
22
|
+
tempClass += " el-col-"+thisSize.flexSpan;
|
|
23
|
+
}else{
|
|
24
|
+
tempClass += " el-col-24";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//margin
|
|
28
|
+
//外边距 设计有套一层,在此设置外部的边距
|
|
29
|
+
if(thisStyle.marginTop){
|
|
30
|
+
tempStyle['margin-top'] = thisStyle.marginTop+"px";
|
|
31
|
+
}
|
|
32
|
+
if(thisStyle.marginRight){
|
|
33
|
+
tempStyle['margin-right'] = thisStyle.marginRight+"px";
|
|
34
|
+
}
|
|
35
|
+
if(thisStyle.marginBottom){
|
|
36
|
+
tempStyle['margin-bottom'] = thisStyle.marginBottom+"px";
|
|
37
|
+
}
|
|
38
|
+
if(thisStyle.marginLeft){
|
|
39
|
+
tempStyle['margin-left'] = thisStyle.marginLeft+"px";
|
|
40
|
+
}
|
|
41
|
+
//高度
|
|
42
|
+
if(thisSize.fixHeight){
|
|
43
|
+
tempStyle['height']=thisSize.fixHeight;
|
|
44
|
+
if(!tempStyle['height'].indexOf||tempStyle['height'].indexOf("px")==-1){
|
|
45
|
+
tempStyle['height'] = tempStyle['height']+"px";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//检查是否固定位置
|
|
49
|
+
const position = thisProps.position;
|
|
50
|
+
//工具栏位置
|
|
51
|
+
if(position=='top'||position=='bottom'){
|
|
52
|
+
//position: -webkit-sticky
|
|
53
|
+
tempStyle['position'] = 'fixed !important';
|
|
54
|
+
tempStyle['z-index'] = '1';
|
|
55
|
+
//找展示容器的位置
|
|
56
|
+
//const contentObj = document.getElementsByClassName("amb-design-board");
|
|
57
|
+
const contentObj = [thisRef.value.parentNode];
|
|
58
|
+
if(contentObj&&contentObj.length>0){
|
|
59
|
+
const contentRec = contentObj[0].getBoundingClientRect();
|
|
60
|
+
if(position=='top'){
|
|
61
|
+
tempStyle['top'] = contentRec.top+"px";
|
|
62
|
+
}
|
|
63
|
+
if(position=='bottom'){
|
|
64
|
+
tempStyle['bottom'] = "10px";
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//宽
|
|
68
|
+
const thisRec = thisRef.value.getBoundingClientRect();
|
|
69
|
+
tempStyle['width'] = thisRec.width+"px";
|
|
70
|
+
}else if(thisStyle.position){
|
|
71
|
+
//按定位设置
|
|
72
|
+
tempStyle['position'] = thisStyle.position;
|
|
73
|
+
if(thisStyle.position!='relative'){
|
|
74
|
+
//其余需要默认当前的宽度
|
|
75
|
+
if(!tempStyle['width']){
|
|
76
|
+
const thisRec = thisRef.value.getBoundingClientRect();
|
|
77
|
+
tempStyle['width'] = thisRec.width+"px";
|
|
78
|
+
}
|
|
79
|
+
if(thisStyle.left){
|
|
80
|
+
tempStyle['left'] = thisStyle.left+"px";
|
|
81
|
+
}
|
|
82
|
+
if(thisStyle.top){
|
|
83
|
+
tempStyle['top'] = thisStyle.top+"px";
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
commonStyle.value = tempStyle;
|
|
88
|
+
commonClass.value = tempClass;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 样式转换
|
|
93
|
+
* @param configure
|
|
94
|
+
* @param designStyle 动态样式名
|
|
95
|
+
* @param designClass 动态class
|
|
96
|
+
*/
|
|
97
|
+
export function caculateComponentStyle(configure:any,designStyle:any,designClass:any,designHeaderStyle:any):void{
|
|
98
|
+
//清空设置
|
|
99
|
+
const tempStyle:any = {};
|
|
100
|
+
const tempHeaderStyle:any={};
|
|
101
|
+
let tempClass = '';
|
|
102
|
+
//从默认值中获取
|
|
103
|
+
let defineStyle:any = {};
|
|
104
|
+
if(configure.default&&configure.default.style){
|
|
105
|
+
Object.assign(defineStyle,configure.default.style);
|
|
106
|
+
}
|
|
107
|
+
//设计内容覆盖
|
|
108
|
+
if(configure.style){
|
|
109
|
+
for(let pro in configure.style){
|
|
110
|
+
const proValue = configure.style[pro];
|
|
111
|
+
if(proValue!=undefined&&proValue!=null&&proValue!=''){
|
|
112
|
+
defineStyle[pro] = proValue;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
//加粗
|
|
118
|
+
if(defineStyle.fontWeight){
|
|
119
|
+
tempStyle['font-weight'] = 'bold';
|
|
120
|
+
}
|
|
121
|
+
//倾斜
|
|
122
|
+
if(defineStyle.incline){
|
|
123
|
+
tempStyle['font-style'] = 'italic';
|
|
124
|
+
}
|
|
125
|
+
//字号
|
|
126
|
+
if(defineStyle.fontSize){
|
|
127
|
+
tempStyle['font-size'] = defineStyle.fontSize;
|
|
128
|
+
}
|
|
129
|
+
//颜色
|
|
130
|
+
if(defineStyle.color){
|
|
131
|
+
tempStyle['color'] = defineStyle.color;
|
|
132
|
+
}
|
|
133
|
+
if(defineStyle.textAlign){
|
|
134
|
+
tempStyle['text-align'] = defineStyle.textAlign;
|
|
135
|
+
}
|
|
136
|
+
//背景颜色
|
|
137
|
+
if(defineStyle.backgroundColor){
|
|
138
|
+
tempStyle['background-color'] = defineStyle.backgroundColor;
|
|
139
|
+
}
|
|
140
|
+
//背景图片 待设置
|
|
141
|
+
//内边距
|
|
142
|
+
if(defineStyle.paddingTop){
|
|
143
|
+
tempStyle['padding-top'] = defineStyle.paddingTop+"px";
|
|
144
|
+
}
|
|
145
|
+
if(defineStyle.paddingRight){
|
|
146
|
+
tempStyle['padding-right'] = defineStyle.paddingRight+"px";
|
|
147
|
+
}
|
|
148
|
+
if(defineStyle.paddingBottom){
|
|
149
|
+
tempStyle['padding-bottom'] = defineStyle.paddingBottom+"px";
|
|
150
|
+
}
|
|
151
|
+
if(defineStyle.paddingLeft){
|
|
152
|
+
tempStyle['padding-left'] = defineStyle.paddingLeft+"px";
|
|
153
|
+
}
|
|
154
|
+
//线宽
|
|
155
|
+
if(defineStyle.borderWidth&&defineStyle.borderColor){
|
|
156
|
+
tempStyle['border'] = defineStyle.borderWidth+"px " + (defineStyle.borderType?defineStyle.borderType:"solid") + " " + defineStyle.borderColor;
|
|
157
|
+
//线框圆角
|
|
158
|
+
if(defineStyle.radius){
|
|
159
|
+
tempStyle['border-radius'] = defineStyle.radius+"px";
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
//阴影
|
|
164
|
+
if(defineStyle.shadowColor){
|
|
165
|
+
let shadow = (defineStyle.shadowTop?defineStyle.shadowTop:"0")+"px ";
|
|
166
|
+
shadow += (defineStyle.shadowRight?defineStyle.shadowRight:"0")+"px ";
|
|
167
|
+
shadow += (defineStyle.shadowBottom?defineStyle.shadowBottom:"0")+"px ";
|
|
168
|
+
shadow += (defineStyle.shadowLeft?defineStyle.shadowLeft:"0")+"px ";
|
|
169
|
+
shadow += defineStyle.shadowColor;
|
|
170
|
+
tempStyle['box-shadow'] = shadow;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
//自定义class
|
|
174
|
+
if(defineStyle.customClass){
|
|
175
|
+
tempClass += " " + defineStyle.customClass.replace(/;/g,' ');
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
//自定义样式
|
|
179
|
+
if(defineStyle.customStyle){
|
|
180
|
+
const strs = defineStyle.customStyle.replace(/[\r\n]/g,'').split(";");
|
|
181
|
+
for(let index=0;index<strs.length;index++){
|
|
182
|
+
const ss = strs[index].split(":");
|
|
183
|
+
if(ss.length>1&&ss[0]&&ss[1]){
|
|
184
|
+
if(!isNaN(ss[0])){
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
tempStyle[ss[0]] = ss[1];
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
//标题的样式
|
|
192
|
+
//加粗
|
|
193
|
+
if(defineStyle.headerFontWeight){
|
|
194
|
+
tempHeaderStyle['font-weight'] = "bold";
|
|
195
|
+
}
|
|
196
|
+
//倾斜
|
|
197
|
+
if(defineStyle.headerIncline){
|
|
198
|
+
tempHeaderStyle['font-style'] = "italic";
|
|
199
|
+
}
|
|
200
|
+
//字号
|
|
201
|
+
if(defineStyle.headerFontSize){
|
|
202
|
+
tempHeaderStyle['font-size'] = defineStyle.headerFontSize;
|
|
203
|
+
}
|
|
204
|
+
//颜色
|
|
205
|
+
if(defineStyle.headerColor){
|
|
206
|
+
tempHeaderStyle['color'] = defineStyle.headerColor;
|
|
207
|
+
}
|
|
208
|
+
if(defineStyle.headerTextAlign){
|
|
209
|
+
tempHeaderStyle['text-align'] = defineStyle.headerTextAlign;
|
|
210
|
+
}else{
|
|
211
|
+
tempHeaderStyle['text-align'] = "left";
|
|
212
|
+
}
|
|
213
|
+
//背景颜色
|
|
214
|
+
if(defineStyle.headerBackgroundColor){
|
|
215
|
+
tempHeaderStyle['background-color'] = defineStyle.headerBackgroundColor;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
designStyle.value = tempStyle;
|
|
219
|
+
designClass.value = tempClass;
|
|
220
|
+
if(designHeaderStyle){
|
|
221
|
+
designHeaderStyle.value = tempHeaderStyle;
|
|
222
|
+
}
|
|
223
|
+
}
|