super-page-runtime 3.0.3 → 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
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "radio-runtime",
|
|
6
7
|
props: {
|
|
@@ -23,8 +24,8 @@ 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 listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
|
+
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
28
29
|
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
29
30
|
if (cacheOptions.length > 0) {
|
|
30
31
|
listOptions.value = cacheOptions;
|
|
@@ -47,10 +48,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
target: props.configure.props.base.optionProp
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
const monitorFields = designProperty.monitorFields;
|
|
51
|
+
designProperty.value.changeMethod = optionChange;
|
|
52
|
+
const monitorFields = designProperty.value.monitorFields;
|
|
54
53
|
const monitorFieldInfos = [];
|
|
55
54
|
if (monitorFields) {
|
|
56
55
|
const preFields = [];
|
|
@@ -81,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
80
|
}
|
|
82
81
|
let initMonitorValue = getMonitorFieldValues();
|
|
83
82
|
let monitorTimeout = false;
|
|
84
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
83
|
+
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
85
84
|
function monitorFieldChange() {
|
|
86
85
|
if (monitorTimeout) {
|
|
87
86
|
clearTimeout(monitorTimeout);
|
|
@@ -98,13 +97,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
97
|
}, 200);
|
|
99
98
|
}
|
|
100
99
|
function optionChange(value) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
if (autoSets.length > 0) {
|
|
101
|
+
let selItems = null;
|
|
102
|
+
if (listOptions.value && value != void 0 && value != null) {
|
|
103
|
+
selItems = listOptions.value.filter((item) => {
|
|
104
|
+
return value === item.value;
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
106
108
|
}
|
|
107
|
-
|
|
109
|
+
handleEvent(value, props.pageContext, props.configure, "change");
|
|
108
110
|
}
|
|
109
111
|
function updateOptions(newOptions) {
|
|
110
112
|
listOptions.value = newOptions ? newOptions : [];
|
|
@@ -117,22 +119,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
119
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
118
120
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
119
121
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
120
|
-
required:
|
|
122
|
+
required: designProperty.value.required,
|
|
121
123
|
class: normalizeClass(unref(runtimeClass)),
|
|
122
|
-
"label-width":
|
|
124
|
+
"label-width": designProperty.value.labelWidth,
|
|
123
125
|
style: normalizeStyle(unref(runtimeStyle))
|
|
124
126
|
}, {
|
|
125
127
|
label: withCtx(() => [
|
|
126
|
-
|
|
128
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
127
129
|
key: 0,
|
|
128
130
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
129
|
-
}, toDisplayString(
|
|
131
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
130
132
|
]),
|
|
131
133
|
default: withCtx(() => [
|
|
132
134
|
createVNode(_component_el_radio_group, {
|
|
133
|
-
disabled:
|
|
134
|
-
size:
|
|
135
|
-
onChange:
|
|
135
|
+
disabled: designProperty.value.state === "disabled",
|
|
136
|
+
size: designProperty.value.size,
|
|
137
|
+
onChange: designProperty.value.changeMethod,
|
|
136
138
|
modelValue: dynamicModelMethod.value,
|
|
137
139
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
138
140
|
}, {
|
|
@@ -141,8 +143,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
143
|
return openBlock(), createBlock(_component_el_radio, {
|
|
142
144
|
key: item.value,
|
|
143
145
|
value: item.value,
|
|
144
|
-
label: item.label
|
|
145
|
-
|
|
146
|
+
label: item.label,
|
|
147
|
+
onClick: ($event) => unref(handleEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
148
|
+
}, null, 8, ["value", "label", "onClick"]);
|
|
146
149
|
}), 128))
|
|
147
150
|
]),
|
|
148
151
|
_: 1
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted,
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { formatVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import "../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/quill.js";
|
|
5
5
|
/* empty css */
|
|
6
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
7
|
+
import http from "../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.26_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
6
8
|
import "../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core.js";
|
|
7
9
|
import Quill from "../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core/quill.js";
|
|
8
10
|
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
@@ -25,13 +27,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
27
|
const runtimeStyle = runtimeInfo.style;
|
|
26
28
|
const runtimeClass = runtimeInfo.class;
|
|
27
29
|
const headerStyle = runtimeInfo.headerStyle;
|
|
28
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
29
|
-
let contentVariable = designProperty.value;
|
|
30
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
31
|
+
let contentVariable = designProperty.value.value;
|
|
30
32
|
const initValue = formatVariableValue(props.pageContext, contentVariable);
|
|
31
33
|
const quillEditorRef = ref(null);
|
|
32
34
|
const quill = ref(null);
|
|
33
35
|
const fileBtn = ref(null);
|
|
34
|
-
const fontSize = [
|
|
36
|
+
const fontSize = [
|
|
37
|
+
"12px",
|
|
38
|
+
"13px",
|
|
39
|
+
"14px",
|
|
40
|
+
"15px",
|
|
41
|
+
"16px",
|
|
42
|
+
"18px",
|
|
43
|
+
"20px",
|
|
44
|
+
"24px",
|
|
45
|
+
"28px",
|
|
46
|
+
"32px",
|
|
47
|
+
"36px"
|
|
48
|
+
];
|
|
35
49
|
const option = ref({
|
|
36
50
|
modules: {
|
|
37
51
|
toolbar: [
|
|
@@ -64,11 +78,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
78
|
]
|
|
65
79
|
},
|
|
66
80
|
theme: "snow",
|
|
67
|
-
placeholder: designProperty.placeholder,
|
|
68
|
-
readOnly: designProperty.state == "readonly"
|
|
81
|
+
placeholder: designProperty.value.placeholder,
|
|
82
|
+
readOnly: designProperty.value.state == "readonly"
|
|
69
83
|
});
|
|
70
84
|
function updateEditorHeight() {
|
|
71
|
-
if (quill && quill.value) {
|
|
85
|
+
if (quill.value && quill.value) {
|
|
72
86
|
if (quill.value.container) {
|
|
73
87
|
const parentNode = quill.value.container.parentNode;
|
|
74
88
|
const parentRect = parentNode.getBoundingClientRect();
|
|
@@ -81,11 +95,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
95
|
}
|
|
82
96
|
}
|
|
83
97
|
}
|
|
84
|
-
const imgHandler = (state) => {
|
|
85
|
-
if (fileBtn.value && state) {
|
|
86
|
-
fileBtn.value.click();
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
98
|
const handleUpload = (e) => {
|
|
90
99
|
const files = Array.prototype.slice.call(e.target.files);
|
|
91
100
|
if (!files) {
|
|
@@ -96,33 +105,96 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
105
|
alert("TODO:上传图片");
|
|
97
106
|
};
|
|
98
107
|
onMounted(() => {
|
|
108
|
+
var _a;
|
|
99
109
|
quill.value = new Quill(quillEditorRef.value, option.value);
|
|
100
|
-
|
|
101
|
-
quill.value.on("text-change", function(delta, oldDelta, source) {
|
|
102
|
-
if (
|
|
103
|
-
|
|
110
|
+
(_a = quillEditorRef.value) == null ? void 0 : _a.addEventListener("focusout", handleFocusOut);
|
|
111
|
+
quill.value.on("text-change", async function(delta, oldDelta, source) {
|
|
112
|
+
if (delta.ops && delta.ops.length > 0) {
|
|
113
|
+
for (let i = 0; i < delta.ops.length; i++) {
|
|
114
|
+
const ops = delta.ops[i];
|
|
115
|
+
if (ops.insert && ops.insert.image) {
|
|
116
|
+
const dataurl = ops.insert.image;
|
|
117
|
+
if (!dataurl.startsWith("data:image")) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
const file = dataURLtoFile(dataurl, "image.png");
|
|
121
|
+
await uploadImage(file).then((res) => {
|
|
122
|
+
if (!quill.value) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const images = quill.value.root.getElementsByTagName("img");
|
|
126
|
+
if (images && images.length > 0) {
|
|
127
|
+
for (let i2 = 0; i2 < images.length; i2++) {
|
|
128
|
+
const img = images[i2];
|
|
129
|
+
if (img.src === dataurl) {
|
|
130
|
+
img.src = res.url;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}).catch((err) => {
|
|
135
|
+
console.error(err, "上传图片失败");
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
104
139
|
}
|
|
105
|
-
|
|
106
|
-
setVariableValue(entity, dynamicFields, quill.value.root.innerHTML);
|
|
107
|
-
console.log("new entity", entity);
|
|
108
|
-
}, 1e3);
|
|
140
|
+
setVariableValue(entity, dynamicFields, quill.value.root.innerHTML);
|
|
109
141
|
});
|
|
110
142
|
updateEditorHeight();
|
|
111
143
|
});
|
|
144
|
+
onBeforeUnmount(() => {
|
|
145
|
+
if (quillEditorRef.value) {
|
|
146
|
+
quillEditorRef.value.removeEventListener("focusout", handleFocusOut);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
function handleFocusOut(event) {
|
|
150
|
+
var _a;
|
|
151
|
+
if (event.relatedTarget === null || !((_a = quillEditorRef.value) == null ? void 0 : _a.contains(event.relatedTarget))) {
|
|
152
|
+
handleEvent(quill.value.root.innerHTML, props.pageContext, props.configure, "change", {
|
|
153
|
+
entity
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function uploadImage(blob) {
|
|
158
|
+
const params = new FormData();
|
|
159
|
+
params.append("file", blob);
|
|
160
|
+
const config = {
|
|
161
|
+
headers: {
|
|
162
|
+
"Content-Type": "multipart/form-data"
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
let baseUrl = props.pageContext.backendUrl;
|
|
166
|
+
if (!baseUrl) {
|
|
167
|
+
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
168
|
+
}
|
|
169
|
+
return http.post(
|
|
170
|
+
baseUrl + "/common/fs-upload/rich-editor-image",
|
|
171
|
+
params,
|
|
172
|
+
config
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
function dataURLtoFile(dataurl, filename) {
|
|
176
|
+
let arr = dataurl.split(",");
|
|
177
|
+
let mime = arr[0].match(/:(.*?);/)[1];
|
|
178
|
+
let bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);
|
|
179
|
+
while (n--) {
|
|
180
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
181
|
+
}
|
|
182
|
+
return new File([u8arr], filename, { type: mime });
|
|
183
|
+
}
|
|
112
184
|
return (_ctx, _cache) => {
|
|
113
185
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
114
|
-
return
|
|
186
|
+
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
115
187
|
key: 0,
|
|
116
|
-
required:
|
|
188
|
+
required: designProperty.value.required,
|
|
117
189
|
class: normalizeClass(unref(runtimeClass)),
|
|
118
|
-
"label-width":
|
|
190
|
+
"label-width": designProperty.value.labelWidth,
|
|
119
191
|
style: normalizeStyle(unref(runtimeStyle))
|
|
120
192
|
}, {
|
|
121
193
|
label: withCtx(() => [
|
|
122
|
-
|
|
194
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
123
195
|
key: 0,
|
|
124
196
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
125
|
-
}, toDisplayString(
|
|
197
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
126
198
|
]),
|
|
127
199
|
default: withCtx(() => [
|
|
128
200
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList, createElementVNode } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, queryOptionDatasources, autoSetAfterSelect } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
5
|
const _hoisted_1 = { style: { "float": "left" } };
|
|
5
6
|
const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -25,8 +26,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
26
|
const runtimeStyle = runtimeInfo.style;
|
|
26
27
|
const runtimeClass = runtimeInfo.class;
|
|
27
28
|
const headerStyle = runtimeInfo.headerStyle;
|
|
28
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
29
|
-
const listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
29
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
30
|
+
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
30
31
|
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
31
32
|
if (cacheOptions.length > 0) {
|
|
32
33
|
listOptions.value = cacheOptions;
|
|
@@ -35,14 +36,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
36
|
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
36
37
|
const valueType = dataOrigin.optionValueSetType;
|
|
37
38
|
let autoSets = [];
|
|
38
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
39
|
+
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
39
40
|
if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
|
|
40
41
|
if (dataOrigin.filterType == "remote") {
|
|
41
|
-
designProperty.filterable = true;
|
|
42
|
-
designProperty.remote = true;
|
|
43
|
-
designProperty.remoteShowSuffix = true;
|
|
42
|
+
designProperty.value.filterable = true;
|
|
43
|
+
designProperty.value.remote = true;
|
|
44
|
+
designProperty.value.remoteShowSuffix = true;
|
|
44
45
|
let hisQuery = void 0;
|
|
45
|
-
designProperty.remoteMethod = function(query) {
|
|
46
|
+
designProperty.value.remoteMethod = function(query) {
|
|
46
47
|
if (hisQuery === query) {
|
|
47
48
|
return;
|
|
48
49
|
}
|
|
@@ -71,10 +72,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
72
|
target: props.configure.props.base.optionProp
|
|
72
73
|
});
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
const monitorFields = designProperty.monitorFields;
|
|
75
|
+
designProperty.value.changeMethod = optionChange;
|
|
76
|
+
const monitorFields = designProperty.value.monitorFields;
|
|
78
77
|
const monitorFieldInfos = [];
|
|
79
78
|
if (monitorFields) {
|
|
80
79
|
const preFields = [];
|
|
@@ -122,13 +121,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
121
|
}, 200);
|
|
123
122
|
}
|
|
124
123
|
function optionChange(value) {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
if (autoSets.length > 0) {
|
|
125
|
+
let selItems = null;
|
|
126
|
+
if (listOptions.value && value != void 0 && value != null) {
|
|
127
|
+
selItems = listOptions.value.filter((item) => {
|
|
128
|
+
return Array.isArray(value) ? value.includes(item.value) : value === item.value;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
130
132
|
}
|
|
131
|
-
|
|
133
|
+
handleEvent(value, props.pageContext, props.configure, "change");
|
|
132
134
|
}
|
|
133
135
|
function updateOptions(newOptions) {
|
|
134
136
|
listOptions.value = newOptions ? newOptions : [];
|
|
@@ -142,33 +144,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
144
|
const _component_el_select = resolveComponent("el-select");
|
|
143
145
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
144
146
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
145
|
-
required:
|
|
147
|
+
required: designProperty.value.required ? true : false,
|
|
146
148
|
class: normalizeClass(unref(runtimeClass)),
|
|
147
|
-
"label-width":
|
|
149
|
+
"label-width": designProperty.value.labelWidth,
|
|
148
150
|
style: normalizeStyle(unref(runtimeStyle))
|
|
149
151
|
}, {
|
|
150
152
|
label: withCtx(() => [
|
|
151
|
-
|
|
153
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
152
154
|
key: 0,
|
|
153
155
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
154
|
-
}, toDisplayString(
|
|
156
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
155
157
|
]),
|
|
156
158
|
default: withCtx(() => [
|
|
157
159
|
createVNode(_component_el_select, {
|
|
158
|
-
disabled:
|
|
159
|
-
size:
|
|
160
|
-
clearable:
|
|
161
|
-
multiple:
|
|
162
|
-
"collapse-tags":
|
|
163
|
-
"collapse-tags-tooltip":
|
|
164
|
-
filterable:
|
|
165
|
-
"allow-create":
|
|
166
|
-
placeholder:
|
|
167
|
-
"remote-show-suffix":
|
|
168
|
-
remote:
|
|
169
|
-
"remote-method":
|
|
160
|
+
disabled: designProperty.value.state === "disabled",
|
|
161
|
+
size: designProperty.value.size,
|
|
162
|
+
clearable: designProperty.value.clearable,
|
|
163
|
+
multiple: designProperty.value.multiple,
|
|
164
|
+
"collapse-tags": designProperty.value.collapseTags,
|
|
165
|
+
"collapse-tags-tooltip": designProperty.value.collapseTagsTooltip,
|
|
166
|
+
filterable: designProperty.value.filterable,
|
|
167
|
+
"allow-create": designProperty.value.allowCreate,
|
|
168
|
+
placeholder: designProperty.value.placeholder,
|
|
169
|
+
"remote-show-suffix": designProperty.value.remoteShowSuffix,
|
|
170
|
+
remote: designProperty.value.remote,
|
|
171
|
+
"remote-method": designProperty.value.remoteMethod,
|
|
170
172
|
loading: queryLoadingFlag.value,
|
|
171
|
-
onChange:
|
|
173
|
+
onChange: designProperty.value.changeMethod,
|
|
172
174
|
modelValue: dynamicModelMethod.value,
|
|
173
175
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
174
176
|
}, {
|
|
@@ -177,7 +179,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
177
179
|
return openBlock(), createBlock(_component_el_option, {
|
|
178
180
|
key: item.value,
|
|
179
181
|
label: item.label,
|
|
180
|
-
value: item.value
|
|
182
|
+
value: item.value,
|
|
183
|
+
onClick: ($event) => unref(handleEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
181
184
|
}, {
|
|
182
185
|
default: withCtx(() => [
|
|
183
186
|
item._description_ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -186,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
189
|
], 64)) : createCommentVNode("", true)
|
|
187
190
|
]),
|
|
188
191
|
_: 2
|
|
189
|
-
}, 1032, ["label", "value"]);
|
|
192
|
+
}, 1032, ["label", "value", "onClick"]);
|
|
190
193
|
}), 128))
|
|
191
194
|
]),
|
|
192
195
|
_: 1
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString } 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
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "separatelabel-runtime",
|
|
5
|
+
props: {
|
|
6
|
+
pageContext: {},
|
|
7
|
+
configure: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props, { expose: __expose }) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const thisRef = ref(null);
|
|
12
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
+
const runtimeStyle = runtimeInfo.style;
|
|
14
|
+
const runtimeClass = runtimeInfo.class;
|
|
15
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
16
|
+
__expose({});
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return openBlock(), createElementBlock("div", {
|
|
19
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
20
|
+
class: normalizeClass([unref(runtimeClass), "amb-widget-separatelabel"]),
|
|
21
|
+
ref_key: "thisRef",
|
|
22
|
+
ref: thisRef
|
|
23
|
+
}, [
|
|
24
|
+
createElementVNode("div", {
|
|
25
|
+
class: "label",
|
|
26
|
+
style: normalizeStyle(unref(headerStyle))
|
|
27
|
+
}, [
|
|
28
|
+
_ctx.configure.props.iconType && _ctx.configure.props.iconValue ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
29
|
+
key: 0,
|
|
30
|
+
iconType: _ctx.configure.props.iconType,
|
|
31
|
+
iconValue: _ctx.configure.props.iconValue,
|
|
32
|
+
style: { "margin-right": "2px" }
|
|
33
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
34
|
+
createTextVNode(" " + toDisplayString(_ctx.configure.props.base.title), 1)
|
|
35
|
+
], 4)
|
|
36
|
+
], 6);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
_sfc_main as default
|
|
42
|
+
};
|
|
@@ -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: "switch-runtime",
|
|
6
7
|
props: {
|
|
@@ -23,35 +24,36 @@ 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
|
const switchStyle = runtimeInfo.switchStyle;
|
|
28
29
|
return (_ctx, _cache) => {
|
|
29
30
|
const _component_el_switch = resolveComponent("el-switch");
|
|
30
31
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
31
32
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
32
|
-
required:
|
|
33
|
+
required: designProperty.value.required,
|
|
33
34
|
class: normalizeClass(unref(runtimeClass)),
|
|
34
|
-
"label-width":
|
|
35
|
+
"label-width": designProperty.value.labelWidth,
|
|
35
36
|
style: normalizeStyle(unref(runtimeStyle))
|
|
36
37
|
}, {
|
|
37
38
|
label: withCtx(() => [
|
|
38
|
-
|
|
39
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
39
40
|
key: 0,
|
|
40
41
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
41
|
-
}, toDisplayString(
|
|
42
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
42
43
|
]),
|
|
43
44
|
default: withCtx(() => [
|
|
44
45
|
createVNode(_component_el_switch, {
|
|
45
|
-
disabled:
|
|
46
|
-
"active-value:":
|
|
47
|
-
"active-text":
|
|
48
|
-
"inactive-value":
|
|
49
|
-
"inactive-text":
|
|
50
|
-
width:
|
|
51
|
-
size:
|
|
46
|
+
disabled: designProperty.value.state === "disabled",
|
|
47
|
+
"active-value:": designProperty.value.activeValue,
|
|
48
|
+
"active-text": designProperty.value.activeText,
|
|
49
|
+
"inactive-value": designProperty.value.inactiveValue,
|
|
50
|
+
"inactive-text": designProperty.value.inactiveText,
|
|
51
|
+
width: designProperty.value.offOnWidth,
|
|
52
|
+
size: designProperty.value.size,
|
|
52
53
|
style: normalizeStyle(unref(switchStyle)),
|
|
53
54
|
modelValue: dynamicModelMethod.value,
|
|
54
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
55
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
56
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "change"))
|
|
55
57
|
}, null, 8, ["disabled", "active-value:", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
|
|
56
58
|
]),
|
|
57
59
|
_: 1
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock,
|
|
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
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: "tag-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;
|
|
@@ -31,22 +32,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
const _component_el_tag = resolveComponent("el-tag");
|
|
32
33
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
33
34
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
34
|
-
required:
|
|
35
|
+
required: designProperty.value.required,
|
|
35
36
|
class: normalizeClass(unref(runtimeClass)),
|
|
36
|
-
"label-width":
|
|
37
|
+
"label-width": designProperty.value.labelWidth,
|
|
37
38
|
style: normalizeStyle(unref(runtimeStyle))
|
|
38
39
|
}, {
|
|
39
40
|
label: withCtx(() => [
|
|
40
|
-
|
|
41
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
41
42
|
key: 0,
|
|
42
43
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
43
|
-
}, toDisplayString(
|
|
44
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
44
45
|
]),
|
|
45
46
|
default: withCtx(() => [
|
|
46
47
|
createVNode(_component_el_tag, {
|
|
47
|
-
size:
|
|
48
|
-
closable:
|
|
49
|
-
type:
|
|
48
|
+
size: designProperty.value.size,
|
|
49
|
+
closable: designProperty.value.closable,
|
|
50
|
+
type: designProperty.value.type,
|
|
51
|
+
onClose: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "remove")),
|
|
52
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
50
53
|
}, {
|
|
51
54
|
default: withCtx(() => [
|
|
52
55
|
createTextVNode(toDisplayString(dynamicValue.value), 1)
|