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/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { fileUploadBeforeUpload } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import http from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
5
|
+
import index from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
|
|
3
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
7
|
__name: "fileupload-runtime",
|
|
5
8
|
props: {
|
|
@@ -9,25 +12,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
12
|
setup(__props) {
|
|
10
13
|
const props = __props;
|
|
11
14
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
12
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
15
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
13
16
|
const runtimeStyle = runtimeInfo.style;
|
|
14
17
|
const runtimeClass = runtimeInfo.class;
|
|
15
18
|
const headerStyle = runtimeInfo.headerStyle;
|
|
16
19
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
17
20
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
18
|
-
propsBase.prop;
|
|
19
21
|
const pathFields = getFieldsByVariable(propsBase.prop);
|
|
20
22
|
const nameFields = getFieldsByVariable(propsBase.propName);
|
|
21
|
-
const initNames = getVariableValue(entity, nameFields);
|
|
22
23
|
const initPaths = getVariableValue(entity, pathFields);
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
24
|
+
const fileList = ref([]);
|
|
25
|
+
const fileInfo = ref({});
|
|
26
|
+
const baseURL = window.$vueApp.config.globalProperties.baseURL;
|
|
27
|
+
const baseAPI = window.$vueApp.config.globalProperties.baseAPI;
|
|
28
|
+
let url = baseURL;
|
|
29
|
+
if (!isPlateSys(props.pageContext.systemCode)) {
|
|
30
|
+
url = baseAPI;
|
|
31
|
+
}
|
|
32
|
+
if (initPaths) {
|
|
33
|
+
const uuids = initPaths.split(",");
|
|
34
|
+
if (uuids.length > 0) {
|
|
35
|
+
http.post(url + "/common/fs-upload/search-file-names").then((result) => {
|
|
36
|
+
const names = [];
|
|
37
|
+
for (let index2 = 0; index2 < uuids.length; index2++) {
|
|
38
|
+
const uuid = uuids[index2];
|
|
39
|
+
names.push(result[uuid]);
|
|
40
|
+
fileList.value.push({ showName: result[uuid], serverPath: uuid });
|
|
41
|
+
}
|
|
42
|
+
if (designProperty.value.displayType === "input") {
|
|
43
|
+
fileInfo.value.showName = names.join(",");
|
|
44
|
+
fileInfo.value.serverPath = uuids.join(",");
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
31
49
|
function getFieldsByVariable(variableName) {
|
|
32
50
|
if (!variableName) {
|
|
33
51
|
return [];
|
|
@@ -37,36 +55,79 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
55
|
}
|
|
38
56
|
return variableName.split(".");
|
|
39
57
|
}
|
|
58
|
+
function beforeUpload(params) {
|
|
59
|
+
return fileUploadBeforeUpload(params);
|
|
60
|
+
}
|
|
61
|
+
const onSuccess = (response, uploadFile, uploadFiles) => {
|
|
62
|
+
updateValue();
|
|
63
|
+
};
|
|
64
|
+
const onRemove = (file) => {
|
|
65
|
+
updateValue();
|
|
66
|
+
};
|
|
67
|
+
const updateValue = () => {
|
|
68
|
+
const names = [];
|
|
69
|
+
const uuids = [];
|
|
70
|
+
for (let index2 = 0; index2 < fileList.value.length; index2++) {
|
|
71
|
+
names.push(fileList.value[index2].showName);
|
|
72
|
+
uuids.push(fileList.value[index2].serverPath);
|
|
73
|
+
}
|
|
74
|
+
setVariableValue(props.pageContext.entity, pathFields, uuids.join(","));
|
|
75
|
+
setVariableValue(props.pageContext.entity, nameFields, names.join(","));
|
|
76
|
+
};
|
|
77
|
+
function isPlateSys(systemCode) {
|
|
78
|
+
if (systemCode && (systemCode === "agilebuilder" || systemCode === "portal" || systemCode === "mms" || systemCode === "task" || systemCode === "wf" || systemCode === "dc" || systemCode === "mc" || systemCode === "mobile" || systemCode === "acs" || systemCode === "bs" || systemCode === "pcm")) {
|
|
79
|
+
return true;
|
|
80
|
+
} else {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
40
84
|
return (_ctx, _cache) => {
|
|
41
|
-
const _component_FsUploadList = resolveComponent("FsUploadList");
|
|
42
85
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
43
|
-
return
|
|
86
|
+
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
44
87
|
key: 0,
|
|
45
|
-
required:
|
|
88
|
+
required: designProperty.value.required,
|
|
46
89
|
class: normalizeClass(unref(runtimeClass)),
|
|
47
|
-
"label-width":
|
|
90
|
+
"label-width": designProperty.value.labelWidth,
|
|
48
91
|
style: normalizeStyle(unref(runtimeStyle))
|
|
49
92
|
}, {
|
|
50
93
|
label: withCtx(() => [
|
|
51
|
-
|
|
94
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
52
95
|
key: 0,
|
|
53
96
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
54
|
-
}, toDisplayString(
|
|
97
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
55
98
|
]),
|
|
56
99
|
default: withCtx(() => [
|
|
57
|
-
createVNode(
|
|
58
|
-
disabled:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
100
|
+
createVNode(unref(index), {
|
|
101
|
+
disabled: designProperty.value.state == "disabled",
|
|
102
|
+
displayType: designProperty.value.displayType,
|
|
103
|
+
accept: designProperty.value.accept,
|
|
104
|
+
multiple: designProperty.value.multiple,
|
|
105
|
+
placeholder: designProperty.value.placeholder,
|
|
106
|
+
limit: designProperty.value.limit,
|
|
107
|
+
"limit-file-size": designProperty.value.limitFileSize,
|
|
108
|
+
"file-info": fileInfo.value,
|
|
109
|
+
"file-list": fileList.value,
|
|
110
|
+
"on-success": onSuccess,
|
|
111
|
+
"on-remove": onRemove,
|
|
112
|
+
"before-upload": beforeUpload
|
|
113
|
+
}, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "file-info", "file-list"])
|
|
62
114
|
]),
|
|
63
115
|
_: 1
|
|
64
|
-
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createBlock(
|
|
116
|
+
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createBlock(unref(index), {
|
|
65
117
|
key: 1,
|
|
66
|
-
disabled:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
118
|
+
disabled: designProperty.value.state == "disabled",
|
|
119
|
+
displayType: designProperty.value.displayType,
|
|
120
|
+
accept: designProperty.value.accept,
|
|
121
|
+
multiple: designProperty.value.multiple,
|
|
122
|
+
placeholder: designProperty.value.placeholder,
|
|
123
|
+
limit: designProperty.value.limit,
|
|
124
|
+
"limit-file-size": designProperty.value.limitFileSize,
|
|
125
|
+
"file-info": fileInfo.value,
|
|
126
|
+
"file-list": fileList.value,
|
|
127
|
+
"on-success": onSuccess,
|
|
128
|
+
"on-remove": onRemove,
|
|
129
|
+
"before-upload": beforeUpload
|
|
130
|
+
}, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "file-info", "file-list"]));
|
|
70
131
|
};
|
|
71
132
|
}
|
|
72
133
|
});
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "input-number-runtime",
|
|
6
7
|
props: {
|
|
@@ -23,35 +24,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
24
|
const runtimeStyle = runtimeInfo.style;
|
|
24
25
|
const runtimeClass = runtimeInfo.class;
|
|
25
26
|
const headerStyle = runtimeInfo.headerStyle;
|
|
26
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
27
28
|
return (_ctx, _cache) => {
|
|
28
29
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
29
30
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
30
31
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
31
|
-
required:
|
|
32
|
+
required: designProperty.value.required,
|
|
32
33
|
class: normalizeClass(unref(runtimeClass)),
|
|
33
|
-
"label-width":
|
|
34
|
+
"label-width": designProperty.value.labelWidth,
|
|
34
35
|
style: normalizeStyle(unref(runtimeStyle))
|
|
35
36
|
}, {
|
|
36
37
|
label: withCtx(() => [
|
|
37
|
-
|
|
38
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
38
39
|
key: 0,
|
|
39
40
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
40
|
-
}, toDisplayString(
|
|
41
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
41
42
|
]),
|
|
42
43
|
default: withCtx(() => [
|
|
43
44
|
createVNode(_component_el_input_number, {
|
|
44
|
-
disabled:
|
|
45
|
-
readonly:
|
|
46
|
-
controls:
|
|
47
|
-
size:
|
|
48
|
-
placeholder:
|
|
45
|
+
disabled: designProperty.value.state === "disabled",
|
|
46
|
+
readonly: designProperty.value.state === "readonly",
|
|
47
|
+
controls: designProperty.value.showButton,
|
|
48
|
+
size: designProperty.value.size,
|
|
49
|
+
placeholder: designProperty.value.placeholder,
|
|
49
50
|
modelValue: dynamicModelMethod.value,
|
|
50
51
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
51
|
-
precision:
|
|
52
|
-
step:
|
|
53
|
-
min:
|
|
54
|
-
max:
|
|
52
|
+
precision: designProperty.value.precision,
|
|
53
|
+
step: designProperty.value.step,
|
|
54
|
+
min: designProperty.value.min,
|
|
55
|
+
max: designProperty.value.max,
|
|
56
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
57
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
58
|
+
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus"))
|
|
55
59
|
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
56
60
|
]),
|
|
57
61
|
_: 1
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock,
|
|
2
|
-
import { SuperIcon as _sfc_main$
|
|
1
|
+
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createSlots, createTextVNode } from "vue";
|
|
2
|
+
import { SuperIcon as _sfc_main$4 } from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets, analysisScanValue, setScanAnalysisValue } from "../../../../utils/form/scan-util.js";
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "inputtext-runtime",
|
|
8
9
|
props: {
|
|
@@ -10,6 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
11
|
configure: {}
|
|
11
12
|
},
|
|
12
13
|
setup(__props, { expose: __expose }) {
|
|
14
|
+
var _a, _b;
|
|
13
15
|
const props = __props;
|
|
14
16
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
15
17
|
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
@@ -22,7 +24,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
24
|
}
|
|
23
25
|
});
|
|
24
26
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
|
+
let scanRuleSets = {};
|
|
29
|
+
if (((_a = designProperty.value.scan) == null ? void 0 : _a.enable) && ((_b = designProperty.value.scan.ruleList) == null ? void 0 : _b.length) > 0) {
|
|
30
|
+
setScanRuleSets();
|
|
31
|
+
watchScanValueChange();
|
|
32
|
+
}
|
|
26
33
|
const runtimeStyle = runtimeInfo.style;
|
|
27
34
|
const runtimeClass = runtimeInfo.class;
|
|
28
35
|
const headerStyle = runtimeInfo.headerStyle;
|
|
@@ -32,6 +39,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
39
|
function setValue(value) {
|
|
33
40
|
return setVariableValue(entity, dynamicFields, value);
|
|
34
41
|
}
|
|
42
|
+
function setScanRuleSets() {
|
|
43
|
+
formatScanRuleSets(designProperty.value.scan.ruleList).then((res) => {
|
|
44
|
+
scanRuleSets = res;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function watchScanValueChange() {
|
|
48
|
+
watch(
|
|
49
|
+
() => dynamicModelMethod.value,
|
|
50
|
+
(newValue) => {
|
|
51
|
+
const valueSet = analysisScanValue(newValue, scanRuleSets);
|
|
52
|
+
if (valueSet) {
|
|
53
|
+
setScanAnalysisValue(props.pageContext, valueSet.scanSet, valueSet.params);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
35
58
|
__expose({
|
|
36
59
|
getValue,
|
|
37
60
|
setValue
|
|
@@ -40,26 +63,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
63
|
const _component_el_input = resolveComponent("el-input");
|
|
41
64
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
42
65
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
43
|
-
required:
|
|
66
|
+
required: designProperty.value.required ? true : false,
|
|
44
67
|
class: normalizeClass(unref(runtimeClass)),
|
|
45
|
-
"label-width":
|
|
68
|
+
"label-width": designProperty.value.labelWidth,
|
|
46
69
|
style: normalizeStyle(unref(runtimeStyle))
|
|
47
70
|
}, {
|
|
48
71
|
label: withCtx(() => [
|
|
49
|
-
|
|
72
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
50
73
|
key: 0,
|
|
51
74
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
52
|
-
}, toDisplayString(
|
|
75
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
53
76
|
]),
|
|
54
77
|
default: withCtx(() => [
|
|
55
78
|
createVNode(_component_el_input, {
|
|
56
|
-
disabled:
|
|
57
|
-
readonly:
|
|
58
|
-
size:
|
|
59
|
-
clearable:
|
|
60
|
-
placeholder:
|
|
61
|
-
maxlength:
|
|
62
|
-
"show-word-limit":
|
|
79
|
+
disabled: designProperty.value.state === "disabled",
|
|
80
|
+
readonly: designProperty.value.state === "readonly",
|
|
81
|
+
size: designProperty.value.size,
|
|
82
|
+
clearable: designProperty.value.clearable,
|
|
83
|
+
placeholder: designProperty.value.placeholder,
|
|
84
|
+
maxlength: designProperty.value.maxLength,
|
|
85
|
+
"show-word-limit": designProperty.value.showInputNum,
|
|
63
86
|
modelValue: dynamicModelMethod.value,
|
|
64
87
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
65
88
|
onInput: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
@@ -68,51 +91,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
91
|
onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
69
92
|
onClick: _cache[5] || (_cache[5] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
70
93
|
}, createSlots({ _: 2 }, [
|
|
71
|
-
|
|
94
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
72
95
|
name: "prefix",
|
|
73
96
|
fn: withCtx(() => [
|
|
74
|
-
|
|
97
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
75
98
|
key: 0,
|
|
76
|
-
iconType:
|
|
77
|
-
iconValue:
|
|
99
|
+
iconType: designProperty.value.preIconType,
|
|
100
|
+
iconValue: designProperty.value.preIconValue
|
|
78
101
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
79
|
-
createTextVNode(" " + toDisplayString(
|
|
102
|
+
createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
|
|
80
103
|
]),
|
|
81
104
|
key: "0"
|
|
82
105
|
} : void 0,
|
|
83
|
-
|
|
106
|
+
designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
84
107
|
name: "prepend",
|
|
85
108
|
fn: withCtx(() => [
|
|
86
|
-
|
|
109
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
87
110
|
key: 0,
|
|
88
|
-
iconType:
|
|
89
|
-
iconValue:
|
|
111
|
+
iconType: designProperty.value.preIconType,
|
|
112
|
+
iconValue: designProperty.value.preIconValue
|
|
90
113
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
91
|
-
createTextVNode(" " + toDisplayString(
|
|
114
|
+
createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
|
|
92
115
|
]),
|
|
93
116
|
key: "1"
|
|
94
117
|
} : void 0,
|
|
95
|
-
|
|
118
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
96
119
|
name: "suffix",
|
|
97
120
|
fn: withCtx(() => [
|
|
98
|
-
|
|
121
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
99
122
|
key: 0,
|
|
100
|
-
iconType:
|
|
101
|
-
iconValue:
|
|
123
|
+
iconType: designProperty.value.sufIconType,
|
|
124
|
+
iconValue: designProperty.value.sufIconValue
|
|
102
125
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
103
|
-
createTextVNode(" " + toDisplayString(
|
|
126
|
+
createTextVNode(" " + toDisplayString(designProperty.value.sufText), 1)
|
|
104
127
|
]),
|
|
105
128
|
key: "2"
|
|
106
129
|
} : void 0,
|
|
107
|
-
|
|
130
|
+
designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
108
131
|
name: "append",
|
|
109
132
|
fn: withCtx(() => [
|
|
110
|
-
|
|
133
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
111
134
|
key: 0,
|
|
112
|
-
iconType:
|
|
113
|
-
iconValue:
|
|
135
|
+
iconType: designProperty.value.sufIconType,
|
|
136
|
+
iconValue: designProperty.value.sufIconValue
|
|
114
137
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
115
|
-
createTextVNode(" " + toDisplayString(
|
|
138
|
+
createTextVNode(" " + toDisplayString(designProperty.value.sufText), 1)
|
|
116
139
|
]),
|
|
117
140
|
key: "3"
|
|
118
141
|
} : void 0
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent,
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, createTextVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { queryOptions, formatVariableValue, formatValueByType } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { SuperIcon as _sfc_main$
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
key: 1,
|
|
9
|
-
style: { "display": "flex", "justify-content": "space-between" }
|
|
10
|
-
};
|
|
11
|
-
const _hoisted_4 = ["title"];
|
|
4
|
+
import { SuperIcon as _sfc_main$4 } from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
|
|
5
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
const _hoisted_1 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
|
|
7
|
+
const _hoisted_2 = ["title"];
|
|
12
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
9
|
__name: "label-runtime",
|
|
14
10
|
props: {
|
|
@@ -24,8 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
20
|
const headerStyle = runtimeInfo.headerStyle;
|
|
25
21
|
const appendClass = runtimeInfo.appendClass;
|
|
26
22
|
const appendStyle = runtimeInfo.appendStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
const listOptions = designProperty.options ? designProperty.options : [];
|
|
23
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
24
|
+
const listOptions = designProperty.value.options ? designProperty.value.options : [];
|
|
29
25
|
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
30
26
|
const valueType = dataOrigin.optionValueSetType;
|
|
31
27
|
if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
|
|
@@ -35,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
31
|
console.log("lable组件查询数据源失败!", error);
|
|
36
32
|
});
|
|
37
33
|
}
|
|
38
|
-
let contentVariable = designProperty.formatting;
|
|
34
|
+
let contentVariable = designProperty.value.formatting;
|
|
39
35
|
if (!contentVariable) {
|
|
40
36
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
41
37
|
contentVariable = propsBase.prop;
|
|
@@ -43,12 +39,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
39
|
if (!contentVariable) {
|
|
44
40
|
contentVariable = "${page." + props.configure.uuid + "}";
|
|
45
41
|
}
|
|
46
|
-
const formatType = designProperty.formatType;
|
|
42
|
+
const formatType = designProperty.value.formatType;
|
|
47
43
|
const dynamicValue = computed(() => {
|
|
48
44
|
let resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
49
45
|
console.log("formatType", formatType);
|
|
50
46
|
if (formatType) {
|
|
51
|
-
if (designProperty.hasOptions) {
|
|
47
|
+
if (designProperty.value.hasOptions) {
|
|
52
48
|
let selItems = null;
|
|
53
49
|
if (listOptions.value) {
|
|
54
50
|
selItems = listOptions.value.filter((item) => item.value == resultValue);
|
|
@@ -57,68 +53,75 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
53
|
resultValue = selItems[0].label;
|
|
58
54
|
}
|
|
59
55
|
} else {
|
|
60
|
-
resultValue = formatValueByType(resultValue, formatType, designProperty);
|
|
56
|
+
resultValue = formatValueByType(resultValue, formatType, designProperty.value);
|
|
61
57
|
}
|
|
62
58
|
}
|
|
63
59
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
64
60
|
});
|
|
65
61
|
return (_ctx, _cache) => {
|
|
66
62
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
67
|
-
return
|
|
63
|
+
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
68
64
|
key: 0,
|
|
69
|
-
required:
|
|
65
|
+
required: designProperty.value.required ? true : false,
|
|
70
66
|
class: normalizeClass(unref(runtimeClass)),
|
|
71
|
-
"label-width":
|
|
67
|
+
"label-width": designProperty.value.labelWidth,
|
|
72
68
|
style: normalizeStyle(unref(runtimeStyle))
|
|
73
69
|
}, {
|
|
74
70
|
label: withCtx(() => [
|
|
75
|
-
|
|
71
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
76
72
|
key: 0,
|
|
77
73
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
78
|
-
}, toDisplayString(
|
|
74
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
79
75
|
]),
|
|
80
76
|
default: withCtx(() => [
|
|
81
|
-
createElementVNode("div",
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
createElementVNode("div", {
|
|
78
|
+
style: { "display": "flex", "width": "100%", "justify-content": "space-between" },
|
|
79
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
80
|
+
}, [
|
|
81
|
+
createElementVNode("span", _hoisted_1, [
|
|
82
|
+
designProperty.value.preIconValue || designProperty.value.preText ? (openBlock(), createElementBlock("span", {
|
|
84
83
|
key: 0,
|
|
85
|
-
class: normalizeClass({ "el-input__suffix":
|
|
84
|
+
class: normalizeClass({ "el-input__suffix": designProperty.value.iconPosition != "outer", "el-input-group__append": designProperty.value.iconPosition == "outer" }),
|
|
86
85
|
style: normalizeStyle(unref(appendStyle))
|
|
87
86
|
}, [
|
|
88
|
-
|
|
87
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
89
88
|
key: 0,
|
|
90
|
-
iconType:
|
|
91
|
-
iconValue:
|
|
89
|
+
iconType: designProperty.value.preIconType,
|
|
90
|
+
iconValue: designProperty.value.preIconValue
|
|
92
91
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
93
|
-
createTextVNode(" " + toDisplayString(
|
|
92
|
+
createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
|
|
94
93
|
], 6)) : createCommentVNode("", true),
|
|
95
94
|
createTextVNode(" " + toDisplayString(dynamicValue.value), 1)
|
|
96
95
|
]),
|
|
97
|
-
|
|
96
|
+
designProperty.value.sufIconValue || designProperty.value.sufText ? (openBlock(), createElementBlock("span", {
|
|
98
97
|
key: 0,
|
|
99
|
-
class: normalizeClass({ "el-input__suffix":
|
|
98
|
+
class: normalizeClass({ "el-input__suffix": designProperty.value.iconPosition != "outer", "el-input-group__append": designProperty.value.iconPosition == "outer" })
|
|
100
99
|
}, [
|
|
101
|
-
|
|
100
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
102
101
|
key: 0,
|
|
103
102
|
style: {},
|
|
104
|
-
iconType:
|
|
105
|
-
iconValue:
|
|
103
|
+
iconType: designProperty.value.sufIconType,
|
|
104
|
+
iconValue: designProperty.value.sufIconValue
|
|
106
105
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
107
|
-
createElementVNode("span", null, " " + toDisplayString(
|
|
106
|
+
createElementVNode("span", null, " " + toDisplayString(designProperty.value.sufText), 1)
|
|
108
107
|
], 2)) : createCommentVNode("", true)
|
|
109
108
|
])
|
|
110
109
|
]),
|
|
111
110
|
_: 1
|
|
112
|
-
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span",
|
|
111
|
+
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span", {
|
|
112
|
+
key: 1,
|
|
113
|
+
style: { "display": "flex", "justify-content": "space-between" },
|
|
114
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
115
|
+
}, [
|
|
113
116
|
createElementVNode("span", {
|
|
114
117
|
style: { "overflow": "hidden", "white-space": "nowrap" },
|
|
115
118
|
title: dynamicValue.value
|
|
116
|
-
}, toDisplayString(
|
|
117
|
-
|
|
119
|
+
}, toDisplayString(designProperty.value.prefixIcon) + " " + toDisplayString(dynamicValue.value) + "222", 9, _hoisted_2),
|
|
120
|
+
designProperty.value.suffixTxt ? (openBlock(), createElementBlock("span", {
|
|
118
121
|
key: 0,
|
|
119
122
|
class: normalizeClass(unref(appendClass)),
|
|
120
123
|
style: normalizeStyle(unref(appendStyle))
|
|
121
|
-
}, toDisplayString(
|
|
124
|
+
}, toDisplayString(designProperty.value.suffixTxt) + "222", 7)) : createCommentVNode("", true)
|
|
122
125
|
]));
|
|
123
126
|
};
|
|
124
127
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { formatVariableValue
|
|
3
|
+
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "link-runtime",
|
|
6
7
|
props: {
|
|
@@ -14,8 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
15
|
const runtimeStyle = runtimeInfo.style;
|
|
15
16
|
const runtimeClass = runtimeInfo.class;
|
|
16
17
|
const headerStyle = runtimeInfo.headerStyle;
|
|
17
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
18
|
-
let contentVariable = designProperty.formatting;
|
|
18
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
19
|
+
let contentVariable = designProperty.value.formatting;
|
|
19
20
|
if (!contentVariable) {
|
|
20
21
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
21
22
|
contentVariable = propsBase.prop;
|
|
@@ -27,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
28
|
const resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
28
29
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
29
30
|
});
|
|
30
|
-
let tooltipVariable = designProperty.tooltip;
|
|
31
|
+
let tooltipVariable = designProperty.value.tooltip;
|
|
31
32
|
const tooltipValue = computed(() => {
|
|
32
33
|
const resultValue = formatVariableValue(props.pageContext, tooltipVariable);
|
|
33
34
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
@@ -38,14 +39,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
39
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
39
40
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
40
41
|
class: normalizeClass(unref(runtimeClass)),
|
|
41
|
-
"label-width":
|
|
42
|
+
"label-width": designProperty.value.labelWidth,
|
|
42
43
|
style: normalizeStyle(unref(runtimeStyle))
|
|
43
44
|
}, {
|
|
44
45
|
label: withCtx(() => [
|
|
45
|
-
|
|
46
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
46
47
|
key: 0,
|
|
47
48
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
48
|
-
}, toDisplayString(
|
|
49
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
49
50
|
]),
|
|
50
51
|
default: withCtx(() => [
|
|
51
52
|
createVNode(_component_el_tooltip, {
|
|
@@ -54,10 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
55
|
}, {
|
|
55
56
|
default: withCtx(() => [
|
|
56
57
|
createVNode(_component_el_link, {
|
|
57
|
-
disabled:
|
|
58
|
-
type:
|
|
59
|
-
underline:
|
|
60
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(
|
|
58
|
+
disabled: designProperty.value.state === "disabled",
|
|
59
|
+
type: designProperty.value.type,
|
|
60
|
+
underline: designProperty.value.underline,
|
|
61
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
61
62
|
}, {
|
|
62
63
|
default: withCtx(() => [
|
|
63
64
|
createTextVNode(toDisplayString(dynamicValue.value), 1)
|