super-page-runtime 2.3.17 → 2.3.18-tmp2
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/components/runtime/utils/page-init-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +84 -65
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.d.ts +11 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +136 -128
- package/dist/es/style.css +76 -76
- package/dist/lib/_virtual/AttributeMap.js +4 -0
- package/dist/lib/_virtual/Barcode.js +4 -0
- package/dist/lib/_virtual/CODE128.js +4 -0
- package/dist/lib/_virtual/CODE128A.js +4 -0
- package/dist/lib/_virtual/CODE128B.js +4 -0
- package/dist/lib/_virtual/CODE128C.js +4 -0
- package/dist/lib/_virtual/CODE128_AUTO.js +4 -0
- package/dist/lib/_virtual/CODE93.js +4 -0
- package/dist/lib/_virtual/CODE93FullASCII.js +4 -0
- package/dist/lib/_virtual/Delta.js +4 -0
- package/dist/lib/_virtual/EAN.js +4 -0
- package/dist/lib/_virtual/EAN13.js +4 -0
- package/dist/lib/_virtual/EAN2.js +4 -0
- package/dist/lib/_virtual/EAN5.js +4 -0
- package/dist/lib/_virtual/EAN8.js +4 -0
- package/dist/lib/_virtual/ErrorHandler.js +4 -0
- package/dist/lib/_virtual/ITF.js +4 -0
- package/dist/lib/_virtual/ITF14.js +4 -0
- package/dist/lib/_virtual/JsBarcode.js +6 -0
- package/dist/lib/_virtual/MSI.js +4 -0
- package/dist/lib/_virtual/MSI10.js +4 -0
- package/dist/lib/_virtual/MSI1010.js +4 -0
- package/dist/lib/_virtual/MSI11.js +4 -0
- package/dist/lib/_virtual/MSI1110.js +4 -0
- package/dist/lib/_virtual/Op.js +4 -0
- package/dist/lib/_virtual/OpIterator.js +4 -0
- package/dist/lib/_virtual/OverloadYield.js +4 -0
- package/dist/lib/_virtual/SVGPathData.js +4 -0
- package/dist/lib/_virtual/SVGPathData2.js +5 -0
- package/dist/lib/_virtual/UPC.js +4 -0
- package/dist/lib/_virtual/UPCE.js +4 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +33 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/_virtual/alignment-pattern.js +4 -0
- package/dist/lib/_virtual/arrayLikeToArray.js +4 -0
- package/dist/lib/_virtual/arrayWithHoles.js +4 -0
- package/dist/lib/_virtual/arrayWithoutHoles.js +4 -0
- package/dist/lib/_virtual/assertThisInitialized.js +4 -0
- package/dist/lib/_virtual/asyncToGenerator.js +4 -0
- package/dist/lib/_virtual/asyncToGenerator2.js +6 -0
- package/dist/lib/_virtual/auto.js +4 -0
- package/dist/lib/_virtual/backo2.js +4 -0
- package/dist/lib/_virtual/base64-arraybuffer.js +4 -0
- package/dist/lib/_virtual/binary.js +4 -0
- package/dist/lib/_virtual/browser.js +4 -0
- package/dist/lib/_virtual/browser2.js +4 -0
- package/dist/lib/_virtual/canvas.js +4 -0
- package/dist/lib/_virtual/canvas2.js +4 -0
- package/dist/lib/_virtual/checksums.js +4 -0
- package/dist/lib/_virtual/classCallCheck.js +4 -0
- package/dist/lib/_virtual/clipboard.js +4 -0
- package/dist/lib/_virtual/commons.js +4 -0
- package/dist/lib/_virtual/constants.js +4 -0
- package/dist/lib/_virtual/constants2.js +4 -0
- package/dist/lib/_virtual/constants3.js +4 -0
- package/dist/lib/_virtual/constants4.js +4 -0
- package/dist/lib/_virtual/createClass.js +4 -0
- package/dist/lib/_virtual/dayjs.min.js +4 -0
- package/dist/lib/_virtual/decodePacket.browser.js +4 -0
- package/dist/lib/_virtual/defaults.js +4 -0
- package/dist/lib/_virtual/defineProperty.js +4 -0
- package/dist/lib/_virtual/defineProperty2.js +6 -0
- package/dist/lib/_virtual/dijkstra.js +4 -0
- package/dist/lib/_virtual/encodePacket.browser.js +4 -0
- package/dist/lib/_virtual/encoder.js +4 -0
- package/dist/lib/_virtual/error-correction-code.js +4 -0
- package/dist/lib/_virtual/error-correction-level.js +4 -0
- package/dist/lib/_virtual/es.array.concat.js +4 -0
- package/dist/lib/_virtual/es.array.every.js +4 -0
- package/dist/lib/_virtual/es.array.fill.js +4 -0
- package/dist/lib/_virtual/es.array.for-each.js +4 -0
- package/dist/lib/_virtual/es.array.from.js +4 -0
- package/dist/lib/_virtual/es.array.includes.js +4 -0
- package/dist/lib/_virtual/es.array.index-of.js +4 -0
- package/dist/lib/_virtual/es.array.index-of2.js +3 -0
- package/dist/lib/_virtual/es.array.iterator.js +3 -0
- package/dist/lib/_virtual/es.array.join.js +4 -0
- package/dist/lib/_virtual/es.array.map.js +4 -0
- package/dist/lib/_virtual/es.array.reduce.js +4 -0
- package/dist/lib/_virtual/es.array.reduce2.js +3 -0
- package/dist/lib/_virtual/es.array.reverse.js +4 -0
- package/dist/lib/_virtual/es.array.reverse2.js +3 -0
- package/dist/lib/_virtual/es.array.some.js +4 -0
- package/dist/lib/_virtual/es.function.name.js +4 -0
- package/dist/lib/_virtual/es.map.constructor.js +4 -0
- package/dist/lib/_virtual/es.map.js +4 -0
- package/dist/lib/_virtual/es.number.constructor.js +4 -0
- package/dist/lib/_virtual/es.object.to-string.js +4 -0
- package/dist/lib/_virtual/es.parse-float.js +4 -0
- package/dist/lib/_virtual/es.promise.all.js +4 -0
- package/dist/lib/_virtual/es.promise.catch.js +4 -0
- package/dist/lib/_virtual/es.promise.constructor.js +4 -0
- package/dist/lib/_virtual/es.promise.js +4 -0
- package/dist/lib/_virtual/es.promise.race.js +4 -0
- package/dist/lib/_virtual/es.promise.reject.js +4 -0
- package/dist/lib/_virtual/es.promise.resolve.js +4 -0
- package/dist/lib/_virtual/es.promise2.js +3 -0
- package/dist/lib/_virtual/es.reflect.apply.js +4 -0
- package/dist/lib/_virtual/es.reflect.delete-property.js +4 -0
- package/dist/lib/_virtual/es.reflect.get-prototype-of.js +4 -0
- package/dist/lib/_virtual/es.regexp.exec.js +4 -0
- package/dist/lib/_virtual/es.regexp.to-string.js +4 -0
- package/dist/lib/_virtual/es.regexp.to-string2.js +3 -0
- package/dist/lib/_virtual/es.string.ends-with.js +4 -0
- package/dist/lib/_virtual/es.string.ends-with2.js +3 -0
- package/dist/lib/_virtual/es.string.includes.js +4 -0
- package/dist/lib/_virtual/es.string.includes2.js +3 -0
- package/dist/lib/_virtual/es.string.iterator.js +4 -0
- package/dist/lib/_virtual/es.string.match.js +4 -0
- package/dist/lib/_virtual/es.string.match2.js +3 -0
- package/dist/lib/_virtual/es.string.replace.js +4 -0
- package/dist/lib/_virtual/es.string.replace2.js +3 -0
- package/dist/lib/_virtual/es.string.split.js +4 -0
- package/dist/lib/_virtual/es.string.split2.js +3 -0
- package/dist/lib/_virtual/es.string.starts-with.js +4 -0
- package/dist/lib/_virtual/es.string.starts-with2.js +3 -0
- package/dist/lib/_virtual/es.string.trim.js +4 -0
- package/dist/lib/_virtual/es.string.trim2.js +3 -0
- package/dist/lib/_virtual/exceptions.js +4 -0
- package/dist/lib/_virtual/finder-pattern.js +4 -0
- package/dist/lib/_virtual/fixOptions.js +4 -0
- package/dist/lib/_virtual/format-info.js +4 -0
- package/dist/lib/_virtual/galois-field.js +4 -0
- package/dist/lib/_virtual/get.js +4 -0
- package/dist/lib/_virtual/getOptionsFromElement.js +4 -0
- package/dist/lib/_virtual/getPrototypeOf.js +4 -0
- package/dist/lib/_virtual/getRenderProperties.js +4 -0
- package/dist/lib/_virtual/globals.js +4 -0
- package/dist/lib/_virtual/has-cors.js +4 -0
- package/dist/lib/_virtual/html2canvas.js +4 -0
- package/dist/lib/_virtual/index.js +4 -0
- package/dist/lib/_virtual/index10.js +4 -0
- package/dist/lib/_virtual/index11.js +4 -0
- package/dist/lib/_virtual/index12.js +4 -0
- package/dist/lib/_virtual/index13.js +4 -0
- package/dist/lib/_virtual/index14.js +4 -0
- package/dist/lib/_virtual/index15.js +4 -0
- package/dist/lib/_virtual/index16.js +4 -0
- package/dist/lib/_virtual/index17.js +4 -0
- package/dist/lib/_virtual/index18.js +4 -0
- package/dist/lib/_virtual/index19.js +4 -0
- package/dist/lib/_virtual/index2.js +4 -0
- package/dist/lib/_virtual/index20.js +4 -0
- package/dist/lib/_virtual/index21.js +4 -0
- package/dist/lib/_virtual/index22.js +4 -0
- package/dist/lib/_virtual/index23.js +4 -0
- package/dist/lib/_virtual/index24.js +4 -0
- package/dist/lib/_virtual/index3.js +4 -0
- package/dist/lib/_virtual/index4.js +5 -0
- package/dist/lib/_virtual/index5.js +4 -0
- package/dist/lib/_virtual/index6.js +4 -0
- package/dist/lib/_virtual/index7.js +4 -0
- package/dist/lib/_virtual/index8.js +6 -0
- package/dist/lib/_virtual/index9.js +6 -0
- package/dist/lib/_virtual/inherits.js +4 -0
- package/dist/lib/_virtual/internal-metadata.js +4 -0
- package/dist/lib/_virtual/is-binary.js +4 -0
- package/dist/lib/_virtual/iterableToArray.js +4 -0
- package/dist/lib/_virtual/iterableToArrayLimit.js +4 -0
- package/dist/lib/_virtual/jquery.js +4 -0
- package/dist/lib/_virtual/jspdf.es.min.js +5 -0
- package/dist/lib/_virtual/linearizeEncodings.js +4 -0
- package/dist/lib/_virtual/make-built-in.js +4 -0
- package/dist/lib/_virtual/manager.js +4 -0
- package/dist/lib/_virtual/mask-pattern.js +4 -0
- package/dist/lib/_virtual/merge.js +4 -0
- package/dist/lib/_virtual/mode.js +4 -0
- package/dist/lib/_virtual/new-promise-capability.js +4 -0
- package/dist/lib/_virtual/nonIterableRest.js +4 -0
- package/dist/lib/_virtual/nonIterableSpread.js +4 -0
- package/dist/lib/_virtual/object-define-properties.js +4 -0
- package/dist/lib/_virtual/object-define-property.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-descriptor.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-names-external.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-names.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-symbols.js +4 -0
- package/dist/lib/_virtual/object-property-is-enumerable.js +4 -0
- package/dist/lib/_virtual/object.js +4 -0
- package/dist/lib/_virtual/on.js +4 -0
- package/dist/lib/_virtual/optionsFromStrings.js +4 -0
- package/dist/lib/_virtual/parseqs.js +4 -0
- package/dist/lib/_virtual/parseuri.js +4 -0
- package/dist/lib/_virtual/performance-now.js +4 -0
- package/dist/lib/_virtual/polling-fetch.js +4 -0
- package/dist/lib/_virtual/polling-xhr.js +4 -0
- package/dist/lib/_virtual/polling.js +4 -0
- package/dist/lib/_virtual/polynomial.js +4 -0
- package/dist/lib/_virtual/possibleConstructorReturn.js +4 -0
- package/dist/lib/_virtual/qrcode.js +4 -0
- package/dist/lib/_virtual/regenerator.js +4 -0
- package/dist/lib/_virtual/regeneratorAsync.js +4 -0
- package/dist/lib/_virtual/regeneratorAsyncGen.js +4 -0
- package/dist/lib/_virtual/regeneratorAsyncIterator.js +4 -0
- package/dist/lib/_virtual/regeneratorDefine.js +4 -0
- package/dist/lib/_virtual/regeneratorKeys.js +4 -0
- package/dist/lib/_virtual/regeneratorRuntime.js +4 -0
- package/dist/lib/_virtual/regeneratorValues.js +4 -0
- package/dist/lib/_virtual/regex.js +4 -0
- package/dist/lib/_virtual/segments.js +4 -0
- package/dist/lib/_virtual/setPrototypeOf.js +4 -0
- package/dist/lib/_virtual/shared-store.js +4 -0
- package/dist/lib/_virtual/shared.js +4 -0
- package/dist/lib/_virtual/slicedToArray.js +4 -0
- package/dist/lib/_virtual/socket.js +4 -0
- package/dist/lib/_virtual/socket2.js +4 -0
- package/dist/lib/_virtual/stackblur-es.js +5 -0
- package/dist/lib/_virtual/superPropBase.js +4 -0
- package/dist/lib/_virtual/svg-tag.js +4 -0
- package/dist/lib/_virtual/svg.js +4 -0
- package/dist/lib/_virtual/toConsumableArray.js +4 -0
- package/dist/lib/_virtual/toPrimitive.js +4 -0
- package/dist/lib/_virtual/toPropertyKey.js +4 -0
- package/dist/lib/_virtual/transport.js +4 -0
- package/dist/lib/_virtual/typeof.js +4 -0
- package/dist/lib/_virtual/unsupportedIterableToArray.js +4 -0
- package/dist/lib/_virtual/url.js +4 -0
- package/dist/lib/_virtual/util.js +4 -0
- package/dist/lib/_virtual/utils.js +4 -0
- package/dist/lib/_virtual/utils2.js +4 -0
- package/dist/lib/_virtual/version-check.js +4 -0
- package/dist/lib/_virtual/version.js +4 -0
- package/dist/lib/_virtual/vue-plugin-hiprint.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.for-each.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.iterator.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.iterator2.js +3 -0
- package/dist/lib/_virtual/websocket.js +4 -0
- package/dist/lib/_virtual/webtransport.js +4 -0
- package/dist/lib/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme1.js +7 -0
- package/dist/lib/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme2.js +7 -0
- package/dist/lib/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme3.js +7 -0
- package/dist/lib/assets/file.png.js +3 -0
- package/dist/lib/assets/folder.png.js +3 -0
- package/dist/lib/components/runtime/index.d.ts +5 -0
- package/dist/lib/components/runtime/utils/ai-chat-util.js +38 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +9 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +494 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +384 -0
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/lib/components/runtime/utils/barcode-util.js +36 -0
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +327 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +77 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +162 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +130 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +106 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +113 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +550 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +33 -0
- package/dist/lib/components/runtime/utils/common-util.js +219 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +9 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +92 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +752 -0
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +174 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +96 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +2837 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +25 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +730 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +96 -0
- package/dist/lib/components/runtime/utils/form/scan-util.js +194 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +65 -0
- package/dist/lib/components/runtime/utils/global-refs.js +88 -0
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/i18n-util.js +23 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +247 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +174 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +767 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +48 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +502 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +717 -0
- package/dist/lib/components/runtime/utils/page-store.d.ts +46 -0
- package/dist/lib/components/runtime/utils/page-store.js +71 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store-util.js +17 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.d.ts +34 -0
- package/dist/lib/components/runtime/utils/table-utils.js +126 -0
- package/dist/lib/components/runtime/utils/tree-utils.js +121 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +118 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +55 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +135 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +19 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +110 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +213 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +61 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +208 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +179 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +171 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +122 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +132 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +786 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.js +169 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +631 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +163 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +90 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +76 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +114 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +181 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +122 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +106 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +85 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +89 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +99 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +224 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +82 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +69 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +40 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +272 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +144 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +184 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +943 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +718 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +187 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +531 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +163 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +101 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +212 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +290 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +176 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +61 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +225 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +116 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +310 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +176 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +109 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +52 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +208 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +287 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +364 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +168 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +132 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +116 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +169 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +265 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +209 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +47 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +50 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +64 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +58 -0
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/lib/components/runtime/views/home-chart.vue.js +168 -0
- package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +40 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +154 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +4 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +126 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +6 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +856 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +78 -0
- package/dist/lib/i18n/langs/en.js +78 -0
- package/dist/lib/index.d.ts +16 -0
- package/dist/lib/index.js +30 -0
- package/dist/lib/style.css +1169 -0
- package/package.json +2 -2
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
+
require("../../../../../../node_modules/.pnpm/quill@2.0.3/node_modules/quill/quill.js");
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
8
|
+
const request = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/src/utils/request.js");
|
|
9
|
+
const i18nUtil = require("../../../../utils/i18n-util.js");
|
|
10
|
+
const commonUtil = require("../../../../utils/common-util.js");
|
|
11
|
+
require("../../../../../../node_modules/.pnpm/quill@2.0.3/node_modules/quill/core.js");
|
|
12
|
+
const quill = require("../../../../../../node_modules/.pnpm/quill@2.0.3/node_modules/quill/core/quill.js");
|
|
13
|
+
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
15
|
+
__name: "richtext-runtime",
|
|
16
|
+
props: {
|
|
17
|
+
pageContext: {},
|
|
18
|
+
configure: {}
|
|
19
|
+
},
|
|
20
|
+
setup(__props, { expose: __expose }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const requiredClass = Vue.ref(null);
|
|
23
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
24
|
+
const dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
25
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
26
|
+
const runtimeStyle = runtimeInfo.style;
|
|
27
|
+
const runtimeClass = runtimeInfo.class;
|
|
28
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
29
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
30
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
31
|
+
let sizeConfig = pageHelperUtil.getSizeConfig(props.pageContext, props.configure);
|
|
32
|
+
if (sizeConfig && sizeConfig.fixHeight) {
|
|
33
|
+
if (!runtimeStyle.height) {
|
|
34
|
+
runtimeStyle.height = sizeConfig.fixHeight + "px";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
let contentVariable = designProperty.value.value;
|
|
38
|
+
const initValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
39
|
+
const quillEditorRef = Vue.ref(null);
|
|
40
|
+
let quill$1 = null;
|
|
41
|
+
Vue.ref(null);
|
|
42
|
+
let hisState = designProperty.value.state;
|
|
43
|
+
function checkReadonly(state) {
|
|
44
|
+
return state == "readonly" || state == "disabled";
|
|
45
|
+
}
|
|
46
|
+
const initReadonly = checkReadonly(hisState);
|
|
47
|
+
const option = Vue.ref({
|
|
48
|
+
modules: {
|
|
49
|
+
toolbar: [
|
|
50
|
+
["bold", "italic", "underline", "strike"],
|
|
51
|
+
// 加粗 斜体 下划线 删除线
|
|
52
|
+
["blockquote", "code-block"],
|
|
53
|
+
// 引用
|
|
54
|
+
[{ list: "ordered" }, { list: "bullet" }],
|
|
55
|
+
// 有序、无序列表
|
|
56
|
+
[{ script: "sub" }, { script: "super" }],
|
|
57
|
+
// 上标/下标
|
|
58
|
+
[{ indent: "-1" }, { indent: "+1" }],
|
|
59
|
+
// 缩进
|
|
60
|
+
[{ direction: "rtl" }],
|
|
61
|
+
// 文本方向
|
|
62
|
+
[{ size: ["small", false, "large", "huge"] }],
|
|
63
|
+
// 字体大小
|
|
64
|
+
[{ header: [1, 2, 3, 4, 5, 6, false] }],
|
|
65
|
+
// 标题
|
|
66
|
+
[{ color: [] }, { background: [] }],
|
|
67
|
+
// 字体颜色、字体背景颜色
|
|
68
|
+
[{ font: [] }],
|
|
69
|
+
// 字体种类
|
|
70
|
+
[{ align: [] }],
|
|
71
|
+
// 对齐方式
|
|
72
|
+
["clean"],
|
|
73
|
+
// 清除文本格式
|
|
74
|
+
["link", "image"]
|
|
75
|
+
// 链接、图片、视频
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
theme: "snow",
|
|
79
|
+
placeholder: initReadonly ? "" : designProperty.value.placeholder,
|
|
80
|
+
readOnly: initReadonly
|
|
81
|
+
});
|
|
82
|
+
Vue.watch(designProperty.value, () => {
|
|
83
|
+
const newState = designProperty.value.state;
|
|
84
|
+
if (newState != void 0 && newState !== hisState) {
|
|
85
|
+
hisState = newState;
|
|
86
|
+
const isReadonly = checkReadonly(hisState);
|
|
87
|
+
if (quill$1) {
|
|
88
|
+
quill$1.enable(!isReadonly);
|
|
89
|
+
quill$1.root.dataset.placeholder = isReadonly ? "" : designProperty.value.placeholder;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
function updateEditorHeight() {
|
|
94
|
+
if (quill$1 && quill$1.container) {
|
|
95
|
+
const parentNode = quill$1.container.parentNode;
|
|
96
|
+
const parentRect = parentNode.getBoundingClientRect();
|
|
97
|
+
const thisRect = quill$1.container.getBoundingClientRect();
|
|
98
|
+
let newHeight = parentRect.height - (thisRect.top - parentRect.top);
|
|
99
|
+
if (newHeight < 100) {
|
|
100
|
+
newHeight = 100;
|
|
101
|
+
}
|
|
102
|
+
quill$1.container.style.height = newHeight + "px";
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const previewList = Vue.ref([]);
|
|
106
|
+
const showViewer = Vue.ref(false);
|
|
107
|
+
const formItemRef = Vue.ref(null);
|
|
108
|
+
const componentRef = Vue.ref(null);
|
|
109
|
+
const titleRef = Vue.ref(null);
|
|
110
|
+
let editorContainer;
|
|
111
|
+
function extractUuidFromSrc(src) {
|
|
112
|
+
const match = src.match(/serverPath=([^&"]+)/);
|
|
113
|
+
return match ? match[1] : "";
|
|
114
|
+
}
|
|
115
|
+
Vue.onMounted(() => {
|
|
116
|
+
var _a;
|
|
117
|
+
quill$1 = new quill.default(quillEditorRef.value, option.value);
|
|
118
|
+
quill$1.root.style.fontSize = "16px";
|
|
119
|
+
let content = initValue;
|
|
120
|
+
content = content.replace(/<img data-uuid="(.*?)"/g, (match, src) => {
|
|
121
|
+
const uuid = extractUuidFromSrc(src);
|
|
122
|
+
const backendUrl = props.pageContext.backendUrl;
|
|
123
|
+
const baseUrl = commonUtil.getBaseUrl(backendUrl, props.pageContext.isTest);
|
|
124
|
+
return `<img src="${baseUrl}/common/fs-upload/download?serverPath=${uuid}&isShowWatermark=false" data-uuid="${uuid}"`;
|
|
125
|
+
});
|
|
126
|
+
const delta = quill$1.clipboard.convertHTML(content);
|
|
127
|
+
quill$1.setContents(delta.ops);
|
|
128
|
+
Vue.nextTick(() => {
|
|
129
|
+
const images = quill$1.root.querySelectorAll("img");
|
|
130
|
+
images.forEach((img) => {
|
|
131
|
+
if (!img.getAttribute("data-uuid")) {
|
|
132
|
+
const uuid = extractUuidFromSrc(img.src);
|
|
133
|
+
img.setAttribute("data-uuid", uuid);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
(_a = quillEditorRef.value) == null ? void 0 : _a.addEventListener("focusout", handleFocusOut);
|
|
138
|
+
quill$1.on("text-change", async function(delta2, oldDelta, source) {
|
|
139
|
+
const images = quill$1.root.getElementsByTagName("img");
|
|
140
|
+
for (let img of images) {
|
|
141
|
+
if (!img.getAttribute("data-uuid")) {
|
|
142
|
+
const uuid = extractUuidFromSrc(img.src);
|
|
143
|
+
img.setAttribute("data-uuid", uuid);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if (delta2.ops && delta2.ops.length > 0) {
|
|
147
|
+
for (let i = 0; i < delta2.ops.length; i++) {
|
|
148
|
+
const ops = delta2.ops[i];
|
|
149
|
+
if (ops.insert && ops.insert.image) {
|
|
150
|
+
const dataurl = ops.insert.image;
|
|
151
|
+
if (!dataurl.startsWith("data:image")) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const file = dataURLtoFile(dataurl, "image.png");
|
|
155
|
+
await uploadImage(file).then((res) => {
|
|
156
|
+
if (!quill$1) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const images2 = quill$1.root.getElementsByTagName("img");
|
|
160
|
+
if (images2 && images2.length > 0) {
|
|
161
|
+
for (let i2 = 0; i2 < images2.length; i2++) {
|
|
162
|
+
const img = images2[i2];
|
|
163
|
+
if (img.src === dataurl) {
|
|
164
|
+
img.width = 300;
|
|
165
|
+
img.src = res.url;
|
|
166
|
+
img.setAttribute("data-uuid", res.uuid);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}).catch((err) => {
|
|
171
|
+
console.error(err, "上传图片失败");
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const htmlVal = quill$1.root.innerHTML;
|
|
177
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, htmlVal);
|
|
178
|
+
if (htmlVal !== void 0 && htmlVal !== null && htmlVal !== "") {
|
|
179
|
+
requiredClass.value = "";
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
editorContainer = quill$1.container;
|
|
183
|
+
editorContainer.addEventListener("click", handleClick);
|
|
184
|
+
updateEditorHeight();
|
|
185
|
+
Vue.nextTick(() => {
|
|
186
|
+
const value = pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
187
|
+
eventUtil.handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
188
|
+
formItemRef: formItemRef.value,
|
|
189
|
+
componentRef: componentRef.value,
|
|
190
|
+
titleRef: titleRef.value,
|
|
191
|
+
value,
|
|
192
|
+
entity: props.pageContext.entity.data,
|
|
193
|
+
pageData: props.pageContext.entity.page
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
Vue.onBeforeUnmount(() => {
|
|
198
|
+
if (quillEditorRef.value) {
|
|
199
|
+
quillEditorRef.value.removeEventListener("focusout", handleFocusOut);
|
|
200
|
+
}
|
|
201
|
+
if (editorContainer) {
|
|
202
|
+
editorContainer.removeEventListener("click", handleClick);
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
function handleFocusOut(event) {
|
|
206
|
+
var _a;
|
|
207
|
+
if (event.relatedTarget === null || !((_a = quillEditorRef.value) == null ? void 0 : _a.contains(event.relatedTarget))) {
|
|
208
|
+
eventUtil.handleFormEvent(quill$1.root.innerHTML, props.pageContext, props.configure, "change", {
|
|
209
|
+
entity
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function handleClick(event) {
|
|
214
|
+
if (event.target.localName === "img") {
|
|
215
|
+
previewList.value = [];
|
|
216
|
+
let imgSrc = event.target.src;
|
|
217
|
+
previewList.value.push(imgSrc);
|
|
218
|
+
showViewer.value = true;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function uploadImage(blob) {
|
|
222
|
+
const params = new FormData();
|
|
223
|
+
params.append("file", blob);
|
|
224
|
+
const config = {
|
|
225
|
+
headers: {
|
|
226
|
+
"Content-Type": "multipart/form-data"
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const backendUrl = props.pageContext.backendUrl;
|
|
230
|
+
const baseUrl = commonUtil.getBaseUrl(backendUrl, props.pageContext.isTest);
|
|
231
|
+
return request.post(baseUrl + "/common/fs-upload/rich-editor-image", params, config);
|
|
232
|
+
}
|
|
233
|
+
function dataURLtoFile(dataurl, filename) {
|
|
234
|
+
let arr = dataurl.split(",");
|
|
235
|
+
let mime = arr[0].match(/:(.*?);/)[1];
|
|
236
|
+
let bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);
|
|
237
|
+
while (n--) {
|
|
238
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
239
|
+
}
|
|
240
|
+
return new File([u8arr], filename, { type: mime });
|
|
241
|
+
}
|
|
242
|
+
function addRequiredClass() {
|
|
243
|
+
requiredClass.value = commonUtil.addRequiredClassUtil();
|
|
244
|
+
}
|
|
245
|
+
__expose({
|
|
246
|
+
addRequiredClass
|
|
247
|
+
});
|
|
248
|
+
return (_ctx, _cache) => {
|
|
249
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
250
|
+
const _component_el_image_viewer = Vue.resolveComponent("el-image-viewer");
|
|
251
|
+
return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, [
|
|
252
|
+
Vue.createVNode(_component_el_form_item, {
|
|
253
|
+
required: designProperty.value.required,
|
|
254
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass) + (requiredClass.value ? " " + requiredClass.value : "")),
|
|
255
|
+
"label-width": designProperty.value.labelWidth,
|
|
256
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
257
|
+
}, {
|
|
258
|
+
label: Vue.withCtx(() => [
|
|
259
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
260
|
+
key: 0,
|
|
261
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle), ...Vue.unref(titleExceedStyle) })
|
|
262
|
+
}, Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.title)), 5)) : Vue.createCommentVNode("", true)
|
|
263
|
+
]),
|
|
264
|
+
default: Vue.withCtx(() => [
|
|
265
|
+
Vue.createElementVNode("div", _hoisted_1, [
|
|
266
|
+
Vue.createElementVNode("div", {
|
|
267
|
+
ref_key: "quillEditorRef",
|
|
268
|
+
ref: quillEditorRef,
|
|
269
|
+
style: { "width": "100%" }
|
|
270
|
+
}, null, 512)
|
|
271
|
+
])
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 8, ["required", "class", "label-width", "style"]),
|
|
275
|
+
showViewer.value ? (Vue.openBlock(), Vue.createBlock(_component_el_image_viewer, {
|
|
276
|
+
key: 0,
|
|
277
|
+
"hide-on-click-modal": "",
|
|
278
|
+
onClose: _cache[0] || (_cache[0] = () => {
|
|
279
|
+
showViewer.value = false;
|
|
280
|
+
}),
|
|
281
|
+
"url-list": previewList.value
|
|
282
|
+
}, null, 8, ["url-list"])) : Vue.createCommentVNode("", true)
|
|
283
|
+
], 64);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
5
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
6
|
+
const titleSuffixElement_vue_vue_type_script_setup_true_lang = require("../common/title-suffix-element.vue.js");
|
|
7
|
+
const i18nUtil = require("../../../../utils/i18n-util.js");
|
|
8
|
+
const commonUtil = require("../../../../utils/common-util.js");
|
|
9
|
+
const index$1 = require("../../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.18_typescript@5.4.5_/node_modules/@element-plus/icons-vue/dist/index.js");
|
|
10
|
+
const clipboard = require("../../../../../../node_modules/.pnpm/clipboard@2.0.11/node_modules/clipboard/dist/clipboard.js");
|
|
11
|
+
const vueI18n = require("../../../../../../node_modules/.pnpm/vue-i18n@9.14.5_vue@3.5.18_typescript@5.4.5_/node_modules/vue-i18n/dist/vue-i18n.js");
|
|
12
|
+
const index = require("../../../../../../node_modules/.pnpm/element-plus@2.10.5_vue@3.5.18_typescript@5.4.5_/node_modules/element-plus/es/components/message/index.js");
|
|
13
|
+
const _hoisted_1 = { style: { "padding-left": "5px" } };
|
|
14
|
+
const _hoisted_2 = { style: { "float": "left" } };
|
|
15
|
+
const _hoisted_3 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
17
|
+
__name: "select-runtime",
|
|
18
|
+
props: {
|
|
19
|
+
pageContext: {},
|
|
20
|
+
configure: {}
|
|
21
|
+
},
|
|
22
|
+
setup(__props, { expose: __expose }) {
|
|
23
|
+
const { t } = vueI18n.useI18n();
|
|
24
|
+
const props = __props;
|
|
25
|
+
const requiredClass = Vue.ref(null);
|
|
26
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
27
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
28
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
29
|
+
const runtimeStyle = runtimeInfo.style;
|
|
30
|
+
const runtimeClass = runtimeInfo.class;
|
|
31
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
32
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
33
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
34
|
+
let beforeChangeValue = [];
|
|
35
|
+
const copyBtnId = "copyBtn_" + props.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
36
|
+
function getRawValue() {
|
|
37
|
+
let val = pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
38
|
+
if (val !== void 0 && val !== null) {
|
|
39
|
+
val = String(val);
|
|
40
|
+
}
|
|
41
|
+
if (designProperty.value.multiple) {
|
|
42
|
+
val = val ? String(val).split(",") : [];
|
|
43
|
+
}
|
|
44
|
+
return val;
|
|
45
|
+
}
|
|
46
|
+
const dynamicModelMethod = Vue.computed({
|
|
47
|
+
get() {
|
|
48
|
+
return getRawValue();
|
|
49
|
+
},
|
|
50
|
+
set(value) {
|
|
51
|
+
const prev = getRawValue();
|
|
52
|
+
beforeChangeValue = Array.isArray(prev) ? [...prev] : prev;
|
|
53
|
+
let next = value;
|
|
54
|
+
if (designProperty.value.multiple) {
|
|
55
|
+
const asArray = !!designProperty.value.arrayValue;
|
|
56
|
+
if (asArray) {
|
|
57
|
+
next = Array.isArray(value) ? value : value ? String(value).split(",") : [];
|
|
58
|
+
} else {
|
|
59
|
+
if (Array.isArray(value)) {
|
|
60
|
+
next = value.length > 0 ? value.join(",") : "";
|
|
61
|
+
} else {
|
|
62
|
+
next = value ?? "";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, next);
|
|
67
|
+
if (next !== void 0 && next !== null) {
|
|
68
|
+
requiredClass.value = "";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
const listOptions = Vue.ref(designProperty.value.options ? designProperty.value.options : []);
|
|
73
|
+
const cacheOptions = pageHelperUtil.getOptionDatasFromPage(props.pageContext, props.configure);
|
|
74
|
+
if (cacheOptions.length > 0) {
|
|
75
|
+
listOptions.value = cacheOptions;
|
|
76
|
+
}
|
|
77
|
+
const queryLoadingFlag = Vue.ref(false);
|
|
78
|
+
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
79
|
+
const valueType = dataOrigin.optionValueSetType;
|
|
80
|
+
let autoSets = [];
|
|
81
|
+
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
82
|
+
if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
|
|
83
|
+
if (dataOrigin.filterType == "remote") {
|
|
84
|
+
designProperty.value.filterable = true;
|
|
85
|
+
designProperty.value.remote = true;
|
|
86
|
+
designProperty.value.remoteShowSuffix = true;
|
|
87
|
+
let hisQuery = void 0;
|
|
88
|
+
designProperty.value.remoteMethod = function(query) {
|
|
89
|
+
if (hisQuery === query) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
hisQuery = query;
|
|
93
|
+
queryLoadingFlag.value = true;
|
|
94
|
+
console.log("query", query);
|
|
95
|
+
pageHelperUtil.queryOptionDatasources(props.pageContext, optionconfigInfo, query).then((results) => {
|
|
96
|
+
queryLoadingFlag.value = false;
|
|
97
|
+
}).then((error) => {
|
|
98
|
+
console.log("查询失败!", error);
|
|
99
|
+
queryLoadingFlag.value = false;
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
if (dataOrigin.autoSets) {
|
|
104
|
+
for (let obj of dataOrigin.autoSets) {
|
|
105
|
+
if (obj.source) {
|
|
106
|
+
autoSets.push(obj);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
|
|
112
|
+
autoSets.push({
|
|
113
|
+
source: "label",
|
|
114
|
+
target: props.configure.props.base.optionProp
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
designProperty.value.changeMethod = optionChange;
|
|
118
|
+
const monitorFields = designProperty.value.monitorFields;
|
|
119
|
+
const monitorFieldInfos = [];
|
|
120
|
+
if (monitorFields) {
|
|
121
|
+
const preFields = [];
|
|
122
|
+
for (let propName of monitorFields) {
|
|
123
|
+
if (propName.startsWith("${")) {
|
|
124
|
+
propName = propName.substring(2, propName.length - 1);
|
|
125
|
+
const fields = propName.split(".");
|
|
126
|
+
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
127
|
+
monitorFieldInfos.push(fields);
|
|
128
|
+
if (!preFields.includes(fields[0])) {
|
|
129
|
+
preFields.push(fields[0]);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
for (let preField of preFields) {
|
|
135
|
+
Vue.watch(entity[preField], () => {
|
|
136
|
+
monitorFieldChange();
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function getMonitorFieldValues() {
|
|
141
|
+
let values = [];
|
|
142
|
+
for (let fieldInfo of monitorFieldInfos) {
|
|
143
|
+
values.push(pageHelperUtil.getVariableValue(entity, fieldInfo));
|
|
144
|
+
}
|
|
145
|
+
return values.join(",");
|
|
146
|
+
}
|
|
147
|
+
let initMonitorValue = "";
|
|
148
|
+
let monitorTimeout = false;
|
|
149
|
+
function monitorFieldChange() {
|
|
150
|
+
if (monitorTimeout) {
|
|
151
|
+
clearTimeout(monitorTimeout);
|
|
152
|
+
}
|
|
153
|
+
monitorTimeout = setTimeout(function() {
|
|
154
|
+
const newValue = getMonitorFieldValues();
|
|
155
|
+
if (newValue == initMonitorValue) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
initMonitorValue = newValue;
|
|
159
|
+
optionconfigInfo.watchAttrValue = newValue;
|
|
160
|
+
pageHelperUtil.queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
|
|
161
|
+
console.log("查询失败!", error);
|
|
162
|
+
queryLoadingFlag.value = false;
|
|
163
|
+
});
|
|
164
|
+
}, 200);
|
|
165
|
+
}
|
|
166
|
+
Vue.onUnmounted(() => {
|
|
167
|
+
if (monitorTimeout) {
|
|
168
|
+
clearTimeout(monitorTimeout);
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
function optionChange(value) {
|
|
172
|
+
let selItems = null;
|
|
173
|
+
if (listOptions.value && value != void 0 && value != null) {
|
|
174
|
+
selItems = listOptions.value.filter((item) => {
|
|
175
|
+
return Array.isArray(value) ? value.includes(item.value) : value === item.value;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
if (autoSets.length > 0) {
|
|
179
|
+
pageHelperUtil.autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems, [designProperty.value.prop]);
|
|
180
|
+
}
|
|
181
|
+
let selectItem;
|
|
182
|
+
if (selItems && selItems.length > 0) {
|
|
183
|
+
selectItem = selItems[0];
|
|
184
|
+
}
|
|
185
|
+
let otherParams = {};
|
|
186
|
+
if (selectItem) {
|
|
187
|
+
otherParams.extendParams = selectItem;
|
|
188
|
+
}
|
|
189
|
+
otherParams.options = listOptions.value;
|
|
190
|
+
otherParams.oldValue = beforeChangeValue;
|
|
191
|
+
eventUtil.handleFormEvent(value, props.pageContext, props.configure, "change", otherParams);
|
|
192
|
+
}
|
|
193
|
+
function updateOptions(newOptions) {
|
|
194
|
+
listOptions.value = newOptions ? newOptions : [];
|
|
195
|
+
}
|
|
196
|
+
const formItemRef = Vue.ref(null);
|
|
197
|
+
const componentRef = Vue.ref(null);
|
|
198
|
+
const titleRef = Vue.ref(null);
|
|
199
|
+
Vue.onMounted(() => {
|
|
200
|
+
const clipboard$1 = new clipboard("#" + copyBtnId, {
|
|
201
|
+
text: function() {
|
|
202
|
+
return getSelectItemsTitle();
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
clipboard$1.on("success", () => {
|
|
206
|
+
console.log("复制成功");
|
|
207
|
+
index.ElMessage({
|
|
208
|
+
showClose: true,
|
|
209
|
+
type: "success",
|
|
210
|
+
message: t("superPageRuntimeMessage.copySuccess")
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
clipboard$1.on("error", (e) => {
|
|
214
|
+
console.error("复制失败", e);
|
|
215
|
+
});
|
|
216
|
+
Vue.nextTick(() => {
|
|
217
|
+
const value = dynamicModelMethod.value;
|
|
218
|
+
eventUtil.handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
219
|
+
formItemRef: formItemRef.value,
|
|
220
|
+
componentRef: componentRef.value,
|
|
221
|
+
titleRef: titleRef.value,
|
|
222
|
+
value,
|
|
223
|
+
entity: props.pageContext.entity.data,
|
|
224
|
+
pageData: props.pageContext.entity.page
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
function addRequiredClass() {
|
|
229
|
+
requiredClass.value = commonUtil.addRequiredClassUtil();
|
|
230
|
+
}
|
|
231
|
+
function getSelectItemsTitle() {
|
|
232
|
+
const val = getRawValue();
|
|
233
|
+
if (val !== null && val !== void 0 && val !== "" && val.length > 0) {
|
|
234
|
+
let selectTittle = "";
|
|
235
|
+
if (typeof val === "string") {
|
|
236
|
+
if (listOptions.value.length > 0) {
|
|
237
|
+
listOptions.value.forEach((Ttem) => {
|
|
238
|
+
if (Ttem["value"] === val) {
|
|
239
|
+
selectTittle = Ttem.label;
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
} else {
|
|
243
|
+
selectTittle = val;
|
|
244
|
+
}
|
|
245
|
+
} else {
|
|
246
|
+
if (listOptions.value.length > 0) {
|
|
247
|
+
listOptions.value.forEach((Ttem) => {
|
|
248
|
+
val.forEach((Vtem) => {
|
|
249
|
+
if (Ttem["value"] === Vtem) {
|
|
250
|
+
selectTittle = selectTittle + Ttem.label + ",";
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
selectTittle = selectTittle.slice(0, selectTittle.length - 1);
|
|
255
|
+
} else {
|
|
256
|
+
selectTittle = val.join(",");
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return selectTittle;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
__expose({
|
|
263
|
+
updateOptions,
|
|
264
|
+
addRequiredClass
|
|
265
|
+
});
|
|
266
|
+
return (_ctx, _cache) => {
|
|
267
|
+
const _component_el_icon = Vue.resolveComponent("el-icon");
|
|
268
|
+
const _component_el_option = Vue.resolveComponent("el-option");
|
|
269
|
+
const _component_el_select = Vue.resolveComponent("el-select");
|
|
270
|
+
const _component_el_popover = Vue.resolveComponent("el-popover");
|
|
271
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
272
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
273
|
+
ref_key: "formItemRef",
|
|
274
|
+
ref: formItemRef,
|
|
275
|
+
required: designProperty.value.required ? true : false,
|
|
276
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass) + (requiredClass.value ? " " + requiredClass.value : "")),
|
|
277
|
+
"label-width": designProperty.value.labelWidth,
|
|
278
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
279
|
+
}, {
|
|
280
|
+
label: Vue.withCtx(() => [
|
|
281
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
282
|
+
key: 0,
|
|
283
|
+
ref_key: "titleRef",
|
|
284
|
+
ref: titleRef,
|
|
285
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle), ...Vue.unref(titleExceedStyle) })
|
|
286
|
+
}, [
|
|
287
|
+
designProperty.value.prefixType ? (Vue.openBlock(), Vue.createBlock(titleSuffixElement_vue_vue_type_script_setup_true_lang, {
|
|
288
|
+
key: 0,
|
|
289
|
+
pageContext: _ctx.pageContext,
|
|
290
|
+
property: designProperty.value
|
|
291
|
+
}, null, 8, ["pageContext", "property"])) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
|
|
292
|
+
Vue.createTextVNode(Vue.toDisplayString(Vue.unref(i18nUtil.$t)(designProperty.value.title)), 1)
|
|
293
|
+
], 64))
|
|
294
|
+
], 4)) : Vue.createCommentVNode("", true)
|
|
295
|
+
]),
|
|
296
|
+
default: Vue.withCtx(() => [
|
|
297
|
+
Vue.createVNode(_component_el_popover, {
|
|
298
|
+
placement: "top",
|
|
299
|
+
trigger: "hover"
|
|
300
|
+
}, {
|
|
301
|
+
reference: Vue.withCtx(() => [
|
|
302
|
+
Vue.createVNode(_component_el_select, {
|
|
303
|
+
ref_key: "componentRef",
|
|
304
|
+
ref: componentRef,
|
|
305
|
+
style: { "width": "100%" },
|
|
306
|
+
disabled: designProperty.value.state === "disabled",
|
|
307
|
+
size: designProperty.value.size,
|
|
308
|
+
clearable: designProperty.value.clearable,
|
|
309
|
+
multiple: designProperty.value.multiple,
|
|
310
|
+
"collapse-tags": designProperty.value.collapseTags,
|
|
311
|
+
"collapse-tags-tooltip": designProperty.value.collapseTagsTooltip,
|
|
312
|
+
filterable: designProperty.value.filterable,
|
|
313
|
+
"allow-create": designProperty.value.allowCreate,
|
|
314
|
+
placeholder: designProperty.value.placeholder,
|
|
315
|
+
"remote-show-suffix": designProperty.value.remoteShowSuffix,
|
|
316
|
+
remote: designProperty.value.remote,
|
|
317
|
+
"remote-method": designProperty.value.remoteMethod,
|
|
318
|
+
loading: queryLoadingFlag.value,
|
|
319
|
+
onChange: designProperty.value.changeMethod,
|
|
320
|
+
modelValue: dynamicModelMethod.value,
|
|
321
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
322
|
+
}, {
|
|
323
|
+
default: Vue.withCtx(() => [
|
|
324
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(listOptions.value, (item) => {
|
|
325
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_option, {
|
|
326
|
+
key: item.value,
|
|
327
|
+
label: item.label,
|
|
328
|
+
value: item.value,
|
|
329
|
+
onClick: ($event) => Vue.unref(eventUtil.handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
|
|
330
|
+
values: dynamicModelMethod.value
|
|
331
|
+
})
|
|
332
|
+
}, {
|
|
333
|
+
default: Vue.withCtx(() => [
|
|
334
|
+
item._description_ ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
|
|
335
|
+
Vue.createElementVNode("span", _hoisted_2, Vue.toDisplayString(item.label), 1),
|
|
336
|
+
Vue.createElementVNode("span", _hoisted_3, Vue.toDisplayString(item._description_), 1)
|
|
337
|
+
], 64)) : Vue.createCommentVNode("", true)
|
|
338
|
+
]),
|
|
339
|
+
_: 2
|
|
340
|
+
}, 1032, ["label", "value", "onClick"]);
|
|
341
|
+
}), 128))
|
|
342
|
+
]),
|
|
343
|
+
_: 1
|
|
344
|
+
}, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])
|
|
345
|
+
]),
|
|
346
|
+
default: Vue.withCtx(() => [
|
|
347
|
+
Vue.createElementVNode("span", _hoisted_1, [
|
|
348
|
+
Vue.createVNode(_component_el_icon, { id: copyBtnId }, {
|
|
349
|
+
default: Vue.withCtx(() => [
|
|
350
|
+
Vue.createVNode(Vue.unref(index$1.CopyDocument))
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
})
|
|
354
|
+
])
|
|
355
|
+
]),
|
|
356
|
+
_: 1
|
|
357
|
+
})
|
|
358
|
+
]),
|
|
359
|
+
_: 1
|
|
360
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
module.exports = _sfc_main;
|