super-page-runtime 1.0.16 → 2.0.1
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/assets/chart-themes/theme1.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme1.js +3 -2
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme2.js +3 -2
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme3.js +3 -2
- package/dist/es/components/runtime/index.d.ts +4 -0
- 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.d.ts +11 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +28 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.d.ts +5 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.js +25 -12
- package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/es/components/runtime/utils/eventBus.js +11 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +1 -1
- 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.d.ts +2 -0
- 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.d.ts +19 -0
- 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.d.ts +26 -0
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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 +70 -67
- package/src/index.ts +15 -0
- package/.eslintrc.cjs +0 -26
- package/.prettierrc.json +0 -8
- package/App.vue +0 -9
- package/components/index.ts +0 -17
- package/components/runtime/index.ts +0 -2
- package/components/runtime/utils/assemblys-config.js +0 -294
- package/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -49
- package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -26
- package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -93
- package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -59
- package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
- package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
- package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
- package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
- package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
- package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
- package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
- package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
- package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
- package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
- package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
- package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
- package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
- package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
- package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -46
- package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -56
- package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -55
- package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -57
- package/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
- package/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
- package/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
- package/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
- package/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
- package/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
- package/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
- package/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
- package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -108
- package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
- package/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
- package/components/runtime/views/assemblys/common-attr-events.vue +0 -46
- package/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -41
- package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -35
- package/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -37
- package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -32
- package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -54
- package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -99
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -117
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -103
- package/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
- package/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
- package/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
- package/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
- package/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
- package/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
- package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
- package/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
- package/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
- package/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
- package/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
- package/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
- package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
- package/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
- package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -858
- package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -625
- package/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
- package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
- package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
- package/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -125
- package/components/runtime/views/assemblys/error-attr.vue +0 -15
- package/components/runtime/views/assemblys/error-render.vue +0 -17
- package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
- package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -198
- package/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
- package/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
- package/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
- package/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
- package/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
- package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
- package/components/runtime/views/assemblys/form/common/condition.vue +0 -147
- package/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
- package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
- package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
- package/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
- package/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
- package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
- package/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
- package/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
- package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
- package/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
- package/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
- package/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
- package/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
- package/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
- package/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
- package/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
- package/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
- package/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
- package/components/runtime/views/assemblys/form/common/title.vue +0 -20
- package/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
- package/components/runtime/views/assemblys/form/common/verification.vue +0 -79
- package/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
- package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
- package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -57
- package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -80
- package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
- package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -60
- package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -44
- package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
- package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -79
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -104
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -76
- package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -62
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -70
- package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -155
- package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -142
- package/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -143
- package/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -70
- package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -24
- package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -203
- package/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
- package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -169
- package/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -247
- package/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
- package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -65
- package/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
- package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
- package/components/runtime/views/assemblys/object-render.vue +0 -176
- package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
- package/components/runtime/views/assemblys/page/page-attr-base.vue +0 -259
- package/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
- package/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/page/page-attr.vue +0 -84
- package/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
- package/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
- package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
- package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
- package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
- package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
- package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
- package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
- package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -64
- package/components/runtime/views/render/page-view.vue +0 -80
- package/components/runtime/views/super-page copy.vue +0 -61
- package/components/runtime/views/super-page.vue +0 -667
- package/components/super-page-dialog/index.ts +0 -2
- package/components/super-page-dialog/super-page-dialog.vue +0 -267
- package/components/wf-editor/index.ts +0 -2
- package/components/wf-editor/wf-editor.vue +0 -15
- package/cypress/e2e/example.cy.ts +0 -8
- package/cypress/e2e/tsconfig.json +0 -10
- package/cypress/fixtures/example.json +0 -5
- package/cypress/support/commands.ts +0 -39
- package/cypress/support/e2e.ts +0 -20
- package/cypress.config.ts +0 -8
- package/env.d.ts +0 -1
- package/index.html +0 -13
- 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/super-page-dialog/index.d.ts +0 -3
- 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/charts/chart-util.js +0 -15
- 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/main.ts +0 -11
- package/package-ws.json +0 -70
- package/public/favicon.ico +0 -0
- 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/tsconfig copy.json +0 -17
- package/tsconfig.app copy.json +0 -14
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -17
- package/tsconfig.node copy.json +0 -19
- package/tsconfig.node.json +0 -19
- package/tsconfig.vitest copy.json +0 -11
- package/tsconfig.vitest.json +0 -11
- package/vite.config copy.ts +0 -109
- package/vite.config.ts +0 -86
- package/vitest.config.ts +0 -14
- /package/{lib/src → dist/es/components/runtime}/utils/api/api-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
- /package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/favicon.ico +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { ArrowDown } from "@element-plus/icons-vue";
|
|
3
|
+
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
const _hoisted_1 = { key: 1 };
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "dropdown-runtime",
|
|
7
|
+
props: {
|
|
8
|
+
pageContext: {},
|
|
9
|
+
configure: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
14
|
+
const runtimeStyle = runtimeInfo.style;
|
|
15
|
+
const runtimeClass = runtimeInfo.class;
|
|
16
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
17
|
+
let listOptions = null;
|
|
18
|
+
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
19
|
+
const valueType = dataOrigin.optionValueSetType;
|
|
20
|
+
if (valueType == "variable") {
|
|
21
|
+
listOptions = computed(() => {
|
|
22
|
+
let options;
|
|
23
|
+
const menuValues = formatVariableValue(props.pageContext, designProperty.menuField);
|
|
24
|
+
if (menuValues && Array.isArray(menuValues)) {
|
|
25
|
+
options = menuValues;
|
|
26
|
+
for (let i = 0; i < options.length; i++) {
|
|
27
|
+
const option = options[i];
|
|
28
|
+
if (!option.label) {
|
|
29
|
+
option.label = i + 1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
} else {
|
|
33
|
+
const strs = (menuValues ? menuValues + "" : "").trim().split(",");
|
|
34
|
+
options = [];
|
|
35
|
+
for (let str of strs) {
|
|
36
|
+
options.push({
|
|
37
|
+
value: str,
|
|
38
|
+
label: str
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return options;
|
|
43
|
+
});
|
|
44
|
+
} else {
|
|
45
|
+
listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
46
|
+
}
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
const _component_el_button = resolveComponent("el-button");
|
|
49
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
50
|
+
const _component_el_text = resolveComponent("el-text");
|
|
51
|
+
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
52
|
+
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
53
|
+
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
54
|
+
return openBlock(), createBlock(_component_el_dropdown, {
|
|
55
|
+
class: normalizeClass(unref(runtimeClass)),
|
|
56
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
57
|
+
placement: unref(designProperty).placement,
|
|
58
|
+
"split-button": unref(designProperty).splitButton,
|
|
59
|
+
disabled: unref(designProperty).state === "disabled",
|
|
60
|
+
type: unref(designProperty).buttonType,
|
|
61
|
+
size: unref(designProperty).size,
|
|
62
|
+
trigger: unref(designProperty).trigger
|
|
63
|
+
}, {
|
|
64
|
+
dropdown: withCtx(() => [
|
|
65
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(listOptions), (item, index) => {
|
|
68
|
+
return openBlock(), createBlock(_component_el_dropdown_item, { key: item }, {
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
71
|
+
]),
|
|
72
|
+
_: 2
|
|
73
|
+
}, 1024);
|
|
74
|
+
}), 128))
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
})
|
|
78
|
+
]),
|
|
79
|
+
default: withCtx(() => [
|
|
80
|
+
unref(designProperty).triggerElement === "button" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
81
|
+
!unref(designProperty).splitButton ? (openBlock(), createBlock(_component_el_button, {
|
|
82
|
+
key: 0,
|
|
83
|
+
size: unref(designProperty).size,
|
|
84
|
+
type: unref(designProperty).buttonType
|
|
85
|
+
}, {
|
|
86
|
+
default: withCtx(() => [
|
|
87
|
+
createTextVNode(toDisplayString(unref(designProperty).title), 1)
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(unref(designProperty).title), 1))
|
|
91
|
+
], 64)) : (openBlock(), createBlock(_component_el_text, { key: 1 }, {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
createTextVNode(toDisplayString(unref(designProperty).title) + " ", 1),
|
|
94
|
+
createVNode(_component_el_icon, null, {
|
|
95
|
+
default: withCtx(() => [
|
|
96
|
+
createVNode(unref(ArrowDown))
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
})
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}))
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
export {
|
|
110
|
+
_sfc_main as default
|
|
111
|
+
};
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, withDirectives, createVNode, vShow } from "vue";
|
|
2
|
+
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { deepCopy } from "../../../../utils/common-util.js";
|
|
4
|
+
import { getChartDatasFromPage, getValueFromSource, formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import _sfc_main$1 from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer } from "echarts/renderers";
|
|
8
|
+
import { LineChart, BarChart } from "echarts/charts";
|
|
9
|
+
import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent, DataZoomComponent } from "echarts/components";
|
|
10
|
+
import VChart from "vue-echarts";
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "column-line-runtime",
|
|
13
|
+
props: {
|
|
14
|
+
pageContext: {},
|
|
15
|
+
configure: {}
|
|
16
|
+
},
|
|
17
|
+
setup(__props, { expose: __expose }) {
|
|
18
|
+
use([
|
|
19
|
+
CanvasRenderer,
|
|
20
|
+
LineChart,
|
|
21
|
+
GridComponent,
|
|
22
|
+
LegendComponent,
|
|
23
|
+
TitleComponent,
|
|
24
|
+
TooltipComponent,
|
|
25
|
+
BarChart,
|
|
26
|
+
ToolboxComponent,
|
|
27
|
+
DataZoomComponent
|
|
28
|
+
]);
|
|
29
|
+
const props = __props;
|
|
30
|
+
const thisRef = ref(null);
|
|
31
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
32
|
+
const runtimeStyle = runtimeInfo.style;
|
|
33
|
+
const runtimeClass = runtimeInfo.class;
|
|
34
|
+
const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
|
|
35
|
+
const chartOption = runtimeInfo.chartOption;
|
|
36
|
+
const defaultSeries = chartOption.series;
|
|
37
|
+
if (defaultSeries && defaultSeries.length > 0) {
|
|
38
|
+
for (let s of defaultSeries) {
|
|
39
|
+
s.data = [];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const defaultXaxis = chartOption.xAxis;
|
|
43
|
+
if (defaultXaxis && defaultXaxis.length > 0) {
|
|
44
|
+
defaultXaxis[0].data = [];
|
|
45
|
+
}
|
|
46
|
+
const defaultYaxis = chartOption.yAxis;
|
|
47
|
+
const configureProps = props.configure.props ? props.configure.props : {};
|
|
48
|
+
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
49
|
+
function updateChartDatas(resultData) {
|
|
50
|
+
if (!resultData) {
|
|
51
|
+
resultData = [];
|
|
52
|
+
}
|
|
53
|
+
resultData = resultData.length > 0 ? resultData[0] : {};
|
|
54
|
+
if (!resultData) {
|
|
55
|
+
resultData = {};
|
|
56
|
+
}
|
|
57
|
+
if (resultData.hasRender) {
|
|
58
|
+
resultData.hasRender = true;
|
|
59
|
+
console.log("重复更新!", resultData);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
resultData.hasRender = true;
|
|
63
|
+
updateChartOption(resultData);
|
|
64
|
+
}
|
|
65
|
+
onMounted(() => {
|
|
66
|
+
const resultData = getChartDatasFromPage(props.pageContext, props.configure);
|
|
67
|
+
if (resultData) {
|
|
68
|
+
updateChartDatas(resultData);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
function updateChartOption(resultData) {
|
|
72
|
+
if (!resultData || !resultData.result) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const result = resultData && resultData.result ? resultData.result : {};
|
|
76
|
+
const groupValue = resultData && resultData.groupValue ? resultData.groupValue : [];
|
|
77
|
+
const dataSetField = props.configure.serviceDataField;
|
|
78
|
+
let datas = null;
|
|
79
|
+
if (dataSetField) {
|
|
80
|
+
datas = result[dataSetField];
|
|
81
|
+
} else {
|
|
82
|
+
if (result) {
|
|
83
|
+
if (Array.isArray(result)) {
|
|
84
|
+
datas = result;
|
|
85
|
+
} else {
|
|
86
|
+
datas = [result];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (!datas) {
|
|
91
|
+
datas = [];
|
|
92
|
+
}
|
|
93
|
+
let confGroups = props.configure.props ? props.configure.props.groups : null;
|
|
94
|
+
if (!confGroups) {
|
|
95
|
+
confGroups = [];
|
|
96
|
+
}
|
|
97
|
+
const groupMap = {};
|
|
98
|
+
for (let g of confGroups) {
|
|
99
|
+
groupMap[g.group] = g.target;
|
|
100
|
+
}
|
|
101
|
+
let mulGroupShow = props.configure.props ? props.configure.props.mulGroupShow : "";
|
|
102
|
+
mulGroupShow = mulGroupShow == "break" ? "<br/>" : " ";
|
|
103
|
+
const xFieldName = "__x";
|
|
104
|
+
for (let d of datas) {
|
|
105
|
+
const xValues2 = [];
|
|
106
|
+
for (let g of groupValue) {
|
|
107
|
+
const fieldName = groupMap[g];
|
|
108
|
+
const value = getValueFromSource(d, fieldName, void 0);
|
|
109
|
+
if (value) {
|
|
110
|
+
xValues2.push(value);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const xValue = xValues2.join(mulGroupShow);
|
|
114
|
+
d[xFieldName] = xValue;
|
|
115
|
+
}
|
|
116
|
+
sortDatas(datas);
|
|
117
|
+
const itemConfs = props.configure.items ? props.configure.items : [];
|
|
118
|
+
const serieValues = [];
|
|
119
|
+
const serieValueMap = {};
|
|
120
|
+
for (let item of itemConfs) {
|
|
121
|
+
const itemProps = item.props ? item.props : {};
|
|
122
|
+
const sourceType = itemProps.yaxisSource;
|
|
123
|
+
const yaxisField = itemProps.yaxisField;
|
|
124
|
+
let serieValue = null;
|
|
125
|
+
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
126
|
+
serieValue = {
|
|
127
|
+
uuid: item.uuid,
|
|
128
|
+
type: "variable",
|
|
129
|
+
field: yaxisField,
|
|
130
|
+
data: []
|
|
131
|
+
};
|
|
132
|
+
} else {
|
|
133
|
+
serieValue = {
|
|
134
|
+
uuid: item.uuid,
|
|
135
|
+
type: "fixed",
|
|
136
|
+
field: itemProps.yaxisFix,
|
|
137
|
+
data: []
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
if (serieValue != null) {
|
|
141
|
+
serieValues.push(serieValue);
|
|
142
|
+
serieValueMap[item.uuid] = serieValue;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const xValues = [];
|
|
146
|
+
for (let data of datas) {
|
|
147
|
+
xValues.push(data[xFieldName]);
|
|
148
|
+
for (let item of serieValues) {
|
|
149
|
+
const serieData = item.data;
|
|
150
|
+
if (item.type == "fixed") {
|
|
151
|
+
serieData.push(item.field);
|
|
152
|
+
} else if (item.type == "variable") {
|
|
153
|
+
const value = getValueFromSource(data, item.field, void 0);
|
|
154
|
+
serieData.push(value);
|
|
155
|
+
} else {
|
|
156
|
+
serieData.push(void 0);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
console.log("datas", datas, serieValues);
|
|
161
|
+
const newSeries = deepCopy(defaultSeries == null ? [] : defaultSeries);
|
|
162
|
+
for (let serie of newSeries) {
|
|
163
|
+
const serieValue = serieValueMap[serie.uuid];
|
|
164
|
+
serie.data = serieValue ? serieValue.data : [];
|
|
165
|
+
}
|
|
166
|
+
chartOption.series = newSeries;
|
|
167
|
+
console.log("newSeries", newSeries, xValues);
|
|
168
|
+
if (defaultXaxis && defaultXaxis.length > 0) {
|
|
169
|
+
defaultXaxis[0].data = xValues;
|
|
170
|
+
chartOption.xAxis = defaultXaxis;
|
|
171
|
+
}
|
|
172
|
+
chartOption.yAxis = defaultYaxis;
|
|
173
|
+
}
|
|
174
|
+
function sortDatas(datas) {
|
|
175
|
+
const itemConfs = props.configure.items ? props.configure.items : [];
|
|
176
|
+
let orderByTarget = props.configure.props ? props.configure.props.orderByTarget : "";
|
|
177
|
+
let orderField = null;
|
|
178
|
+
if (orderByTarget == "x" || orderByTarget == "X") {
|
|
179
|
+
orderField = "__x";
|
|
180
|
+
} else if (orderByTarget) {
|
|
181
|
+
for (let item of itemConfs) {
|
|
182
|
+
if (item.uuid == orderByTarget) {
|
|
183
|
+
const itemProps = item.props ? item.props : {};
|
|
184
|
+
const sourceType = itemProps.yaxisSource;
|
|
185
|
+
const yaxisField = itemProps.yaxisField;
|
|
186
|
+
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
187
|
+
orderField = yaxisField;
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (!orderField) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
let orderSource = props.configure.props ? props.configure.props.orderSource : "";
|
|
197
|
+
let orderValue = props.configure.props ? props.configure.props.orderFix : "";
|
|
198
|
+
if (orderSource == "variable") {
|
|
199
|
+
let orderVariable = props.configure.props ? props.configure.props.orderVariable : "";
|
|
200
|
+
orderValue = formatVariableValue(props.pageContext, orderVariable);
|
|
201
|
+
}
|
|
202
|
+
orderValue = orderValue == "desc" || orderValue == "DESC" ? "desc" : "asc";
|
|
203
|
+
let maxLen = datas.length;
|
|
204
|
+
for (let i = 0; i < maxLen - 1; i++) {
|
|
205
|
+
let vali = getValueFromSource(datas[i], orderField, void 0);
|
|
206
|
+
for (let j = i + 1; j < maxLen; j++) {
|
|
207
|
+
let valj = getValueFromSource(datas[j], orderField, void 0);
|
|
208
|
+
let isSwap = false;
|
|
209
|
+
if ("desc" == orderValue) {
|
|
210
|
+
if (vali < valj) {
|
|
211
|
+
isSwap = true;
|
|
212
|
+
}
|
|
213
|
+
} else {
|
|
214
|
+
if (vali > valj) {
|
|
215
|
+
isSwap = true;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
if (isSwap) {
|
|
219
|
+
[datas[i], datas[j]] = [datas[j], datas[i]];
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
__expose({
|
|
225
|
+
updateChartDatas
|
|
226
|
+
});
|
|
227
|
+
return (_ctx, _cache) => {
|
|
228
|
+
return openBlock(), createElementBlock("div", {
|
|
229
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
230
|
+
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
231
|
+
ref_key: "thisRef",
|
|
232
|
+
ref: thisRef
|
|
233
|
+
}, [
|
|
234
|
+
withDirectives(createVNode(_sfc_main$1, { headerInfo: unref(headerInfo) }, null, 8, ["headerInfo"]), [
|
|
235
|
+
[vShow, unref(headerInfo).showHeader]
|
|
236
|
+
]),
|
|
237
|
+
createVNode(unref(VChart), {
|
|
238
|
+
ref: "chartRef",
|
|
239
|
+
theme: unref(customTheme),
|
|
240
|
+
option: unref(chartOption),
|
|
241
|
+
autoresize: ""
|
|
242
|
+
}, null, 8, ["theme", "option"])
|
|
243
|
+
], 6);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
export {
|
|
248
|
+
_sfc_main as default
|
|
249
|
+
};
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "common-chart-header-group",
|
|
4
|
+
props: {
|
|
5
|
+
headerInfo: {
|
|
6
|
+
type: Object,
|
|
7
|
+
required: true
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
watch(props.headerInfo, () => {
|
|
13
|
+
console.log("props.headerInfo", props.headerInfo);
|
|
14
|
+
});
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
17
|
+
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
18
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
19
|
+
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
20
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
21
|
+
return __props.headerInfo.groupComponent == "checkbox" ? (openBlock(), createBlock(_component_el_checkbox_group, {
|
|
22
|
+
key: 0,
|
|
23
|
+
modelValue: __props.headerInfo.groupValue,
|
|
24
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.headerInfo.groupValue = $event)
|
|
25
|
+
}, {
|
|
26
|
+
default: withCtx(() => [
|
|
27
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headerInfo.options, (o) => {
|
|
28
|
+
return openBlock(), createBlock(_component_el_checkbox, {
|
|
29
|
+
label: o.label,
|
|
30
|
+
value: o.value
|
|
31
|
+
}, null, 8, ["label", "value"]);
|
|
32
|
+
}), 256))
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 8, ["modelValue"])) : __props.headerInfo.groupComponent == "radio" ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.headerInfo.options, (o) => {
|
|
36
|
+
return openBlock(), createBlock(_component_el_radio, {
|
|
37
|
+
modelValue: __props.headerInfo.groupValue,
|
|
38
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.headerInfo.groupValue = $event),
|
|
39
|
+
value: o.value,
|
|
40
|
+
label: o.label
|
|
41
|
+
}, null, 8, ["modelValue", "value", "label"]);
|
|
42
|
+
}), 256)) : (openBlock(), createBlock(_component_el_radio_group, {
|
|
43
|
+
key: 2,
|
|
44
|
+
modelValue: __props.headerInfo.groupValue,
|
|
45
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.headerInfo.groupValue = $event)
|
|
46
|
+
}, {
|
|
47
|
+
default: withCtx(() => [
|
|
48
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headerInfo.options, (o) => {
|
|
49
|
+
return openBlock(), createBlock(_component_el_radio_button, {
|
|
50
|
+
label: o.label,
|
|
51
|
+
value: o.value
|
|
52
|
+
}, null, 8, ["label", "value"]);
|
|
53
|
+
}), 256))
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["modelValue"]));
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
_sfc_main as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, normalizeStyle, toDisplayString, vShow, createBlock, createCommentVNode } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./common-chart-header-group.vue.js";
|
|
3
|
+
const _hoisted_1 = { class: "amb-widget-chart-header" };
|
|
4
|
+
const _hoisted_2 = { class: "amb-widget-chart-header-item" };
|
|
5
|
+
const _hoisted_3 = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" };
|
|
6
|
+
const _hoisted_4 = { class: "amb-widget-chart-header-item" };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "common-chart-header",
|
|
9
|
+
props: {
|
|
10
|
+
headerInfo: {
|
|
11
|
+
type: Object,
|
|
12
|
+
required: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
18
|
+
createElementVNode("div", _hoisted_2, [
|
|
19
|
+
withDirectives(createElementVNode("label", {
|
|
20
|
+
style: normalizeStyle(__props.headerInfo.style)
|
|
21
|
+
}, toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
22
|
+
[vShow, __props.headerInfo.title && (!__props.headerInfo.textAlign || __props.headerInfo.textAlign == "left")]
|
|
23
|
+
]),
|
|
24
|
+
__props.headerInfo.showGroup && (!__props.headerInfo.groupPosition || __props.headerInfo.groupPosition == "left") ? (openBlock(), createBlock(_sfc_main$1, {
|
|
25
|
+
key: 0,
|
|
26
|
+
headerInfo: __props.headerInfo
|
|
27
|
+
}, null, 8, ["headerInfo"])) : createCommentVNode("", true)
|
|
28
|
+
]),
|
|
29
|
+
createElementVNode("div", _hoisted_3, [
|
|
30
|
+
withDirectives(createElementVNode("label", {
|
|
31
|
+
style: normalizeStyle(__props.headerInfo.style)
|
|
32
|
+
}, toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
33
|
+
[vShow, __props.headerInfo.title && __props.headerInfo.textAlign == "center"]
|
|
34
|
+
]),
|
|
35
|
+
__props.headerInfo.showGroup && __props.headerInfo.groupPosition == "center" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
36
|
+
key: 0,
|
|
37
|
+
headerInfo: __props.headerInfo
|
|
38
|
+
}, null, 8, ["headerInfo"])) : createCommentVNode("", true)
|
|
39
|
+
]),
|
|
40
|
+
createElementVNode("div", _hoisted_4, [
|
|
41
|
+
withDirectives(createElementVNode("label", {
|
|
42
|
+
style: normalizeStyle(__props.headerInfo.style)
|
|
43
|
+
}, toDisplayString(__props.headerInfo.title) + " ", 5), [
|
|
44
|
+
[vShow, __props.headerInfo.title && __props.headerInfo.textAlign == "right"]
|
|
45
|
+
]),
|
|
46
|
+
__props.headerInfo.showGroup && __props.headerInfo.groupPosition == "right" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
47
|
+
key: 0,
|
|
48
|
+
headerInfo: __props.headerInfo
|
|
49
|
+
}, null, 8, ["headerInfo"])) : createCommentVNode("", true)
|
|
50
|
+
])
|
|
51
|
+
]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
_sfc_main as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "vue";
|
|
2
|
+
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { use } from "echarts/core";
|
|
4
|
+
import { CanvasRenderer } from "echarts/renderers";
|
|
5
|
+
import { GaugeChart } from "echarts/charts";
|
|
6
|
+
import { GridComponent, TitleComponent, TooltipComponent, ToolboxComponent } from "echarts/components";
|
|
7
|
+
import VChart from "vue-echarts";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "gauge-runtime",
|
|
10
|
+
props: {
|
|
11
|
+
pageContext: {},
|
|
12
|
+
configure: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
use([
|
|
16
|
+
CanvasRenderer,
|
|
17
|
+
GaugeChart,
|
|
18
|
+
GridComponent,
|
|
19
|
+
TitleComponent,
|
|
20
|
+
TooltipComponent,
|
|
21
|
+
ToolboxComponent
|
|
22
|
+
]);
|
|
23
|
+
const props = __props;
|
|
24
|
+
const thisRef = ref(null);
|
|
25
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
26
|
+
const runtimeStyle = runtimeInfo.style;
|
|
27
|
+
const runtimeClass = runtimeInfo.class;
|
|
28
|
+
const chartOption = runtimeInfo.chartOption;
|
|
29
|
+
const configureProps = props.configure.props ? props.configure.props : {};
|
|
30
|
+
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createElementBlock("div", {
|
|
33
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
34
|
+
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
35
|
+
ref_key: "thisRef",
|
|
36
|
+
ref: thisRef
|
|
37
|
+
}, [
|
|
38
|
+
createVNode(unref(VChart), {
|
|
39
|
+
ref: "chartRef",
|
|
40
|
+
theme: unref(customTheme),
|
|
41
|
+
option: unref(chartOption),
|
|
42
|
+
autoresize: ""
|
|
43
|
+
}, null, 8, ["theme", "option"])
|
|
44
|
+
], 6);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
_sfc_main as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "vue";
|
|
2
|
+
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { use } from "echarts/core";
|
|
4
|
+
import { CanvasRenderer } from "echarts/renderers";
|
|
5
|
+
import { PieChart } from "echarts/charts";
|
|
6
|
+
import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent } from "echarts/components";
|
|
7
|
+
import VChart from "vue-echarts";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "pie-runtime",
|
|
10
|
+
props: {
|
|
11
|
+
pageContext: {},
|
|
12
|
+
configure: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
use([
|
|
16
|
+
CanvasRenderer,
|
|
17
|
+
PieChart,
|
|
18
|
+
GridComponent,
|
|
19
|
+
LegendComponent,
|
|
20
|
+
TitleComponent,
|
|
21
|
+
TooltipComponent,
|
|
22
|
+
ToolboxComponent
|
|
23
|
+
]);
|
|
24
|
+
const props = __props;
|
|
25
|
+
const thisRef = ref(null);
|
|
26
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
27
|
+
const runtimeStyle = runtimeInfo.style;
|
|
28
|
+
const runtimeClass = runtimeInfo.class;
|
|
29
|
+
const chartOption = runtimeInfo.chartOption;
|
|
30
|
+
const configureProps = props.configure.props ? props.configure.props : {};
|
|
31
|
+
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createElementBlock("div", {
|
|
34
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
35
|
+
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
36
|
+
ref_key: "thisRef",
|
|
37
|
+
ref: thisRef
|
|
38
|
+
}, [
|
|
39
|
+
createVNode(unref(VChart), {
|
|
40
|
+
ref: "chartRef",
|
|
41
|
+
theme: unref(customTheme),
|
|
42
|
+
option: unref(chartOption),
|
|
43
|
+
autoresize: ""
|
|
44
|
+
}, null, 8, ["theme", "option"])
|
|
45
|
+
], 6);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
_sfc_main as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "vue";
|
|
2
|
+
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { use } from "echarts/core";
|
|
4
|
+
import { CanvasRenderer } from "echarts/renderers";
|
|
5
|
+
import { RadarChart } from "echarts/charts";
|
|
6
|
+
import { GridComponent, TitleComponent, TooltipComponent, ToolboxComponent, LegendComponent } from "echarts/components";
|
|
7
|
+
import VChart from "vue-echarts";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "radar-runtime",
|
|
10
|
+
props: {
|
|
11
|
+
pageContext: {},
|
|
12
|
+
configure: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
use([
|
|
16
|
+
CanvasRenderer,
|
|
17
|
+
RadarChart,
|
|
18
|
+
GridComponent,
|
|
19
|
+
TitleComponent,
|
|
20
|
+
TooltipComponent,
|
|
21
|
+
ToolboxComponent,
|
|
22
|
+
LegendComponent
|
|
23
|
+
]);
|
|
24
|
+
const props = __props;
|
|
25
|
+
const thisRef = ref(null);
|
|
26
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
27
|
+
const runtimeStyle = runtimeInfo.style;
|
|
28
|
+
const runtimeClass = runtimeInfo.class;
|
|
29
|
+
const chartOption = runtimeInfo.chartOption;
|
|
30
|
+
const configureProps = props.configure.props ? props.configure.props : {};
|
|
31
|
+
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createElementBlock("div", {
|
|
34
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
35
|
+
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
36
|
+
ref_key: "thisRef",
|
|
37
|
+
ref: thisRef
|
|
38
|
+
}, [
|
|
39
|
+
createVNode(unref(VChart), {
|
|
40
|
+
ref: "chartRef",
|
|
41
|
+
theme: unref(customTheme),
|
|
42
|
+
option: unref(chartOption),
|
|
43
|
+
autoresize: ""
|
|
44
|
+
}, null, 8, ["theme", "option"])
|
|
45
|
+
], 6);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
_sfc_main as default
|
|
51
|
+
};
|