super-page-runtime 2.3.46 → 2.3.47-sit2
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/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +145 -137
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +33 -33
- package/dist/es/components/runtime/utils/events/validator-util.js +260 -241
- package/dist/es/components/runtime/utils/page-init-util.js +45 -47
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/{button-runtime.vue2.js → button-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/{buttongroup-runtime.vue2.js → buttongroup-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/{dropdown-runtime.vue2.js → dropdown-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/{exportpdf-runtime.vue2.js → exportpdf-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/{printlabel-runtime.vue2.js → printlabel-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/{column-line-runtime.vue2.js → column-line-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +7 -9
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/{common-homepage-search.vue2.js → common-homepage-search2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/{gauge-runtime.vue2.js → gauge-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/{pie-runtime.vue2.js → pie-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/{radar-runtime.vue2.js → radar-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/{scatter-runtime.vue2.js → scatter-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +99 -104
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/{table-runtime.vue2.js → table-runtime2.vue.js} +9 -9
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/{card-runtime.vue2.js → card-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/collapse/{collapse-runtime.vue2.js → collapse-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/{container-runtime.vue2.js → container-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{FixedBox.vue2.js → FixedBox2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{YxAffix.vue2.js → YxAffix2.vue.js} +2 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/{flex-runtime.vue2.js → flex-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/{form-runtime.vue2.js → form-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/{iframe-runtime.vue2.js → iframe-runtime2.vue.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/{tools-runtime.vue2.js → tools-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/{barcode-runtime.vue2.js → barcode-runtime2.vue.js} +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/{table-runtime.vue2.js → table-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/{checkbox-runtime.vue2.js → checkbox-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/{custom-runtime.vue2.js → custom-runtime2.vue.js} +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/{depttree-runtime.vue2.js → depttree-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/divider/{divider-runtime.vue2.js → divider-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/{fileupload-runtime.vue2.js → fileupload-runtime2.vue.js} +5 -7
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/image-upload/{imageupload-runtime.vue2.js → imageupload-runtime2.vue.js} +4 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/{input-number-runtime.vue2.js → input-number-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +80 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/{label-runtime.vue2.js → label-runtime2.vue.js} +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/link/{link-runtime.vue2.js → link-runtime2.vue.js} +6 -8
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/{placeholder-runtime.vue2.js → placeholder-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/{radio-runtime.vue2.js → radio-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/{select-runtime.vue2.js → select-runtime2.vue.js} +7 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/{separatelabel-runtime.vue2.js → separatelabel-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/{switch-runtime.vue2.js → switch-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/{tag-runtime.vue2.js → tag-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/{textarea-runtime.vue2.js → textarea-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -12
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/{pictureflow-runtime.vue2.js → pictureflow-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/{textflow-runtime.vue2.js → textflow-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/{workflowbutton-runtime.vue2.js → workflowbutton-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/{workflownode-runtime.vue2.js → workflownode-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.js +8 -8
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +16 -16
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/{super-page.vue2.js → super-page2.vue.js} +98 -99
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +85 -85
- package/package.json +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -96
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +0 -134
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -218
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +0 -55
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +0 -28
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +0 -45
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-breadcrumb.vue2.js → common-chart-header-breadcrumb2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-group.vue2.js → common-chart-header-group2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header.vue2.js → common-chart-header2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{home-chart-condition-render.vue2.js → home-chart-condition-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column-item.vue2.js → group-column-item2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column.vue2.js → group-column2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{normal-column.vue2.js → normal-column2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{table-pageination.vue2.js → table-pageination2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{event-call-component.vue2.js → event-call-component2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{export-form-report-dialog.vue2.js → export-form-report-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{file-task-notice.vue2.js → file-task-notice2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{format-file-task-notice-message.vue2.js → format-file-task-notice-message2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-dialog.vue2.js → remove-signer-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-table.vue2.js → remove-signer-table2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-transactor-dialog.vue2.js → remove-transactor-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{save-chart-condition-dialog.vue2.js → save-chart-condition-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{task-informition-dialog.vue2.js → task-informition-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{main-table-runtime.vue2.js → main-table-runtime2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{sub-table-runtime.vue2.js → sub-table-runtime2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{error-render.vue2.js → error-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/form/common/{title-suffix-element.vue2.js → title-suffix-element2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{home-chart-render.vue2.js → home-chart-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{object-render.vue2.js → object-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{page-bottom.vue2.js → page-bottom2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/{home-chart.vue2.js → home-chart2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/{super-page-dialog.vue3.js → super-page-dialog3.vue.js} +0 -0
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as u, openBlock as r, createBlock as n, normalizeStyle as i, unref as d, normalizeClass as c, createSlots as p, withCtx as s, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getDateShortCuts as C } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
+
import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as F, getVariableValue as V, isDateDataType as k } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleAfterInitEvent as T, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import j from "../common/title-suffix-element.vue.js";
|
|
7
|
+
import R from "dayjs";
|
|
8
|
+
import { $t as Y } from "../../../../utils/i18n-util.js";
|
|
9
|
+
import { addRequiredClassUtil as D } from "../../../../utils/common-util.js";
|
|
10
|
+
import { DatePickerRange as _, DateQuarterPicker as S } from "agilebuilder-ui";
|
|
11
|
+
const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
|
|
12
|
+
var _a;
|
|
13
|
+
const w = e2, A = a(null), B = w.pageContext.entity ? w.pageContext.entity : {}, I = w.configure.runtime ? w.configure.runtime : {}, M = I.style, U = I.class, N = I.headerStyle, W = I.titleExceedStyle, $ = a(I.props ? I.props : {});
|
|
14
|
+
let E = y(w.pageContext, w.configure, $.value.prop);
|
|
15
|
+
if (w.pageContext.modelFieldsMap && E && E.length > 0 && "data" === E[0]) {
|
|
16
|
+
const e3 = x(E, w.pageContext);
|
|
17
|
+
e3 && function(e4) {
|
|
18
|
+
const a2 = e4.dataType;
|
|
19
|
+
k(a2) && ("year" === $.value.dateType && "YYYY" === $.value.valueFormat || "month" === $.value.dateType && "YYYY-MM" === $.value.valueFormat) && ($.value.valueFormat = "x");
|
|
20
|
+
}(e3);
|
|
21
|
+
}
|
|
22
|
+
let O = null, G = false;
|
|
23
|
+
if ($.value.dateType && $.value.dateType.includes("range")) {
|
|
24
|
+
G = true;
|
|
25
|
+
let e3 = $.value.prop2;
|
|
26
|
+
e3 && e3.startsWith("${") || (e3 = "${page." + w.configure.uuid + "-2}");
|
|
27
|
+
const a2 = b(B, e3, null);
|
|
28
|
+
if (e3 = e3.substring(2, e3.length - 1), O = e3.split("."), !(a2 || B.data && (B.data.id || B.data.ID)) && $.value.defaultValue2) {
|
|
29
|
+
const e4 = b(B, $.value.defaultValue2);
|
|
30
|
+
if (null != e4 && "" !== e4) F(B, O, e4);
|
|
31
|
+
else if (((_a = $.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
|
|
32
|
+
const e5 = $.value.moreDefaultValue2;
|
|
33
|
+
for (let a3 = 0; a3 < e5.length; a3++) {
|
|
34
|
+
const l2 = b(B, e5[a3]);
|
|
35
|
+
if (null != l2 && "" !== l2) {
|
|
36
|
+
F(B, O, l2);
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const H = a(null), J = a(null), K = a(null);
|
|
44
|
+
function L(e3, a2) {
|
|
45
|
+
if (!e3) return e3;
|
|
46
|
+
if (a2) {
|
|
47
|
+
"number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
|
|
48
|
+
try {
|
|
49
|
+
const l2 = R(e3);
|
|
50
|
+
let t2 = null;
|
|
51
|
+
return t2 = "x" === a2 ? l2.toDate().getTime() : R(e3).format(a2), "Invalid Date" === t2 ? e3 : t2;
|
|
52
|
+
} catch (a3) {
|
|
53
|
+
return e3;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return e3;
|
|
57
|
+
}
|
|
58
|
+
if (l(() => {
|
|
59
|
+
t(() => {
|
|
60
|
+
const e3 = Q.value;
|
|
61
|
+
T(e3, w.pageContext, w.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
62
|
+
});
|
|
63
|
+
}), E) {
|
|
64
|
+
const e3 = V(B, E), a2 = L(e3, $.value.valueFormat);
|
|
65
|
+
e3 !== a2 && F(B, E, a2);
|
|
66
|
+
}
|
|
67
|
+
if (O) {
|
|
68
|
+
const e3 = V(B, O), a2 = L(e3, $.value.valueFormat);
|
|
69
|
+
e3 !== a2 && F(B, O, a2);
|
|
70
|
+
}
|
|
71
|
+
const Q = o({ get() {
|
|
72
|
+
if (G) {
|
|
73
|
+
const e3 = [];
|
|
74
|
+
let a2 = V(B, E);
|
|
75
|
+
e3.push(L(a2, $.value.valueFormat));
|
|
76
|
+
let l2 = V(B, O);
|
|
77
|
+
return e3.push(L(l2, $.value.valueFormat)), e3;
|
|
78
|
+
}
|
|
79
|
+
return L(V(B, E), $.value.valueFormat);
|
|
80
|
+
}, set(e3) {
|
|
81
|
+
G ? Array.isArray(e3) ? (F(B, E, e3[0]), F(B, O, e3[1]), A.value = "") : null === e3 && (F(B, E, null), F(B, O, null)) : (F(B, E, e3), null != e3 && (A.value = ""));
|
|
82
|
+
} }), X = a(C($.value.dateScopeDetails, $.value.sourceType, $.value.dateType));
|
|
83
|
+
if ($.value.shortcutsFunc) {
|
|
84
|
+
const e3 = z(w.pageContext, $.value.shortcutsFunc);
|
|
85
|
+
if (e3) {
|
|
86
|
+
let a2 = e3.apply(e3, [{ pageContext: w.pageContext, configureObj: w.configure }]);
|
|
87
|
+
if (a2) {
|
|
88
|
+
Array.isArray(a2) || (a2 = [a2]), X.value || (X.value = []);
|
|
89
|
+
for (let e4 of a2) e4.text && e4.value && X.value.push(e4);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return q2({ addRequiredClass: function() {
|
|
94
|
+
A.value = D();
|
|
95
|
+
} }), (a2, l2) => {
|
|
96
|
+
const t2 = u("el-time-picker"), o2 = u("el-date-picker"), y2 = u("el-form-item");
|
|
97
|
+
return r(), n(y2, { ref_key: "formItemRef", ref: H, required: $.value.required, class: c(d(U) + (A.value ? " " + A.value : "")), "label-width": $.value.labelWidth, style: i(d(M)) }, p({ default: s(() => ["time" == $.value.dateType || "timerange" == $.value.dateType ? (r(), n(t2, { key: 0, ref_key: "componentRef", ref: J, "is-range": "timerange" == $.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: $.value.clearable, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: d(Y)($.value.placeholder), "start-placeholder": d(Y)($.value.placeholder), "end-placeholder": d(Y)($.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder), "unlink-panels": true, format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => Q.value = e3), shortcuts: X.value, type: $.value.dateType, onChange: l2[1] || (l2[1] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[4] || (l2[4] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[5] || (l2[5] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[6] || (l2[6] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== $.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes($.value.dateType) ? (r(), n(d(_), { key: 1, modelValue: Q.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => Q.value = e3), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: d(Y)($.value.placeholder), "start-placeholder": d(Y)($.value.placeholder), "end-placeholder": d(Y)($.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder), size: $.value.size, shortcuts: X.value, onChange: l2[8] || (l2[8] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[9] || (l2[9] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[10] || (l2[10] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[11] || (l2[11] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[12] || (l2[12] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[13] || (l2[13] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : "quarter" === $.value.dateType ? (r(), n(d(S), { key: 2, modelValue: Q.value, "onUpdate:modelValue": l2[14] || (l2[14] = (e3) => Q.value = e3), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: d(Y)($.value.placeholder), size: $.value.size, onChange: l2[15] || (l2[15] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[16] || (l2[16] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[17] || (l2[17] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "focus")), onClear: l2[18] || (l2[18] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (r(), n(o2, { key: 3, ref_key: "componentRef", ref: J, clearable: $.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: d(Y)($.value.placeholder), "start-placeholder": d(Y)($.value.placeholder), "end-placeholder": d(Y)($.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder), format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[19] || (l2[19] = (e3) => Q.value = e3), shortcuts: X.value, type: $.value.dateType, onChange: l2[20] || (l2[20] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[21] || (l2[21] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[22] || (l2[22] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[23] || (l2[23] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[24] || (l2[24] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[25] || (l2[25] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 2 }, [$.value.tittleShow ? { name: "label", fn: s(() => [v("div", { ref_key: "titleRef", ref: K, style: i({ ...d(N), ...d(W) }) }, [$.value.prefixType ? (r(), n(j, { key: 0, pageContext: e2.pageContext, property: $.value }, null, 8, ["pageContext", "property"])) : (r(), f(g, { key: 1 }, [m(h(d(Y)($.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
98
|
+
};
|
|
99
|
+
} });
|
|
100
|
+
export {
|
|
101
|
+
q as default
|
|
102
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as a, watch as n, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as a, watch as n, resolveComponent as i, openBlock as p, createBlock as u, normalizeStyle as r, unref as s, normalizeClass as d, createSlots as m, withCtx as f, createVNode as c, createElementVNode as g, createElementBlock as v, Fragment as y, createTextVNode as x, toDisplayString as h } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { handleAfterInitEvent as S, handleFormEvent as b } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import F from "../common/title-suffix-element.vue.js";
|
|
@@ -47,7 +47,7 @@ const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {
|
|
|
47
47
|
q.value = j();
|
|
48
48
|
} }), (t2, l2) => {
|
|
49
49
|
const o2 = i("OrganizationInput"), a2 = i("el-form-item");
|
|
50
|
-
return
|
|
50
|
+
return p(), u(a2, { ref_key: "formItemRef", ref: K, required: A.value.required, class: d(s(G) + (q.value ? " " + q.value : "")), "label-width": A.value.labelWidth, style: r(s(B)) }, m({ default: f(() => [c(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" == A.value.state, multiple: A.value.multiple, treeType: A.value.treeType, value: P.value, models: s(O), departmentInfo: W.value, limitFilterColumn: A.value.limitFilterColumn, pageModels: s($), fields: s(Q), inputShowWay: A.value.inputShowWay, autosize: A.value.autosize, size: A.value.size, displayItem: A.value.displayItem, separator: A.value.separator, onSetValue: X, onShowTree: Y }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "inputShowWay", "autosize", "size", "displayItem", "separator"])]), _: 2 }, [A.value.tittleShow ? { name: "label", fn: f(() => [g("div", { ref_key: "titleRef", ref: N, style: r({ ...s(H), ...s(J) }), class: "amb-form-item-label" }, [A.value.prefixType ? (p(), u(F, { key: 0, pageContext: e2.pageContext, property: A.value }, null, 8, ["pageContext", "property"])) : (p(), v(y, { key: 1 }, [x(h(s(I)(A.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
51
51
|
};
|
|
52
52
|
} });
|
|
53
53
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as r, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as r, resolveComponent as i, openBlock as u, createBlock as l, unref as a, withCtx as p, createElementVNode as s, normalizeStyle as c, toDisplayString as d } from "vue";
|
|
2
2
|
import { formatVariableValue as f } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as v, handleFormEvent as g } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
@@ -16,7 +16,7 @@ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {}
|
|
|
16
16
|
});
|
|
17
17
|
}), (t2, n2) => {
|
|
18
18
|
const o2 = i("el-divider");
|
|
19
|
-
return
|
|
19
|
+
return u(), l(o2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: n2[0] || (n2[0] = (t3) => a(g)(t3, e2.pageContext, e2.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
|
|
20
20
|
};
|
|
21
21
|
} });
|
|
22
22
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as l, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as n,
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as n, openBlock as u, createBlock as r, normalizeStyle as p, unref as s, normalizeClass as f, createSlots as d, withCtx as m, createCommentVNode as c, createElementVNode as v, toDisplayString as g } from "vue";
|
|
2
2
|
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as C, fileUploadBeforeUpload as w, fileUploadBeforeDelete as b, fileUploadUploaded as x, fileUploadDeleted as k } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import I from "agilebuilder-ui/src/utils/request";
|
|
@@ -49,11 +49,10 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
49
49
|
return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: S(O.value.title) }), e3.pageContext || (e3.pageContext = z.pageContext), e3.configure || (e3.configureObj = z.configure), w(e3);
|
|
50
50
|
}
|
|
51
51
|
function le() {
|
|
52
|
-
if (z.pageContext.fileuploadInfo
|
|
52
|
+
if (z.pageContext.fileuploadInfo && z.configure.uuid) {
|
|
53
53
|
const e3 = z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid);
|
|
54
54
|
-1 !== e3 && z.pageContext.fileuploadInfo.splice(e3, 1);
|
|
55
55
|
}
|
|
56
|
-
z.pageContext.fileuploadInfo;
|
|
57
56
|
}
|
|
58
57
|
function oe(e3) {
|
|
59
58
|
le();
|
|
@@ -81,7 +80,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
81
80
|
}, re = t(null), pe = t(null);
|
|
82
81
|
return o(() => {
|
|
83
82
|
N.$on(K.value + "-pickFileDone", (e3) => {
|
|
84
|
-
|
|
83
|
+
M.value.pickFileDone(e3);
|
|
85
84
|
}), a(() => {
|
|
86
85
|
const e3 = (e4, t3, l3) => {
|
|
87
86
|
if (!t3) return;
|
|
@@ -92,8 +91,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
92
91
|
y(z.pageContext.entity, e4, l4);
|
|
93
92
|
break;
|
|
94
93
|
}
|
|
95
|
-
} catch (
|
|
96
|
-
console.error("设置默认值出错:", e4, t5);
|
|
94
|
+
} catch (e5) {
|
|
97
95
|
break;
|
|
98
96
|
}
|
|
99
97
|
};
|
|
@@ -107,7 +105,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
107
105
|
R.value = j();
|
|
108
106
|
} }), (t2, l2) => {
|
|
109
107
|
const o2 = n("el-form-item");
|
|
110
|
-
return O.value.tittleShow ? (
|
|
108
|
+
return O.value.tittleShow ? (u(), r(o2, { key: 0, ref_key: "formItemRef", ref: re, required: O.value.required, class: f(s(W) + (R.value ? " " + R.value : "")), "label-width": O.value.labelWidth, style: p(s(q)) }, d({ default: m(() => [Q.value ? (u(), r(s(P), { key: 0, ref_key: "fileUploadRef", ref: M, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: s(S)(O.value.placeholder), limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": Y.value, "file-list": X.value, "system-code": e2.pageContext.systemCode, componentId: K.value, watermark: s(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e2.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : c("", true)]), _: 2 }, [O.value.tittleShow ? { name: "label", fn: m(() => [v("div", { ref_key: "titleRef", ref: pe, style: p({ ...s(V), ...s($) }), class: "amb-form-item-label" }, g(s(S)(O.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : Q.value ? (u(), r(s(P), { key: 1, ref_key: "fileUploadRef", ref: M, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: s(S)(O.value.placeholder), limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": Y.value, "file-list": X.value, "system-code": e2.pageContext.systemCode, componentId: K.value, watermark: s(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e2.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : c("", true);
|
|
111
109
|
};
|
|
112
110
|
} });
|
|
113
111
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as a, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as a, resolveComponent as i, openBlock as n, createBlock as u, normalizeStyle as r, unref as p, normalizeClass as s, createSlots as f, withCtx as d, createCommentVNode as m, createElementVNode as c, toDisplayString as v } from "vue";
|
|
2
2
|
import { getVariableValue as g, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as h, fileUploadBeforeUpload as C, fileUploadBeforeDelete as x, fileUploadUploaded as w, fileUploadDeleted as b } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import k from "agilebuilder-ui/src/utils/request";
|
|
@@ -21,11 +21,10 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
21
21
|
return -1 === N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid) && N.pageContext.fileuploadInfo.push({ uuid: N.configure.uuid, label: S(D.value.title) }), e3.pageContext || (e3.pageContext = N.pageContext), e3.configure || (e3.configureObj = N.configure), C(e3);
|
|
22
22
|
}
|
|
23
23
|
function Y() {
|
|
24
|
-
if (N.pageContext.fileuploadInfo
|
|
24
|
+
if (N.pageContext.fileuploadInfo && N.configure.uuid) {
|
|
25
25
|
const e3 = N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid);
|
|
26
26
|
-1 !== e3 && N.pageContext.fileuploadInfo.splice(e3, 1);
|
|
27
27
|
}
|
|
28
|
-
N.pageContext.fileuploadInfo;
|
|
29
28
|
}
|
|
30
29
|
function Z(e3) {
|
|
31
30
|
Y();
|
|
@@ -72,7 +71,7 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
72
71
|
}, ae = t(null), ie = t(null);
|
|
73
72
|
return l(() => {
|
|
74
73
|
j.$on(H.value + "-pickFileDone", (e3) => {
|
|
75
|
-
|
|
74
|
+
K.value.pickFileDone(e3);
|
|
76
75
|
}), o(() => {
|
|
77
76
|
const e3 = g($, E), t2 = { showName: g($, U), serverPath: e3 };
|
|
78
77
|
h(t2, N.pageContext, N.configure, { formItemRef: ae.value, componentRef: K.value, titleRef: ie.value, value: t2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
@@ -83,7 +82,7 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
83
82
|
O.value = P();
|
|
84
83
|
} }), (t2, l2) => {
|
|
85
84
|
const o2 = i("el-form-item");
|
|
86
|
-
return D.value.tittleShow ? (
|
|
85
|
+
return D.value.tittleShow ? (n(), u(o2, { key: 0, ref_key: "formItemRef", ref: ae, required: D.value.required, class: s(p(F) + (O.value ? " " + O.value : "")), "label-width": D.value.labelWidth, style: r(p(R)) }, f({ default: d(() => [L.value ? (n(), u(p(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: D.value.accept && Object.keys(D.value.accept).length > 0 ? D.value.accept : "image/*", disabled: "disabled" === D.value.state, displayType: D.value.displayType, multiple: D.value.multiple, placeholder: p(S)(D.value.placeholder), limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "max-display-count": D.value.maxDisplayCount, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: p(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "max-display-count", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : m("", true)]), _: 2 }, [D.value.tittleShow ? { name: "label", fn: d(() => [c("div", { ref_key: "titleRef", ref: ie, style: r({ ...p(q), ...p(W) }), class: "amb-form-item-label" }, v(p(S)(D.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (n(), u(p(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: D.value.accept, disabled: "disabled" === D.value.state, displayType: D.value.displayType, multiple: D.value.multiple, placeholder: p(S)(D.value.placeholder), limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "max-display-count": D.value.maxDisplayCount, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: p(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "max-display-count", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : m("", true);
|
|
87
86
|
};
|
|
88
87
|
} });
|
|
89
88
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as a, resolveComponent as n,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as a, resolveComponent as n, openBlock as u, createBlock as i, normalizeStyle as r, unref as s, normalizeClass as p, createSlots as m, withCtx as f, createVNode as c, createElementVNode as d, createElementBlock as v, Fragment as g, createTextVNode as y, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as b, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as R, handleFormEvent as j } from "../../../../utils/events/event-util.js";
|
|
@@ -20,7 +20,7 @@ const w = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
|
|
|
20
20
|
S.value = q();
|
|
21
21
|
} }), (t2, l2) => {
|
|
22
22
|
const o2 = n("el-input-number"), a2 = n("el-form-item");
|
|
23
|
-
return
|
|
23
|
+
return u(), i(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: p(s(F) + (S.value ? " " + S.value : "")), "label-width": W.value.labelWidth, style: r(s(E)) }, m({ default: f(() => [c(o2, { ref_key: "componentRef", ref: G, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, controls: W.value.showButton, size: W.value.size, placeholder: s(_)(W.value.placeholder), modelValue: I.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => I.value = e3), precision: W.value.precision, step: W.value.step, min: W.value.min, max: W.value.max, onChange: l2[1] || (l2[1] = (t3) => s(j)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (t3) => s(j)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (t3) => s(j)(t3, e2.pageContext, e2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [d("div", { ref_key: "titleRef", ref: H, style: r({ ...s(T), ...s(U) }), class: "amb-form-item-label" }, [W.value.prefixType ? (u(), i(k, { key: 0, pageContext: e2.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (u(), v(g, { key: 1 }, [y(x(s(_)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, openBlock as r, createBlock as s, normalizeStyle as p, unref as c, normalizeClass as v, createSlots as f, withCtx as m, createVNode as y, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
|
|
2
|
+
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
|
+
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { getModelFieldFromPageContext as w, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleFormEvent as j, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as O, analysisScanValue as P, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import D from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as M, isDingTalkEnv as N } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import z from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as J } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as L } from "../../../../utils/common-util.js";
|
|
12
|
+
const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = l("text");
|
|
15
|
+
let E = V(F.pageContext, F.configure);
|
|
16
|
+
if (F.pageContext.modelFieldsMap) {
|
|
17
|
+
const e3 = w(E, F.pageContext);
|
|
18
|
+
e3 && (A.value = h(e3.dataType) ? "number" : "text");
|
|
19
|
+
}
|
|
20
|
+
const H = l(M()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
|
|
21
|
+
b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
+
} }), Q = l(null), X = l(null), Y = l(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
23
|
+
let te = false;
|
|
24
|
+
N() && (te = true);
|
|
25
|
+
let ne = "";
|
|
26
|
+
ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
27
|
+
const oe = !(!H.value || !ne || "app" !== ne), ae = l(!!((oe || te) && le.value || H.value && le.value && "https:" === window.location.protocol));
|
|
28
|
+
let ue = {};
|
|
29
|
+
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(ee.value.scan.ruleList).then((e3) => {
|
|
30
|
+
ue = e3;
|
|
31
|
+
}), u(() => K.value, (e3) => {
|
|
32
|
+
e3 = e3.trim();
|
|
33
|
+
const l2 = P(e3, ue);
|
|
34
|
+
l2 && q(F.pageContext, l2.scanSet, l2.params);
|
|
35
|
+
}));
|
|
36
|
+
const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
|
|
37
|
+
function ce(e3) {
|
|
38
|
+
return b($, E, e3);
|
|
39
|
+
}
|
|
40
|
+
n(() => {
|
|
41
|
+
z.$on(W.value + "-scanDone", (e3) => {
|
|
42
|
+
ce(e3.result), j(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
43
|
+
}), o(() => {
|
|
44
|
+
var _a2;
|
|
45
|
+
const e3 = K.value;
|
|
46
|
+
S(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
|
|
47
|
+
});
|
|
48
|
+
}), a(() => {
|
|
49
|
+
z.$off(W.value + "-scanDone");
|
|
50
|
+
});
|
|
51
|
+
const ve = l(false);
|
|
52
|
+
function fe() {
|
|
53
|
+
if (oe || te) {
|
|
54
|
+
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
55
|
+
te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
|
|
56
|
+
} else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
|
|
57
|
+
else {
|
|
58
|
+
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
59
|
+
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
60
|
+
}
|
|
61
|
+
else ve.value = true;
|
|
62
|
+
}
|
|
63
|
+
function me(e3) {
|
|
64
|
+
ve.value = false, ce(e3);
|
|
65
|
+
}
|
|
66
|
+
return B2({ getValue: function() {
|
|
67
|
+
return _($, E);
|
|
68
|
+
}, setValue: ce, scanClick: fe, addRequiredClass: function() {
|
|
69
|
+
G.value = L();
|
|
70
|
+
} }), (l2, t2) => {
|
|
71
|
+
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
72
|
+
return r(), s(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: v(c(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(c(ie)) }, f({ default: m(() => [y(n2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: c(J)(ee.value.placeholder), maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => K.value = e3), onInput: t2[6] || (t2[6] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "input")), onChange: t2[7] || (t2[7] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "change")), onBlur: t2[8] || (t2[8] = (e3) => function(e4) {
|
|
73
|
+
let l3 = _($, E);
|
|
74
|
+
null != l3 && (l3 = l3.trim()), b($, E, l3), j(e4, F.pageContext, F.configure, "blur");
|
|
75
|
+
}(e3)), onFocus: t2[9] || (t2[9] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "focus")), onClick: t2[10] || (t2[10] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "click")), onClear: t2[11] || (t2[11] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (r(), s(c(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[0] || (t2[0] = (l3) => c(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(c(J)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (r(), s(c(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[1] || (t2[1] = (l3) => c(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(c(J)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: m(() => [ee.value.sufIconType && ee.value.sufIconValue ? (r(), s(c(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[2] || (t2[2] = (l3) => c(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(c(J)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: m(() => [ae.value ? (r(), s(c(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e3) => fe()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (r(), s(c(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[4] || (t2[4] = (l3) => c(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(c(J)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (r(), s(o2, { key: 0, onClose: me, onCancel: t2[12] || (t2[12] = (e3) => ve.value = false) })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: m(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...c(se), ...c(pe) }) }, [ee.value.prefixType ? (r(), s(D, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (r(), T(I, { key: 1 }, [d(x(c(J)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
76
|
+
};
|
|
77
|
+
} });
|
|
78
|
+
export {
|
|
79
|
+
B as default
|
|
80
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, openBlock as i, createElementBlock as o, normalizeStyle as s, unref as p, normalizeClass as r, createElementVNode as f, toDisplayString as c, createBlock as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as h, formatValueByType as w } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as T } from "agilebuilder-ui";
|
|
@@ -8,9 +8,7 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
8
8
|
const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
|
|
9
9
|
let q = x(S.pageContext, S.configure);
|
|
10
10
|
const O = S.configure.runtime ? S.configure.runtime : {}, A = O.style, z = O.class, D = O.headerStyle, E = O.appendClass, F = O.appendStyle, N = O.titleExceedStyle, W = t(O.props ? O.props : {});
|
|
11
|
-
const B = t(W.value.options ? W.value.options : []), G = W.value.formatType
|
|
12
|
-
W.value;
|
|
13
|
-
const H = l(() => {
|
|
11
|
+
const B = t(W.value.options ? W.value.options : []), G = W.value.formatType, H = l(() => {
|
|
14
12
|
let e3 = h(P, q);
|
|
15
13
|
if (G) if (W.value.hasOptions) {
|
|
16
14
|
let t2 = null;
|
|
@@ -30,7 +28,7 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
30
28
|
B.value = e3 || [];
|
|
31
29
|
} }), (t2, l2) => {
|
|
32
30
|
const n2 = u("el-form-item");
|
|
33
|
-
return W.value.whetherTitle || W.value.whetherTittle ? (
|
|
31
|
+
return W.value.whetherTitle || W.value.whetherTittle ? (i(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(p(z)), style: s(p(A)) }, [f("div", b, c(p(I)(W.value.title)), 1)], 6)) : W.value.tittleShow ? (i(), v(n2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([p(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: s(p(A)) }, y({ default: g(() => [f("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: l2[0] || (l2[0] = (t3) => p(_)(t3, e2.pageContext, e2.configure, "click")) }, [f("span", V, [W.value.preIconValue || W.value.preText ? (i(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: s(p(F)) }, [W.value.preIconType && W.value.preIconValue ? (i(), v(p(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + c(p(I)(W.value.preText)), 1)], 6)) : m("", true), d(" " + c(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (i(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (i(), v(p(T), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), f("span", null, " " + c(p(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [f("div", { ref_key: "titleRef", ref: L, style: s({ ...p(D), ...p(N) }) }, c(p(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (i(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => p(_)(t3, e2.pageContext, e2.configure, "click")) }, [f("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, c(W.value.prefixIcon) + " " + c(H.value), 9, j), W.value.suffixTxt ? (i(), o("span", { key: 0, class: r(p(E)), style: s(p(F)) }, c(p(I)(W.value.suffixTxt)), 7)) : m("", true)]));
|
|
34
32
|
};
|
|
35
33
|
} });
|
|
36
34
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as a, resolveComponent as n, openBlock as u, createBlock as o, normalizeStyle as r, unref as p, normalizeClass as s, createSlots as f, withCtx as c, createVNode as m, createCommentVNode as d, createTextVNode as g, toDisplayString as v, createElementVNode as y } from "vue";
|
|
2
2
|
import { getFormModelFields as b } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as x, handleEvent as C } from "../../../../utils/events/event-util.js";
|
|
@@ -7,9 +7,7 @@ import { SuperIcon as h } from "agilebuilder-ui";
|
|
|
7
7
|
import { analysisValue as R } from "agilebuilder-ui/src/utils/util";
|
|
8
8
|
const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
9
|
var _a;
|
|
10
|
-
const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {});
|
|
11
|
-
S.value;
|
|
12
|
-
const $ = t();
|
|
10
|
+
const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {}), $ = t();
|
|
13
11
|
((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
|
|
14
12
|
let q = S.value.formatting;
|
|
15
13
|
const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
|
|
@@ -28,14 +26,14 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
28
26
|
return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
|
|
29
27
|
}));
|
|
30
28
|
const A = t(null), B = t(null), E = t(null);
|
|
31
|
-
return
|
|
32
|
-
|
|
29
|
+
return i(() => {
|
|
30
|
+
a(() => {
|
|
33
31
|
const e3 = J.value;
|
|
34
32
|
x(e3, T2.pageContext, T2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: E.value, value: e3, entity: T2.pageContext.entity.data, pageData: T2.pageContext.entity.page });
|
|
35
33
|
});
|
|
36
34
|
}), (t2, l2) => {
|
|
37
|
-
const
|
|
38
|
-
return
|
|
35
|
+
const i2 = n("el-link"), a2 = n("el-tooltip"), b2 = n("el-form-item");
|
|
36
|
+
return u(), o(b2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(a2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(i2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type ? S.value.type : "primary", underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (u(), o(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...p(P) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
|
|
39
37
|
};
|
|
40
38
|
} });
|
|
41
39
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r, openBlock as l, createBlock as a, normalizeStyle as u, unref as f, normalizeClass as s, withCtx as i, createElementVNode as m } from "vue";
|
|
2
2
|
import { handleAfterInitEvent as p } from "../../../../utils/events/event-util.js";
|
|
3
3
|
const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
4
4
|
const c2 = e2, g = c2.configure.runtime ? c2.configure.runtime : {}, y = g.style, d = g.class, v = t(null), x = t(null);
|
|
@@ -8,7 +8,7 @@ const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure
|
|
|
8
8
|
});
|
|
9
9
|
}), (e3, t2) => {
|
|
10
10
|
const n2 = r("el-form-item");
|
|
11
|
-
return
|
|
11
|
+
return l(), a(n2, { ref_key: "formItemRef", ref: v, class: s(f(d)), style: u(f(y)) }, { default: i(() => [m("div", { ref_key: "componentRef", ref: x, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
|
|
12
12
|
};
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, openBlock as r, createBlock as s, normalizeStyle as f, unref as p, normalizeClass as c, createSlots as g, withCtx as v, createVNode as d, createElementBlock as m, Fragment as h, renderList as b, createTextVNode as y, toDisplayString as C, createElementVNode as x } from "vue";
|
|
2
2
|
import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, putToOptionSourceMap as R, autoSetAfterSelect as j, queryOptionDatasources as T } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as I } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as q, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
|
|
@@ -76,7 +76,7 @@ const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
76
76
|
}
|
|
77
77
|
} }), (t2, l2) => {
|
|
78
78
|
const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
|
|
79
|
-
return
|
|
79
|
+
return r(), s(a2, { ref_key: "formItemRef", ref: oe, required: G.value.required, class: c(p($) + (E.value ? " " + E.value : "")), "label-width": G.value.labelWidth, style: f(p(U)) }, g({ default: v(() => [d(n2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => W.value = e3) }, { default: v(() => [(r(true), m(h, null, b(H.value, (t3) => (r(), s(o2, { key: t3.value, label: t3.value, onClick: (l3) => p(q)(t3.value, e2.pageContext, e2.configure, "click", { values: W.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [G.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ae, style: f({ ...p(A), ...p(B) }), class: "amb-form-item-label" }, C(p(w)(G.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
80
80
|
};
|
|
81
81
|
} });
|
|
82
82
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import t from "./richtext-
|
|
1
|
+
import t from "./richtext-runtime2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
5
|
+
const r = e(t, [["__scopeId", "data-v-89783313"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|