super-page-runtime 1.0.15 → 1.0.17
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/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -4
- package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue.js +4 -4
- package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/super-page.vue.js +7 -7
- package/{dist/lib/components → lib}/wf-editor/wf-editor.vue.js +1 -1
- package/package.json +5 -5
- package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/es/components/index.js +0 -8
- package/dist/es/components/runtime/index.js +0 -4
- package/dist/es/components/runtime/utils/assemblys-config.js +0 -257
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -55
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -36
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -111
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -54
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -43
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -51
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -51
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -52
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -142
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -128
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -105
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -73
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -641
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +0 -23
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -157
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -60
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -41
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -75
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -128
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -134
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -30
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -158
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -175
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -202
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -66
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +0 -143
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -62
- package/dist/es/components/runtime/views/super-page.vue.js +0 -480
- package/dist/es/components/runtime/views/super-page.vue2.js +0 -4
- package/dist/es/components/super-page-dialog/index.js +0 -4
- package/dist/es/components/super-page-dialog/super-page-dialog.vue.js +0 -74
- package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +0 -4
- package/dist/es/components/wf-editor/index.js +0 -4
- package/dist/es/components/wf-editor/wf-editor.vue.js +0 -16
- package/dist/es/src/assets/chart-themes/theme1.js +0 -8
- package/dist/es/src/assets/chart-themes/theme2.js +0 -8
- package/dist/es/src/assets/chart-themes/theme3.js +0 -8
- package/dist/es/src/utils/api/api-util.js +0 -128
- package/dist/es/src/utils/charts/chart-util.js +0 -15
- package/dist/es/src/utils/common-util.js +0 -81
- package/dist/es/src/utils/events/event-util.js +0 -525
- package/dist/es/src/utils/events/standard-event.js +0 -1623
- package/dist/es/src/utils/events/validator-util.js +0 -389
- package/dist/es/src/utils/global-refs.js +0 -65
- package/dist/es/src/utils/interfaces/page-design-types.js +0 -9
- package/dist/es/src/utils/page-helper-util.js +0 -503
- package/dist/es/src/utils/page-init-util.js +0 -200
- package/dist/es/src/utils/store-util.js +0 -17
- package/dist/es/src/utils/store.js +0 -4
- package/dist/es/src/utils/table-utils.js +0 -23
- package/dist/favicon.ico +0 -0
- package/dist/lib/components/index.d.ts +0 -5
- package/dist/lib/components/runtime/index.d.ts +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/lib/components/super-page-dialog/index.d.ts +0 -3
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/wf-editor/index.d.ts +0 -3
- package/dist/lib/components/wf-editor/wf-editor.css +0 -4
- package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/src/utils/api/api-util.d.ts +0 -11
- package/dist/lib/src/utils/common-util.d.ts +0 -11
- package/dist/lib/src/utils/events/event-util.d.ts +0 -48
- package/dist/lib/src/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/src/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/src/utils/global-refs.d.ts +0 -59
- package/dist/lib/src/utils/interfaces/page-design-types.d.ts +0 -221
- package/dist/lib/src/utils/page-helper-util.d.ts +0 -87
- package/dist/lib/src/utils/page-init-util.d.ts +0 -38
- package/dist/lib/src/utils/store-util.d.ts +0 -15
- package/dist/lib/src/utils/store.d.ts +0 -2
- package/lib/components/index.js +0 -8
- /package/{dist/lib → lib}/_virtual/_plugin-vue_export-helper.js +0 -0
- /package/{dist/es → lib}/components/index.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/index.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/object-render.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/super-page.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/super-page-dialog/index.d.ts +0 -0
- /package/{dist/es → lib}/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/wf-editor/index.d.ts +0 -0
- /package/{dist/es → lib}/components/wf-editor/wf-editor.vue.d.ts +0 -0
- /package/{dist/es → lib}/favicon.ico +0 -0
- /package/{dist/lib/components → lib}/index.js +0 -0
- /package/{dist/lib/components → lib}/runtime/index.js +0 -0
- /package/{dist/lib/components → lib}/runtime/utils/assemblys-config.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/super-page.vue2.js +0 -0
- /package/{dist/lib → lib}/src/assets/chart-themes/theme1.js +0 -0
- /package/{dist/lib → lib}/src/assets/chart-themes/theme2.js +0 -0
- /package/{dist/lib → lib}/src/assets/chart-themes/theme3.js +0 -0
- /package/{dist/es → lib}/src/utils/api/api-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/api/api-util.js +0 -0
- /package/{dist/lib → lib}/src/utils/charts/chart-util.js +0 -0
- /package/{dist/es → lib}/src/utils/common-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/common-util.js +0 -0
- /package/{dist/es → lib}/src/utils/events/event-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/event-util.js +0 -0
- /package/{dist/es → lib}/src/utils/events/standard-event.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/standard-event.js +0 -0
- /package/{dist/es → lib}/src/utils/events/validator-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/validator-util.js +0 -0
- /package/{dist/es → lib}/src/utils/global-refs.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/global-refs.js +0 -0
- /package/{dist/es → lib}/src/utils/interfaces/page-design-types.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/interfaces/page-design-types.js +0 -0
- /package/{dist/es → lib}/src/utils/page-helper-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/page-helper-util.js +0 -0
- /package/{dist/es → lib}/src/utils/page-init-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/page-init-util.js +0 -0
- /package/{dist/es → lib}/src/utils/store-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/store-util.js +0 -0
- /package/{dist/es → lib}/src/utils/store.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/store.js +0 -0
- /package/{dist/lib → lib}/src/utils/table-utils.js +0 -0
- /package/{dist/lib/components → lib}/super-page-dialog/index.js +0 -0
- /package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue.js +0 -0
- /package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/wf-editor/index.js +0 -0
- /package/{dist/es/components → lib}/wf-editor/wf-editor.css +0 -0
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, unref, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, createTextVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
3
|
-
import { queryOptions, formatVariableValue, formatValueByType } from "../../../../../../src/utils/page-helper-util.js";
|
|
4
|
-
import { SuperIcon } from "agilebuilder-ui";
|
|
5
|
-
const _hoisted_1 = { style: { "display": "flex", "width": "100%", "justify-content": "space-between" } };
|
|
6
|
-
const _hoisted_2 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
|
|
7
|
-
const _hoisted_3 = {
|
|
8
|
-
key: 1,
|
|
9
|
-
style: { "display": "flex", "justify-content": "space-between" }
|
|
10
|
-
};
|
|
11
|
-
const _hoisted_4 = ["title"];
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "label-runtime",
|
|
14
|
-
props: {
|
|
15
|
-
pageContext: {},
|
|
16
|
-
configure: {}
|
|
17
|
-
},
|
|
18
|
-
setup(__props) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
getFormModelFields(props.pageContext, props.configure);
|
|
21
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
22
|
-
const runtimeStyle = runtimeInfo.style;
|
|
23
|
-
const runtimeClass = runtimeInfo.class;
|
|
24
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
25
|
-
const appendClass = runtimeInfo.appendClass;
|
|
26
|
-
const appendStyle = runtimeInfo.appendStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
const listOptions = designProperty.options ? designProperty.options : [];
|
|
29
|
-
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
30
|
-
const valueType = dataOrigin.optionValueSetType;
|
|
31
|
-
if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
|
|
32
|
-
queryOptions(props.configure, props.pageContext, "").then((results) => {
|
|
33
|
-
listOptions.value = results;
|
|
34
|
-
}).catch((error) => {
|
|
35
|
-
console.log("lable组件查询数据源失败!", error);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
let contentVariable = designProperty.formatting;
|
|
39
|
-
if (!contentVariable) {
|
|
40
|
-
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
41
|
-
contentVariable = propsBase.prop;
|
|
42
|
-
}
|
|
43
|
-
if (!contentVariable) {
|
|
44
|
-
contentVariable = "${page." + props.configure.uuid + "}";
|
|
45
|
-
}
|
|
46
|
-
const formatType = designProperty.formatType;
|
|
47
|
-
const dynamicValue = computed(() => {
|
|
48
|
-
let resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
49
|
-
console.log("formatType", formatType);
|
|
50
|
-
if (formatType) {
|
|
51
|
-
if (designProperty.hasOptions) {
|
|
52
|
-
let selItems = null;
|
|
53
|
-
if (listOptions.value) {
|
|
54
|
-
selItems = listOptions.value.filter((item) => item.value == resultValue);
|
|
55
|
-
}
|
|
56
|
-
if (selItems && selItems.length > 0) {
|
|
57
|
-
resultValue = selItems[0].label;
|
|
58
|
-
}
|
|
59
|
-
} else {
|
|
60
|
-
resultValue = formatValueByType(resultValue, formatType, designProperty);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
64
|
-
});
|
|
65
|
-
return (_ctx, _cache) => {
|
|
66
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
67
|
-
return unref(designProperty).tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
68
|
-
key: 0,
|
|
69
|
-
required: unref(designProperty).required ? true : false,
|
|
70
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
71
|
-
"label-width": unref(designProperty).labelWidth,
|
|
72
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
73
|
-
}, {
|
|
74
|
-
label: withCtx(() => [
|
|
75
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
76
|
-
key: 0,
|
|
77
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
78
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
79
|
-
]),
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
createElementVNode("div", _hoisted_1, [
|
|
82
|
-
createElementVNode("span", _hoisted_2, [
|
|
83
|
-
unref(designProperty).preIconValue || unref(designProperty).preText ? (openBlock(), createElementBlock("span", {
|
|
84
|
-
key: 0,
|
|
85
|
-
class: normalizeClass({
|
|
86
|
-
"el-input__suffix": unref(designProperty).iconPosition != "outer",
|
|
87
|
-
"el-input-group__append": unref(designProperty).iconPosition == "outer"
|
|
88
|
-
}),
|
|
89
|
-
style: normalizeStyle(unref(appendStyle))
|
|
90
|
-
}, [
|
|
91
|
-
unref(designProperty).preIconType && unref(designProperty).preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
92
|
-
key: 0,
|
|
93
|
-
iconType: unref(designProperty).preIconType,
|
|
94
|
-
iconValue: unref(designProperty).preIconValue
|
|
95
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
96
|
-
createTextVNode(" " + toDisplayString(unref(designProperty).preText), 1)
|
|
97
|
-
], 6)) : createCommentVNode("", true),
|
|
98
|
-
createTextVNode(" " + toDisplayString(dynamicValue.value), 1)
|
|
99
|
-
]),
|
|
100
|
-
unref(designProperty).sufIconValue || unref(designProperty).sufText ? (openBlock(), createElementBlock("span", {
|
|
101
|
-
key: 0,
|
|
102
|
-
class: normalizeClass({
|
|
103
|
-
"el-input__suffix": unref(designProperty).iconPosition != "outer",
|
|
104
|
-
"el-input-group__append": unref(designProperty).iconPosition == "outer"
|
|
105
|
-
})
|
|
106
|
-
}, [
|
|
107
|
-
unref(designProperty).sufIconType && unref(designProperty).sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
108
|
-
key: 0,
|
|
109
|
-
style: {},
|
|
110
|
-
iconType: unref(designProperty).sufIconType,
|
|
111
|
-
iconValue: unref(designProperty).sufIconValue
|
|
112
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
113
|
-
createElementVNode("span", null, " " + toDisplayString(unref(designProperty).sufText), 1)
|
|
114
|
-
], 2)) : createCommentVNode("", true)
|
|
115
|
-
])
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
119
|
-
createElementVNode("span", {
|
|
120
|
-
style: { "overflow": "hidden", "white-space": "nowrap" },
|
|
121
|
-
title: dynamicValue.value
|
|
122
|
-
}, toDisplayString(unref(designProperty).prefixIcon) + " " + toDisplayString(dynamicValue.value), 9, _hoisted_4),
|
|
123
|
-
unref(designProperty).suffixTxt ? (openBlock(), createElementBlock("span", {
|
|
124
|
-
key: 0,
|
|
125
|
-
class: normalizeClass(unref(appendClass)),
|
|
126
|
-
style: normalizeStyle(unref(appendStyle))
|
|
127
|
-
}, toDisplayString(unref(designProperty).suffixTxt), 7)) : createCommentVNode("", true)
|
|
128
|
-
]));
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
export {
|
|
133
|
-
_sfc_main as default
|
|
134
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
3
|
-
import { formatVariableValue, openLink } from "../../../../../../src/utils/page-helper-util.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "link-runtime",
|
|
6
|
-
props: {
|
|
7
|
-
pageContext: {},
|
|
8
|
-
configure: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
getFormModelFields(props.pageContext, props.configure);
|
|
13
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
14
|
-
const runtimeStyle = runtimeInfo.style;
|
|
15
|
-
const runtimeClass = runtimeInfo.class;
|
|
16
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
17
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
18
|
-
let contentVariable = designProperty.formatting;
|
|
19
|
-
if (!contentVariable) {
|
|
20
|
-
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
21
|
-
contentVariable = propsBase.prop;
|
|
22
|
-
}
|
|
23
|
-
if (!contentVariable) {
|
|
24
|
-
contentVariable = "${page." + props.configure.uuid + "}";
|
|
25
|
-
}
|
|
26
|
-
const dynamicValue = computed(() => {
|
|
27
|
-
const resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
28
|
-
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
29
|
-
});
|
|
30
|
-
let tooltipVariable = designProperty.tooltip;
|
|
31
|
-
const tooltipValue = computed(() => {
|
|
32
|
-
const resultValue = formatVariableValue(props.pageContext, tooltipVariable);
|
|
33
|
-
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
34
|
-
});
|
|
35
|
-
return (_ctx, _cache) => {
|
|
36
|
-
const _component_el_link = resolveComponent("el-link");
|
|
37
|
-
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
38
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
39
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
40
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
41
|
-
"label-width": unref(designProperty).labelWidth,
|
|
42
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
43
|
-
}, {
|
|
44
|
-
label: withCtx(() => [
|
|
45
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
46
|
-
key: 0,
|
|
47
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
48
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
49
|
-
]),
|
|
50
|
-
default: withCtx(() => [
|
|
51
|
-
createVNode(_component_el_tooltip, {
|
|
52
|
-
disabled: !tooltipValue.value,
|
|
53
|
-
content: tooltipValue.value
|
|
54
|
-
}, {
|
|
55
|
-
default: withCtx(() => [
|
|
56
|
-
createVNode(_component_el_link, {
|
|
57
|
-
disabled: unref(designProperty).state === "disabled",
|
|
58
|
-
type: unref(designProperty).type,
|
|
59
|
-
underline: unref(designProperty).underline,
|
|
60
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(openLink)(_ctx.configure, _ctx.pageContext))
|
|
61
|
-
}, {
|
|
62
|
-
default: withCtx(() => [
|
|
63
|
-
createTextVNode(toDisplayString(dynamicValue.value), 1)
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
}, 8, ["disabled", "type", "underline"])
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["disabled", "content"])
|
|
70
|
-
]),
|
|
71
|
-
_: 1
|
|
72
|
-
}, 8, ["class", "label-width", "style"]);
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
export {
|
|
77
|
-
_sfc_main as default
|
|
78
|
-
};
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementVNode } from "vue";
|
|
2
|
-
const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { style: { "width": "100%", "height": "100%" } }, " ", -1);
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "placeholder-runtime",
|
|
5
|
-
props: {
|
|
6
|
-
pageContext: {},
|
|
7
|
-
configure: {}
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props;
|
|
11
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
12
|
-
const runtimeStyle = runtimeInfo.style;
|
|
13
|
-
const runtimeClass = runtimeInfo.class;
|
|
14
|
-
return (_ctx, _cache) => {
|
|
15
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
16
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
17
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
18
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
19
|
-
}, {
|
|
20
|
-
default: withCtx(() => [
|
|
21
|
-
_hoisted_1
|
|
22
|
-
]),
|
|
23
|
-
_: 1
|
|
24
|
-
}, 8, ["class", "style"]);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
_sfc_main as default
|
|
30
|
-
};
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
|
-
import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../../../src/utils/page-helper-util.js";
|
|
3
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "radio-runtime",
|
|
6
|
-
props: {
|
|
7
|
-
pageContext: {},
|
|
8
|
-
configure: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props, { expose: __expose }) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
13
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
14
|
-
const dynamicModelMethod = computed({
|
|
15
|
-
get() {
|
|
16
|
-
return getVariableValue(entity, dynamicFields);
|
|
17
|
-
},
|
|
18
|
-
set(value) {
|
|
19
|
-
setVariableValue(entity, dynamicFields, value);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
23
|
-
const runtimeStyle = runtimeInfo.style;
|
|
24
|
-
const runtimeClass = runtimeInfo.class;
|
|
25
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
26
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
-
const listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
28
|
-
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
29
|
-
if (cacheOptions.length > 0) {
|
|
30
|
-
listOptions.value = cacheOptions;
|
|
31
|
-
}
|
|
32
|
-
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
33
|
-
const valueType = dataOrigin.optionValueSetType;
|
|
34
|
-
let autoSets = [];
|
|
35
|
-
if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
|
|
36
|
-
if (dataOrigin.autoSets) {
|
|
37
|
-
for (let obj of dataOrigin.autoSets) {
|
|
38
|
-
if (obj.source) {
|
|
39
|
-
autoSets.push(obj);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
|
|
45
|
-
autoSets.push({
|
|
46
|
-
source: "label",
|
|
47
|
-
target: props.configure.props.base.optionProp
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
if (autoSets.length > 0) {
|
|
51
|
-
designProperty.changeMethod = optionChange;
|
|
52
|
-
}
|
|
53
|
-
const monitorFields = designProperty.monitorFields;
|
|
54
|
-
const monitorFieldInfos = [];
|
|
55
|
-
if (monitorFields) {
|
|
56
|
-
const preFields = [];
|
|
57
|
-
for (let propName of monitorFields) {
|
|
58
|
-
if (propName.startsWith("${")) {
|
|
59
|
-
propName = propName.substring(2, propName.length - 1);
|
|
60
|
-
const fields = propName.split(".");
|
|
61
|
-
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
62
|
-
monitorFieldInfos.push(fields);
|
|
63
|
-
if (!preFields.includes(fields[0])) {
|
|
64
|
-
preFields.push(fields[0]);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
for (let preField of preFields) {
|
|
70
|
-
watch(entity[preField], () => {
|
|
71
|
-
monitorFieldChange();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function getMonitorFieldValues() {
|
|
76
|
-
let values = "";
|
|
77
|
-
for (let fieldInfo of monitorFieldInfos) {
|
|
78
|
-
values += "_" + getVariableValue(entity, fieldInfo);
|
|
79
|
-
}
|
|
80
|
-
return values;
|
|
81
|
-
}
|
|
82
|
-
let initMonitorValue = getMonitorFieldValues();
|
|
83
|
-
let monitorTimeout = false;
|
|
84
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
85
|
-
function monitorFieldChange() {
|
|
86
|
-
if (monitorTimeout) {
|
|
87
|
-
clearTimeout(monitorTimeout);
|
|
88
|
-
}
|
|
89
|
-
monitorTimeout = setTimeout(function() {
|
|
90
|
-
const newValue = getMonitorFieldValues();
|
|
91
|
-
if (newValue == initMonitorValue) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
initMonitorValue = newValue;
|
|
95
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
|
|
96
|
-
console.log("查询失败!", error);
|
|
97
|
-
});
|
|
98
|
-
}, 200);
|
|
99
|
-
}
|
|
100
|
-
function optionChange(value) {
|
|
101
|
-
let selItems = null;
|
|
102
|
-
if (listOptions.value && value != void 0 && value != null) {
|
|
103
|
-
selItems = listOptions.value.filter((item) => {
|
|
104
|
-
return value === item.value;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
108
|
-
}
|
|
109
|
-
function updateOptions(newOptions) {
|
|
110
|
-
listOptions.value = newOptions ? newOptions : [];
|
|
111
|
-
}
|
|
112
|
-
__expose({
|
|
113
|
-
updateOptions
|
|
114
|
-
});
|
|
115
|
-
return (_ctx, _cache) => {
|
|
116
|
-
const _component_el_radio = resolveComponent("el-radio");
|
|
117
|
-
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
118
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
119
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
120
|
-
required: unref(designProperty).required,
|
|
121
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
122
|
-
"label-width": unref(designProperty).labelWidth,
|
|
123
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
124
|
-
}, {
|
|
125
|
-
label: withCtx(() => [
|
|
126
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
127
|
-
key: 0,
|
|
128
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
129
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
130
|
-
]),
|
|
131
|
-
default: withCtx(() => [
|
|
132
|
-
createVNode(_component_el_radio_group, {
|
|
133
|
-
disabled: unref(designProperty).state === "disabled",
|
|
134
|
-
size: unref(designProperty).size,
|
|
135
|
-
onChange: unref(designProperty).changeMethod,
|
|
136
|
-
modelValue: dynamicModelMethod.value,
|
|
137
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
138
|
-
}, {
|
|
139
|
-
default: withCtx(() => [
|
|
140
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
|
|
141
|
-
return openBlock(), createBlock(_component_el_radio, {
|
|
142
|
-
key: item.value,
|
|
143
|
-
value: item.value,
|
|
144
|
-
label: item.label
|
|
145
|
-
}, null, 8, ["value", "label"]);
|
|
146
|
-
}), 128))
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}, 8, ["disabled", "size", "onChange", "modelValue"])
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
export {
|
|
157
|
-
_sfc_main as default
|
|
158
|
-
};
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, resolveComponent, unref, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../../../src/utils/page-init-util.js";
|
|
3
|
-
import { formatVariableValue, setVariableValue } from "../../../../../../src/utils/page-helper-util.js";
|
|
4
|
-
import Quill from "quill";
|
|
5
|
-
import "quill/dist/quill.snow.css";
|
|
6
|
-
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
7
|
-
const _hoisted_2 = {
|
|
8
|
-
key: 1,
|
|
9
|
-
style: { "width": "100%", "height": "100%" },
|
|
10
|
-
class: "amb-widget-richtext-single"
|
|
11
|
-
};
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "richtext-runtime",
|
|
14
|
-
props: {
|
|
15
|
-
pageContext: {},
|
|
16
|
-
configure: {}
|
|
17
|
-
},
|
|
18
|
-
setup(__props) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
21
|
-
const dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
22
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
23
|
-
const runtimeStyle = runtimeInfo.style;
|
|
24
|
-
const runtimeClass = runtimeInfo.class;
|
|
25
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
26
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
-
let contentVariable = designProperty.value;
|
|
28
|
-
const initValue = formatVariableValue(props.pageContext, contentVariable);
|
|
29
|
-
const quillEditorRef = ref(null);
|
|
30
|
-
const quill = ref(null);
|
|
31
|
-
const fileBtn = ref(null);
|
|
32
|
-
const fontSize = [
|
|
33
|
-
"12px",
|
|
34
|
-
"13px",
|
|
35
|
-
"14px",
|
|
36
|
-
"15px",
|
|
37
|
-
"16px",
|
|
38
|
-
"18px",
|
|
39
|
-
"20px",
|
|
40
|
-
"24px",
|
|
41
|
-
"28px",
|
|
42
|
-
"32px",
|
|
43
|
-
"36px"
|
|
44
|
-
];
|
|
45
|
-
const option = ref({
|
|
46
|
-
modules: {
|
|
47
|
-
toolbar: [
|
|
48
|
-
["bold", "italic", "underline", "strike"],
|
|
49
|
-
// 加粗 斜体 下划线 删除线
|
|
50
|
-
["blockquote", "code-block"],
|
|
51
|
-
// 引用
|
|
52
|
-
[{ list: "ordered" }, { list: "bullet" }],
|
|
53
|
-
// 有序、无序列表
|
|
54
|
-
[{ script: "sub" }, { script: "super" }],
|
|
55
|
-
// 上标/下标
|
|
56
|
-
[{ indent: "-1" }, { indent: "+1" }],
|
|
57
|
-
// 缩进
|
|
58
|
-
[{ direction: "rtl" }],
|
|
59
|
-
// 文本方向
|
|
60
|
-
[{ size: fontSize }],
|
|
61
|
-
// 字体大小
|
|
62
|
-
[{ header: [1, 2, 3, 4, 5, 6, false] }],
|
|
63
|
-
// 标题
|
|
64
|
-
[{ color: [] }, { background: [] }],
|
|
65
|
-
// 字体颜色、字体背景颜色
|
|
66
|
-
[{ font: [] }],
|
|
67
|
-
// 字体种类
|
|
68
|
-
[{ align: [] }],
|
|
69
|
-
// 对齐方式
|
|
70
|
-
["clean"],
|
|
71
|
-
// 清除文本格式
|
|
72
|
-
["link", "image"]
|
|
73
|
-
// 链接、图片、视频
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
theme: "snow",
|
|
77
|
-
placeholder: designProperty.placeholder,
|
|
78
|
-
readOnly: designProperty.state == "readonly"
|
|
79
|
-
});
|
|
80
|
-
function updateEditorHeight() {
|
|
81
|
-
if (quill && quill.value) {
|
|
82
|
-
if (quill.value.container) {
|
|
83
|
-
const parentNode = quill.value.container.parentNode;
|
|
84
|
-
const parentRect = parentNode.getBoundingClientRect();
|
|
85
|
-
const thisRect = quill.value.container.getBoundingClientRect();
|
|
86
|
-
let newHeight = parentRect.height - (thisRect.top - parentRect.top);
|
|
87
|
-
if (newHeight < 100) {
|
|
88
|
-
newHeight = 100;
|
|
89
|
-
}
|
|
90
|
-
quill.value.container.style.height = newHeight + "px";
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
const imgHandler = (state) => {
|
|
95
|
-
if (fileBtn.value && state) {
|
|
96
|
-
fileBtn.value.click();
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
const handleUpload = (e) => {
|
|
100
|
-
const files = Array.prototype.slice.call(e.target.files);
|
|
101
|
-
if (!files) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
const formdata = new FormData();
|
|
105
|
-
formdata.append("file", files[0]);
|
|
106
|
-
alert("TODO:上传图片");
|
|
107
|
-
};
|
|
108
|
-
onMounted(() => {
|
|
109
|
-
quill.value = new Quill(quillEditorRef.value, option.value);
|
|
110
|
-
quill.value.getModule("toolbar").addHandler("image", imgHandler);
|
|
111
|
-
quill.value.on("text-change", function(delta, oldDelta, source) {
|
|
112
|
-
if (window.updateQuillTimeout) {
|
|
113
|
-
clearTimeout(window.updateQuillTimeout);
|
|
114
|
-
}
|
|
115
|
-
window.updateQuillTimeout = setTimeout(function() {
|
|
116
|
-
setVariableValue(entity, dynamicFields, quill.value.root.innerHTML);
|
|
117
|
-
console.log("new entity", entity);
|
|
118
|
-
}, 1e3);
|
|
119
|
-
});
|
|
120
|
-
updateEditorHeight();
|
|
121
|
-
});
|
|
122
|
-
return (_ctx, _cache) => {
|
|
123
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
124
|
-
return unref(designProperty).tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
125
|
-
key: 0,
|
|
126
|
-
required: unref(designProperty).required,
|
|
127
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
128
|
-
"label-width": unref(designProperty).labelWidth,
|
|
129
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
130
|
-
}, {
|
|
131
|
-
label: withCtx(() => [
|
|
132
|
-
unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
|
|
133
|
-
key: 0,
|
|
134
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
135
|
-
}, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
|
|
136
|
-
]),
|
|
137
|
-
default: withCtx(() => [
|
|
138
|
-
createElementVNode("div", _hoisted_1, [
|
|
139
|
-
createElementVNode("div", {
|
|
140
|
-
ref_key: "quillEditorRef",
|
|
141
|
-
ref: quillEditorRef,
|
|
142
|
-
style: { "width": "100%" }
|
|
143
|
-
}, toDisplayString(unref(initValue)), 513),
|
|
144
|
-
createElementVNode("input", {
|
|
145
|
-
type: "file",
|
|
146
|
-
hidden: "",
|
|
147
|
-
accept: ".jpg,.png",
|
|
148
|
-
ref_key: "fileBtn",
|
|
149
|
-
ref: fileBtn,
|
|
150
|
-
onChange: handleUpload
|
|
151
|
-
}, null, 544)
|
|
152
|
-
])
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
156
|
-
createElementVNode("div", {
|
|
157
|
-
ref_key: "quillEditorRef",
|
|
158
|
-
ref: quillEditorRef,
|
|
159
|
-
style: { "width": "100%" }
|
|
160
|
-
}, toDisplayString(unref(initValue)), 513),
|
|
161
|
-
createElementVNode("input", {
|
|
162
|
-
type: "file",
|
|
163
|
-
hidden: "",
|
|
164
|
-
accept: ".jpg,.png",
|
|
165
|
-
ref_key: "fileBtn",
|
|
166
|
-
ref: fileBtn,
|
|
167
|
-
onChange: handleUpload
|
|
168
|
-
}, null, 544)
|
|
169
|
-
]));
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
export {
|
|
174
|
-
_sfc_main as default
|
|
175
|
-
};
|