super-page-runtime 2.3.22-tmp2 → 2.3.22-tmp3
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/_virtual/_plugin-vue_export-helper.mjs +4 -4
- package/dist/es/components/runtime/utils/ai-chat-util.mjs +12 -12
- package/dist/es/components/runtime/utils/anchor-util.mjs +49 -49
- package/dist/es/components/runtime/utils/api/page-expose-util.mjs +142 -147
- package/dist/es/components/runtime/utils/assemblys-config.mjs +12 -13
- package/dist/es/components/runtime/utils/barcode-util.mjs +9 -9
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +122 -121
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +32 -32
- package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +71 -70
- package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +48 -48
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +38 -38
- package/dist/es/components/runtime/utils/charts/chart-util.mjs +220 -223
- package/dist/es/components/runtime/utils/common-util.mjs +91 -94
- package/dist/es/components/runtime/utils/eventBus.mjs +3 -3
- package/dist/es/components/runtime/utils/events/event-util.mjs +341 -356
- package/dist/es/components/runtime/utils/events/print-label.mjs +75 -75
- package/dist/es/components/runtime/utils/events/standard-event.mjs +957 -1012
- package/dist/es/components/runtime/utils/events/validator-util.mjs +251 -269
- package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +26 -26
- package/dist/es/components/runtime/utils/form/scan-util.mjs +51 -56
- package/dist/es/components/runtime/utils/global-refs.mjs +52 -53
- package/dist/es/components/runtime/utils/i18n-util.mjs +11 -11
- package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +2 -2
- package/dist/es/components/runtime/utils/page-helper-util.mjs +246 -255
- package/dist/es/components/runtime/utils/page-init-util.mjs +204 -222
- package/dist/es/components/runtime/utils/page-permission-util.mjs +20 -21
- package/dist/es/components/runtime/utils/page-store.mjs +38 -38
- package/dist/es/components/runtime/utils/store-util.mjs +9 -9
- package/dist/es/components/runtime/utils/table-utils.mjs +69 -74
- package/dist/es/components/runtime/utils/tree-utils.mjs +43 -53
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.mjs +22 -22
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.mjs +16 -16
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.mjs +32 -32
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.mjs +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.mjs +44 -44
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +46 -47
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.mjs +39 -46
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.mjs +37 -37
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +220 -231
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +24 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.mjs +208 -215
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +14 -14
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +28 -29
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +24 -26
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +13 -22
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +13 -12
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +16 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +14 -13
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +13 -13
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.mjs +24 -24
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.mjs +15 -16
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.mjs +12 -13
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.mjs +21 -21
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.mjs +58 -58
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.mjs +18 -18
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.mjs +15 -15
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.mjs +9 -10
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.mjs +79 -79
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.mjs +39 -40
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.mjs +55 -55
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +289 -309
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +254 -261
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.mjs +64 -66
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.mjs +109 -111
- package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.mjs +49 -50
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +31 -33
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.mjs +56 -56
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.mjs +80 -80
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.mjs +45 -45
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.mjs +19 -19
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.mjs +60 -60
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.mjs +67 -68
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.mjs +32 -33
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.mjs +25 -25
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.mjs +11 -11
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.mjs +64 -64
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.mjs +154 -158
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.mjs +105 -111
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.mjs +12 -12
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.mjs +30 -30
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.mjs +36 -37
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +62 -73
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +113 -124
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.mjs +21 -21
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.mjs +19 -19
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.mjs +29 -29
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.mjs +16 -16
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.mjs +18 -18
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.mjs +20 -21
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.mjs +15 -15
- package/dist/es/components/runtime/views/home-chart.vue.mjs +38 -39
- package/dist/es/components/runtime/views/home-chart.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +18 -18
- package/dist/es/components/runtime/views/super-page-dialog.vue3.mjs +2 -2
- package/dist/es/components/runtime/views/super-page.vue.mjs +4 -4
- package/dist/es/components/runtime/views/super-page.vue2.mjs +234 -237
- package/dist/es/index.mjs +27 -27
- package/dist/es/style.css +1 -996
- package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +1 -6
- package/dist/lib/assets/chart-themes/bar-theme.cjs +1 -2
- package/dist/lib/assets/chart-themes/gauge-theme.cjs +1 -2
- package/dist/lib/assets/chart-themes/pie-theme.cjs +1 -2
- package/dist/lib/assets/chart-themes/radar-theme.cjs +1 -2
- package/dist/lib/assets/chart-themes/scatter-theme.cjs +1 -2
- package/dist/lib/assets/file.png.cjs +1 -2
- package/dist/lib/assets/folder.png.cjs +1 -2
- package/dist/lib/components/runtime/utils/ai-chat-util.cjs +1 -13
- package/dist/lib/components/runtime/utils/anchor-util.cjs +1 -62
- package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +1 -169
- package/dist/lib/components/runtime/utils/assemblys-config.cjs +1 -16
- package/dist/lib/components/runtime/utils/barcode-util.cjs +1 -10
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +2 -137
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +1 -34
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +2 -78
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +1 -52
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +1 -43
- package/dist/lib/components/runtime/utils/charts/chart-util.cjs +1 -244
- package/dist/lib/components/runtime/utils/common-util.cjs +1 -91
- package/dist/lib/components/runtime/utils/eventBus.cjs +1 -3
- package/dist/lib/components/runtime/utils/events/event-util.cjs +1 -345
- package/dist/lib/components/runtime/utils/events/print-label.cjs +1 -97
- package/dist/lib/components/runtime/utils/events/standard-event.cjs +1 -1101
- package/dist/lib/components/runtime/utils/events/validator-util.cjs +1 -296
- package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +1 -34
- package/dist/lib/components/runtime/utils/form/scan-util.cjs +1 -90
- package/dist/lib/components/runtime/utils/global-refs.cjs +1 -42
- package/dist/lib/components/runtime/utils/i18n-util.cjs +1 -11
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +1 -4
- package/dist/lib/components/runtime/utils/page-helper-util.cjs +1 -354
- package/dist/lib/components/runtime/utils/page-init-util.cjs +1 -244
- package/dist/lib/components/runtime/utils/page-permission-util.cjs +1 -26
- package/dist/lib/components/runtime/utils/page-store.cjs +1 -50
- package/dist/lib/components/runtime/utils/store-util.cjs +1 -11
- package/dist/lib/components/runtime/utils/store.cjs +1 -3
- package/dist/lib/components/runtime/utils/table-utils.cjs +1 -68
- package/dist/lib/components/runtime/utils/tree-utils.cjs +1 -54
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +1 -24
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +1 -17
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +1 -35
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +1 -17
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +1 -41
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +1 -11
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +1 -11
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +1 -53
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +1 -48
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +1 -24
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +1 -34
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +1 -24
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +1 -24
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +1 -402
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +1 -6
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +1 -36
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +1 -13
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +1 -249
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +1 -16
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +1 -32
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +1 -32
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +1 -19
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +1 -12
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +1 -21
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +1 -13
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +1 -30
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +1 -15
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +1 -21
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +1 -17
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +1 -15
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +1 -27
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +1 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +1 -15
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +1 -12
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +1 -88
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +1 -43
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +1 -59
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +1 -382
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +1 -322
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +1 -81
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +1 -124
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +1 -57
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +1 -35
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +1 -57
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +1 -91
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +1 -47
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +1 -65
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +1 -70
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +1 -31
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +1 -26
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +1 -13
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +1 -75
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +1 -188
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +1 -130
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +1 -11
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +1 -29
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +1 -38
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +1 -73
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +1 -132
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +1 -23
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +1 -23
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +1 -34
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +1 -17
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +1 -20
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +1 -19
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +1 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +1 -14
- package/dist/lib/components/runtime/views/home-chart.vue.cjs +1 -38
- package/dist/lib/components/runtime/views/home-chart.vue2.cjs +1 -3
- package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +1 -23
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +1 -3
- package/dist/lib/components/runtime/views/super-page.vue.cjs +1 -5
- package/dist/lib/components/runtime/views/super-page.vue2.cjs +1 -264
- package/dist/lib/i18n/langs/cn.cjs +1 -2
- package/dist/lib/i18n/langs/en.cjs +1 -2
- package/dist/lib/index.cjs +1 -6
- package/dist/lib/style.css +1 -996
- package/dist/umd/index.full.min.js +3 -7429
- package/dist/umd/style.css +1 -996
- package/package.json +77 -76
- package/dist/es/components/runtime/utils/api/api-util.mjs +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.cjs +0 -3
package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs
CHANGED
|
@@ -1,70 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("agilebuilder-ui"), n = require("../../../../utils/page-init-util.cjs"), o = require("../../../../utils/page-helper-util.cjs"), l = require("../../../../utils/events/event-util.cjs"), a = require("../../../../utils/form/scan-util.cjs"), u = require("../common/title-suffix-element.vue.cjs"), r = require("../../../../utils/eventBus.cjs"), i = require("../../../../utils/i18n-util.cjs"), c = require("../../../../utils/common-util.cjs"), s = e.defineComponent({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(s2, { expose: p }) {
|
|
3
|
-
var _a, _b, _c;
|
|
4
|
-
const f = s2, v = f.pageContext.entity ? f.pageContext.entity : {}, d = e.ref("text");
|
|
5
|
-
let g = n.getFormModelFields(f.pageContext, f.configure);
|
|
6
|
-
if (f.pageContext.modelFieldsMap) {
|
|
7
|
-
const e2 = o.getModelFieldFromPageContext(g, f.pageContext);
|
|
8
|
-
e2 && (d.value = o.isNumberDataType(e2.dataType) ? "number" : "text");
|
|
9
|
-
}
|
|
10
|
-
const y = e.ref(t.isMobileBrowser()), m = f.pageContext.code, x = e.ref(g && g.length > 0 ? m + "__" + g.join("__") : null), C = e.ref(null), k = e.computed({ get: () => o.getVariableValue(v, g), set(e2) {
|
|
11
|
-
o.setVariableValue(v, g, e2), null != e2 && "" !== e2 && (C.value = "");
|
|
12
|
-
} }), V = e.ref(null), h = e.ref(null), w = e.ref(null), T = f.configure.runtime ? f.configure.runtime : {}, I = e.ref(T.props ? T.props : {}), S = e.ref(!!((_a = I.value.scan) == null ? void 0 : _a.enable));
|
|
13
|
-
let b = false;
|
|
14
|
-
const B = window.localStorage.getItem("auth_source");
|
|
15
|
-
B && "dingtalk" === B && (b = true);
|
|
16
|
-
let N = "";
|
|
17
|
-
const q = navigator.userAgent;
|
|
18
|
-
N = q.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
19
|
-
const E = !(!y.value || !N || "app" !== N), F = e.ref(!!((E || b) && S.value || y.value && S.value && "https:" === window.location.protocol));
|
|
20
|
-
let _ = {};
|
|
21
|
-
((_b = I.value.scan) == null ? void 0 : _b.enable) && ((_c = I.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (a.formatScanRuleSets(I.value.scan.ruleList).then((e2) => {
|
|
22
|
-
_ = e2;
|
|
23
|
-
}), e.watch(() => k.value, (e2) => {
|
|
24
|
-
e2 = e2.trim();
|
|
25
|
-
const t2 = a.analysisScanValue(e2, _);
|
|
26
|
-
t2 && a.setScanAnalysisValue(f.pageContext, t2.scanSet, t2.params);
|
|
27
|
-
}));
|
|
28
|
-
const D = T.style, O = T.class, j = T.headerStyle, P = T.titleExceedStyle;
|
|
29
|
-
function R(e2) {
|
|
30
|
-
return o.setVariableValue(v, g, e2);
|
|
31
|
-
}
|
|
32
|
-
e.onMounted(() => {
|
|
33
|
-
r.$on(x.value + "-scanDone", (e2) => {
|
|
34
|
-
x.value, JSON.stringify(e2), R(e2.result), l.handleFormEvent(e2.result, f.pageContext, f.configure, "afterScanDone");
|
|
35
|
-
}), e.nextTick(() => {
|
|
36
|
-
var _a2;
|
|
37
|
-
const e2 = k.value;
|
|
38
|
-
l.handleAfterInitEvent(e2, f.pageContext, f.configure, { formItemRef: V.value, componentRef: h.value, titleRef: w.value, value: e2, entity: f.pageContext.entity.data, pageData: f.pageContext.entity.page }), F.value && ((_a2 = I.value.scan) == null ? void 0 : _a2.autoOpen) && $();
|
|
39
|
-
});
|
|
40
|
-
}), e.onUnmounted(() => {
|
|
41
|
-
r.$off(x.value + "-scanDone");
|
|
42
|
-
});
|
|
43
|
-
const M = e.ref(false);
|
|
44
|
-
function $() {
|
|
45
|
-
if (E || b) {
|
|
46
|
-
const e2 = { type: "scan", componentId: x.value, systemCode: f.pageContext.systemCode };
|
|
47
|
-
b && (e2.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e2), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e2), "*"));
|
|
48
|
-
} else if (y.value) if ("https:" === window.location.protocol) M.value = true;
|
|
49
|
-
else {
|
|
50
|
-
const e2 = { type: "scan", componentId: x.value, systemCode: f.pageContext.systemCode };
|
|
51
|
-
window.parent.postMessage(JSON.stringify(e2), "*");
|
|
52
|
-
}
|
|
53
|
-
else M.value = true;
|
|
54
|
-
}
|
|
55
|
-
function z(e2) {
|
|
56
|
-
M.value = false, R(e2);
|
|
57
|
-
}
|
|
58
|
-
return p({ getValue: function() {
|
|
59
|
-
return o.getVariableValue(v, g);
|
|
60
|
-
}, setValue: R, scanClick: $, addRequiredClass: function() {
|
|
61
|
-
C.value = c.addRequiredClassUtil();
|
|
62
|
-
} }), (n2, a2) => {
|
|
63
|
-
const r2 = e.resolveComponent("el-input"), c2 = e.resolveComponent("scan-code-input-browser"), s3 = e.resolveComponent("el-form-item");
|
|
64
|
-
return e.openBlock(), e.createBlock(s3, { ref_key: "formItemRef", ref: V, required: !!I.value.required, class: e.normalizeClass(e.unref(O) + (C.value ? " " + C.value : "")), "label-width": I.value.labelWidth, style: e.normalizeStyle(e.unref(D)) }, { label: e.withCtx(() => [I.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: w, style: e.normalizeStyle({ ...e.unref(j), ...e.unref(P) }) }, [I.value.prefixType ? (e.openBlock(), e.createBlock(u, { key: 0, pageContext: n2.pageContext, property: I.value }, null, 8, ["pageContext", "property"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(e.unref(i.$t)(I.value.title)), 1)], 64))], 4)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(r2, { ref_key: "componentRef", ref: h, disabled: "disabled" === I.value.state, readonly: "readonly" === I.value.state, size: I.value.size, clearable: I.value.clearable, placeholder: I.value.placeholder, maxlength: I.value.maxLength, "show-word-limit": I.value.showInputNum, type: d.value, modelValue: k.value, "onUpdate:modelValue": a2[5] || (a2[5] = (e2) => k.value = e2), onInput: a2[6] || (a2[6] = (t2) => e.unref(l.handleFormEvent)(t2, n2.pageContext, n2.configure, "input")), onChange: a2[7] || (a2[7] = (t2) => e.unref(l.handleFormEvent)(t2, n2.pageContext, n2.configure, "change")), onBlur: a2[8] || (a2[8] = (e2) => function(e3) {
|
|
65
|
-
let t2 = o.getVariableValue(v, g);
|
|
66
|
-
null != t2 && (t2 = t2.trim()), o.setVariableValue(v, g, t2), l.handleFormEvent(e3, f.pageContext, f.configure, "blur");
|
|
67
|
-
}(e2)), onFocus: a2[9] || (a2[9] = (t2) => e.unref(l.handleFormEvent)(t2, n2.pageContext, n2.configure, "focus")), onClick: a2[10] || (a2[10] = (t2) => e.unref(l.handleFormEvent)(t2, n2.pageContext, n2.configure, "click")), onClear: a2[11] || (a2[11] = (t2) => e.unref(l.handleFormEvent)(t2, n2.pageContext, n2.configure, "clear")) }, e.createSlots({ _: 2 }, ["outer" != I.value.iconPosition && (I.value.preIconType && I.value.preIconValue || I.value.preText) ? { name: "prefix", fn: e.withCtx(() => [I.value.preIconType && I.value.preIconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, style: { cursor: "pointer" }, iconType: I.value.preIconType, iconValue: I.value.preIconValue, onClick: a2[0] || (a2[0] = (t2) => e.unref(l.doSuffixOrPrefixClickEvent)(k.value, n2.pageContext, n2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(i.$t)(I.value.preText)), 1)]), key: "0" } : void 0, "outer" == I.value.iconPosition && (I.value.preIconType && I.value.preIconValue || I.value.preText) ? { name: "prepend", fn: e.withCtx(() => [I.value.preIconType && I.value.preIconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, style: { cursor: "pointer" }, iconType: I.value.preIconType, iconValue: I.value.preIconValue, onClick: a2[1] || (a2[1] = (t2) => e.unref(l.doSuffixOrPrefixClickEvent)(k.value, n2.pageContext, n2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(i.$t)(I.value.preText)), 1)]), key: "1" } : void 0, "outer" != I.value.iconPosition && (I.value.sufIconType && I.value.sufIconValue || I.value.sufText) ? { name: "suffix", fn: e.withCtx(() => [I.value.sufIconType && I.value.sufIconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, style: { cursor: "pointer" }, iconType: I.value.sufIconType, iconValue: I.value.sufIconValue, onClick: a2[2] || (a2[2] = (t2) => e.unref(l.doSuffixOrPrefixClickEvent)(k.value, n2.pageContext, n2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(i.$t)(I.value.sufText)), 1)]), key: "2" } : void 0, F.value || "outer" == I.value.iconPosition && (I.value.sufIconType && I.value.sufIconValue || I.value.sufText) ? { name: "append", fn: e.withCtx(() => [F.value ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: a2[3] || (a2[3] = (e2) => $()) })) : e.createCommentVNode("", true), I.value.sufIconType && I.value.sufIconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 1, style: { cursor: "pointer" }, iconType: I.value.sufIconType, iconValue: I.value.sufIconValue, onClick: a2[4] || (a2[4] = (t2) => e.unref(l.doSuffixOrPrefixClickEvent)(k.value, n2.pageContext, n2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(i.$t)(I.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), M.value ? (e.openBlock(), e.createBlock(c2, { key: 0, onClose: z })) : e.createCommentVNode("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
68
|
-
};
|
|
69
|
-
} });
|
|
70
|
-
module.exports = s;
|
|
1
|
+
"use strict";const e=require("vue"),f=require("agilebuilder-ui"),K=require("../../../../utils/page-init-util.cjs"),c=require("../../../../utils/page-helper-util.cjs"),u=require("../../../../utils/events/event-util.cjs"),h=require("../../../../utils/form/scan-util.cjs"),Q=require("../common/title-suffix-element.vue.cjs"),P=require("../../../../utils/eventBus.cjs"),d=require("../../../../utils/i18n-util.cjs"),X=require("../../../../utils/common-util.cjs"),Y=e.defineComponent({__name:"inputtext-runtime",props:{pageContext:{},configure:{}},setup(R,{expose:M}){var _,D,O;const l=R,p=l.pageContext.entity?l.pageContext.entity:{},I=e.ref("text");let r=K.getFormModelFields(l.pageContext,l.configure);if(l.pageContext.modelFieldsMap){const n=c.getModelFieldFromPageContext(r,l.pageContext);n&&(I.value=c.isNumberDataType(n.dataType)?"number":"text")}const C=e.ref(f.isMobileBrowser()),$=l.pageContext.code,v=e.ref(r&&r.length>0?$+"__"+r.join("__"):null),y=e.ref(null),i=e.computed({get:()=>c.getVariableValue(p,r),set(n){c.setVariableValue(p,r,n),n!=null&&n!==""&&(y.value="")}}),S=e.ref(null),b=e.ref(null),B=e.ref(null),s=l.configure.runtime?l.configure.runtime:{},t=e.ref(s.props?s.props:{}),N=e.ref(!!((_=t.value.scan)!=null&&_.enable));let g=!1;const q=window.localStorage.getItem("auth_source");q&&q==="dingtalk"&&(g=!0);let k="";k=navigator.userAgent.indexOf(" uni-app ")>0?"app":"browser";const E=!(!C.value||!k||k!=="app"),V=e.ref(!!((E||g)&&N.value||C.value&&N.value&&window.location.protocol==="https:"));let F={};(D=t.value.scan)!=null&&D.enable&&((O=t.value.scan.ruleList)==null?void 0:O.length)>0&&(h.formatScanRuleSets(t.value.scan.ruleList).then(n=>{F=n}),e.watch(()=>i.value,n=>{n=n.trim();const o=h.analysisScanValue(n,F);o&&h.setScanAnalysisValue(l.pageContext,o.scanSet,o.params)}));const z=s.style,J=s.class,A=s.headerStyle,L=s.titleExceedStyle;function w(n){return c.setVariableValue(p,r,n)}e.onMounted(()=>{P.$on(v.value+"-scanDone",n=>{v.value,JSON.stringify(n),w(n.result),u.handleFormEvent(n.result,l.pageContext,l.configure,"afterScanDone")}),e.nextTick(()=>{var o;const n=i.value;u.handleAfterInitEvent(n,l.pageContext,l.configure,{formItemRef:S.value,componentRef:b.value,titleRef:B.value,value:n,entity:l.pageContext.entity.data,pageData:l.pageContext.entity.page}),V.value&&((o=t.value.scan)!=null&&o.autoOpen)&&T()})}),e.onUnmounted(()=>{P.$off(v.value+"-scanDone")});const m=e.ref(!1);function T(){if(E||g){const n={type:"scan",componentId:v.value,systemCode:l.pageContext.systemCode};g&&(n.type="dingTalkScan"),window.parent.parent?(window.parent.parent,window.parent.parent.postMessage(JSON.stringify(n),"*")):window.parent&&(window.parent,window.parent.postMessage(JSON.stringify(n),"*"))}else if(C.value)if(window.location.protocol==="https:")m.value=!0;else{const n={type:"scan",componentId:v.value,systemCode:l.pageContext.systemCode};window.parent.postMessage(JSON.stringify(n),"*")}else m.value=!0}function U(n){m.value=!1,w(n)}return M({getValue:function(){return c.getVariableValue(p,r)},setValue:w,scanClick:T,addRequiredClass:function(){y.value=X.addRequiredClassUtil()}}),(n,o)=>{const j=e.resolveComponent("el-input"),W=e.resolveComponent("scan-code-input-browser"),G=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(G,{ref_key:"formItemRef",ref:S,required:!!t.value.required,class:e.normalizeClass(e.unref(J)+(y.value?" "+y.value:"")),"label-width":t.value.labelWidth,style:e.normalizeStyle(e.unref(z))},{label:e.withCtx(()=>[t.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:B,style:e.normalizeStyle({...e.unref(A),...e.unref(L)})},[t.value.prefixType?(e.openBlock(),e.createBlock(Q,{key:0,pageContext:n.pageContext,property:t.value},null,8,["pageContext","property"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(d.$t)(t.value.title)),1)],64))],4)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(j,{ref_key:"componentRef",ref:b,disabled:t.value.state==="disabled",readonly:t.value.state==="readonly",size:t.value.size,clearable:t.value.clearable,placeholder:t.value.placeholder,maxlength:t.value.maxLength,"show-word-limit":t.value.showInputNum,type:I.value,modelValue:i.value,"onUpdate:modelValue":o[5]||(o[5]=a=>i.value=a),onInput:o[6]||(o[6]=a=>e.unref(u.handleFormEvent)(a,n.pageContext,n.configure,"input")),onChange:o[7]||(o[7]=a=>e.unref(u.handleFormEvent)(a,n.pageContext,n.configure,"change")),onBlur:o[8]||(o[8]=a=>function(H){let x=c.getVariableValue(p,r);x!=null&&(x=x.trim()),c.setVariableValue(p,r,x),u.handleFormEvent(H,l.pageContext,l.configure,"blur")}(a)),onFocus:o[9]||(o[9]=a=>e.unref(u.handleFormEvent)(a,n.pageContext,n.configure,"focus")),onClick:o[10]||(o[10]=a=>e.unref(u.handleFormEvent)(a,n.pageContext,n.configure,"click")),onClear:o[11]||(o[11]=a=>e.unref(u.handleFormEvent)(a,n.pageContext,n.configure,"clear"))},e.createSlots({_:2},[t.value.iconPosition!="outer"&&(t.value.preIconType&&t.value.preIconValue||t.value.preText)?{name:"prefix",fn:e.withCtx(()=>[t.value.preIconType&&t.value.preIconValue?(e.openBlock(),e.createBlock(e.unref(f.SuperIcon),{key:0,style:{cursor:"pointer"},iconType:t.value.preIconType,iconValue:t.value.preIconValue,onClick:o[0]||(o[0]=a=>e.unref(u.doSuffixOrPrefixClickEvent)(i.value,n.pageContext,n.configure,"prefixClick"))},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(d.$t)(t.value.preText)),1)]),key:"0"}:void 0,t.value.iconPosition=="outer"&&(t.value.preIconType&&t.value.preIconValue||t.value.preText)?{name:"prepend",fn:e.withCtx(()=>[t.value.preIconType&&t.value.preIconValue?(e.openBlock(),e.createBlock(e.unref(f.SuperIcon),{key:0,style:{cursor:"pointer"},iconType:t.value.preIconType,iconValue:t.value.preIconValue,onClick:o[1]||(o[1]=a=>e.unref(u.doSuffixOrPrefixClickEvent)(i.value,n.pageContext,n.configure,"prefixClick"))},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(d.$t)(t.value.preText)),1)]),key:"1"}:void 0,t.value.iconPosition!="outer"&&(t.value.sufIconType&&t.value.sufIconValue||t.value.sufText)?{name:"suffix",fn:e.withCtx(()=>[t.value.sufIconType&&t.value.sufIconValue?(e.openBlock(),e.createBlock(e.unref(f.SuperIcon),{key:0,style:{cursor:"pointer"},iconType:t.value.sufIconType,iconValue:t.value.sufIconValue,onClick:o[2]||(o[2]=a=>e.unref(u.doSuffixOrPrefixClickEvent)(i.value,n.pageContext,n.configure,"suffixClick"))},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(d.$t)(t.value.sufText)),1)]),key:"2"}:void 0,V.value||t.value.iconPosition=="outer"&&(t.value.sufIconType&&t.value.sufIconValue||t.value.sufText)?{name:"append",fn:e.withCtx(()=>[V.value?(e.openBlock(),e.createBlock(e.unref(f.SuperIcon),{key:0,style:{cursor:"pointer"},iconValue:"fa-barcode",onClick:o[3]||(o[3]=a=>T())})):e.createCommentVNode("",!0),t.value.sufIconType&&t.value.sufIconValue?(e.openBlock(),e.createBlock(e.unref(f.SuperIcon),{key:1,style:{cursor:"pointer"},iconType:t.value.sufIconType,iconValue:t.value.sufIconValue,onClick:o[4]||(o[4]=a=>e.unref(u.doSuffixOrPrefixClickEvent)(i.value,n.pageContext,n.configure,"suffixClick"))},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(d.$t)(t.value.sufText)),1)]),key:"3"}:void 0]),1032,["disabled","readonly","size","clearable","placeholder","maxlength","show-word-limit","type","modelValue"]),m.value?(e.openBlock(),e.createBlock(W,{key:0,onClose:U})):e.createCommentVNode("",!0)]),_:1},8,["required","class","label-width","style"])}}});module.exports=Y;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./label-runtime.vue2.cjs");
|
|
3
|
-
;/* empty css */
|
|
4
|
-
const r = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e, [["__scopeId", "data-v-2ffad4a6"]]);
|
|
5
|
-
module.exports = r;
|
|
1
|
+
"use strict";const e=require("./label-runtime.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-2ffad4a6"]]);module.exports=r;
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/page-init-util.cjs"), l = require("../../../../utils/page-helper-util.cjs"), n = require("agilebuilder-ui"), o = require("../../../../utils/events/event-util.cjs"), a = require("../../../../utils/i18n-util.cjs"), u = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, i = { style: { overflow: "hidden", "white-space": "nowrap" } }, r = ["title"], c = e.defineComponent({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(c2, { expose: s }) {
|
|
3
|
-
const p = c2, f = p.pageContext.entity ? p.pageContext.entity : {};
|
|
4
|
-
let v = t.getFormModelFields(p.pageContext, p.configure);
|
|
5
|
-
const y = p.configure.runtime ? p.configure.runtime : {}, m = y.style, d = y.class, g = y.headerStyle, k = y.appendClass, x = y.appendStyle, C = y.titleExceedStyle, V = e.ref(y.props ? y.props : {});
|
|
6
|
-
const h = e.ref(V.value.options ? V.value.options : []), T = V.value.formatType;
|
|
7
|
-
V.value;
|
|
8
|
-
const S = e.computed(() => {
|
|
9
|
-
let e2 = l.getVariableValue(f, v);
|
|
10
|
-
if (T) if (V.value.hasOptions) {
|
|
11
|
-
let t2 = null;
|
|
12
|
-
h.value && (t2 = h.value.filter((t3) => t3.value == e2)), t2 && t2.length > 0 && (e2 = t2[0].label);
|
|
13
|
-
} else if ("custom" === T) {
|
|
14
|
-
const t2 = o.getCustomFunc(p.pageContext, V.value.formatFunc);
|
|
15
|
-
t2 && (e2 = t2.apply(t2, [{ pageContext: p.pageContext, configureObj: p.configure, value: e2 }]));
|
|
16
|
-
} else e2 = l.formatValueByType(e2, T, V.value);
|
|
17
|
-
return e2 = null == e2 ? "" : e2, e2;
|
|
18
|
-
}), w = e.ref(null), B = e.ref(null), I = e.ref(null);
|
|
19
|
-
return e.onMounted(() => {
|
|
20
|
-
e.nextTick(() => {
|
|
21
|
-
const e2 = S.value;
|
|
22
|
-
o.handleAfterInitEvent(e2, p.pageContext, p.configure, { formItemRef: w.value, componentRef: B.value, titleRef: I.value, value: e2, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
|
|
23
|
-
});
|
|
24
|
-
}), s({ updateOptions: function(e2) {
|
|
25
|
-
h.value = e2 || [];
|
|
26
|
-
} }), (t2, l2) => {
|
|
27
|
-
const c3 = e.resolveComponent("el-form-item");
|
|
28
|
-
return V.value.whetherTittle ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: I, class: e.normalizeClass(e.unref(d)), style: e.normalizeStyle(e.unref(m)) }, [e.createElementVNode("div", u, e.toDisplayString(V.value.title), 1)], 6)) : V.value.tittleShow ? (e.openBlock(), e.createBlock(c3, { key: 1, ref_key: "formItemRef", ref: w, required: !!V.value.required, class: e.normalizeClass([e.unref(d), V.value.contentAlign ? "form-item-align-" + V.value.contentAlign : "formNo" === V.value.showType ? "form-item-align-flex-end" : ""]), "label-width": V.value.labelWidth, style: e.normalizeStyle(e.unref(m)) }, { label: e.withCtx(() => [V.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: I, style: e.normalizeStyle({ ...e.unref(g), ...e.unref(C) }) }, e.toDisplayString(e.unref(a.$t)(V.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createElementVNode("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: B, onClick: l2[0] || (l2[0] = (l3) => e.unref(o.handleFormEvent)(l3, t2.pageContext, t2.configure, "click")) }, [e.createElementVNode("span", i, [V.value.preIconValue || V.value.preText ? (e.openBlock(), e.createElementBlock("span", { key: 0, class: e.normalizeClass({ "el-input__suffix": "outer" != V.value.iconPosition, "el-input-group__append": "outer" == V.value.iconPosition }), style: e.normalizeStyle(e.unref(x)) }, [V.value.preIconType && V.value.preIconValue ? (e.openBlock(), e.createBlock(e.unref(n.SuperIcon), { key: 0, iconType: V.value.preIconType, iconValue: V.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(a.$t)(V.value.preText)), 1)], 6)) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(S.value), 1)]), V.value.sufIconValue || V.value.sufText ? (e.openBlock(), e.createElementBlock("span", { key: 0, class: e.normalizeClass({ "el-input__suffix": "outer" != V.value.iconPosition, "el-input-group__append": "outer" == V.value.iconPosition }) }, [V.value.sufIconType && V.value.sufIconValue ? (e.openBlock(), e.createBlock(e.unref(n.SuperIcon), { key: 0, style: {}, iconType: V.value.sufIconType, iconValue: V.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createElementVNode("span", null, " " + e.toDisplayString(e.unref(a.$t)(V.value.sufText)), 1)], 2)) : e.createCommentVNode("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (e.openBlock(), e.createElementBlock("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (l3) => e.unref(o.handleFormEvent)(l3, t2.pageContext, t2.configure, "click")) }, [e.createElementVNode("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: S.value }, e.toDisplayString(V.value.prefixIcon) + " " + e.toDisplayString(S.value), 9, r), V.value.suffixTxt ? (e.openBlock(), e.createElementBlock("span", { key: 0, class: e.normalizeClass(e.unref(k)), style: e.normalizeStyle(e.unref(x)) }, e.toDisplayString(V.value.suffixTxt), 7)) : e.createCommentVNode("", true)]));
|
|
29
|
-
};
|
|
30
|
-
} });
|
|
31
|
-
module.exports = c;
|
|
1
|
+
"use strict";const e=require("vue"),E=require("../../../../utils/page-init-util.cjs"),x=require("../../../../utils/page-helper-util.cjs"),C=require("agilebuilder-ui"),u=require("../../../../utils/events/event-util.cjs"),y=require("../../../../utils/i18n-util.cjs"),_={style:{width:"100%","text-align":"center","font-weight":"700","font-size":"24px"}},N={style:{overflow:"hidden","white-space":"nowrap"}},z=["title"],b=e.defineComponent({__name:"label-runtime",props:{pageContext:{},configure:{}},setup(V,{expose:h}){const n=V,T=n.pageContext.entity?n.pageContext.entity:{};let S=E.getFormModelFields(n.pageContext,n.configure);const a=n.configure.runtime?n.configure.runtime:{},m=a.style,v=a.class,w=a.headerStyle,B=a.appendClass,d=a.appendStyle,I=a.titleExceedStyle,t=e.ref(a.props?a.props:{}),i=e.ref(t.value.options?t.value.options:[]),c=t.value.formatType;t.value;const r=e.computed(()=>{let l=x.getVariableValue(T,S);if(c)if(t.value.hasOptions){let o=null;i.value&&(o=i.value.filter(p=>p.value==l)),o&&o.length>0&&(l=o[0].label)}else if(c==="custom"){const o=u.getCustomFunc(n.pageContext,t.value.formatFunc);o&&(l=o.apply(o,[{pageContext:n.pageContext,configureObj:n.configure,value:l}]))}else l=x.formatValueByType(l,c,t.value);return l=l??"",l}),g=e.ref(null),k=e.ref(null),s=e.ref(null);return e.onMounted(()=>{e.nextTick(()=>{const l=r.value;u.handleAfterInitEvent(l,n.pageContext,n.configure,{formItemRef:g.value,componentRef:k.value,titleRef:s.value,value:l,entity:n.pageContext.entity.data,pageData:n.pageContext.entity.page})})}),h({updateOptions:function(l){i.value=l||[]}}),(l,o)=>{const p=e.resolveComponent("el-form-item");return t.value.whetherTittle?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:s,class:e.normalizeClass(e.unref(v)),style:e.normalizeStyle(e.unref(m))},[e.createElementVNode("div",_,e.toDisplayString(t.value.title),1)],6)):t.value.tittleShow?(e.openBlock(),e.createBlock(p,{key:1,ref_key:"formItemRef",ref:g,required:!!t.value.required,class:e.normalizeClass([e.unref(v),t.value.contentAlign?"form-item-align-"+t.value.contentAlign:t.value.showType==="formNo"?"form-item-align-flex-end":""]),"label-width":t.value.labelWidth,style:e.normalizeStyle(e.unref(m))},{label:e.withCtx(()=>[t.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:s,style:e.normalizeStyle({...e.unref(w),...e.unref(I)})},e.toDisplayString(e.unref(y.$t)(t.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{style:{display:"flex",width:"100%","justify-content":"space-between"},ref_key:"componentRef",ref:k,onClick:o[0]||(o[0]=f=>e.unref(u.handleFormEvent)(f,l.pageContext,l.configure,"click"))},[e.createElementVNode("span",N,[t.value.preIconValue||t.value.preText?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass({"el-input__suffix":t.value.iconPosition!="outer","el-input-group__append":t.value.iconPosition=="outer"}),style:e.normalizeStyle(e.unref(d))},[t.value.preIconType&&t.value.preIconValue?(e.openBlock(),e.createBlock(e.unref(C.SuperIcon),{key:0,iconType:t.value.preIconType,iconValue:t.value.preIconValue},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(y.$t)(t.value.preText)),1)],6)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(r.value),1)]),t.value.sufIconValue||t.value.sufText?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass({"el-input__suffix":t.value.iconPosition!="outer","el-input-group__append":t.value.iconPosition=="outer"})},[t.value.sufIconType&&t.value.sufIconValue?(e.openBlock(),e.createBlock(e.unref(C.SuperIcon),{key:0,style:{},iconType:t.value.sufIconType,iconValue:t.value.sufIconValue},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",null," "+e.toDisplayString(e.unref(y.$t)(t.value.sufText)),1)],2)):e.createCommentVNode("",!0)],512)]),_:1},8,["required","class","label-width","style"])):(e.openBlock(),e.createElementBlock("span",{key:2,style:{display:"flex","justify-content":"space-between"},onClick:o[1]||(o[1]=f=>e.unref(u.handleFormEvent)(f,l.pageContext,l.configure,"click"))},[e.createElementVNode("span",{style:{overflow:"hidden","white-space":"nowrap"},title:r.value},e.toDisplayString(t.value.prefixIcon)+" "+e.toDisplayString(r.value),9,z),t.value.suffixTxt?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(B)),style:e.normalizeStyle(e.unref(d))},e.toDisplayString(t.value.suffixTxt),7)):e.createCommentVNode("",!0)]))}}});module.exports=b;
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/page-init-util.cjs"), l = require("../../../../utils/page-helper-util.cjs"), n = require("../../../../utils/events/event-util.cjs"), r = require("../../../../utils/i18n-util.cjs"), a = e.defineComponent({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(a2) {
|
|
3
|
-
const i = a2, o = t.getFormModelFields(i.pageContext, i.configure), u = i.configure.runtime ? i.configure.runtime : {}, s = u.style, c = u.class, p = u.headerStyle, f = e.ref(u.props ? u.props : {});
|
|
4
|
-
f.value;
|
|
5
|
-
let d = f.value.formatting;
|
|
6
|
-
const m = i.pageContext.entity ? i.pageContext.entity : {}, g = e.computed(() => {
|
|
7
|
-
let e2 = l.getVariableValue(m, o);
|
|
8
|
-
return e2 = null == e2 || null == e2 ? "" : e2, d && (e2 = d.replace(/\${value}/g, e2)), e2;
|
|
9
|
-
});
|
|
10
|
-
let v = f.value.tooltip, y = null;
|
|
11
|
-
v && (y = e.computed(() => {
|
|
12
|
-
let e2 = l.getVariableValue(m, o);
|
|
13
|
-
return e2 = null == e2 || null == e2 ? "" : e2, v.replace(/\${value}/g, e2);
|
|
14
|
-
}));
|
|
15
|
-
const C = e.ref(null), x = e.ref(null), k = e.ref(null);
|
|
16
|
-
return e.onMounted(() => {
|
|
17
|
-
e.nextTick(() => {
|
|
18
|
-
const e2 = g.value;
|
|
19
|
-
n.handleAfterInitEvent(e2, i.pageContext, i.configure, { formItemRef: C.value, componentRef: x.value, titleRef: k.value, value: e2, entity: i.pageContext.entity.data, pageData: i.pageContext.entity.page });
|
|
20
|
-
});
|
|
21
|
-
}), (t2, l2) => {
|
|
22
|
-
const a3 = e.resolveComponent("el-link"), i2 = e.resolveComponent("el-tooltip"), o2 = e.resolveComponent("el-form-item");
|
|
23
|
-
return e.openBlock(), e.createBlock(o2, { ref_key: "formItemRef", ref: C, class: e.normalizeClass(e.unref(c)), "label-width": f.value.labelWidth, style: e.normalizeStyle(e.unref(s)) }, { label: e.withCtx(() => [f.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: k, style: e.normalizeStyle({ ...e.unref(p) }) }, e.toDisplayString(e.unref(r.$t)(f.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(i2, { disabled: !e.unref(y), content: e.unref(y) }, { default: e.withCtx(() => [e.createVNode(a3, { ref_key: "componentRef", ref: x, disabled: "disabled" === f.value.state, type: f.value.type, underline: f.value.underline, onClick: l2[0] || (l2[0] = (l3) => e.unref(n.handleEvent)(l3, t2.pageContext, t2.configure, "click", { skipValidate: true })) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(g.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
24
|
-
};
|
|
25
|
-
} });
|
|
26
|
-
module.exports = a;
|
|
1
|
+
"use strict";const e=require("vue"),w=require("../../../../utils/page-init-util.cjs"),g=require("../../../../utils/page-helper-util.cjs"),v=require("../../../../utils/events/event-util.cjs"),R=require("../../../../utils/i18n-util.cjs"),S=e.defineComponent({__name:"link-runtime",props:{pageContext:{},configure:{}},setup(y){const l=y,o=w.getFormModelFields(l.pageContext,l.configure),r=l.configure.runtime?l.configure.runtime:{},C=r.style,x=r.class,k=r.headerStyle,n=e.ref(r.props?r.props:{});n.value;let i=n.value.formatting;const u=l.pageContext.entity?l.pageContext.entity:{},c=e.computed(()=>{let t=g.getVariableValue(u,o);return t=t==null||t==null?"":t,i&&(t=i.replace(/\${value}/g,t)),t});let f=n.value.tooltip,a=null;f&&(a=e.computed(()=>{let t=g.getVariableValue(u,o);return t=t==null||t==null?"":t,f.replace(/\${value}/g,t)}));const p=e.ref(null),s=e.ref(null),d=e.ref(null);return e.onMounted(()=>{e.nextTick(()=>{const t=c.value;v.handleAfterInitEvent(t,l.pageContext,l.configure,{formItemRef:p.value,componentRef:s.value,titleRef:d.value,value:t,entity:l.pageContext.entity.data,pageData:l.pageContext.entity.page})})}),(t,m)=>{const b=e.resolveComponent("el-link"),h=e.resolveComponent("el-tooltip"),V=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(V,{ref_key:"formItemRef",ref:p,class:e.normalizeClass(e.unref(x)),"label-width":n.value.labelWidth,style:e.normalizeStyle(e.unref(C))},{label:e.withCtx(()=>[n.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:d,style:e.normalizeStyle({...e.unref(k)})},e.toDisplayString(e.unref(R.$t)(n.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(h,{disabled:!e.unref(a),content:e.unref(a)},{default:e.withCtx(()=>[e.createVNode(b,{ref_key:"componentRef",ref:s,disabled:n.value.state==="disabled",type:n.value.type,underline:n.value.underline,onClick:m[0]||(m[0]=_=>e.unref(v.handleEvent)(_,t.pageContext,t.configure,"click",{skipValidate:!0}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1},8,["disabled","type","underline"])]),_:1},8,["disabled","content"])]),_:1},8,["class","label-width","style"])}}});module.exports=S;
|
package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./placeholder-runtime.vue2.cjs");
|
|
3
|
-
;/* empty css */
|
|
4
|
-
const r = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e, [["__scopeId", "data-v-96fc65d8"]]);
|
|
5
|
-
module.exports = r;
|
|
1
|
+
"use strict";const e=require("./placeholder-runtime.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-96fc65d8"]]);module.exports=r;
|
package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/events/event-util.cjs"), n = e.defineComponent({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(n2) {
|
|
3
|
-
const r = n2, o = r.configure.runtime ? r.configure.runtime : {}, l = o.style, u = o.class, i = e.ref(null), a = e.ref(null);
|
|
4
|
-
return e.onMounted(() => {
|
|
5
|
-
e.nextTick(() => {
|
|
6
|
-
t.handleAfterInitEvent(null, r.pageContext, r.configure, { formItemRef: i.value, componentRef: a.value, entity: r.pageContext.entity.data, pageData: r.pageContext.entity.page });
|
|
7
|
-
});
|
|
8
|
-
}), (t2, n3) => {
|
|
9
|
-
const r2 = e.resolveComponent("el-form-item");
|
|
10
|
-
return e.openBlock(), e.createBlock(r2, { ref_key: "formItemRef", ref: i, class: e.normalizeClass(e.unref(u)), style: e.normalizeStyle(e.unref(l)) }, { default: e.withCtx(() => [e.createElementVNode("div", { ref_key: "componentRef", ref: a, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
|
|
11
|
-
};
|
|
12
|
-
} });
|
|
13
|
-
module.exports = n;
|
|
1
|
+
"use strict";const e=require("vue"),f=require("../../../../utils/events/event-util.cjs"),s=e.defineComponent({__name:"placeholder-runtime",props:{pageContext:{},configure:{}},setup(l){const t=l,n=t.configure.runtime?t.configure.runtime:{},a=n.style,i=n.class,r=e.ref(null),o=e.ref(null);return e.onMounted(()=>{e.nextTick(()=>{f.handleAfterInitEvent(null,t.pageContext,t.configure,{formItemRef:r.value,componentRef:o.value,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})}),(c,m)=>{const u=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(u,{ref_key:"formItemRef",ref:r,class:e.normalizeClass(e.unref(i)),style:e.normalizeStyle(e.unref(a))},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"componentRef",ref:o,style:{width:"100%",height:"100%"}}," ",512)]),_:1},8,["class","style"])}}});module.exports=s;
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/page-helper-util.cjs"), l = require("../../../../utils/page-init-util.cjs"), n = require("../../../../utils/events/event-util.cjs"), o = require("../../../../utils/i18n-util.cjs"), a = require("../../../../utils/common-util.cjs"), u = e.defineComponent({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(u2, { expose: r }) {
|
|
3
|
-
const i = u2, s = e.ref(null), c = i.pageContext.entity ? i.pageContext.entity : {};
|
|
4
|
-
let f = l.getFormModelFields(i.pageContext, i.configure);
|
|
5
|
-
const p = e.computed({ get() {
|
|
6
|
-
let e2 = t.getVariableValue(c, f);
|
|
7
|
-
return null != e2 && (e2 += ""), e2;
|
|
8
|
-
}, set(e2) {
|
|
9
|
-
t.setVariableValue(c, f, e2), null != e2 && (s.value = "");
|
|
10
|
-
} }), g = i.configure.runtime ? i.configure.runtime : {}, d = g.style, v = g.class, m = g.headerStyle, h = g.titleExceedStyle, C = e.ref(g.props ? g.props : {}), y = e.ref(C.value.options ? C.value.options : []), b = t.getOptionDatasFromPage(i.pageContext, i.configure);
|
|
11
|
-
b.length > 0 && (y.value = b);
|
|
12
|
-
const x = i.configure.props && i.configure.props.dataOrigin ? i.configure.props.dataOrigin : {}, k = x.optionValueSetType;
|
|
13
|
-
let V = [];
|
|
14
|
-
if (("dynamicData" == k || "dataTable" == k || "service" == k) && x.autoSets) for (let e2 of x.autoSets) e2.source && V.push(e2);
|
|
15
|
-
i.configure && i.configure.props && i.configure.props.base && i.configure.props.base.optionProp && V.push({ source: "label", target: i.configure.props.base.optionProp }), C.value.changeMethod = function(e2) {
|
|
16
|
-
if (V.length > 0) {
|
|
17
|
-
let l2 = null;
|
|
18
|
-
y.value && null != e2 && null != e2 && (l2 = y.value.filter((t2) => e2 === t2.value)), t.autoSetAfterSelect(i.configure, i.pageContext, V, l2);
|
|
19
|
-
}
|
|
20
|
-
n.handleFormEvent(e2, i.pageContext, i.configure, "change");
|
|
21
|
-
};
|
|
22
|
-
const S = C.value.monitorFields, q = [];
|
|
23
|
-
if (S) {
|
|
24
|
-
const t2 = [];
|
|
25
|
-
for (let e2 of S) if (e2.startsWith("${")) {
|
|
26
|
-
e2 = e2.substring(2, e2.length - 1);
|
|
27
|
-
const l2 = e2.split(".");
|
|
28
|
-
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (q.push(l2), t2.includes(l2[0]) || t2.push(l2[0]));
|
|
29
|
-
}
|
|
30
|
-
for (let l2 of t2) e.watch(c[l2], () => {
|
|
31
|
-
T();
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function _() {
|
|
35
|
-
let e2 = "";
|
|
36
|
-
for (let l2 of q) e2 += "_" + t.getVariableValue(c, l2);
|
|
37
|
-
return e2;
|
|
38
|
-
}
|
|
39
|
-
let w = _(), B = false;
|
|
40
|
-
const R = C.value.optionconfigInfo ? C.value.optionconfigInfo : {};
|
|
41
|
-
function T() {
|
|
42
|
-
B && clearTimeout(B), B = setTimeout(function() {
|
|
43
|
-
const e2 = _();
|
|
44
|
-
e2 != w && (w = e2, t.queryOptionDatasources(i.pageContext, R, void 0).then((e3) => {
|
|
45
|
-
}));
|
|
46
|
-
}, 200);
|
|
47
|
-
}
|
|
48
|
-
e.onUnmounted(() => {
|
|
49
|
-
B && clearTimeout(B);
|
|
50
|
-
});
|
|
51
|
-
const E = e.ref(null), F = e.ref(null), j = e.ref(null);
|
|
52
|
-
return e.onMounted(() => {
|
|
53
|
-
e.nextTick(() => {
|
|
54
|
-
const e2 = p.value;
|
|
55
|
-
n.handleAfterInitEvent(e2, i.pageContext, i.configure, { formItemRef: E.value, componentRef: F.value, titleRef: j.value, value: e2, entity: i.pageContext.entity.data, pageData: i.pageContext.entity.page });
|
|
56
|
-
});
|
|
57
|
-
}), r({ updateOptions: function(e2) {
|
|
58
|
-
y.value = e2 || [];
|
|
59
|
-
}, addRequiredClass: function() {
|
|
60
|
-
s.value = a.addRequiredClassUtil();
|
|
61
|
-
}, getSelectItemsTitle: function() {
|
|
62
|
-
let e2 = t.getVariableValue(c, f);
|
|
63
|
-
if (null == e2) return "";
|
|
64
|
-
if (e2 = String(e2), null != e2 && "" !== e2 && e2.length > 0) {
|
|
65
|
-
let t2 = "";
|
|
66
|
-
return y.value.length > 0 ? (y.value.forEach((l2) => {
|
|
67
|
-
l2.value === e2 && (t2 = t2 + l2.label + ",");
|
|
68
|
-
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e2.join(","), t2;
|
|
69
|
-
}
|
|
70
|
-
} }), (t2, l2) => {
|
|
71
|
-
const a2 = e.resolveComponent("el-radio"), u3 = e.resolveComponent("el-radio-group"), r2 = e.resolveComponent("el-form-item");
|
|
72
|
-
return e.openBlock(), e.createBlock(r2, { ref_key: "formItemRef", ref: E, required: C.value.required, class: e.normalizeClass(e.unref(v) + (s.value ? " " + s.value : "")), "label-width": C.value.labelWidth, style: e.normalizeStyle(e.unref(d)) }, { label: e.withCtx(() => [C.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, ref_key: "titleRef", ref: j, style: e.normalizeStyle({ ...e.unref(m), ...e.unref(h) }) }, e.toDisplayString(e.unref(o.$t)(C.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createVNode(u3, { ref_key: "componentRef", ref: F, disabled: "disabled" === C.value.state, size: C.value.size, onChange: C.value.changeMethod, modelValue: p.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e2) => p.value = e2) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(y.value, (l3) => (e.openBlock(), e.createBlock(a2, { key: l3.value, label: l3.value, onClick: (o2) => e.unref(n.handleFormEvent)(l3.value, t2.pageContext, t2.configure, "click", { values: p.value }) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(l3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
73
|
-
};
|
|
74
|
-
} });
|
|
75
|
-
module.exports = u;
|
|
1
|
+
"use strict";const e=require("vue"),u=require("../../../../utils/page-helper-util.cjs"),M=require("../../../../utils/page-init-util.cjs"),C=require("../../../../utils/events/event-util.cjs"),N=require("../../../../utils/i18n-util.cjs"),P=require("../../../../utils/common-util.cjs"),U=e.defineComponent({__name:"radio-runtime",props:{pageContext:{},configure:{}},setup(w,{expose:B}){const l=w,p=e.ref(null),c=l.pageContext.entity?l.pageContext.entity:{};let v=M.getFormModelFields(l.pageContext,l.configure);const g=e.computed({get(){let t=u.getVariableValue(c,v);return t!=null&&(t+=""),t},set(t){u.setVariableValue(c,v,t),t!=null&&(p.value="")}}),i=l.configure.runtime?l.configure.runtime:{},R=i.style,T=i.class,E=i.headerStyle,F=i.titleExceedStyle,n=e.ref(i.props?i.props:{}),r=e.ref(n.value.options?n.value.options:[]),y=u.getOptionDatasFromPage(l.pageContext,l.configure);y.length>0&&(r.value=y);const m=l.configure.props&&l.configure.props.dataOrigin?l.configure.props.dataOrigin:{},h=m.optionValueSetType;let d=[];if((h=="dynamicData"||h=="dataTable"||h=="service")&&m.autoSets)for(let t of m.autoSets)t.source&&d.push(t);l.configure&&l.configure.props&&l.configure.props.base&&l.configure.props.base.optionProp&&d.push({source:"label",target:l.configure.props.base.optionProp}),n.value.changeMethod=function(t){if(d.length>0){let o=null;r.value&&t!=null&&t!=null&&(o=r.value.filter(a=>t===a.value)),u.autoSetAfterSelect(l.configure,l.pageContext,d,o)}C.handleFormEvent(t,l.pageContext,l.configure,"change")};const b=n.value.monitorFields,x=[];if(b){const t=[];for(let o of b)if(o.startsWith("${")){o=o.substring(2,o.length-1);const a=o.split(".");a[0]!=="page"&&a[0]!=="task"&&a[0]!=="data"||(x.push(a),t.includes(a[0])||t.push(a[0]))}for(let o of t)e.watch(c[o],()=>{D()})}function k(){let t="";for(let o of x)t+="_"+u.getVariableValue(c,o);return t}let V=k(),f=!1;const z=n.value.optionconfigInfo?n.value.optionconfigInfo:{};function D(){f&&clearTimeout(f),f=setTimeout(function(){const t=k();t!=V&&(V=t,u.queryOptionDatasources(l.pageContext,z,void 0).then(o=>{}))},200)}e.onUnmounted(()=>{f&&clearTimeout(f)});const S=e.ref(null),q=e.ref(null),_=e.ref(null);return e.onMounted(()=>{e.nextTick(()=>{const t=g.value;C.handleAfterInitEvent(t,l.pageContext,l.configure,{formItemRef:S.value,componentRef:q.value,titleRef:_.value,value:t,entity:l.pageContext.entity.data,pageData:l.pageContext.entity.page})})}),B({updateOptions:function(t){r.value=t||[]},addRequiredClass:function(){p.value=P.addRequiredClassUtil()},getSelectItemsTitle:function(){let t=u.getVariableValue(c,v);if(t==null)return"";if(t=String(t),t!=null&&t!==""&&t.length>0){let o="";return r.value.length>0?(r.value.forEach(a=>{a.value===t&&(o=o+a.label+",")}),o=o.slice(0,o.length-1)):o=t.join(","),o}}}),(t,o)=>{const a=e.resolveComponent("el-radio"),I=e.resolveComponent("el-radio-group"),O=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(O,{ref_key:"formItemRef",ref:S,required:n.value.required,class:e.normalizeClass(e.unref(T)+(p.value?" "+p.value:"")),"label-width":n.value.labelWidth,style:e.normalizeStyle(e.unref(R))},{label:e.withCtx(()=>[n.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:_,style:e.normalizeStyle({...e.unref(E),...e.unref(F)})},e.toDisplayString(e.unref(N.$t)(n.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(I,{ref_key:"componentRef",ref:q,disabled:n.value.state==="disabled",size:n.value.size,onChange:n.value.changeMethod,modelValue:g.value,"onUpdate:modelValue":o[0]||(o[0]=s=>g.value=s)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,s=>(e.openBlock(),e.createBlock(a,{key:s.value,label:s.value,onClick:j=>e.unref(C.handleFormEvent)(s.value,t.pageContext,t.configure,"click",{values:g.value})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label),1)]),_:2},1032,["label","onClick"]))),128))]),_:1},8,["disabled","size","onChange","modelValue"])]),_:1},8,["required","class","label-width","style"])}}});module.exports=U;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./richtext-runtime.vue2.cjs");
|
|
3
|
-
,/* empty css */ ;/* empty css */
|
|
4
|
-
const r = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e, [["__scopeId", "data-v-34d362f9"]]);
|
|
5
|
-
module.exports = r;
|
|
1
|
+
"use strict";const e=require("./richtext-runtime.vue2.cjs");,/* empty css */;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-34d362f9"]]);module.exports=r;
|
package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs
CHANGED
|
@@ -1,188 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../utils/page-init-util.cjs"), n = require("../../../../utils/page-helper-util.cjs"), l = require("../../../../utils/events/event-util.cjs"), o = require("agilebuilder-ui"), r = require("../../../../utils/i18n-util.cjs"), a = require("../../../../utils/common-util.cjs"), i = require("quill");
|
|
3
|
-
require("quill/dist/quill.snow.css");
|
|
4
|
-
const u = require("element-plus"), c = { class: "toolbar-right-btns" }, s = ["title"], d = { class: "richtext-statusbar" }, p = { class: "word-count" }, f = { key: 0, class: "upload-loading" }, m = ["innerHTML"], v = e.defineComponent({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(v2, { expose: g }) {
|
|
5
|
-
const h = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], b = i.import("attributors/style/size");
|
|
6
|
-
b.whitelist = h, i.register(b, true);
|
|
7
|
-
const x = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], C = i.import("attributors/style/font");
|
|
8
|
-
C.whitelist = x, i.register(C, true);
|
|
9
|
-
const y = v2, k = e.ref(""), w = y.pageContext.entity ? y.pageContext.entity : {}, q = t.getFormModelFields(y.pageContext, y.configure), E = y.configure.runtime ? y.configure.runtime : {}, V = E.style, N = E.class, S = E.headerStyle, T = E.titleExceedStyle, B = e.ref(E.props ? E.props : {});
|
|
10
|
-
let A = n.getSizeConfig(y.pageContext, y.configure);
|
|
11
|
-
A && A.fixHeight && (V.height || (V.height = A.fixHeight + "px"));
|
|
12
|
-
let L = B.value.value;
|
|
13
|
-
const M = n.formatVariableValue(y.pageContext, L), H = e.ref(null);
|
|
14
|
-
let z = null;
|
|
15
|
-
const R = e.ref(false), F = e.ref(0), U = e.ref(false), _ = e.ref(false), $ = e.ref("");
|
|
16
|
-
let j = null, D = B.value.state;
|
|
17
|
-
function W(e2) {
|
|
18
|
-
return "readonly" == e2 || "disabled" == e2;
|
|
19
|
-
}
|
|
20
|
-
const I = W(D), P = e.ref({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: h }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: x }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: I ? "" : B.value.placeholder, readOnly: I });
|
|
21
|
-
function G() {
|
|
22
|
-
if (!(z == null ? void 0 : z.container)) return;
|
|
23
|
-
const e2 = z.container.parentNode;
|
|
24
|
-
if (!e2) return;
|
|
25
|
-
const t2 = e2.getBoundingClientRect(), n2 = z.container.getBoundingClientRect();
|
|
26
|
-
let l2 = t2.height - (n2.top - t2.top);
|
|
27
|
-
z.container.style.height = Math.max(l2, 100) + "px";
|
|
28
|
-
}
|
|
29
|
-
e.watch(B.value, () => {
|
|
30
|
-
const e2 = B.value.state;
|
|
31
|
-
if (null != e2 && e2 !== D) {
|
|
32
|
-
D = e2;
|
|
33
|
-
const t2 = W(D);
|
|
34
|
-
z && (z.enable(!t2), z.root.dataset.placeholder = t2 ? "" : B.value.placeholder);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
const K = e.ref([]), O = e.ref(false), Y = e.ref(null), J = e.ref(null), Q = e.ref(null);
|
|
38
|
-
let X = null;
|
|
39
|
-
function Z(e2) {
|
|
40
|
-
const t2 = e2.match(/serverPath=([^&"]+)/);
|
|
41
|
-
return t2 ? t2[1] : "";
|
|
42
|
-
}
|
|
43
|
-
function ee(t2) {
|
|
44
|
-
if (!z) return;
|
|
45
|
-
const n2 = function(e2) {
|
|
46
|
-
let t3 = e2.replace(/<img data-uuid="(.*?)"/g, (e3, t4) => {
|
|
47
|
-
const n3 = Z(t4), l3 = y.pageContext.backendUrl;
|
|
48
|
-
return `<img src="${a.getBaseUrl(l3, y.pageContext.isTest)}/common/fs-upload/download?serverPath=${n3}&isShowWatermark=false" data-uuid="${n3}"`;
|
|
49
|
-
});
|
|
50
|
-
return t3 = t3.replace(/\t/g, " "), t3 = t3.replace(/ {2}/g, " "), t3;
|
|
51
|
-
}(t2), l2 = z.clipboard.convertHTML(n2);
|
|
52
|
-
z.setContents(l2.ops), e.nextTick(() => {
|
|
53
|
-
if (!z) return;
|
|
54
|
-
z.root.querySelectorAll("img").forEach((e2) => {
|
|
55
|
-
if (!e2.getAttribute("data-uuid")) {
|
|
56
|
-
const t3 = Z(e2.src);
|
|
57
|
-
e2.setAttribute("data-uuid", t3);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
const te = { bold: "加粗", italic: "斜体", underline: "下划线", strike: "删除线", blockquote: "引用", "code-block": "代码块", 'list[value="ordered"]': "有序列表", 'list[value="bullet"]': "无序列表", 'script[value="sub"]': "下标", 'script[value="super"]': "上标", 'indent[value="-1"]': "减少缩进", 'indent[value="+1"]': "增加缩进", 'direction[value="rtl"]': "文字方向", size: "字体大小", header: "标题", color: "字体颜色", background: "背景颜色", font: "字体", align: "对齐方式", clean: "清除格式", link: "链接", image: "图片" };
|
|
63
|
-
function ne() {
|
|
64
|
-
R.value = !R.value, e.nextTick(() => {
|
|
65
|
-
G();
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function le() {
|
|
69
|
-
z && ($.value = z.root.innerHTML, _.value = true);
|
|
70
|
-
}
|
|
71
|
-
function oe() {
|
|
72
|
-
if (!z) return void (F.value = 0);
|
|
73
|
-
const e2 = z.getText().trim();
|
|
74
|
-
F.value = e2.length;
|
|
75
|
-
}
|
|
76
|
-
function re() {
|
|
77
|
-
u.ElMessage.error({ message: "图片上传失败,请重试", duration: 3e3 });
|
|
78
|
-
}
|
|
79
|
-
function ae(e2) {
|
|
80
|
-
"Escape" === e2.key && R.value && (R.value = false);
|
|
81
|
-
}
|
|
82
|
-
function ie(e2) {
|
|
83
|
-
var _a;
|
|
84
|
-
z && (null !== e2.relatedTarget && ((_a = H.value) == null ? void 0 : _a.contains(e2.relatedTarget)) || l.handleFormEvent(z.root.innerHTML, y.pageContext, y.configure, "change", { entity: w }));
|
|
85
|
-
}
|
|
86
|
-
function ue(e2) {
|
|
87
|
-
if ("img" === e2.target.localName) {
|
|
88
|
-
K.value = [];
|
|
89
|
-
let t2 = e2.target.src;
|
|
90
|
-
K.value.push(t2), O.value = true;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
function ce(e2) {
|
|
94
|
-
const t2 = new FormData();
|
|
95
|
-
t2.append("file", e2);
|
|
96
|
-
const n2 = y.pageContext.backendUrl, l2 = a.getBaseUrl(n2, y.pageContext.isTest);
|
|
97
|
-
return o.http.post(l2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
98
|
-
}
|
|
99
|
-
function se(e2, t2) {
|
|
100
|
-
const n2 = e2.split(","), l2 = n2[0].match(/:(.*?);/), o2 = l2 ? l2[1] : "image/png", r2 = atob(n2[1]);
|
|
101
|
-
let a2 = r2.length;
|
|
102
|
-
const i2 = new Uint8Array(a2);
|
|
103
|
-
for (; a2--; ) i2[a2] = r2.charCodeAt(a2);
|
|
104
|
-
return new File([i2], t2, { type: o2 });
|
|
105
|
-
}
|
|
106
|
-
return e.onMounted(() => {
|
|
107
|
-
var _a;
|
|
108
|
-
H.value && (z = new i(H.value, P.value), z.root.style.fontSize = "16px", function() {
|
|
109
|
-
var _a2, _b;
|
|
110
|
-
const e2 = (_b = (_a2 = H.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
|
|
111
|
-
if (!e2) return;
|
|
112
|
-
e2.querySelectorAll("button").forEach((e3) => {
|
|
113
|
-
const t2 = e3.className.match(/ql-([\w-]+)/);
|
|
114
|
-
if (t2) {
|
|
115
|
-
const n2 = t2[1], l2 = `${n2}[value="${e3.value}"]`;
|
|
116
|
-
te[l2] ? e3.setAttribute("data-tooltip", te[l2]) : te[n2] && e3.setAttribute("data-tooltip", te[n2]);
|
|
117
|
-
}
|
|
118
|
-
}), e2.querySelectorAll(".ql-picker").forEach((e3) => {
|
|
119
|
-
const t2 = e3.className.match(/ql-(\w+)/);
|
|
120
|
-
if (t2) {
|
|
121
|
-
const n2 = t2[1];
|
|
122
|
-
if (te[n2]) {
|
|
123
|
-
const t3 = e3.querySelector(".ql-picker-label");
|
|
124
|
-
t3 && t3.setAttribute("data-tooltip", te[n2]);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}(), function() {
|
|
129
|
-
var _a2, _b;
|
|
130
|
-
const e2 = (_b = (_a2 = H.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
|
|
131
|
-
e2 && e2.addEventListener("mousedown", (e3) => {
|
|
132
|
-
e3.preventDefault();
|
|
133
|
-
});
|
|
134
|
-
}(), ee(M), (_a = H.value) == null ? void 0 : _a.addEventListener("focusout", ie), z.on("text-change", async function(e2) {
|
|
135
|
-
if (!z) return;
|
|
136
|
-
const t2 = z.root.getElementsByTagName("img");
|
|
137
|
-
for (const e3 of t2) if (!e3.getAttribute("data-uuid")) {
|
|
138
|
-
const t3 = Z(e3.src);
|
|
139
|
-
e3.setAttribute("data-uuid", t3);
|
|
140
|
-
}
|
|
141
|
-
if (e2.ops && e2.ops.length > 0) for (const t3 of e2.ops) {
|
|
142
|
-
const e3 = t3.insert;
|
|
143
|
-
if (e3 == null ? void 0 : e3.image) {
|
|
144
|
-
const t4 = e3.image;
|
|
145
|
-
if (!t4.startsWith("data:image")) continue;
|
|
146
|
-
try {
|
|
147
|
-
U.value = true;
|
|
148
|
-
const e4 = se(t4, "image.png"), n2 = await ce(e4);
|
|
149
|
-
if (!z) return;
|
|
150
|
-
const l2 = z.root.getElementsByTagName("img");
|
|
151
|
-
for (const e5 of l2) e5.src === t4 && (e5.width = 300, e5.src = n2.url, e5.setAttribute("data-uuid", n2.uuid));
|
|
152
|
-
} catch (e4) {
|
|
153
|
-
console.error("上传图片失败", e4), re();
|
|
154
|
-
} finally {
|
|
155
|
-
U.value = false;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
!function() {
|
|
160
|
-
j && clearTimeout(j);
|
|
161
|
-
j = setTimeout(() => {
|
|
162
|
-
if (!z) return;
|
|
163
|
-
const e3 = z.root.innerHTML;
|
|
164
|
-
n.setVariableValue(w, q, e3), e3 && (k.value = "");
|
|
165
|
-
}, 300);
|
|
166
|
-
}(), oe();
|
|
167
|
-
}), oe(), X = z.container, X.addEventListener("click", ue), G(), e.nextTick(() => {
|
|
168
|
-
const e2 = n.getVariableValue(w, q);
|
|
169
|
-
l.handleAfterInitEvent(e2, y.pageContext, y.configure, { formItemRef: Y.value, componentRef: J.value, titleRef: Q.value, value: e2, entity: y.pageContext.entity.data, pageData: y.pageContext.entity.page });
|
|
170
|
-
}));
|
|
171
|
-
}), e.onMounted(() => {
|
|
172
|
-
document.addEventListener("keydown", ae);
|
|
173
|
-
}), e.onBeforeUnmount(() => {
|
|
174
|
-
document.removeEventListener("keydown", ae), j && clearTimeout(j), H.value && H.value.removeEventListener("focusout", ie), X && X.removeEventListener("click", ue);
|
|
175
|
-
}), g({ addRequiredClass: function() {
|
|
176
|
-
k.value = a.addRequiredClassUtil();
|
|
177
|
-
}, setContent: function(e2) {
|
|
178
|
-
ee(e2), oe();
|
|
179
|
-
}, getContent: function() {
|
|
180
|
-
return z ? z.root.innerHTML : "";
|
|
181
|
-
} }), (t2, n2) => {
|
|
182
|
-
const l2 = e.resolveComponent("View"), o2 = e.resolveComponent("el-icon"), a2 = e.resolveComponent("FullScreen"), i2 = e.resolveComponent("Close"), u2 = e.resolveComponent("el-form-item"), v3 = e.resolveComponent("el-image-viewer"), g2 = e.resolveComponent("el-dialog");
|
|
183
|
-
return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createVNode(u2, { required: B.value.required, class: e.normalizeClass(e.unref(N) + (k.value ? " " + k.value : "")), "label-width": B.value.labelWidth, style: e.normalizeStyle(e.unref(V)) }, { label: e.withCtx(() => [B.value.tittleShow ? (e.openBlock(), e.createElementBlock("div", { key: 0, style: e.normalizeStyle({ ...e.unref(S), ...e.unref(T) }) }, e.toDisplayString(e.unref(r.$t)(B.value.title)), 5)) : e.createCommentVNode("", true)]), default: e.withCtx(() => [e.createElementVNode("div", { class: e.normalizeClass(["richtext-wrapper", { "is-fullscreen": R.value }]) }, [e.createElementVNode("div", { ref_key: "quillEditorRef", ref: H, style: { width: "100%" } }, null, 512), e.createElementVNode("div", c, [e.createElementVNode("button", { class: "toolbar-btn", onClick: le, title: "预览" }, [e.createVNode(o2, null, { default: e.withCtx(() => [e.createVNode(l2)]), _: 1 })]), e.createElementVNode("button", { class: "toolbar-btn", onClick: ne, title: R.value ? "退出全屏" : "全屏编辑" }, [R.value ? (e.openBlock(), e.createBlock(o2, { key: 1 }, { default: e.withCtx(() => [e.createVNode(i2)]), _: 1 })) : (e.openBlock(), e.createBlock(o2, { key: 0 }, { default: e.withCtx(() => [e.createVNode(a2)]), _: 1 }))], 8, s)]), e.createElementVNode("div", d, [e.createElementVNode("span", p, "字数:" + e.toDisplayString(F.value), 1)]), U.value ? (e.openBlock(), e.createElementBlock("div", f, n2[2] || (n2[2] = [e.createElementVNode("div", { class: "loading-spinner" }, null, -1), e.createElementVNode("span", null, "图片上传中...", -1)]))) : e.createCommentVNode("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), O.value ? (e.openBlock(), e.createBlock(v3, { key: 0, "hide-on-click-modal": "", onClose: n2[0] || (n2[0] = () => {
|
|
184
|
-
O.value = false;
|
|
185
|
-
}), "url-list": K.value }, null, 8, ["url-list"])) : e.createCommentVNode("", true), e.createVNode(g2, { modelValue: _.value, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => _.value = e2), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: e.withCtx(() => [e.createElementVNode("div", { class: "richtext-preview-content ql-editor", innerHTML: $.value }, null, 8, m)]), _: 1 }, 8, ["modelValue"])], 64);
|
|
186
|
-
};
|
|
187
|
-
} });
|
|
188
|
-
module.exports = v;
|
|
1
|
+
"use strict";const e=require("vue"),de=require("../../../../utils/page-init-util.cjs"),w=require("../../../../utils/page-helper-util.cjs"),Y=require("../../../../utils/events/event-util.cjs"),fe=require("agilebuilder-ui"),pe=require("../../../../utils/i18n-util.cjs"),H=require("../../../../utils/common-util.cjs"),x=require("quill"),me=require("element-plus"),ve={class:"toolbar-right-btns"},ge=["title"],he={class:"richtext-statusbar"},be={class:"word-count"},xe={key:0,class:"upload-loading"},Ce=["innerHTML"],ye=e.defineComponent({__name:"richtext-runtime",props:{pageContext:{},configure:{}},setup(j,{expose:J}){const R=["12px","14px","16px","18px","20px","24px","28px","32px","36px","48px"],F=x.import("attributors/style/size");F.whitelist=R,x.register(F,!0);const U=[!1,"Source Han Sans CN","SimSun","SimHei","Microsoft YaHei","KaiTi","FangSong","Arial","Times New Roman","Verdana","Georgia","Courier New"],_=x.import("attributors/style/font");_.whitelist=U,x.register(_,!0);const a=j,C=e.ref(""),E=a.pageContext.entity?a.pageContext.entity:{},z=de.getFormModelFields(a.pageContext,a.configure),m=a.configure.runtime?a.configure.runtime:{},q=m.style,Q=m.class,X=m.headerStyle,Z=m.titleExceedStyle,d=e.ref(m.props?m.props:{});let V=w.getSizeConfig(a.pageContext,a.configure);V&&V.fixHeight&&(q.height||(q.height=V.fixHeight+"px"));let ee=d.value.value;const te=w.formatVariableValue(a.pageContext,ee),f=e.ref(null);let o=null;const p=e.ref(!1),N=e.ref(0),S=e.ref(!1),T=e.ref(!1),$=e.ref("");let h=null,y=d.value.state;function D(n){return n=="readonly"||n=="disabled"}const W=D(y),ne=e.ref({modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:R}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:U}],[{align:[]}],["clean"],["link","image"]]},theme:"snow",placeholder:W?"":d.value.placeholder,readOnly:W});function I(){if(!(o!=null&&o.container))return;const n=o.container.parentNode;if(!n)return;const t=n.getBoundingClientRect(),u=o.container.getBoundingClientRect();let l=t.height-(u.top-t.top);o.container.style.height=Math.max(l,100)+"px"}e.watch(d.value,()=>{const n=d.value.state;if(n!=null&&n!==y){y=n;const t=D(y);o&&(o.enable(!t),o.root.dataset.placeholder=t?"":d.value.placeholder)}});const B=e.ref([]),A=e.ref(!1),oe=e.ref(null),le=e.ref(null),re=e.ref(null);let k=null;function L(n){const t=n.match(/serverPath=([^&"]+)/);return t?t[1]:""}function P(n){if(!o)return;const t=function(l){let r=l.replace(/<img data-uuid="(.*?)"/g,(s,i)=>{const c=L(i),b=a.pageContext.backendUrl;return`<img src="${H.getBaseUrl(b,a.pageContext.isTest)}/common/fs-upload/download?serverPath=${c}&isShowWatermark=false" data-uuid="${c}"`});return r=r.replace(/\t/g," "),r=r.replace(/ {2}/g," "),r}(n),u=o.clipboard.convertHTML(t);o.setContents(u.ops),e.nextTick(()=>{o&&o.root.querySelectorAll("img").forEach(l=>{if(!l.getAttribute("data-uuid")){const r=L(l.src);l.setAttribute("data-uuid",r)}})})}const v={bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",blockquote:"引用","code-block":"代码块",'list[value="ordered"]':"有序列表",'list[value="bullet"]':"无序列表",'script[value="sub"]':"下标",'script[value="super"]':"上标",'indent[value="-1"]':"减少缩进",'indent[value="+1"]':"增加缩进",'direction[value="rtl"]':"文字方向",size:"字体大小",header:"标题",color:"字体颜色",background:"背景颜色",font:"字体",align:"对齐方式",clean:"清除格式",link:"链接",image:"图片"};function ae(){p.value=!p.value,e.nextTick(()=>{I()})}function ie(){o&&($.value=o.root.innerHTML,T.value=!0)}function M(){if(!o)return void(N.value=0);const n=o.getText().trim();N.value=n.length}function ue(){me.ElMessage.error({message:"图片上传失败,请重试",duration:3e3})}function G(n){n.key==="Escape"&&p.value&&(p.value=!1)}function K(n){var t;o&&(n.relatedTarget!==null&&((t=f.value)!=null&&t.contains(n.relatedTarget))||Y.handleFormEvent(o.root.innerHTML,a.pageContext,a.configure,"change",{entity:E}))}function O(n){if(n.target.localName==="img"){B.value=[];let t=n.target.src;B.value.push(t),A.value=!0}}function ce(n){const t=new FormData;t.append("file",n);const u=a.pageContext.backendUrl,l=H.getBaseUrl(u,a.pageContext.isTest);return fe.http.post(l+"/common/fs-upload/rich-editor-image",t,{headers:{"Content-Type":"multipart/form-data"}})}function se(n,t){const u=n.split(","),l=u[0].match(/:(.*?);/),r=l?l[1]:"image/png",s=atob(u[1]);let i=s.length;const c=new Uint8Array(i);for(;i--;)c[i]=s.charCodeAt(i);return new File([c],t,{type:r})}return e.onMounted(()=>{var n;f.value&&(o=new x(f.value,ne.value),o.root.style.fontSize="16px",function(){var u,l;const t=(l=(u=f.value)==null?void 0:u.parentElement)==null?void 0:l.querySelector(".ql-toolbar");t&&(t.querySelectorAll("button").forEach(r=>{const s=r.className.match(/ql-([\w-]+)/);if(s){const i=s[1],c=`${i}[value="${r.value}"]`;v[c]?r.setAttribute("data-tooltip",v[c]):v[i]&&r.setAttribute("data-tooltip",v[i])}}),t.querySelectorAll(".ql-picker").forEach(r=>{const s=r.className.match(/ql-(\w+)/);if(s){const i=s[1];if(v[i]){const c=r.querySelector(".ql-picker-label");c&&c.setAttribute("data-tooltip",v[i])}}}))}(),function(){var u,l;const t=(l=(u=f.value)==null?void 0:u.parentElement)==null?void 0:l.querySelector(".ql-toolbar");t&&t.addEventListener("mousedown",r=>{r.preventDefault()})}(),P(te),(n=f.value)==null||n.addEventListener("focusout",K),o.on("text-change",async function(t){if(!o)return;const u=o.root.getElementsByTagName("img");for(const l of u)if(!l.getAttribute("data-uuid")){const r=L(l.src);l.setAttribute("data-uuid",r)}if(t.ops&&t.ops.length>0)for(const l of t.ops){const r=l.insert;if(r!=null&&r.image){const s=r.image;if(!s.startsWith("data:image"))continue;try{S.value=!0;const i=se(s,"image.png"),c=await ce(i);if(!o)return;const b=o.root.getElementsByTagName("img");for(const g of b)g.src===s&&(g.width=300,g.src=c.url,g.setAttribute("data-uuid",c.uuid))}catch(i){console.error("上传图片失败",i),ue()}finally{S.value=!1}}}(function(){h&&clearTimeout(h),h=setTimeout(()=>{if(!o)return;const l=o.root.innerHTML;w.setVariableValue(E,z,l),l&&(C.value="")},300)})(),M()}),M(),k=o.container,k.addEventListener("click",O),I(),e.nextTick(()=>{const t=w.getVariableValue(E,z);Y.handleAfterInitEvent(t,a.pageContext,a.configure,{formItemRef:oe.value,componentRef:le.value,titleRef:re.value,value:t,entity:a.pageContext.entity.data,pageData:a.pageContext.entity.page})}))}),e.onMounted(()=>{document.addEventListener("keydown",G)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",G),h&&clearTimeout(h),f.value&&f.value.removeEventListener("focusout",K),k&&k.removeEventListener("click",O)}),J({addRequiredClass:function(){C.value=H.addRequiredClassUtil()},setContent:function(n){P(n),M()},getContent:function(){return o?o.root.innerHTML:""}}),(n,t)=>{const u=e.resolveComponent("View"),l=e.resolveComponent("el-icon"),r=e.resolveComponent("FullScreen"),s=e.resolveComponent("Close"),i=e.resolveComponent("el-form-item"),c=e.resolveComponent("el-image-viewer"),b=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{required:d.value.required,class:e.normalizeClass(e.unref(Q)+(C.value?" "+C.value:"")),"label-width":d.value.labelWidth,style:e.normalizeStyle(e.unref(q))},{label:e.withCtx(()=>[d.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({...e.unref(X),...e.unref(Z)})},e.toDisplayString(e.unref(pe.$t)(d.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["richtext-wrapper",{"is-fullscreen":p.value}])},[e.createElementVNode("div",{ref_key:"quillEditorRef",ref:f,style:{width:"100%"}},null,512),e.createElementVNode("div",ve,[e.createElementVNode("button",{class:"toolbar-btn",onClick:ie,title:"预览"},[e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("button",{class:"toolbar-btn",onClick:ae,title:p.value?"退出全屏":"全屏编辑"},[p.value?(e.openBlock(),e.createBlock(l,{key:1},{default:e.withCtx(()=>[e.createVNode(s)]),_:1})):(e.openBlock(),e.createBlock(l,{key:0},{default:e.withCtx(()=>[e.createVNode(r)]),_:1}))],8,ge)]),e.createElementVNode("div",he,[e.createElementVNode("span",be,"字数:"+e.toDisplayString(N.value),1)]),S.value?(e.openBlock(),e.createElementBlock("div",xe,t[2]||(t[2]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("span",null,"图片上传中...",-1)]))):e.createCommentVNode("",!0)],2)]),_:1},8,["required","class","label-width","style"]),A.value?(e.openBlock(),e.createBlock(c,{key:0,"hide-on-click-modal":"",onClose:t[0]||(t[0]=()=>{A.value=!1}),"url-list":B.value},null,8,["url-list"])):e.createCommentVNode("",!0),e.createVNode(b,{modelValue:T.value,"onUpdate:modelValue":t[1]||(t[1]=g=>T.value=g),title:"内容预览",width:"80%","close-on-click-modal":!0,"append-to-body":!0,class:"richtext-preview-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"richtext-preview-content ql-editor",innerHTML:$.value},null,8,Ce)]),_:1},8,["modelValue"])],64)}}});module.exports=ye;
|