super-page-runtime 2.0.43 → 2.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +77 -39
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +54 -8
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +39 -7
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +44 -10
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +28 -2
- package/dist/es/components/runtime/utils/charts/chart-util.js +242 -46
- package/dist/es/components/runtime/utils/common-util.js +5 -5
- package/dist/es/components/runtime/utils/events/event-util.d.ts +15 -0
- package/dist/es/components/runtime/utils/events/event-util.js +71 -47
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +19 -12
- package/dist/es/components/runtime/utils/events/validator-util.js +8 -7
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +6 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +11 -1
- package/dist/es/components/runtime/utils/page-init-util.js +6 -4
- package/dist/es/components/runtime/utils/page-permission-util.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +35 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +33 -14
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +16 -22
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -10
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +57 -40
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +14 -5
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -6
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +15 -11
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +30 -20
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +14 -5
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +17 -8
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +23 -9
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/super-page.vue.js +36 -37
- package/dist/es/i18n/langs/cn.js +2 -1
- package/dist/es/i18n/langs/en.js +2 -1
- package/package.json +2 -2
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Barcode.js +0 -4
- package/dist/lib/_virtual/CODE128.js +0 -4
- package/dist/lib/_virtual/CODE128A.js +0 -4
- package/dist/lib/_virtual/CODE128B.js +0 -4
- package/dist/lib/_virtual/CODE128C.js +0 -4
- package/dist/lib/_virtual/CODE128_AUTO.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/EAN.js +0 -4
- package/dist/lib/_virtual/EAN13.js +0 -4
- package/dist/lib/_virtual/EAN2.js +0 -4
- package/dist/lib/_virtual/EAN5.js +0 -4
- package/dist/lib/_virtual/EAN8.js +0 -4
- package/dist/lib/_virtual/ErrorHandler.js +0 -4
- package/dist/lib/_virtual/ITF.js +0 -4
- package/dist/lib/_virtual/ITF14.js +0 -4
- package/dist/lib/_virtual/JsBarcode.js +0 -6
- package/dist/lib/_virtual/MSI.js +0 -4
- package/dist/lib/_virtual/MSI10.js +0 -4
- package/dist/lib/_virtual/MSI1010.js +0 -4
- package/dist/lib/_virtual/MSI11.js +0 -4
- package/dist/lib/_virtual/MSI1110.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/SVGPathData.js +0 -4
- package/dist/lib/_virtual/SVGPathData2.js +0 -5
- package/dist/lib/_virtual/UPC.js +0 -4
- package/dist/lib/_virtual/UPCE.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -35
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/alignment-pattern.js +0 -4
- package/dist/lib/_virtual/arrayLikeToArray.js +0 -4
- package/dist/lib/_virtual/arrayWithHoles.js +0 -4
- package/dist/lib/_virtual/arrayWithoutHoles.js +0 -4
- package/dist/lib/_virtual/assertThisInitialized.js +0 -4
- package/dist/lib/_virtual/asyncToGenerator.js +0 -4
- package/dist/lib/_virtual/asyncToGenerator2.js +0 -6
- package/dist/lib/_virtual/auto.js +0 -4
- package/dist/lib/_virtual/backo2.js +0 -4
- package/dist/lib/_virtual/base64-arraybuffer.js +0 -4
- package/dist/lib/_virtual/binary.js +0 -4
- package/dist/lib/_virtual/browser.js +0 -4
- package/dist/lib/_virtual/browser2.js +0 -4
- package/dist/lib/_virtual/canvas.js +0 -4
- package/dist/lib/_virtual/canvas2.js +0 -4
- package/dist/lib/_virtual/checksums.js +0 -4
- package/dist/lib/_virtual/classCallCheck.js +0 -4
- package/dist/lib/_virtual/commons.js +0 -4
- package/dist/lib/_virtual/constants.js +0 -4
- package/dist/lib/_virtual/constants2.js +0 -4
- package/dist/lib/_virtual/constants3.js +0 -4
- package/dist/lib/_virtual/createClass.js +0 -4
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/decodePacket.browser.js +0 -4
- package/dist/lib/_virtual/defaults.js +0 -4
- package/dist/lib/_virtual/defineProperty.js +0 -4
- package/dist/lib/_virtual/defineProperty2.js +0 -6
- package/dist/lib/_virtual/dijkstra.js +0 -4
- package/dist/lib/_virtual/encodePacket.browser.js +0 -4
- package/dist/lib/_virtual/encoder.js +0 -4
- package/dist/lib/_virtual/error-correction-code.js +0 -4
- package/dist/lib/_virtual/error-correction-level.js +0 -4
- package/dist/lib/_virtual/es.array.concat.js +0 -4
- package/dist/lib/_virtual/es.array.every.js +0 -4
- package/dist/lib/_virtual/es.array.fill.js +0 -4
- package/dist/lib/_virtual/es.array.for-each.js +0 -4
- package/dist/lib/_virtual/es.array.from.js +0 -4
- package/dist/lib/_virtual/es.array.includes.js +0 -4
- package/dist/lib/_virtual/es.array.index-of.js +0 -4
- package/dist/lib/_virtual/es.array.index-of2.js +0 -3
- package/dist/lib/_virtual/es.array.iterator.js +0 -3
- package/dist/lib/_virtual/es.array.join.js +0 -4
- package/dist/lib/_virtual/es.array.map.js +0 -4
- package/dist/lib/_virtual/es.array.reduce.js +0 -4
- package/dist/lib/_virtual/es.array.reduce2.js +0 -3
- package/dist/lib/_virtual/es.array.reverse.js +0 -4
- package/dist/lib/_virtual/es.array.reverse2.js +0 -3
- package/dist/lib/_virtual/es.array.some.js +0 -4
- package/dist/lib/_virtual/es.function.name.js +0 -4
- package/dist/lib/_virtual/es.map.constructor.js +0 -4
- package/dist/lib/_virtual/es.map.js +0 -4
- package/dist/lib/_virtual/es.number.constructor.js +0 -4
- package/dist/lib/_virtual/es.object.to-string.js +0 -4
- package/dist/lib/_virtual/es.parse-float.js +0 -4
- package/dist/lib/_virtual/es.promise.all.js +0 -4
- package/dist/lib/_virtual/es.promise.catch.js +0 -4
- package/dist/lib/_virtual/es.promise.constructor.js +0 -4
- package/dist/lib/_virtual/es.promise.js +0 -4
- package/dist/lib/_virtual/es.promise.race.js +0 -4
- package/dist/lib/_virtual/es.promise.reject.js +0 -4
- package/dist/lib/_virtual/es.promise.resolve.js +0 -4
- package/dist/lib/_virtual/es.promise2.js +0 -3
- package/dist/lib/_virtual/es.reflect.apply.js +0 -4
- package/dist/lib/_virtual/es.reflect.delete-property.js +0 -4
- package/dist/lib/_virtual/es.reflect.get-prototype-of.js +0 -4
- package/dist/lib/_virtual/es.regexp.exec.js +0 -4
- package/dist/lib/_virtual/es.regexp.to-string.js +0 -4
- package/dist/lib/_virtual/es.regexp.to-string2.js +0 -3
- package/dist/lib/_virtual/es.string.ends-with.js +0 -4
- package/dist/lib/_virtual/es.string.ends-with2.js +0 -3
- package/dist/lib/_virtual/es.string.includes.js +0 -4
- package/dist/lib/_virtual/es.string.includes2.js +0 -3
- package/dist/lib/_virtual/es.string.iterator.js +0 -4
- package/dist/lib/_virtual/es.string.match.js +0 -4
- package/dist/lib/_virtual/es.string.match2.js +0 -3
- package/dist/lib/_virtual/es.string.replace.js +0 -4
- package/dist/lib/_virtual/es.string.replace2.js +0 -3
- package/dist/lib/_virtual/es.string.split.js +0 -4
- package/dist/lib/_virtual/es.string.split2.js +0 -3
- package/dist/lib/_virtual/es.string.starts-with.js +0 -4
- package/dist/lib/_virtual/es.string.starts-with2.js +0 -3
- package/dist/lib/_virtual/es.string.trim.js +0 -4
- package/dist/lib/_virtual/es.string.trim2.js +0 -3
- package/dist/lib/_virtual/exceptions.js +0 -4
- package/dist/lib/_virtual/finder-pattern.js +0 -4
- package/dist/lib/_virtual/fixOptions.js +0 -4
- package/dist/lib/_virtual/format-info.js +0 -4
- package/dist/lib/_virtual/galois-field.js +0 -4
- package/dist/lib/_virtual/get.js +0 -4
- package/dist/lib/_virtual/getOptionsFromElement.js +0 -4
- package/dist/lib/_virtual/getPrototypeOf.js +0 -4
- package/dist/lib/_virtual/getRenderProperties.js +0 -4
- package/dist/lib/_virtual/globalThis.browser.js +0 -4
- package/dist/lib/_virtual/has-cors.js +0 -4
- package/dist/lib/_virtual/html2canvas.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index10.js +0 -4
- package/dist/lib/_virtual/index11.js +0 -4
- package/dist/lib/_virtual/index12.js +0 -4
- package/dist/lib/_virtual/index13.js +0 -4
- package/dist/lib/_virtual/index14.js +0 -4
- package/dist/lib/_virtual/index15.js +0 -4
- package/dist/lib/_virtual/index16.js +0 -4
- package/dist/lib/_virtual/index17.js +0 -4
- package/dist/lib/_virtual/index18.js +0 -4
- package/dist/lib/_virtual/index19.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index20.js +0 -4
- package/dist/lib/_virtual/index21.js +0 -4
- package/dist/lib/_virtual/index22.js +0 -4
- package/dist/lib/_virtual/index23.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/_virtual/index4.js +0 -5
- package/dist/lib/_virtual/index5.js +0 -4
- package/dist/lib/_virtual/index6.js +0 -4
- package/dist/lib/_virtual/index7.js +0 -6
- package/dist/lib/_virtual/index8.js +0 -6
- package/dist/lib/_virtual/index9.js +0 -4
- package/dist/lib/_virtual/inherits.js +0 -4
- package/dist/lib/_virtual/internal-metadata.js +0 -4
- package/dist/lib/_virtual/is-binary.js +0 -4
- package/dist/lib/_virtual/iterableToArray.js +0 -4
- package/dist/lib/_virtual/iterableToArrayLimit.js +0 -4
- package/dist/lib/_virtual/jquery.js +0 -4
- package/dist/lib/_virtual/jspdf.es.min.js +0 -5
- package/dist/lib/_virtual/linearizeEncodings.js +0 -4
- package/dist/lib/_virtual/make-built-in.js +0 -4
- package/dist/lib/_virtual/manager.js +0 -4
- package/dist/lib/_virtual/mask-pattern.js +0 -4
- package/dist/lib/_virtual/merge.js +0 -4
- package/dist/lib/_virtual/mode.js +0 -4
- package/dist/lib/_virtual/new-promise-capability.js +0 -4
- package/dist/lib/_virtual/nonIterableRest.js +0 -4
- package/dist/lib/_virtual/nonIterableSpread.js +0 -4
- package/dist/lib/_virtual/object-define-properties.js +0 -4
- package/dist/lib/_virtual/object-define-property.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-descriptor.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-names-external.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-names.js +0 -4
- package/dist/lib/_virtual/object-get-own-property-symbols.js +0 -4
- package/dist/lib/_virtual/object-property-is-enumerable.js +0 -4
- package/dist/lib/_virtual/object.js +0 -4
- package/dist/lib/_virtual/on.js +0 -4
- package/dist/lib/_virtual/optionsFromStrings.js +0 -4
- package/dist/lib/_virtual/parseqs.js +0 -4
- package/dist/lib/_virtual/parseuri.js +0 -4
- package/dist/lib/_virtual/performance-now.js +0 -4
- package/dist/lib/_virtual/polling.js +0 -4
- package/dist/lib/_virtual/polynomial.js +0 -4
- package/dist/lib/_virtual/possibleConstructorReturn.js +0 -4
- package/dist/lib/_virtual/qrcode.js +0 -4
- package/dist/lib/_virtual/regeneratorRuntime.js +0 -4
- package/dist/lib/_virtual/regex.js +0 -4
- package/dist/lib/_virtual/segments.js +0 -4
- package/dist/lib/_virtual/setPrototypeOf.js +0 -4
- package/dist/lib/_virtual/shared-store.js +0 -4
- package/dist/lib/_virtual/shared.js +0 -4
- package/dist/lib/_virtual/slicedToArray.js +0 -4
- package/dist/lib/_virtual/socket.js +0 -4
- package/dist/lib/_virtual/socket2.js +0 -4
- package/dist/lib/_virtual/stackblur-es.js +0 -5
- package/dist/lib/_virtual/superPropBase.js +0 -4
- package/dist/lib/_virtual/svg-tag.js +0 -4
- package/dist/lib/_virtual/svg.js +0 -4
- package/dist/lib/_virtual/toConsumableArray.js +0 -4
- package/dist/lib/_virtual/toPrimitive.js +0 -4
- package/dist/lib/_virtual/toPropertyKey.js +0 -4
- package/dist/lib/_virtual/transport.js +0 -4
- package/dist/lib/_virtual/typeof.js +0 -4
- package/dist/lib/_virtual/unsupportedIterableToArray.js +0 -4
- package/dist/lib/_virtual/url.js +0 -4
- package/dist/lib/_virtual/util.js +0 -4
- package/dist/lib/_virtual/utils.js +0 -4
- package/dist/lib/_virtual/utils2.js +0 -4
- package/dist/lib/_virtual/version-check.js +0 -4
- package/dist/lib/_virtual/version.js +0 -4
- package/dist/lib/_virtual/vue-plugin-hiprint.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.for-each.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.iterator.js +0 -4
- package/dist/lib/_virtual/web.dom-collections.iterator2.js +0 -3
- package/dist/lib/_virtual/websocket-constructor.browser.js +0 -4
- package/dist/lib/_virtual/websocket.js +0 -4
- package/dist/lib/_virtual/webtransport.js +0 -4
- package/dist/lib/_virtual/xmlhttprequest.browser.js +0 -4
- package/dist/lib/_virtual/yeast.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -18
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -298
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +0 -206
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -295
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
- package/dist/lib/components/runtime/utils/barcode-util.js +0 -36
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +0 -279
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +0 -74
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +0 -118
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +0 -100
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +0 -74
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -51
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -302
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -17
- package/dist/lib/components/runtime/utils/common-util.js +0 -108
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -68
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -616
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
- package/dist/lib/components/runtime/utils/events/print-label.js +0 -153
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -67
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1817
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -12
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -416
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +0 -96
- package/dist/lib/components/runtime/utils/form/scan-util.js +0 -194
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -77
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -224
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -134
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -668
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -40
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -266
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -16
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -115
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -95
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -144
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -106
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -141
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -115
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -117
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -70
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -50
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -109
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +0 -183
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -673
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -455
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -120
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -149
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -42
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -135
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -67
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -159
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -130
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -160
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -236
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -204
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +0 -41
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -66
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -71
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -154
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +0 -39
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +0 -39
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -59
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -79
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -99
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -525
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +0 -53
- package/dist/lib/i18n/langs/en.js +0 -53
- package/dist/lib/index.d.ts +0 -13
- package/dist/lib/index.js +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, monitorFieldChange, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "checkbox-runtime",
|
|
7
7
|
props: {
|
|
@@ -104,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
key: item.value,
|
|
105
105
|
value: item.value,
|
|
106
106
|
label: item.label,
|
|
107
|
-
onClick: ($event) => unref(
|
|
107
|
+
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
108
108
|
}, null, 8, ["value", "label", "onClick"]);
|
|
109
109
|
}), 128))
|
|
110
110
|
]),
|
|
@@ -28,14 +28,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
setVariableValue(entity, fields, defaultValue);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
const prefixType = props.property.prefixType;
|
|
32
|
+
let prefixValue = props.property.prefixValue;
|
|
33
|
+
prefixValue = prefixValue == void 0 || prefixValue == null ? "" : prefixValue;
|
|
31
34
|
let dynamicModelMethod = null;
|
|
32
35
|
if (fields.length > 0) {
|
|
33
36
|
dynamicModelMethod = computed({
|
|
34
37
|
get() {
|
|
35
|
-
|
|
38
|
+
const value = getVariableValue(entity, fields);
|
|
39
|
+
if (prefixType === "checkbox") {
|
|
40
|
+
if (value === null || value === void 0) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (Array.isArray(value)) {
|
|
44
|
+
return value.includes(prefixValue);
|
|
45
|
+
} else {
|
|
46
|
+
return value === prefixValue;
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
36
51
|
},
|
|
37
52
|
set(value) {
|
|
38
|
-
|
|
53
|
+
if (prefixType === "checkbox") {
|
|
54
|
+
let newValues = getVariableValue(entity, fields);
|
|
55
|
+
if (!newValues) {
|
|
56
|
+
newValues = [];
|
|
57
|
+
}
|
|
58
|
+
if (!Array.isArray(newValues)) {
|
|
59
|
+
newValues = [newValues];
|
|
60
|
+
}
|
|
61
|
+
const index = newValues.indexOf(prefixValue);
|
|
62
|
+
if (value) {
|
|
63
|
+
if (index == -1) {
|
|
64
|
+
newValues.push(prefixValue);
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
if (index > -1) {
|
|
68
|
+
newValues.splice(index, 1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
setVariableValue(entity, fields, newValues);
|
|
72
|
+
} else {
|
|
73
|
+
setVariableValue(entity, fields, value);
|
|
74
|
+
}
|
|
39
75
|
}
|
|
40
76
|
});
|
|
41
77
|
}
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import {
|
|
5
|
-
import { getCustomFunc,
|
|
4
|
+
import { getValueFromVariable, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { getCustomFunc, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "datepicker-runtime",
|
|
8
9
|
props: {
|
|
@@ -12,41 +13,52 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
13
|
setup(__props) {
|
|
13
14
|
const props = __props;
|
|
14
15
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
15
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
16
|
-
const dynamicModelMethod = computed({
|
|
17
|
-
get() {
|
|
18
|
-
return getVariableValue(entity, dynamicFields);
|
|
19
|
-
},
|
|
20
|
-
set(value) {
|
|
21
|
-
setVariableValue(entity, dynamicFields, value);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
16
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
17
|
const runtimeStyle = runtimeInfo.style;
|
|
26
18
|
const runtimeClass = runtimeInfo.class;
|
|
27
19
|
const headerStyle = runtimeInfo.headerStyle;
|
|
28
20
|
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
21
|
+
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
22
|
+
let dynamicFields2 = null;
|
|
23
|
+
let isRange = false;
|
|
29
24
|
if (designProperty.value.dateType && designProperty.value.dateType.includes("range")) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
isRange = true;
|
|
26
|
+
let propName = designProperty.value.prop2;
|
|
27
|
+
if (!propName || !propName.startsWith("${")) {
|
|
28
|
+
propName = "${page." + props.configure.uuid + "-2}";
|
|
33
29
|
}
|
|
30
|
+
propName = propName.substring(2, propName.length - 1);
|
|
31
|
+
dynamicFields2 = propName.split(".");
|
|
34
32
|
if (!entity.data || !entity.data.id && !entity.data.ID) {
|
|
35
33
|
if (designProperty.value.defaultValue2) {
|
|
36
34
|
const defaultValue2 = getValueFromVariable(entity, designProperty.value.defaultValue2);
|
|
37
|
-
|
|
38
|
-
if (hisValue.length == 0) {
|
|
39
|
-
hisValue.push(void 0);
|
|
40
|
-
}
|
|
41
|
-
if (hisValue.length > 1) {
|
|
42
|
-
hisValue[1] = defaultValue2;
|
|
43
|
-
} else {
|
|
44
|
-
hisValue.push(defaultValue2);
|
|
45
|
-
}
|
|
35
|
+
setVariableValue(entity, dynamicFields2, defaultValue2);
|
|
46
36
|
}
|
|
47
37
|
}
|
|
48
|
-
setVariableValue(entity, dynamicFields, hisValue);
|
|
49
38
|
}
|
|
39
|
+
const dynamicModelMethod = computed({
|
|
40
|
+
get() {
|
|
41
|
+
if (isRange) {
|
|
42
|
+
const values = [];
|
|
43
|
+
values.push(getVariableValue(entity, dynamicFields));
|
|
44
|
+
values.push(getVariableValue(entity, dynamicFields2));
|
|
45
|
+
return values;
|
|
46
|
+
} else {
|
|
47
|
+
return getVariableValue(entity, dynamicFields);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
set(value) {
|
|
51
|
+
if (isRange) {
|
|
52
|
+
if (Array.isArray(value)) {
|
|
53
|
+
setVariableValue(entity, dynamicFields, value[0]);
|
|
54
|
+
setVariableValue(entity, dynamicFields2, value[1]);
|
|
55
|
+
}
|
|
56
|
+
} else {
|
|
57
|
+
setVariableValue(entity, dynamicFields, value);
|
|
58
|
+
}
|
|
59
|
+
console.log("entity", entity);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
50
62
|
const shortcuts = ref(
|
|
51
63
|
getDateShortCuts(
|
|
52
64
|
designProperty.value.dateScopeDetails,
|
|
@@ -76,7 +88,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
88
|
}
|
|
77
89
|
}
|
|
78
90
|
}
|
|
79
|
-
console.log("shortcuts", shortcuts.value);
|
|
80
91
|
}
|
|
81
92
|
}
|
|
82
93
|
return (_ctx, _cache) => {
|
|
@@ -93,7 +104,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
104
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
94
105
|
key: 0,
|
|
95
106
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
96
|
-
},
|
|
107
|
+
}, [
|
|
108
|
+
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
109
|
+
key: 0,
|
|
110
|
+
pageContext: _ctx.pageContext,
|
|
111
|
+
property: designProperty.value
|
|
112
|
+
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
113
|
+
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
114
|
+
], 64))
|
|
115
|
+
], 4)) : createCommentVNode("", true)
|
|
97
116
|
]),
|
|
98
117
|
default: withCtx(() => [
|
|
99
118
|
designProperty.value.dateType == "time" || designProperty.value.dateType == "timerange" ? (openBlock(), createBlock(_component_el_time_picker, {
|
|
@@ -112,12 +131,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
131
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
113
132
|
shortcuts: shortcuts.value,
|
|
114
133
|
type: designProperty.value.dateType,
|
|
115
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(
|
|
116
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => unref(
|
|
117
|
-
onFocus: _cache[3] || (_cache[3] = ($event) => unref(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
onPanelChange: _cache[6] || (_cache[6] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
134
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
135
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
136
|
+
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
137
|
+
onVisibleChange: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
|
|
138
|
+
onPanelChange: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
121
139
|
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
|
|
122
140
|
key: 1,
|
|
123
141
|
clearable: designProperty.value.clearable,
|
|
@@ -129,15 +147,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
147
|
"end-placeholder": designProperty.value.endPlaceholder,
|
|
130
148
|
format: designProperty.value.format,
|
|
131
149
|
modelValue: dynamicModelMethod.value,
|
|
132
|
-
"onUpdate:modelValue": _cache[
|
|
150
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => dynamicModelMethod.value = $event),
|
|
133
151
|
shortcuts: shortcuts.value,
|
|
134
152
|
type: designProperty.value.dateType,
|
|
135
|
-
onChange: _cache[
|
|
136
|
-
onBlur: _cache[
|
|
137
|
-
onFocus: _cache[
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
onPanelChange: _cache[13] || (_cache[13] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
153
|
+
onChange: _cache[7] || (_cache[7] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
154
|
+
onBlur: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
155
|
+
onFocus: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
156
|
+
onVisibleChange: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
|
|
157
|
+
onPanelChange: _cache[11] || (_cache[11] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
141
158
|
}, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"]))
|
|
142
159
|
]),
|
|
143
160
|
_: 1
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
6
6
|
import "../../../../utils/global-refs.js";
|
|
7
|
-
import {
|
|
7
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
8
|
+
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "depttree-runtime",
|
|
10
11
|
props: {
|
|
@@ -27,10 +28,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
28
|
const headerStyle = runtimeInfo.headerStyle;
|
|
28
29
|
const autoSetFields = designProperty.value.autoSetFields ? designProperty.value.autoSetFields : [];
|
|
29
30
|
function changeValue(value) {
|
|
30
|
-
|
|
31
|
+
handleFormEvent(value, props.pageContext, props.configure, "change");
|
|
31
32
|
}
|
|
32
33
|
function showTree() {
|
|
33
|
-
|
|
34
|
+
handleFormEvent(null, props.pageContext, props.configure, "click");
|
|
34
35
|
}
|
|
35
36
|
return (_ctx, _cache) => {
|
|
36
37
|
const _component_OrganizationInput = resolveComponent("OrganizationInput");
|
|
@@ -45,7 +46,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
46
47
|
key: 0,
|
|
47
48
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
48
|
-
},
|
|
49
|
+
}, [
|
|
50
|
+
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
51
|
+
key: 0,
|
|
52
|
+
pageContext: _ctx.pageContext,
|
|
53
|
+
property: designProperty.value
|
|
54
|
+
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
55
|
+
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
56
|
+
], 64))
|
|
57
|
+
], 4)) : createCommentVNode("", true)
|
|
49
58
|
]),
|
|
50
59
|
default: withCtx(() => [
|
|
51
60
|
createVNode(_component_OrganizationInput, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
|
2
2
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import {
|
|
3
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "divider-runtime",
|
|
6
6
|
props: {
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
direction: designProperty.value.direction,
|
|
27
27
|
"border-style": designProperty.value.borderType,
|
|
28
28
|
"content-position": designProperty.value.titlePosition,
|
|
29
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(
|
|
29
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
30
30
|
}, {
|
|
31
31
|
default: withCtx(() => [
|
|
32
32
|
createElementVNode("div", {
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, 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 {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "input-number-runtime",
|
|
7
8
|
props: {
|
|
@@ -38,7 +39,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
39
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
39
40
|
key: 0,
|
|
40
41
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
41
|
-
},
|
|
42
|
+
}, [
|
|
43
|
+
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
44
|
+
key: 0,
|
|
45
|
+
pageContext: _ctx.pageContext,
|
|
46
|
+
property: designProperty.value
|
|
47
|
+
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
48
|
+
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
49
|
+
], 64))
|
|
50
|
+
], 4)) : createCommentVNode("", true)
|
|
42
51
|
]),
|
|
43
52
|
default: withCtx(() => [
|
|
44
53
|
createVNode(_component_el_input_number, {
|
|
@@ -53,9 +62,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
62
|
step: designProperty.value.step,
|
|
54
63
|
min: designProperty.value.min,
|
|
55
64
|
max: designProperty.value.max,
|
|
56
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(
|
|
57
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => unref(
|
|
58
|
-
onFocus: _cache[3] || (_cache[3] = ($event) => unref(
|
|
65
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
66
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
67
|
+
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus"))
|
|
59
68
|
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
60
69
|
]),
|
|
61
70
|
_: 1
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent, computed, ref, watch, resolveComponent, openBlock, cre
|
|
|
2
2
|
import { SuperIcon } from "agilebuilder-ui";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import {
|
|
5
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { formatScanRuleSets, analysisScanValue, setScanAnalysisValue } from "../../../../utils/form/scan-util.js";
|
|
7
7
|
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -93,12 +93,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
93
|
maxlength: designProperty.value.maxLength,
|
|
94
94
|
"show-word-limit": designProperty.value.showInputNum,
|
|
95
95
|
modelValue: dynamicModelMethod.value,
|
|
96
|
-
"onUpdate:modelValue": _cache[
|
|
97
|
-
onInput: _cache[
|
|
98
|
-
onChange: _cache[
|
|
99
|
-
onBlur: _cache[
|
|
100
|
-
onFocus: _cache[
|
|
101
|
-
onClick: _cache[
|
|
96
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dynamicModelMethod.value = $event),
|
|
97
|
+
onInput: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
98
|
+
onChange: _cache[6] || (_cache[6] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
99
|
+
onBlur: _cache[7] || (_cache[7] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
100
|
+
onFocus: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
101
|
+
onClick: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
102
102
|
}, createSlots({ _: 2 }, [
|
|
103
103
|
designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
104
104
|
name: "prefix",
|
|
@@ -106,7 +106,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
107
107
|
key: 0,
|
|
108
108
|
iconType: designProperty.value.preIconType,
|
|
109
|
-
iconValue: designProperty.value.preIconValue
|
|
109
|
+
iconValue: designProperty.value.preIconValue,
|
|
110
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
|
|
110
111
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
111
112
|
createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
|
|
112
113
|
]),
|
|
@@ -118,7 +119,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
119
|
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
119
120
|
key: 0,
|
|
120
121
|
iconType: designProperty.value.preIconType,
|
|
121
|
-
iconValue: designProperty.value.preIconValue
|
|
122
|
+
iconValue: designProperty.value.preIconValue,
|
|
123
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
|
|
122
124
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
123
125
|
createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
|
|
124
126
|
]),
|
|
@@ -130,7 +132,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
132
|
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
131
133
|
key: 0,
|
|
132
134
|
iconType: designProperty.value.sufIconType,
|
|
133
|
-
iconValue: designProperty.value.sufIconValue
|
|
135
|
+
iconValue: designProperty.value.sufIconValue,
|
|
136
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
|
|
134
137
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
135
138
|
createTextVNode(" " + toDisplayString(designProperty.value.sufText), 1)
|
|
136
139
|
]),
|
|
@@ -142,7 +145,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
145
|
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
143
146
|
key: 0,
|
|
144
147
|
iconType: designProperty.value.sufIconType,
|
|
145
|
-
iconValue: designProperty.value.sufIconValue
|
|
148
|
+
iconValue: designProperty.value.sufIconValue,
|
|
149
|
+
onClick: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
|
|
146
150
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
147
151
|
createTextVNode(" " + toDisplayString(designProperty.value.sufText), 1)
|
|
148
152
|
]),
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, resolveComponent, openBlock, createBloc
|
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { queryOptions, formatVariableValue, formatValueByType } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon } from "agilebuilder-ui";
|
|
5
|
-
import {
|
|
5
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
6
|
const _hoisted_1 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
|
|
7
7
|
const _hoisted_2 = ["title"];
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -76,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
76
|
default: withCtx(() => [
|
|
77
77
|
createElementVNode("div", {
|
|
78
78
|
style: { "display": "flex", "width": "100%", "justify-content": "space-between" },
|
|
79
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(
|
|
79
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
80
80
|
}, [
|
|
81
81
|
createElementVNode("span", _hoisted_1, [
|
|
82
82
|
designProperty.value.preIconValue || designProperty.value.preText ? (openBlock(), createElementBlock("span", {
|
|
@@ -111,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
111
|
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span", {
|
|
112
112
|
key: 1,
|
|
113
113
|
style: { "display": "flex", "justify-content": "space-between" },
|
|
114
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(
|
|
114
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
115
115
|
}, [
|
|
116
116
|
createElementVNode("span", {
|
|
117
117
|
style: { "overflow": "hidden", "white-space": "nowrap" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "link-runtime",
|
|
7
7
|
props: {
|
|
@@ -58,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
disabled: designProperty.value.state === "disabled",
|
|
59
59
|
type: designProperty.value.type,
|
|
60
60
|
underline: designProperty.value.underline,
|
|
61
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(
|
|
61
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
62
62
|
}, {
|
|
63
63
|
default: withCtx(() => [
|
|
64
64
|
createTextVNode(toDisplayString(dynamicValue.value), 1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "radio-runtime",
|
|
7
7
|
props: {
|
|
@@ -106,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
}
|
|
107
107
|
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
handleFormEvent(value, props.pageContext, props.configure, "change");
|
|
110
110
|
}
|
|
111
111
|
function updateOptions(newOptions) {
|
|
112
112
|
listOptions.value = newOptions ? newOptions : [];
|
|
@@ -144,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
144
|
key: item.value,
|
|
145
145
|
value: item.value,
|
|
146
146
|
label: item.label,
|
|
147
|
-
onClick: ($event) => unref(
|
|
147
|
+
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
148
148
|
}, null, 8, ["value", "label", "onClick"]);
|
|
149
149
|
}), 128))
|
|
150
150
|
]),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, onBeforeUnmount, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, watch, 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 Quill from "quill";
|
|
5
5
|
import "quill/dist/quill.snow.css";
|
|
6
|
-
import {
|
|
6
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
7
7
|
import http from "agilebuilder-ui/src/utils/request";
|
|
8
8
|
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
9
9
|
const _hoisted_2 = {
|
|
@@ -44,6 +44,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
"32px",
|
|
45
45
|
"36px"
|
|
46
46
|
];
|
|
47
|
+
let hisState = designProperty.value.state;
|
|
48
|
+
function checkReadonly(state) {
|
|
49
|
+
return state == "readonly" || state == "disabled";
|
|
50
|
+
}
|
|
51
|
+
const initReadonly = checkReadonly(hisState);
|
|
47
52
|
const option = ref({
|
|
48
53
|
modules: {
|
|
49
54
|
toolbar: [
|
|
@@ -76,21 +81,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
81
|
]
|
|
77
82
|
},
|
|
78
83
|
theme: "snow",
|
|
79
|
-
placeholder: designProperty.value.placeholder,
|
|
80
|
-
readOnly:
|
|
84
|
+
placeholder: initReadonly ? "" : designProperty.value.placeholder,
|
|
85
|
+
readOnly: initReadonly
|
|
86
|
+
});
|
|
87
|
+
watch(designProperty.value, () => {
|
|
88
|
+
const newState = designProperty.value.state;
|
|
89
|
+
if (newState != void 0 && newState !== hisState) {
|
|
90
|
+
hisState = newState;
|
|
91
|
+
const isReadonly = checkReadonly(hisState);
|
|
92
|
+
if (quill.value) {
|
|
93
|
+
quill.value.enable(!isReadonly);
|
|
94
|
+
quill.value.root.dataset.placeholder = isReadonly ? "" : designProperty.value.placeholder;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
81
97
|
});
|
|
82
98
|
function updateEditorHeight() {
|
|
83
|
-
if (quill.value && quill.value) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
newHeight = 100;
|
|
91
|
-
}
|
|
92
|
-
quill.value.container.style.height = newHeight + "px";
|
|
99
|
+
if (quill.value && quill.value.container) {
|
|
100
|
+
const parentNode = quill.value.container.parentNode;
|
|
101
|
+
const parentRect = parentNode.getBoundingClientRect();
|
|
102
|
+
const thisRect = quill.value.container.getBoundingClientRect();
|
|
103
|
+
let newHeight = parentRect.height - (thisRect.top - parentRect.top);
|
|
104
|
+
if (newHeight < 100) {
|
|
105
|
+
newHeight = 100;
|
|
93
106
|
}
|
|
107
|
+
quill.value.container.style.height = newHeight + "px";
|
|
94
108
|
}
|
|
95
109
|
}
|
|
96
110
|
const handleUpload = (e) => {
|
|
@@ -147,7 +161,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
161
|
function handleFocusOut(event) {
|
|
148
162
|
var _a;
|
|
149
163
|
if (event.relatedTarget === null || !((_a = quillEditorRef.value) == null ? void 0 : _a.contains(event.relatedTarget))) {
|
|
150
|
-
|
|
164
|
+
handleFormEvent(quill.value.root.innerHTML, props.pageContext, props.configure, "change", {
|
|
151
165
|
entity
|
|
152
166
|
});
|
|
153
167
|
}
|
|
@@ -164,11 +178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
164
178
|
if (!baseUrl) {
|
|
165
179
|
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
166
180
|
}
|
|
167
|
-
return http.post(
|
|
168
|
-
baseUrl + "/common/fs-upload/rich-editor-image",
|
|
169
|
-
params,
|
|
170
|
-
config
|
|
171
|
-
);
|
|
181
|
+
return http.post(baseUrl + "/common/fs-upload/rich-editor-image", params, config);
|
|
172
182
|
}
|
|
173
183
|
function dataURLtoFile(dataurl, filename) {
|
|
174
184
|
let arr = dataurl.split(",");
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode,
|
|
1
|
+
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, 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 {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
5
6
|
const _hoisted_1 = { style: { "float": "left" } };
|
|
6
7
|
const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -130,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
131
|
}
|
|
131
132
|
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
132
133
|
}
|
|
133
|
-
|
|
134
|
+
handleFormEvent(value, props.pageContext, props.configure, "change");
|
|
134
135
|
}
|
|
135
136
|
function updateOptions(newOptions) {
|
|
136
137
|
listOptions.value = newOptions ? newOptions : [];
|
|
@@ -153,7 +154,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
153
154
|
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
154
155
|
key: 0,
|
|
155
156
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
156
|
-
},
|
|
157
|
+
}, [
|
|
158
|
+
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
159
|
+
key: 0,
|
|
160
|
+
pageContext: _ctx.pageContext,
|
|
161
|
+
property: designProperty.value
|
|
162
|
+
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
163
|
+
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
164
|
+
], 64))
|
|
165
|
+
], 4)) : createCommentVNode("", true)
|
|
157
166
|
]),
|
|
158
167
|
default: withCtx(() => [
|
|
159
168
|
createVNode(_component_el_select, {
|
|
@@ -180,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
180
189
|
key: item.value,
|
|
181
190
|
label: item.label,
|
|
182
191
|
value: item.value,
|
|
183
|
-
onClick: ($event) => unref(
|
|
192
|
+
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
|
|
184
193
|
}, {
|
|
185
194
|
default: withCtx(() => [
|
|
186
195
|
item._description_ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 {
|
|
4
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "switch-runtime",
|
|
7
7
|
props: {
|
|
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
style: normalizeStyle(unref(switchStyle)),
|
|
54
54
|
modelValue: dynamicModelMethod.value,
|
|
55
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
56
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(
|
|
56
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change"))
|
|
57
57
|
}, null, 8, ["disabled", "active-value:", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
|
|
58
58
|
]),
|
|
59
59
|
_: 1
|