super-page-runtime 3.0.4 → 3.0.5-beta1
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/Barcode.js +4 -0
- package/dist/es/_virtual/CODE128.js +4 -0
- package/dist/es/_virtual/CODE128A.js +4 -0
- package/dist/es/_virtual/CODE128B.js +4 -0
- package/dist/es/_virtual/CODE128C.js +4 -0
- package/dist/es/_virtual/CODE128_AUTO.js +4 -0
- package/dist/es/_virtual/EAN.js +4 -0
- package/dist/es/_virtual/EAN13.js +4 -0
- package/dist/es/_virtual/EAN2.js +4 -0
- package/dist/es/_virtual/EAN5.js +4 -0
- package/dist/es/_virtual/EAN8.js +4 -0
- package/dist/es/_virtual/ErrorHandler.js +4 -0
- package/dist/es/_virtual/ITF.js +4 -0
- package/dist/es/_virtual/ITF14.js +4 -0
- package/dist/es/_virtual/JsBarcode.js +7 -0
- package/dist/es/_virtual/MSI.js +4 -0
- package/dist/es/_virtual/MSI10.js +4 -0
- package/dist/es/_virtual/MSI1010.js +4 -0
- package/dist/es/_virtual/MSI11.js +4 -0
- package/dist/es/_virtual/MSI1110.js +4 -0
- package/dist/es/_virtual/SVGPathData.js +4 -0
- package/dist/es/_virtual/SVGPathData2.js +5 -0
- package/dist/es/_virtual/UPC.js +4 -0
- package/dist/es/_virtual/UPCE.js +4 -0
- package/dist/es/_virtual/_commonjsHelpers.js +27 -0
- package/dist/es/_virtual/alignment-pattern.js +4 -0
- package/dist/es/_virtual/arrayLikeToArray.js +4 -0
- package/dist/es/_virtual/arrayWithHoles.js +4 -0
- package/dist/es/_virtual/arrayWithoutHoles.js +4 -0
- package/dist/es/_virtual/assertThisInitialized.js +4 -0
- package/dist/es/_virtual/asyncToGenerator.js +4 -0
- package/dist/es/_virtual/asyncToGenerator2.js +7 -0
- package/dist/es/_virtual/auto.js +4 -0
- package/dist/es/_virtual/backo2.js +4 -0
- package/dist/es/_virtual/base64-arraybuffer.js +4 -0
- package/dist/es/_virtual/binary.js +4 -0
- package/dist/es/_virtual/browser.js +4 -0
- package/dist/es/_virtual/browser2.js +4 -0
- package/dist/es/_virtual/canvas.js +4 -0
- package/dist/es/_virtual/canvas2.js +4 -0
- package/dist/es/_virtual/checksums.js +4 -0
- package/dist/es/_virtual/classCallCheck.js +4 -0
- package/dist/es/_virtual/commons.js +4 -0
- package/dist/es/_virtual/constants.js +4 -0
- package/dist/es/_virtual/constants2.js +4 -0
- package/dist/es/_virtual/constants3.js +4 -0
- package/dist/es/_virtual/createClass.js +4 -0
- package/dist/es/_virtual/decodePacket.browser.js +4 -0
- package/dist/es/_virtual/defaults.js +4 -0
- package/dist/es/_virtual/defineProperty.js +4 -0
- package/dist/es/_virtual/defineProperty2.js +7 -0
- package/dist/es/_virtual/dijkstra.js +4 -0
- package/dist/es/_virtual/encodePacket.browser.js +4 -0
- package/dist/es/_virtual/encoder.js +4 -0
- package/dist/es/_virtual/error-correction-code.js +4 -0
- package/dist/es/_virtual/error-correction-level.js +4 -0
- package/dist/es/_virtual/es.array.concat.js +4 -0
- package/dist/es/_virtual/es.array.every.js +4 -0
- package/dist/es/_virtual/es.array.fill.js +4 -0
- package/dist/es/_virtual/es.array.for-each.js +4 -0
- package/dist/es/_virtual/es.array.from.js +4 -0
- package/dist/es/_virtual/es.array.includes.js +4 -0
- package/dist/es/_virtual/es.array.index-of.js +4 -0
- package/dist/es/_virtual/es.array.index-of2.js +2 -0
- package/dist/es/_virtual/es.array.iterator.js +2 -0
- package/dist/es/_virtual/es.array.join.js +4 -0
- package/dist/es/_virtual/es.array.map.js +4 -0
- package/dist/es/_virtual/es.array.reduce.js +4 -0
- package/dist/es/_virtual/es.array.reduce2.js +2 -0
- package/dist/es/_virtual/es.array.reverse.js +4 -0
- package/dist/es/_virtual/es.array.reverse2.js +2 -0
- package/dist/es/_virtual/es.array.some.js +4 -0
- package/dist/es/_virtual/es.function.name.js +4 -0
- package/dist/es/_virtual/es.map.constructor.js +4 -0
- package/dist/es/_virtual/es.map.js +4 -0
- package/dist/es/_virtual/es.number.constructor.js +4 -0
- package/dist/es/_virtual/es.object.to-string.js +4 -0
- package/dist/es/_virtual/es.parse-float.js +4 -0
- package/dist/es/_virtual/es.promise.all.js +4 -0
- package/dist/es/_virtual/es.promise.catch.js +4 -0
- package/dist/es/_virtual/es.promise.constructor.js +4 -0
- package/dist/es/_virtual/es.promise.js +4 -0
- package/dist/es/_virtual/es.promise.race.js +4 -0
- package/dist/es/_virtual/es.promise.reject.js +4 -0
- package/dist/es/_virtual/es.promise.resolve.js +4 -0
- package/dist/es/_virtual/es.promise2.js +2 -0
- package/dist/es/_virtual/es.reflect.apply.js +4 -0
- package/dist/es/_virtual/es.reflect.delete-property.js +4 -0
- package/dist/es/_virtual/es.reflect.get-prototype-of.js +4 -0
- package/dist/es/_virtual/es.regexp.exec.js +4 -0
- package/dist/es/_virtual/es.regexp.to-string.js +4 -0
- package/dist/es/_virtual/es.regexp.to-string2.js +2 -0
- package/dist/es/_virtual/es.string.ends-with.js +4 -0
- package/dist/es/_virtual/es.string.ends-with2.js +2 -0
- package/dist/es/_virtual/es.string.includes.js +4 -0
- package/dist/es/_virtual/es.string.includes2.js +2 -0
- package/dist/es/_virtual/es.string.iterator.js +4 -0
- package/dist/es/_virtual/es.string.match.js +4 -0
- package/dist/es/_virtual/es.string.match2.js +2 -0
- package/dist/es/_virtual/es.string.replace.js +4 -0
- package/dist/es/_virtual/es.string.replace2.js +2 -0
- package/dist/es/_virtual/es.string.split.js +4 -0
- package/dist/es/_virtual/es.string.split2.js +2 -0
- package/dist/es/_virtual/es.string.starts-with.js +4 -0
- package/dist/es/_virtual/es.string.starts-with2.js +2 -0
- package/dist/es/_virtual/es.string.trim.js +4 -0
- package/dist/es/_virtual/es.string.trim2.js +2 -0
- package/dist/es/_virtual/exceptions.js +4 -0
- package/dist/es/_virtual/finder-pattern.js +4 -0
- package/dist/es/_virtual/fixOptions.js +4 -0
- package/dist/es/_virtual/format-info.js +4 -0
- package/dist/es/_virtual/galois-field.js +4 -0
- package/dist/es/_virtual/get.js +4 -0
- package/dist/es/_virtual/getOptionsFromElement.js +4 -0
- package/dist/es/_virtual/getPrototypeOf.js +4 -0
- package/dist/es/_virtual/getRenderProperties.js +4 -0
- package/dist/es/_virtual/globalThis.browser.js +4 -0
- package/dist/es/_virtual/has-cors.js +4 -0
- package/dist/es/_virtual/html2canvas.js +4 -0
- package/dist/es/_virtual/index.js +2 -2
- package/dist/es/_virtual/index10.js +4 -0
- package/dist/es/_virtual/index11.js +4 -0
- package/dist/es/_virtual/index12.js +4 -0
- package/dist/es/_virtual/index13.js +4 -0
- package/dist/es/_virtual/index14.js +4 -0
- package/dist/es/_virtual/index15.js +4 -0
- package/dist/es/_virtual/index16.js +4 -0
- package/dist/es/_virtual/index17.js +4 -0
- package/dist/es/_virtual/index18.js +4 -0
- package/dist/es/_virtual/index19.js +4 -0
- package/dist/es/_virtual/index2.js +2 -2
- package/dist/es/_virtual/index20.js +4 -0
- package/dist/es/_virtual/index21.js +4 -0
- package/dist/es/_virtual/index22.js +4 -0
- package/dist/es/_virtual/index23.js +4 -0
- package/dist/es/_virtual/index3.js +2 -2
- package/dist/es/_virtual/index4.js +6 -0
- package/dist/es/_virtual/index5.js +4 -0
- package/dist/es/_virtual/index6.js +4 -0
- package/dist/es/_virtual/index7.js +7 -0
- package/dist/es/_virtual/index8.js +7 -0
- package/dist/es/_virtual/index9.js +4 -0
- package/dist/es/_virtual/inherits.js +4 -0
- package/dist/es/_virtual/internal-metadata.js +4 -0
- package/dist/es/_virtual/is-binary.js +4 -0
- package/dist/es/_virtual/iterableToArray.js +4 -0
- package/dist/es/_virtual/iterableToArrayLimit.js +4 -0
- package/dist/es/_virtual/jquery.js +4 -0
- package/dist/es/_virtual/jspdf.es.min.js +6 -0
- package/dist/es/_virtual/linearizeEncodings.js +4 -0
- package/dist/es/_virtual/make-built-in.js +4 -0
- package/dist/es/_virtual/manager.js +4 -0
- package/dist/es/_virtual/mask-pattern.js +4 -0
- package/dist/es/_virtual/merge.js +4 -0
- package/dist/es/_virtual/mode.js +4 -0
- package/dist/es/_virtual/new-promise-capability.js +4 -0
- package/dist/es/_virtual/nonIterableRest.js +4 -0
- package/dist/es/_virtual/nonIterableSpread.js +4 -0
- package/dist/es/_virtual/object-define-properties.js +4 -0
- package/dist/es/_virtual/object-define-property.js +4 -0
- package/dist/es/_virtual/object-get-own-property-descriptor.js +4 -0
- package/dist/es/_virtual/object-get-own-property-names-external.js +4 -0
- package/dist/es/_virtual/object-get-own-property-names.js +4 -0
- package/dist/es/_virtual/object-get-own-property-symbols.js +4 -0
- package/dist/es/_virtual/object-property-is-enumerable.js +4 -0
- package/dist/es/_virtual/object.js +4 -0
- package/dist/es/_virtual/on.js +4 -0
- package/dist/es/_virtual/optionsFromStrings.js +4 -0
- package/dist/es/_virtual/parseqs.js +4 -0
- package/dist/es/_virtual/parseuri.js +4 -0
- package/dist/es/_virtual/performance-now.js +4 -0
- package/dist/es/_virtual/polling.js +4 -0
- package/dist/es/_virtual/polynomial.js +4 -0
- package/dist/es/_virtual/possibleConstructorReturn.js +4 -0
- package/dist/es/_virtual/qrcode.js +4 -0
- package/dist/es/_virtual/regeneratorRuntime.js +4 -0
- package/dist/es/_virtual/regex.js +4 -0
- package/dist/es/_virtual/segments.js +4 -0
- package/dist/es/_virtual/setPrototypeOf.js +4 -0
- package/dist/es/_virtual/shared-store.js +4 -0
- package/dist/es/_virtual/shared.js +4 -0
- package/dist/es/_virtual/slicedToArray.js +4 -0
- package/dist/es/_virtual/socket.js +4 -0
- package/dist/es/_virtual/socket2.js +4 -0
- package/dist/es/_virtual/stackblur-es.js +6 -0
- package/dist/es/_virtual/superPropBase.js +4 -0
- package/dist/es/_virtual/svg-tag.js +4 -0
- package/dist/es/_virtual/svg.js +4 -0
- package/dist/es/_virtual/toConsumableArray.js +4 -0
- package/dist/es/_virtual/toPrimitive.js +4 -0
- package/dist/es/_virtual/toPropertyKey.js +4 -0
- package/dist/es/_virtual/transport.js +4 -0
- package/dist/es/_virtual/typeof.js +4 -0
- package/dist/es/_virtual/unsupportedIterableToArray.js +4 -0
- package/dist/es/_virtual/url.js +4 -0
- package/dist/es/_virtual/util.js +4 -0
- package/dist/es/_virtual/utils.js +4 -0
- package/dist/es/_virtual/utils2.js +4 -0
- package/dist/es/_virtual/version-check.js +4 -0
- package/dist/es/_virtual/version.js +4 -0
- package/dist/es/_virtual/vue-plugin-hiprint.js +4 -0
- package/dist/es/_virtual/web.dom-collections.for-each.js +4 -0
- package/dist/es/_virtual/web.dom-collections.iterator.js +4 -0
- package/dist/es/_virtual/web.dom-collections.iterator2.js +2 -0
- package/dist/es/_virtual/websocket-constructor.browser.js +4 -0
- package/dist/es/_virtual/websocket.js +4 -0
- package/dist/es/_virtual/webtransport.js +4 -0
- package/dist/es/_virtual/xmlhttprequest.browser.js +4 -0
- package/dist/es/_virtual/yeast.js +4 -0
- package/dist/es/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/es/components/runtime/index.d.ts +3 -3
- package/dist/es/components/runtime/utils/api/api-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/api/api-util.js +195 -25
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +206 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +51 -14
- package/dist/es/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/es/components/runtime/utils/barcode-util.js +36 -0
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +279 -0
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +74 -0
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +118 -0
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +100 -0
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +74 -0
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +51 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +291 -4
- package/dist/es/components/runtime/utils/common-util.d.ts +8 -2
- package/dist/es/components/runtime/utils/common-util.js +37 -14
- package/dist/es/components/runtime/utils/events/event-util.d.ts +20 -0
- package/dist/es/components/runtime/utils/events/event-util.js +125 -31
- package/dist/es/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/print-label.js +153 -0
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +6 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +378 -186
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +8 -0
- package/dist/es/components/runtime/utils/events/validator-util.js +88 -61
- package/dist/es/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +96 -0
- package/dist/es/components/runtime/utils/form/scan-util.js +195 -0
- package/dist/es/components/runtime/utils/global-refs.js +12 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +7 -4
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +47 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -54
- package/dist/es/components/runtime/utils/page-init-util.d.ts +3 -1
- package/dist/es/components/runtime/utils/page-init-util.js +79 -33
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/es/components/runtime/utils/page-permission-util.js +525 -0
- package/dist/es/components/runtime/utils/table-utils.js +6 -14
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +18 -18
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +24 -19
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +96 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +90 -5
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +62 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +128 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +66 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +91 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +65 -4
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +65 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +38 -11
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +9 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +49 -9
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +184 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +104 -73
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -17
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +31 -67
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +97 -30
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -17
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +89 -28
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +19 -15
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -34
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +41 -38
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +13 -12
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +26 -23
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +97 -25
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +40 -37
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +42 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +16 -14
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +13 -10
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +21 -15
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +14 -5
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +40 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +40 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +11 -5
- package/dist/es/components/runtime/views/super-page.vue.d.ts +8 -0
- package/dist/es/components/runtime/views/super-page.vue.js +196 -153
- package/dist/es/i18n/langs/cn.js +54 -0
- package/dist/es/i18n/langs/en.js +54 -0
- package/dist/es/index.d.ts +12 -2
- package/dist/es/index.js +18 -2
- 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/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/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 +27 -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/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/createClass.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/globalThis.browser.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 +2 -2
- 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 +2 -2
- 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/index3.js +2 -2
- 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 +6 -0
- package/dist/lib/_virtual/index8.js +6 -0
- package/dist/lib/_virtual/index9.js +4 -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.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/regeneratorRuntime.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-constructor.browser.js +4 -0
- package/dist/lib/_virtual/websocket.js +4 -0
- package/dist/lib/_virtual/webtransport.js +4 -0
- package/dist/lib/_virtual/xmlhttprequest.browser.js +4 -0
- package/dist/lib/_virtual/yeast.js +4 -0
- package/dist/lib/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/lib/components/runtime/index.d.ts +3 -3
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +6 -1
- package/dist/lib/components/runtime/utils/api/api-util.js +193 -23
- 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 +206 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +51 -14
- 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 +279 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +74 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +118 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +100 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +74 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +51 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +290 -3
- package/dist/lib/components/runtime/utils/common-util.d.ts +8 -2
- package/dist/lib/components/runtime/utils/common-util.js +37 -14
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +20 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +123 -29
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +153 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +6 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +375 -183
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +8 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +88 -61
- 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 +195 -0
- package/dist/lib/components/runtime/utils/global-refs.js +12 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +7 -4
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +47 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +219 -54
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +3 -1
- package/dist/lib/components/runtime/utils/page-init-util.js +78 -32
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +525 -0
- package/dist/lib/components/runtime/utils/table-utils.js +6 -14
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +23 -18
- 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 +95 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +88 -3
- 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 +127 -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/gauge/gauge-runtime.vue2.js +64 -10
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +89 -2
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +63 -2
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +63 -2
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +1 -1
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +4 -4
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +37 -10
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +8 -2
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +45 -5
- 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 +183 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +101 -70
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +18 -16
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -5
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +29 -65
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +95 -28
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +24 -16
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +88 -27
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +18 -14
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +56 -33
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +11 -10
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +25 -22
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +96 -24
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +39 -36
- 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 +41 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +15 -13
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +12 -9
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +20 -14
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +13 -4
- 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 +39 -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 +39 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +6 -8
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +11 -5
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +8 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +189 -146
- package/dist/lib/i18n/langs/cn.js +53 -0
- package/dist/lib/i18n/langs/en.js +53 -0
- package/dist/lib/index.d.ts +12 -2
- package/dist/lib/index.js +18 -2
- package/package.json +71 -69
- package/src/index.ts +21 -0
package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const Vue = require("vue");
|
|
3
3
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
5
|
+
const request = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js");
|
|
6
|
+
const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
|
|
4
7
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
5
8
|
__name: "fileupload-runtime",
|
|
6
9
|
props: {
|
|
@@ -10,25 +13,40 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
10
13
|
setup(__props) {
|
|
11
14
|
const props = __props;
|
|
12
15
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
16
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
14
17
|
const runtimeStyle = runtimeInfo.style;
|
|
15
18
|
const runtimeClass = runtimeInfo.class;
|
|
16
19
|
const headerStyle = runtimeInfo.headerStyle;
|
|
17
20
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
18
21
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
19
|
-
propsBase.prop;
|
|
20
22
|
const pathFields = getFieldsByVariable(propsBase.prop);
|
|
21
23
|
const nameFields = getFieldsByVariable(propsBase.propName);
|
|
22
|
-
const initNames = pageHelperUtil.getVariableValue(entity, nameFields);
|
|
23
24
|
const initPaths = pageHelperUtil.getVariableValue(entity, pathFields);
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
25
|
+
const fileList = Vue.ref([]);
|
|
26
|
+
const fileInfo = Vue.ref({});
|
|
27
|
+
const baseURL = window.$vueApp.config.globalProperties.baseURL;
|
|
28
|
+
const baseAPI = window.$vueApp.config.globalProperties.baseAPI;
|
|
29
|
+
let url = baseURL;
|
|
30
|
+
if (!isPlateSys(props.pageContext.systemCode)) {
|
|
31
|
+
url = baseAPI;
|
|
32
|
+
}
|
|
33
|
+
if (initPaths) {
|
|
34
|
+
const uuids = initPaths.split(",");
|
|
35
|
+
if (uuids.length > 0) {
|
|
36
|
+
request.post(url + "/common/fs-upload/search-file-names").then((result) => {
|
|
37
|
+
const names = [];
|
|
38
|
+
for (let index = 0; index < uuids.length; index++) {
|
|
39
|
+
const uuid = uuids[index];
|
|
40
|
+
names.push(result[uuid]);
|
|
41
|
+
fileList.value.push({ showName: result[uuid], serverPath: uuid });
|
|
42
|
+
}
|
|
43
|
+
if (designProperty.value.displayType === "input") {
|
|
44
|
+
fileInfo.value.showName = names.join(",");
|
|
45
|
+
fileInfo.value.serverPath = uuids.join(",");
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
32
50
|
function getFieldsByVariable(variableName) {
|
|
33
51
|
if (!variableName) {
|
|
34
52
|
return [];
|
|
@@ -38,36 +56,79 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
38
56
|
}
|
|
39
57
|
return variableName.split(".");
|
|
40
58
|
}
|
|
59
|
+
function beforeUpload(params) {
|
|
60
|
+
return eventUtil.fileUploadBeforeUpload(params);
|
|
61
|
+
}
|
|
62
|
+
const onSuccess = (response, uploadFile, uploadFiles) => {
|
|
63
|
+
updateValue();
|
|
64
|
+
};
|
|
65
|
+
const onRemove = (file) => {
|
|
66
|
+
updateValue();
|
|
67
|
+
};
|
|
68
|
+
const updateValue = () => {
|
|
69
|
+
const names = [];
|
|
70
|
+
const uuids = [];
|
|
71
|
+
for (let index = 0; index < fileList.value.length; index++) {
|
|
72
|
+
names.push(fileList.value[index].showName);
|
|
73
|
+
uuids.push(fileList.value[index].serverPath);
|
|
74
|
+
}
|
|
75
|
+
pageHelperUtil.setVariableValue(props.pageContext.entity, pathFields, uuids.join(","));
|
|
76
|
+
pageHelperUtil.setVariableValue(props.pageContext.entity, nameFields, names.join(","));
|
|
77
|
+
};
|
|
78
|
+
function isPlateSys(systemCode) {
|
|
79
|
+
if (systemCode && (systemCode === "agilebuilder" || systemCode === "portal" || systemCode === "mms" || systemCode === "task" || systemCode === "wf" || systemCode === "dc" || systemCode === "mc" || systemCode === "mobile" || systemCode === "acs" || systemCode === "bs" || systemCode === "pcm")) {
|
|
80
|
+
return true;
|
|
81
|
+
} else {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
41
85
|
return (_ctx, _cache) => {
|
|
42
|
-
const _component_FsUploadList = Vue.resolveComponent("FsUploadList");
|
|
43
86
|
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
44
|
-
return
|
|
87
|
+
return designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
45
88
|
key: 0,
|
|
46
|
-
required:
|
|
89
|
+
required: designProperty.value.required,
|
|
47
90
|
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
48
|
-
"label-width":
|
|
91
|
+
"label-width": designProperty.value.labelWidth,
|
|
49
92
|
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
50
93
|
}, {
|
|
51
94
|
label: Vue.withCtx(() => [
|
|
52
|
-
|
|
95
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
53
96
|
key: 0,
|
|
54
97
|
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
55
|
-
}, Vue.toDisplayString(
|
|
98
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
56
99
|
]),
|
|
57
100
|
default: Vue.withCtx(() => [
|
|
58
|
-
Vue.createVNode(
|
|
59
|
-
disabled:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
101
|
+
Vue.createVNode(Vue.unref(superUi.default), {
|
|
102
|
+
disabled: designProperty.value.state == "disabled",
|
|
103
|
+
displayType: designProperty.value.displayType,
|
|
104
|
+
accept: designProperty.value.accept,
|
|
105
|
+
multiple: designProperty.value.multiple,
|
|
106
|
+
placeholder: designProperty.value.placeholder,
|
|
107
|
+
limit: designProperty.value.limit,
|
|
108
|
+
"limit-file-size": designProperty.value.limitFileSize,
|
|
109
|
+
"file-info": fileInfo.value,
|
|
110
|
+
"file-list": fileList.value,
|
|
111
|
+
"on-success": onSuccess,
|
|
112
|
+
"on-remove": onRemove,
|
|
113
|
+
"before-upload": beforeUpload
|
|
114
|
+
}, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "file-info", "file-list"])
|
|
63
115
|
]),
|
|
64
116
|
_: 1
|
|
65
|
-
}, 8, ["required", "class", "label-width", "style"])) : (Vue.openBlock(), Vue.createBlock(
|
|
117
|
+
}, 8, ["required", "class", "label-width", "style"])) : (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.default), {
|
|
66
118
|
key: 1,
|
|
67
|
-
disabled:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
119
|
+
disabled: designProperty.value.state == "disabled",
|
|
120
|
+
displayType: designProperty.value.displayType,
|
|
121
|
+
accept: designProperty.value.accept,
|
|
122
|
+
multiple: designProperty.value.multiple,
|
|
123
|
+
placeholder: designProperty.value.placeholder,
|
|
124
|
+
limit: designProperty.value.limit,
|
|
125
|
+
"limit-file-size": designProperty.value.limitFileSize,
|
|
126
|
+
"file-info": fileInfo.value,
|
|
127
|
+
"file-list": fileList.value,
|
|
128
|
+
"on-success": onSuccess,
|
|
129
|
+
"on-remove": onRemove,
|
|
130
|
+
"before-upload": beforeUpload
|
|
131
|
+
}, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "file-info", "file-list"]));
|
|
71
132
|
};
|
|
72
133
|
}
|
|
73
134
|
});
|
package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
const Vue = require("vue");
|
|
3
3
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
4
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
6
7
|
__name: "input-number-runtime",
|
|
7
8
|
props: {
|
|
@@ -24,35 +25,38 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
24
25
|
const runtimeStyle = runtimeInfo.style;
|
|
25
26
|
const runtimeClass = runtimeInfo.class;
|
|
26
27
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
29
|
return (_ctx, _cache) => {
|
|
29
30
|
const _component_el_input_number = Vue.resolveComponent("el-input-number");
|
|
30
31
|
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
31
32
|
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
32
|
-
required:
|
|
33
|
+
required: designProperty.value.required,
|
|
33
34
|
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
34
|
-
"label-width":
|
|
35
|
+
"label-width": designProperty.value.labelWidth,
|
|
35
36
|
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
36
37
|
}, {
|
|
37
38
|
label: Vue.withCtx(() => [
|
|
38
|
-
|
|
39
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
39
40
|
key: 0,
|
|
40
41
|
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
41
|
-
}, Vue.toDisplayString(
|
|
42
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
42
43
|
]),
|
|
43
44
|
default: Vue.withCtx(() => [
|
|
44
45
|
Vue.createVNode(_component_el_input_number, {
|
|
45
|
-
disabled:
|
|
46
|
-
readonly:
|
|
47
|
-
controls:
|
|
48
|
-
size:
|
|
49
|
-
placeholder:
|
|
46
|
+
disabled: designProperty.value.state === "disabled",
|
|
47
|
+
readonly: designProperty.value.state === "readonly",
|
|
48
|
+
controls: designProperty.value.showButton,
|
|
49
|
+
size: designProperty.value.size,
|
|
50
|
+
placeholder: designProperty.value.placeholder,
|
|
50
51
|
modelValue: dynamicModelMethod.value,
|
|
51
52
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
52
|
-
precision:
|
|
53
|
-
step:
|
|
54
|
-
min:
|
|
55
|
-
max:
|
|
53
|
+
precision: designProperty.value.precision,
|
|
54
|
+
step: designProperty.value.step,
|
|
55
|
+
min: designProperty.value.min,
|
|
56
|
+
max: designProperty.value.max,
|
|
57
|
+
onChange: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
58
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
59
|
+
onFocus: _cache[3] || (_cache[3] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus"))
|
|
56
60
|
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
57
61
|
]),
|
|
58
62
|
_: 1
|
package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const Vue = require("vue");
|
|
3
|
-
const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.
|
|
3
|
+
const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
|
|
4
4
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
5
5
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
6
6
|
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
7
|
+
const scanUtil = require("../../../../utils/form/scan-util.js");
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
8
9
|
__name: "inputtext-runtime",
|
|
9
10
|
props: {
|
|
@@ -11,6 +12,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
11
12
|
configure: {}
|
|
12
13
|
},
|
|
13
14
|
setup(__props, { expose: __expose }) {
|
|
15
|
+
var _a, _b;
|
|
14
16
|
const props = __props;
|
|
15
17
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
16
18
|
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
@@ -23,7 +25,12 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
23
25
|
}
|
|
24
26
|
});
|
|
25
27
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
26
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
29
|
+
let scanRuleSets = {};
|
|
30
|
+
if (((_a = designProperty.value.scan) == null ? void 0 : _a.enable) && ((_b = designProperty.value.scan.ruleList) == null ? void 0 : _b.length) > 0) {
|
|
31
|
+
setScanRuleSets();
|
|
32
|
+
watchScanValueChange();
|
|
33
|
+
}
|
|
27
34
|
const runtimeStyle = runtimeInfo.style;
|
|
28
35
|
const runtimeClass = runtimeInfo.class;
|
|
29
36
|
const headerStyle = runtimeInfo.headerStyle;
|
|
@@ -33,6 +40,22 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
33
40
|
function setValue(value) {
|
|
34
41
|
return pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
35
42
|
}
|
|
43
|
+
function setScanRuleSets() {
|
|
44
|
+
scanUtil.formatScanRuleSets(designProperty.value.scan.ruleList).then((res) => {
|
|
45
|
+
scanRuleSets = res;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function watchScanValueChange() {
|
|
49
|
+
Vue.watch(
|
|
50
|
+
() => dynamicModelMethod.value,
|
|
51
|
+
(newValue) => {
|
|
52
|
+
const valueSet = scanUtil.analysisScanValue(newValue, scanRuleSets);
|
|
53
|
+
if (valueSet) {
|
|
54
|
+
scanUtil.setScanAnalysisValue(props.pageContext, valueSet.scanSet, valueSet.params);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
36
59
|
__expose({
|
|
37
60
|
getValue,
|
|
38
61
|
setValue
|
|
@@ -41,26 +64,26 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
41
64
|
const _component_el_input = Vue.resolveComponent("el-input");
|
|
42
65
|
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
43
66
|
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
44
|
-
required:
|
|
67
|
+
required: designProperty.value.required ? true : false,
|
|
45
68
|
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
46
|
-
"label-width":
|
|
69
|
+
"label-width": designProperty.value.labelWidth,
|
|
47
70
|
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
48
71
|
}, {
|
|
49
72
|
label: Vue.withCtx(() => [
|
|
50
|
-
|
|
73
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
51
74
|
key: 0,
|
|
52
75
|
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
53
|
-
}, Vue.toDisplayString(
|
|
76
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
54
77
|
]),
|
|
55
78
|
default: Vue.withCtx(() => [
|
|
56
79
|
Vue.createVNode(_component_el_input, {
|
|
57
|
-
disabled:
|
|
58
|
-
readonly:
|
|
59
|
-
size:
|
|
60
|
-
clearable:
|
|
61
|
-
placeholder:
|
|
62
|
-
maxlength:
|
|
63
|
-
"show-word-limit":
|
|
80
|
+
disabled: designProperty.value.state === "disabled",
|
|
81
|
+
readonly: designProperty.value.state === "readonly",
|
|
82
|
+
size: designProperty.value.size,
|
|
83
|
+
clearable: designProperty.value.clearable,
|
|
84
|
+
placeholder: designProperty.value.placeholder,
|
|
85
|
+
maxlength: designProperty.value.maxLength,
|
|
86
|
+
"show-word-limit": designProperty.value.showInputNum,
|
|
64
87
|
modelValue: dynamicModelMethod.value,
|
|
65
88
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
66
89
|
onInput: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
@@ -69,51 +92,51 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
69
92
|
onFocus: _cache[4] || (_cache[4] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
70
93
|
onClick: _cache[5] || (_cache[5] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
71
94
|
}, Vue.createSlots({ _: 2 }, [
|
|
72
|
-
|
|
95
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
73
96
|
name: "prefix",
|
|
74
97
|
fn: Vue.withCtx(() => [
|
|
75
|
-
|
|
98
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
76
99
|
key: 0,
|
|
77
|
-
iconType:
|
|
78
|
-
iconValue:
|
|
100
|
+
iconType: designProperty.value.preIconType,
|
|
101
|
+
iconValue: designProperty.value.preIconValue
|
|
79
102
|
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
80
|
-
Vue.createTextVNode(" " + Vue.toDisplayString(
|
|
103
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(designProperty.value.preText), 1)
|
|
81
104
|
]),
|
|
82
105
|
key: "0"
|
|
83
106
|
} : void 0,
|
|
84
|
-
|
|
107
|
+
designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
85
108
|
name: "prepend",
|
|
86
109
|
fn: Vue.withCtx(() => [
|
|
87
|
-
|
|
110
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
88
111
|
key: 0,
|
|
89
|
-
iconType:
|
|
90
|
-
iconValue:
|
|
112
|
+
iconType: designProperty.value.preIconType,
|
|
113
|
+
iconValue: designProperty.value.preIconValue
|
|
91
114
|
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
92
|
-
Vue.createTextVNode(" " + Vue.toDisplayString(
|
|
115
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(designProperty.value.preText), 1)
|
|
93
116
|
]),
|
|
94
117
|
key: "1"
|
|
95
118
|
} : void 0,
|
|
96
|
-
|
|
119
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
97
120
|
name: "suffix",
|
|
98
121
|
fn: Vue.withCtx(() => [
|
|
99
|
-
|
|
122
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
100
123
|
key: 0,
|
|
101
|
-
iconType:
|
|
102
|
-
iconValue:
|
|
124
|
+
iconType: designProperty.value.sufIconType,
|
|
125
|
+
iconValue: designProperty.value.sufIconValue
|
|
103
126
|
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
104
|
-
Vue.createTextVNode(" " + Vue.toDisplayString(
|
|
127
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(designProperty.value.sufText), 1)
|
|
105
128
|
]),
|
|
106
129
|
key: "2"
|
|
107
130
|
} : void 0,
|
|
108
|
-
|
|
131
|
+
designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
109
132
|
name: "append",
|
|
110
133
|
fn: Vue.withCtx(() => [
|
|
111
|
-
|
|
134
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
112
135
|
key: 0,
|
|
113
|
-
iconType:
|
|
114
|
-
iconValue:
|
|
136
|
+
iconType: designProperty.value.sufIconType,
|
|
137
|
+
iconValue: designProperty.value.sufIconValue
|
|
115
138
|
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
116
|
-
Vue.createTextVNode(" " + Vue.toDisplayString(
|
|
139
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(designProperty.value.sufText), 1)
|
|
117
140
|
]),
|
|
118
141
|
key: "3"
|
|
119
142
|
} : void 0
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
const Vue = require("vue");
|
|
3
3
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
4
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
-
const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
key: 1,
|
|
10
|
-
style: { "display": "flex", "justify-content": "space-between" }
|
|
11
|
-
};
|
|
12
|
-
const _hoisted_4 = ["title"];
|
|
5
|
+
const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
|
|
6
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
7
|
+
const _hoisted_1 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
|
|
8
|
+
const _hoisted_2 = ["title"];
|
|
13
9
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
14
10
|
__name: "label-runtime",
|
|
15
11
|
props: {
|
|
@@ -25,8 +21,8 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
25
21
|
const headerStyle = runtimeInfo.headerStyle;
|
|
26
22
|
const appendClass = runtimeInfo.appendClass;
|
|
27
23
|
const appendStyle = runtimeInfo.appendStyle;
|
|
28
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
29
|
-
const listOptions = designProperty.options ? designProperty.options : [];
|
|
24
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
25
|
+
const listOptions = designProperty.value.options ? designProperty.value.options : [];
|
|
30
26
|
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
31
27
|
const valueType = dataOrigin.optionValueSetType;
|
|
32
28
|
if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
|
|
@@ -36,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
36
32
|
console.log("lable组件查询数据源失败!", error);
|
|
37
33
|
});
|
|
38
34
|
}
|
|
39
|
-
let contentVariable = designProperty.formatting;
|
|
35
|
+
let contentVariable = designProperty.value.formatting;
|
|
40
36
|
if (!contentVariable) {
|
|
41
37
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
42
38
|
contentVariable = propsBase.prop;
|
|
@@ -44,12 +40,12 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
44
40
|
if (!contentVariable) {
|
|
45
41
|
contentVariable = "${page." + props.configure.uuid + "}";
|
|
46
42
|
}
|
|
47
|
-
const formatType = designProperty.formatType;
|
|
43
|
+
const formatType = designProperty.value.formatType;
|
|
48
44
|
const dynamicValue = Vue.computed(() => {
|
|
49
45
|
let resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
50
46
|
console.log("formatType", formatType);
|
|
51
47
|
if (formatType) {
|
|
52
|
-
if (designProperty.hasOptions) {
|
|
48
|
+
if (designProperty.value.hasOptions) {
|
|
53
49
|
let selItems = null;
|
|
54
50
|
if (listOptions.value) {
|
|
55
51
|
selItems = listOptions.value.filter((item) => item.value == resultValue);
|
|
@@ -58,68 +54,75 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
58
54
|
resultValue = selItems[0].label;
|
|
59
55
|
}
|
|
60
56
|
} else {
|
|
61
|
-
resultValue = pageHelperUtil.formatValueByType(resultValue, formatType, designProperty);
|
|
57
|
+
resultValue = pageHelperUtil.formatValueByType(resultValue, formatType, designProperty.value);
|
|
62
58
|
}
|
|
63
59
|
}
|
|
64
60
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
65
61
|
});
|
|
66
62
|
return (_ctx, _cache) => {
|
|
67
63
|
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
68
|
-
return
|
|
64
|
+
return designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
69
65
|
key: 0,
|
|
70
|
-
required:
|
|
66
|
+
required: designProperty.value.required ? true : false,
|
|
71
67
|
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
72
|
-
"label-width":
|
|
68
|
+
"label-width": designProperty.value.labelWidth,
|
|
73
69
|
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
74
70
|
}, {
|
|
75
71
|
label: Vue.withCtx(() => [
|
|
76
|
-
|
|
72
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
77
73
|
key: 0,
|
|
78
74
|
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
79
|
-
}, Vue.toDisplayString(
|
|
75
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
80
76
|
]),
|
|
81
77
|
default: Vue.withCtx(() => [
|
|
82
|
-
Vue.createElementVNode("div",
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
Vue.createElementVNode("div", {
|
|
79
|
+
style: { "display": "flex", "width": "100%", "justify-content": "space-between" },
|
|
80
|
+
onClick: _cache[0] || (_cache[0] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
81
|
+
}, [
|
|
82
|
+
Vue.createElementVNode("span", _hoisted_1, [
|
|
83
|
+
designProperty.value.preIconValue || designProperty.value.preText ? (Vue.openBlock(), Vue.createElementBlock("span", {
|
|
85
84
|
key: 0,
|
|
86
|
-
class: Vue.normalizeClass({ "el-input__suffix":
|
|
85
|
+
class: Vue.normalizeClass({ "el-input__suffix": designProperty.value.iconPosition != "outer", "el-input-group__append": designProperty.value.iconPosition == "outer" }),
|
|
87
86
|
style: Vue.normalizeStyle(Vue.unref(appendStyle))
|
|
88
87
|
}, [
|
|
89
|
-
|
|
88
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
90
89
|
key: 0,
|
|
91
|
-
iconType:
|
|
92
|
-
iconValue:
|
|
90
|
+
iconType: designProperty.value.preIconType,
|
|
91
|
+
iconValue: designProperty.value.preIconValue
|
|
93
92
|
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
94
|
-
Vue.createTextVNode(" " + Vue.toDisplayString(
|
|
93
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(designProperty.value.preText), 1)
|
|
95
94
|
], 6)) : Vue.createCommentVNode("", true),
|
|
96
95
|
Vue.createTextVNode(" " + Vue.toDisplayString(dynamicValue.value), 1)
|
|
97
96
|
]),
|
|
98
|
-
|
|
97
|
+
designProperty.value.sufIconValue || designProperty.value.sufText ? (Vue.openBlock(), Vue.createElementBlock("span", {
|
|
99
98
|
key: 0,
|
|
100
|
-
class: Vue.normalizeClass({ "el-input__suffix":
|
|
99
|
+
class: Vue.normalizeClass({ "el-input__suffix": designProperty.value.iconPosition != "outer", "el-input-group__append": designProperty.value.iconPosition == "outer" })
|
|
101
100
|
}, [
|
|
102
|
-
|
|
101
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
103
102
|
key: 0,
|
|
104
103
|
style: {},
|
|
105
|
-
iconType:
|
|
106
|
-
iconValue:
|
|
104
|
+
iconType: designProperty.value.sufIconType,
|
|
105
|
+
iconValue: designProperty.value.sufIconValue
|
|
107
106
|
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
108
|
-
Vue.createElementVNode("span", null, " " + Vue.toDisplayString(
|
|
107
|
+
Vue.createElementVNode("span", null, " " + Vue.toDisplayString(designProperty.value.sufText), 1)
|
|
109
108
|
], 2)) : Vue.createCommentVNode("", true)
|
|
110
109
|
])
|
|
111
110
|
]),
|
|
112
111
|
_: 1
|
|
113
|
-
}, 8, ["required", "class", "label-width", "style"])) : (Vue.openBlock(), Vue.createElementBlock("span",
|
|
112
|
+
}, 8, ["required", "class", "label-width", "style"])) : (Vue.openBlock(), Vue.createElementBlock("span", {
|
|
113
|
+
key: 1,
|
|
114
|
+
style: { "display": "flex", "justify-content": "space-between" },
|
|
115
|
+
onClick: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
116
|
+
}, [
|
|
114
117
|
Vue.createElementVNode("span", {
|
|
115
118
|
style: { "overflow": "hidden", "white-space": "nowrap" },
|
|
116
119
|
title: dynamicValue.value
|
|
117
|
-
}, Vue.toDisplayString(
|
|
118
|
-
|
|
120
|
+
}, Vue.toDisplayString(designProperty.value.prefixIcon) + " " + Vue.toDisplayString(dynamicValue.value) + "222", 9, _hoisted_2),
|
|
121
|
+
designProperty.value.suffixTxt ? (Vue.openBlock(), Vue.createElementBlock("span", {
|
|
119
122
|
key: 0,
|
|
120
123
|
class: Vue.normalizeClass(Vue.unref(appendClass)),
|
|
121
124
|
style: Vue.normalizeStyle(Vue.unref(appendStyle))
|
|
122
|
-
}, Vue.toDisplayString(
|
|
125
|
+
}, Vue.toDisplayString(designProperty.value.suffixTxt) + "222", 7)) : Vue.createCommentVNode("", true)
|
|
123
126
|
]));
|
|
124
127
|
};
|
|
125
128
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
const Vue = require("vue");
|
|
3
3
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
4
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
6
7
|
__name: "link-runtime",
|
|
7
8
|
props: {
|
|
@@ -15,8 +16,8 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
15
16
|
const runtimeStyle = runtimeInfo.style;
|
|
16
17
|
const runtimeClass = runtimeInfo.class;
|
|
17
18
|
const headerStyle = runtimeInfo.headerStyle;
|
|
18
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
19
|
-
let contentVariable = designProperty.formatting;
|
|
19
|
+
const designProperty = Vue.ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
20
|
+
let contentVariable = designProperty.value.formatting;
|
|
20
21
|
if (!contentVariable) {
|
|
21
22
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
22
23
|
contentVariable = propsBase.prop;
|
|
@@ -28,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
28
29
|
const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
29
30
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
30
31
|
});
|
|
31
|
-
let tooltipVariable = designProperty.tooltip;
|
|
32
|
+
let tooltipVariable = designProperty.value.tooltip;
|
|
32
33
|
const tooltipValue = Vue.computed(() => {
|
|
33
34
|
const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, tooltipVariable);
|
|
34
35
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
@@ -39,14 +40,14 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
39
40
|
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
40
41
|
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
41
42
|
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
42
|
-
"label-width":
|
|
43
|
+
"label-width": designProperty.value.labelWidth,
|
|
43
44
|
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
44
45
|
}, {
|
|
45
46
|
label: Vue.withCtx(() => [
|
|
46
|
-
|
|
47
|
+
designProperty.value.tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
47
48
|
key: 0,
|
|
48
49
|
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
49
|
-
}, Vue.toDisplayString(
|
|
50
|
+
}, Vue.toDisplayString(designProperty.value.title), 5)) : Vue.createCommentVNode("", true)
|
|
50
51
|
]),
|
|
51
52
|
default: Vue.withCtx(() => [
|
|
52
53
|
Vue.createVNode(_component_el_tooltip, {
|
|
@@ -55,10 +56,10 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
55
56
|
}, {
|
|
56
57
|
default: Vue.withCtx(() => [
|
|
57
58
|
Vue.createVNode(_component_el_link, {
|
|
58
|
-
disabled:
|
|
59
|
-
type:
|
|
60
|
-
underline:
|
|
61
|
-
onClick: _cache[0] || (_cache[0] = ($event) => Vue.unref(
|
|
59
|
+
disabled: designProperty.value.state === "disabled",
|
|
60
|
+
type: designProperty.value.type,
|
|
61
|
+
underline: designProperty.value.underline,
|
|
62
|
+
onClick: _cache[0] || (_cache[0] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
62
63
|
}, {
|
|
63
64
|
default: Vue.withCtx(() => [
|
|
64
65
|
Vue.createTextVNode(Vue.toDisplayString(dynamicValue.value), 1)
|