super-page-runtime 1.0.17 → 2.0.4
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/{lib/src → dist/es}/assets/chart-themes/theme1.js +3 -2
- package/{lib/src → dist/es}/assets/chart-themes/theme2.js +3 -2
- package/{lib/src → dist/es}/assets/chart-themes/theme3.js +3 -2
- package/{lib/src → dist/es/components/runtime}/utils/api/api-util.js +15 -15
- package/dist/es/components/runtime/utils/assemblys-config.js +257 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +28 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.js +25 -12
- package/dist/es/components/runtime/utils/eventBus.js +11 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.js +41 -40
- package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.js +149 -148
- package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.js +23 -23
- package/{lib/src → dist/es/components/runtime}/utils/global-refs.js +8 -8
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.js +3 -3
- package/{lib/src → dist/es/components/runtime}/utils/page-helper-util.js +135 -19
- package/{lib/src → dist/es/components/runtime}/utils/page-init-util.js +18 -18
- package/dist/es/components/runtime/utils/page-permission-util.js +525 -0
- package/{lib/src → dist/es/components/runtime}/utils/store-util.js +5 -5
- package/{lib/src → dist/es/components/runtime}/utils/store.js +3 -2
- package/{lib/src → dist/es/components/runtime}/utils/table-utils.js +10 -9
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +55 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +36 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +111 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +249 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +62 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +57 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +50 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +51 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +51 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +52 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +34 -27
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/remove-signer-dialog.vue.js +33 -32
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/task-informition-dialog.vue.js +30 -29
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -23
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +75 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +80 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +44 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +45 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -8
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +70 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +17 -15
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +66 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +40 -38
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/table-runtime.vue2.js +17 -11
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +36 -35
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +83 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +64 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +41 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +75 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +64 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +128 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +128 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +78 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +30 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +37 -36
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +37 -48
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/select/select-runtime.vue2.js +54 -53
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +64 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +64 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +66 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/object-render.vue.js +35 -34
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +17 -16
- package/{lib/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.js +19 -17
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/super-page.vue.js +129 -112
- package/dist/es/components/runtime/views/super-page.vue2.js +4 -0
- package/dist/es/index.d.ts +8 -0
- package/dist/es/index.js +15 -0
- package/package.json +71 -71
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/lib/components/index.d.ts +0 -5
- package/lib/components/runtime/index.d.ts +0 -3
- package/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/lib/components/super-page-dialog/index.d.ts +0 -3
- package/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
- package/lib/components/wf-editor/index.d.ts +0 -3
- package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/lib/index.js +0 -8
- package/lib/runtime/index.js +0 -3
- package/lib/runtime/utils/assemblys-config.js +0 -258
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
- package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/lib/runtime/views/super-page.vue2.js +0 -3
- package/lib/src/utils/api/api-util.d.ts +0 -11
- package/lib/src/utils/charts/chart-util.js +0 -15
- package/lib/src/utils/common-util.d.ts +0 -11
- package/lib/src/utils/events/event-util.d.ts +0 -48
- package/lib/src/utils/events/standard-event.d.ts +0 -61
- package/lib/src/utils/events/validator-util.d.ts +0 -4
- package/lib/src/utils/global-refs.d.ts +0 -59
- package/lib/src/utils/interfaces/page-design-types.d.ts +0 -221
- package/lib/src/utils/page-helper-util.d.ts +0 -87
- package/lib/src/utils/page-init-util.d.ts +0 -38
- package/lib/src/utils/store-util.d.ts +0 -15
- package/lib/src/utils/store.d.ts +0 -2
- package/lib/super-page-dialog/index.js +0 -3
- package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
- package/lib/wf-editor/index.js +0 -3
- package/lib/wf-editor/wf-editor.css +0 -4
- package/lib/wf-editor/wf-editor.vue.js +0 -15
- package/src/assets/base.css +0 -86
- package/src/assets/chart-themes/theme1.ts +0 -6
- package/src/assets/chart-themes/theme2.ts +0 -6
- package/src/assets/chart-themes/theme3.ts +0 -6
- 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 +0 -1
- package/src/assets/main.css +0 -1
- package/src/i18n/langs/cn.js +0 -52
- package/src/i18n/langs/en.js +0 -52
- package/src/stores/counter.ts +0 -12
- package/src/utils/api/api-util.ts +0 -176
- package/src/utils/charts/chart-util.ts +0 -41
- package/src/utils/common-util.ts +0 -96
- package/src/utils/container-style-util.ts +0 -237
- package/src/utils/eventBus.ts +0 -14
- package/src/utils/events/event-util.ts +0 -790
- package/src/utils/events/jump-page-util.ts +0 -0
- package/src/utils/events/standard-event.ts +0 -2075
- package/src/utils/events/validator-util.ts +0 -474
- package/src/utils/global-refs.ts +0 -160
- package/src/utils/interfaces/page-design-types.ts +0 -259
- package/src/utils/page-helper-util.ts +0 -850
- package/src/utils/page-init-util.ts +0 -291
- package/src/utils/page-permission-util.ts +0 -521
- package/src/utils/store-util.ts +0 -41
- package/src/utils/store.ts +0 -3
- package/src/utils/table-utils.ts +0 -31
- /package/{lib → dist/es}/favicon.ico +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const elementPlus = require("element-plus");
|
|
4
|
-
const objectRender_vue_vue_type_script_setup_true_lang = require("../../object-render.vue.js");
|
|
5
|
-
const agilebuilderUi = require("agilebuilder-ui");
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
|
-
__name: "tabs-runtime",
|
|
8
|
-
props: {
|
|
9
|
-
pageContext: {},
|
|
10
|
-
configure: {}
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const props = __props;
|
|
14
|
-
const activeName = props.configure.props.defaultOpen ? props.configure.props.defaultOpen : 1;
|
|
15
|
-
const thisRef = vue.ref(null);
|
|
16
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
17
|
-
const runtimeStyle = runtimeInfo.style;
|
|
18
|
-
const runtimeClass = runtimeInfo.class;
|
|
19
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
20
|
-
return (_ctx, _cache) => {
|
|
21
|
-
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTabs), {
|
|
22
|
-
ref_key: "thisRef",
|
|
23
|
-
ref: thisRef,
|
|
24
|
-
modelValue: vue.unref(activeName),
|
|
25
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(activeName) ? activeName.value = $event : null),
|
|
26
|
-
type: _ctx.configure.props.cardType,
|
|
27
|
-
"tab-position": _ctx.configure.props.tabPosition,
|
|
28
|
-
style: vue.normalizeStyle(vue.unref(runtimeStyle)),
|
|
29
|
-
class: vue.normalizeClass(vue.unref(runtimeClass))
|
|
30
|
-
}, {
|
|
31
|
-
default: vue.withCtx(() => [
|
|
32
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.configure.items, (item, index) => {
|
|
33
|
-
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTabPane), {
|
|
34
|
-
label: item.label,
|
|
35
|
-
name: item.index
|
|
36
|
-
}, {
|
|
37
|
-
label: vue.withCtx(() => [
|
|
38
|
-
item.iconType && item.iconValue ? (vue.openBlock(), vue.createBlock(vue.unref(agilebuilderUi.SuperIcon), {
|
|
39
|
-
key: 0,
|
|
40
|
-
iconType: item.iconType,
|
|
41
|
-
iconValue: item.iconValue,
|
|
42
|
-
style: { "margin-right": "2px" }
|
|
43
|
-
}, null, 8, ["iconType", "iconValue"])) : vue.createCommentVNode("", true),
|
|
44
|
-
vue.createElementVNode("span", {
|
|
45
|
-
style: vue.normalizeStyle(vue.unref(headerStyle))
|
|
46
|
-
}, vue.toDisplayString(item.label), 5)
|
|
47
|
-
]),
|
|
48
|
-
default: vue.withCtx(() => [
|
|
49
|
-
vue.createElementVNode("div", null, [
|
|
50
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.items, (element, itemIndex) => {
|
|
51
|
-
return vue.openBlock(), vue.createBlock(objectRender_vue_vue_type_script_setup_true_lang, {
|
|
52
|
-
key: element.uuid,
|
|
53
|
-
pageContext: _ctx.pageContext,
|
|
54
|
-
configure: element
|
|
55
|
-
}, null, 8, ["pageContext", "configure"]);
|
|
56
|
-
}), 128))
|
|
57
|
-
])
|
|
58
|
-
]),
|
|
59
|
-
_: 2
|
|
60
|
-
}, 1032, ["label", "name"]);
|
|
61
|
-
}), 256))
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}, 8, ["modelValue", "type", "tab-position", "style", "class"]);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
module.exports = _sfc_main;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const _hoisted_1 = { style: { "text-align": "center", "color": "red" } };
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
-
__name: "error-render",
|
|
6
|
-
props: {
|
|
7
|
-
configure: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default: {
|
|
10
|
-
name: "未知"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
selectWidget: Object,
|
|
14
|
-
indexObj: Object
|
|
15
|
-
},
|
|
16
|
-
setup(__props) {
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, " 不能识别的组件类型【" + vue.toDisplayString(__props.configure.name) + "】 ", 1);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
module.exports = _sfc_main;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const pageInitUtil = require("../../../../../src/utils/page-init-util.js");
|
|
4
|
-
const pageHelperUtil = require("../../../../../src/utils/page-helper-util.js");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
-
__name: "datepicker-runtime",
|
|
7
|
-
props: {
|
|
8
|
-
pageContext: {},
|
|
9
|
-
configure: {}
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const props = __props;
|
|
13
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
14
|
-
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
-
const dynamicModelMethod = vue.computed({
|
|
16
|
-
get() {
|
|
17
|
-
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
18
|
-
},
|
|
19
|
-
set(value) {
|
|
20
|
-
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
24
|
-
const runtimeStyle = runtimeInfo.style;
|
|
25
|
-
const runtimeClass = runtimeInfo.class;
|
|
26
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
return (_ctx, _cache) => {
|
|
29
|
-
const _component_el_time_picker = vue.resolveComponent("el-time-picker");
|
|
30
|
-
const _component_el_date_picker = vue.resolveComponent("el-date-picker");
|
|
31
|
-
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
32
|
-
return vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
33
|
-
required: vue.unref(designProperty).required,
|
|
34
|
-
class: vue.normalizeClass(vue.unref(runtimeClass)),
|
|
35
|
-
"label-width": vue.unref(designProperty).labelWidth,
|
|
36
|
-
style: vue.normalizeStyle(vue.unref(runtimeStyle))
|
|
37
|
-
}, {
|
|
38
|
-
label: vue.withCtx(() => [
|
|
39
|
-
vue.unref(designProperty).tittleShow ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
40
|
-
key: 0,
|
|
41
|
-
style: vue.normalizeStyle({ ...vue.unref(headerStyle) })
|
|
42
|
-
}, vue.toDisplayString(vue.unref(designProperty).title), 5)) : vue.createCommentVNode("", true)
|
|
43
|
-
]),
|
|
44
|
-
default: vue.withCtx(() => [
|
|
45
|
-
vue.unref(designProperty).dateType == "time" || vue.unref(designProperty).dateType == "timerange" ? (vue.openBlock(), vue.createBlock(_component_el_time_picker, {
|
|
46
|
-
key: 0,
|
|
47
|
-
"is-range": vue.unref(designProperty).dateType == "timerange",
|
|
48
|
-
"range-separator": "-",
|
|
49
|
-
clearable: vue.unref(designProperty).clearable,
|
|
50
|
-
disabled: vue.unref(designProperty).state === "disabled",
|
|
51
|
-
readonly: vue.unref(designProperty).state === "readonly",
|
|
52
|
-
size: vue.unref(designProperty).size,
|
|
53
|
-
placeholder: vue.unref(designProperty).placeholder,
|
|
54
|
-
"start-placeholder": vue.unref(designProperty).placeholder,
|
|
55
|
-
"end-placeholder": vue.unref(designProperty).endPlaceholder,
|
|
56
|
-
format: vue.unref(designProperty).format,
|
|
57
|
-
modelValue: dynamicModelMethod.value,
|
|
58
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
59
|
-
shortcuts: vue.unref(designProperty).shortcuts,
|
|
60
|
-
type: vue.unref(designProperty).dateType
|
|
61
|
-
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"])) : (vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
62
|
-
key: 1,
|
|
63
|
-
clearable: vue.unref(designProperty).clearable,
|
|
64
|
-
disabled: vue.unref(designProperty).state === "disabled",
|
|
65
|
-
readonly: vue.unref(designProperty).state === "readonly",
|
|
66
|
-
size: vue.unref(designProperty).size,
|
|
67
|
-
placeholder: vue.unref(designProperty).placeholder,
|
|
68
|
-
"start-placeholder": vue.unref(designProperty).placeholder,
|
|
69
|
-
"end-placeholder": vue.unref(designProperty).endPlaceholder,
|
|
70
|
-
format: vue.unref(designProperty).format,
|
|
71
|
-
modelValue: dynamicModelMethod.value,
|
|
72
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dynamicModelMethod.value = $event),
|
|
73
|
-
shortcuts: vue.unref(designProperty).shortcuts,
|
|
74
|
-
type: vue.unref(designProperty).dateType
|
|
75
|
-
}, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"]))
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
module.exports = _sfc_main;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const pageInitUtil = require("../../../../../src/utils/page-init-util.js");
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
-
__name: "depttree-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
|
-
if (!entity.data) {
|
|
14
|
-
entity.data = {};
|
|
15
|
-
}
|
|
16
|
-
const dataModel = entity.data;
|
|
17
|
-
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
18
|
-
const fieldName = dynamicFields.length > 0 ? dynamicFields[dynamicFields.length - 1] : props.configure.uuid;
|
|
19
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
20
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
21
|
-
const runtimeStyle = runtimeInfo.style;
|
|
22
|
-
const runtimeClass = runtimeInfo.class;
|
|
23
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
24
|
-
const autoSetFields = designProperty.autoSetFields ? designProperty.autoSetFields : [];
|
|
25
|
-
return (_ctx, _cache) => {
|
|
26
|
-
const _component_OrganizationInput = vue.resolveComponent("OrganizationInput");
|
|
27
|
-
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
28
|
-
return vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
29
|
-
required: vue.unref(designProperty).required,
|
|
30
|
-
class: vue.normalizeClass(vue.unref(runtimeClass)),
|
|
31
|
-
"label-width": vue.unref(designProperty).labelWidth,
|
|
32
|
-
style: vue.normalizeStyle(vue.unref(runtimeStyle))
|
|
33
|
-
}, {
|
|
34
|
-
label: vue.withCtx(() => [
|
|
35
|
-
vue.unref(designProperty).tittleShow ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
36
|
-
key: 0,
|
|
37
|
-
style: vue.normalizeStyle({ ...vue.unref(headerStyle) })
|
|
38
|
-
}, vue.toDisplayString(vue.unref(designProperty).title), 5)) : vue.createCommentVNode("", true)
|
|
39
|
-
]),
|
|
40
|
-
default: vue.withCtx(() => [
|
|
41
|
-
vue.createVNode(_component_OrganizationInput, {
|
|
42
|
-
disabled: vue.unref(designProperty).state == "disabled",
|
|
43
|
-
multiple: vue.unref(designProperty).multiple,
|
|
44
|
-
treeType: vue.unref(designProperty).treeType,
|
|
45
|
-
modelValue: vue.unref(dataModel)[vue.unref(fieldName)],
|
|
46
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(dataModel)[vue.unref(fieldName)] = $event),
|
|
47
|
-
models: vue.unref(dataModel),
|
|
48
|
-
fields: vue.unref(autoSetFields),
|
|
49
|
-
size: vue.unref(designProperty).size,
|
|
50
|
-
placeholder: "请选择",
|
|
51
|
-
separator: vue.unref(designProperty).separator
|
|
52
|
-
}, null, 8, ["disabled", "multiple", "treeType", "modelValue", "models", "fields", "size", "separator"])
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
module.exports = _sfc_main;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const pageHelperUtil = require("../../../../../src/utils/page-helper-util.js");
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
-
__name: "divider-runtime",
|
|
6
|
-
props: {
|
|
7
|
-
pageContext: {},
|
|
8
|
-
configure: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
14
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
15
|
-
let contentVariable = designProperty.value;
|
|
16
|
-
const dynamicValue = vue.computed(() => {
|
|
17
|
-
if (!contentVariable) {
|
|
18
|
-
return "";
|
|
19
|
-
}
|
|
20
|
-
const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
21
|
-
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
22
|
-
});
|
|
23
|
-
return (_ctx, _cache) => {
|
|
24
|
-
const _component_el_divider = vue.resolveComponent("el-divider");
|
|
25
|
-
return vue.openBlock(), vue.createBlock(_component_el_divider, {
|
|
26
|
-
direction: vue.unref(designProperty).direction,
|
|
27
|
-
"border-style": vue.unref(designProperty).borderType,
|
|
28
|
-
"content-position": vue.unref(designProperty).titlePosition
|
|
29
|
-
}, {
|
|
30
|
-
default: vue.withCtx(() => [
|
|
31
|
-
vue.createElementVNode("div", {
|
|
32
|
-
style: vue.normalizeStyle(vue.unref(headerStyle))
|
|
33
|
-
}, vue.toDisplayString(dynamicValue.value), 5)
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
}, 8, ["direction", "border-style", "content-position"]);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
module.exports = _sfc_main;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const pageHelperUtil = require("../../../../../src/utils/page-helper-util.js");
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
-
__name: "fileupload-runtime",
|
|
6
|
-
props: {
|
|
7
|
-
pageContext: {},
|
|
8
|
-
configure: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
14
|
-
const runtimeStyle = runtimeInfo.style;
|
|
15
|
-
const runtimeClass = runtimeInfo.class;
|
|
16
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
17
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
18
|
-
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
19
|
-
propsBase.prop;
|
|
20
|
-
const pathFields = getFieldsByVariable(propsBase.prop);
|
|
21
|
-
const nameFields = getFieldsByVariable(propsBase.propName);
|
|
22
|
-
const initNames = pageHelperUtil.getVariableValue(entity, nameFields);
|
|
23
|
-
const initPaths = pageHelperUtil.getVariableValue(entity, pathFields);
|
|
24
|
-
const fileInfo = ref({
|
|
25
|
-
name: initNames ? initNames : "",
|
|
26
|
-
serverPath: initPaths ? initPaths : ""
|
|
27
|
-
});
|
|
28
|
-
vue.watch(fileInfo, () => {
|
|
29
|
-
pageHelperUtil.setVariableValue(entity, nameFields, fileInfo.name);
|
|
30
|
-
pageHelperUtil.setVariableValue(entity, pathFields, fileInfo.serverPath);
|
|
31
|
-
});
|
|
32
|
-
function getFieldsByVariable(variableName) {
|
|
33
|
-
if (!variableName) {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
if (variableName.startsWith("${")) {
|
|
37
|
-
variableName = variableName.substring(2, variableName.length - 1);
|
|
38
|
-
}
|
|
39
|
-
return variableName.split(".");
|
|
40
|
-
}
|
|
41
|
-
return (_ctx, _cache) => {
|
|
42
|
-
const _component_FsUploadList = vue.resolveComponent("FsUploadList");
|
|
43
|
-
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
44
|
-
return vue.unref(designProperty).tittleShow ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
45
|
-
key: 0,
|
|
46
|
-
required: vue.unref(designProperty).required,
|
|
47
|
-
class: vue.normalizeClass(vue.unref(runtimeClass)),
|
|
48
|
-
"label-width": vue.unref(designProperty).labelWidth,
|
|
49
|
-
style: vue.normalizeStyle(vue.unref(runtimeStyle))
|
|
50
|
-
}, {
|
|
51
|
-
label: vue.withCtx(() => [
|
|
52
|
-
vue.unref(designProperty).tittleShow ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
53
|
-
key: 0,
|
|
54
|
-
style: vue.normalizeStyle({ ...vue.unref(headerStyle) })
|
|
55
|
-
}, vue.toDisplayString(vue.unref(designProperty).title), 5)) : vue.createCommentVNode("", true)
|
|
56
|
-
]),
|
|
57
|
-
default: vue.withCtx(() => [
|
|
58
|
-
vue.createVNode(_component_FsUploadList, {
|
|
59
|
-
disabled: vue.unref(designProperty).state == "disabled",
|
|
60
|
-
fileSetObj: vue.unref(designProperty).fileSetObj,
|
|
61
|
-
fileInfo: vue.unref(fileInfo)
|
|
62
|
-
}, null, 8, ["disabled", "fileSetObj", "fileInfo"])
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
}, 8, ["required", "class", "label-width", "style"])) : (vue.openBlock(), vue.createBlock(_component_FsUploadList, {
|
|
66
|
-
key: 1,
|
|
67
|
-
disabled: vue.unref(designProperty).state == "disabled",
|
|
68
|
-
fileSetObj: vue.unref(designProperty).fileSetObj,
|
|
69
|
-
fileInfo: vue.unref(fileInfo)
|
|
70
|
-
}, null, 8, ["disabled", "fileSetObj", "fileInfo"]));
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
module.exports = _sfc_main;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const pageInitUtil = require("../../../../../src/utils/page-init-util.js");
|
|
4
|
-
const pageHelperUtil = require("../../../../../src/utils/page-helper-util.js");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
-
__name: "input-number-runtime",
|
|
7
|
-
props: {
|
|
8
|
-
pageContext: {},
|
|
9
|
-
configure: {}
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const props = __props;
|
|
13
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
14
|
-
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
-
const dynamicModelMethod = vue.computed({
|
|
16
|
-
get() {
|
|
17
|
-
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
18
|
-
},
|
|
19
|
-
set(value) {
|
|
20
|
-
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
24
|
-
const runtimeStyle = runtimeInfo.style;
|
|
25
|
-
const runtimeClass = runtimeInfo.class;
|
|
26
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
return (_ctx, _cache) => {
|
|
29
|
-
const _component_el_input_number = vue.resolveComponent("el-input-number");
|
|
30
|
-
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
31
|
-
return vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
32
|
-
required: vue.unref(designProperty).required,
|
|
33
|
-
class: vue.normalizeClass(vue.unref(runtimeClass)),
|
|
34
|
-
"label-width": vue.unref(designProperty).labelWidth,
|
|
35
|
-
style: vue.normalizeStyle(vue.unref(runtimeStyle))
|
|
36
|
-
}, {
|
|
37
|
-
label: vue.withCtx(() => [
|
|
38
|
-
vue.unref(designProperty).tittleShow ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
39
|
-
key: 0,
|
|
40
|
-
style: vue.normalizeStyle({ ...vue.unref(headerStyle) })
|
|
41
|
-
}, vue.toDisplayString(vue.unref(designProperty).title), 5)) : vue.createCommentVNode("", true)
|
|
42
|
-
]),
|
|
43
|
-
default: vue.withCtx(() => [
|
|
44
|
-
vue.createVNode(_component_el_input_number, {
|
|
45
|
-
disabled: vue.unref(designProperty).state === "disabled",
|
|
46
|
-
readonly: vue.unref(designProperty).state === "readonly",
|
|
47
|
-
controls: vue.unref(designProperty).showButton,
|
|
48
|
-
size: vue.unref(designProperty).size,
|
|
49
|
-
placeholder: vue.unref(designProperty).placeholder,
|
|
50
|
-
modelValue: dynamicModelMethod.value,
|
|
51
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
52
|
-
precision: vue.unref(designProperty).precision,
|
|
53
|
-
step: vue.unref(designProperty).step,
|
|
54
|
-
min: vue.unref(designProperty).min,
|
|
55
|
-
max: vue.unref(designProperty).max
|
|
56
|
-
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
57
|
-
]),
|
|
58
|
-
_: 1
|
|
59
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
module.exports = _sfc_main;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const agilebuilderUi = require("agilebuilder-ui");
|
|
4
|
-
const pageInitUtil = require("../../../../../src/utils/page-init-util.js");
|
|
5
|
-
const pageHelperUtil = require("../../../../../src/utils/page-helper-util.js");
|
|
6
|
-
const eventUtil = require("../../../../../src/utils/events/event-util.js");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
|
-
__name: "inputtext-runtime",
|
|
9
|
-
props: {
|
|
10
|
-
pageContext: {},
|
|
11
|
-
configure: {}
|
|
12
|
-
},
|
|
13
|
-
setup(__props, { expose: __expose }) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
16
|
-
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
17
|
-
const dynamicModelMethod = vue.computed({
|
|
18
|
-
get() {
|
|
19
|
-
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
20
|
-
},
|
|
21
|
-
set(value) {
|
|
22
|
-
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
26
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
-
const runtimeStyle = runtimeInfo.style;
|
|
28
|
-
const runtimeClass = runtimeInfo.class;
|
|
29
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
30
|
-
function getValue() {
|
|
31
|
-
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
32
|
-
}
|
|
33
|
-
function setValue(value) {
|
|
34
|
-
return pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
35
|
-
}
|
|
36
|
-
__expose({
|
|
37
|
-
getValue,
|
|
38
|
-
setValue
|
|
39
|
-
});
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
const _component_el_input = vue.resolveComponent("el-input");
|
|
42
|
-
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
43
|
-
return vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
44
|
-
required: vue.unref(designProperty).required ? true : false,
|
|
45
|
-
class: vue.normalizeClass(vue.unref(runtimeClass)),
|
|
46
|
-
"label-width": vue.unref(designProperty).labelWidth,
|
|
47
|
-
style: vue.normalizeStyle(vue.unref(runtimeStyle))
|
|
48
|
-
}, {
|
|
49
|
-
label: vue.withCtx(() => [
|
|
50
|
-
vue.unref(designProperty).tittleShow ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
51
|
-
key: 0,
|
|
52
|
-
style: vue.normalizeStyle({ ...vue.unref(headerStyle) })
|
|
53
|
-
}, vue.toDisplayString(vue.unref(designProperty).title), 5)) : vue.createCommentVNode("", true)
|
|
54
|
-
]),
|
|
55
|
-
default: vue.withCtx(() => [
|
|
56
|
-
vue.createVNode(_component_el_input, {
|
|
57
|
-
disabled: vue.unref(designProperty).state === "disabled",
|
|
58
|
-
readonly: vue.unref(designProperty).state === "readonly",
|
|
59
|
-
size: vue.unref(designProperty).size,
|
|
60
|
-
clearable: vue.unref(designProperty).clearable,
|
|
61
|
-
placeholder: vue.unref(designProperty).placeholder,
|
|
62
|
-
maxlength: vue.unref(designProperty).maxLength,
|
|
63
|
-
"show-word-limit": vue.unref(designProperty).showInputNum,
|
|
64
|
-
modelValue: dynamicModelMethod.value,
|
|
65
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
66
|
-
onInput: _cache[1] || (_cache[1] = ($event) => vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
67
|
-
onChange: _cache[2] || (_cache[2] = ($event) => vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
68
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
69
|
-
onFocus: _cache[4] || (_cache[4] = ($event) => vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
70
|
-
onClick: _cache[5] || (_cache[5] = ($event) => vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
71
|
-
}, vue.createSlots({ _: 2 }, [
|
|
72
|
-
vue.unref(designProperty).iconPosition != "outer" && (vue.unref(designProperty).preIconType && vue.unref(designProperty).preIconValue || vue.unref(designProperty).preText) ? {
|
|
73
|
-
name: "prefix",
|
|
74
|
-
fn: vue.withCtx(() => [
|
|
75
|
-
vue.unref(designProperty).preIconType && vue.unref(designProperty).preIconValue ? (vue.openBlock(), vue.createBlock(vue.unref(agilebuilderUi.SuperIcon), {
|
|
76
|
-
key: 0,
|
|
77
|
-
iconType: vue.unref(designProperty).preIconType,
|
|
78
|
-
iconValue: vue.unref(designProperty).preIconValue
|
|
79
|
-
}, null, 8, ["iconType", "iconValue"])) : vue.createCommentVNode("", true),
|
|
80
|
-
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(designProperty).preText), 1)
|
|
81
|
-
]),
|
|
82
|
-
key: "0"
|
|
83
|
-
} : void 0,
|
|
84
|
-
vue.unref(designProperty).iconPosition == "outer" && (vue.unref(designProperty).preIconType && vue.unref(designProperty).preIconValue || vue.unref(designProperty).preText) ? {
|
|
85
|
-
name: "prepend",
|
|
86
|
-
fn: vue.withCtx(() => [
|
|
87
|
-
vue.unref(designProperty).preIconType && vue.unref(designProperty).preIconValue ? (vue.openBlock(), vue.createBlock(vue.unref(agilebuilderUi.SuperIcon), {
|
|
88
|
-
key: 0,
|
|
89
|
-
iconType: vue.unref(designProperty).preIconType,
|
|
90
|
-
iconValue: vue.unref(designProperty).preIconValue
|
|
91
|
-
}, null, 8, ["iconType", "iconValue"])) : vue.createCommentVNode("", true),
|
|
92
|
-
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(designProperty).preText), 1)
|
|
93
|
-
]),
|
|
94
|
-
key: "1"
|
|
95
|
-
} : void 0,
|
|
96
|
-
vue.unref(designProperty).iconPosition != "outer" && (vue.unref(designProperty).sufIconType && vue.unref(designProperty).sufIconValue || vue.unref(designProperty).sufText) ? {
|
|
97
|
-
name: "suffix",
|
|
98
|
-
fn: vue.withCtx(() => [
|
|
99
|
-
vue.unref(designProperty).sufIconType && vue.unref(designProperty).sufIconValue ? (vue.openBlock(), vue.createBlock(vue.unref(agilebuilderUi.SuperIcon), {
|
|
100
|
-
key: 0,
|
|
101
|
-
iconType: vue.unref(designProperty).sufIconType,
|
|
102
|
-
iconValue: vue.unref(designProperty).sufIconValue
|
|
103
|
-
}, null, 8, ["iconType", "iconValue"])) : vue.createCommentVNode("", true),
|
|
104
|
-
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(designProperty).sufText), 1)
|
|
105
|
-
]),
|
|
106
|
-
key: "2"
|
|
107
|
-
} : void 0,
|
|
108
|
-
vue.unref(designProperty).iconPosition == "outer" && (vue.unref(designProperty).sufIconType && vue.unref(designProperty).sufIconValue || vue.unref(designProperty).sufText) ? {
|
|
109
|
-
name: "append",
|
|
110
|
-
fn: vue.withCtx(() => [
|
|
111
|
-
vue.unref(designProperty).sufIconType && vue.unref(designProperty).sufIconValue ? (vue.openBlock(), vue.createBlock(vue.unref(agilebuilderUi.SuperIcon), {
|
|
112
|
-
key: 0,
|
|
113
|
-
iconType: vue.unref(designProperty).sufIconType,
|
|
114
|
-
iconValue: vue.unref(designProperty).sufIconValue
|
|
115
|
-
}, null, 8, ["iconType", "iconValue"])) : vue.createCommentVNode("", true),
|
|
116
|
-
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(designProperty).sufText), 1)
|
|
117
|
-
]),
|
|
118
|
-
key: "3"
|
|
119
|
-
} : void 0
|
|
120
|
-
]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"])
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
module.exports = _sfc_main;
|