super-page-runtime 2.1.932 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -433
- package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
- package/dist/es/components/runtime/utils/barcode-util.js +10 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -300
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
- package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
- package/dist/es/components/runtime/utils/common-util.js +82 -152
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +361 -727
- package/dist/es/components/runtime/utils/events/print-label.js +73 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +838 -2285
- package/dist/es/components/runtime/utils/events/validator-util.js +237 -536
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
- package/dist/es/components/runtime/utils/global-refs.js +45 -69
- package/dist/es/components/runtime/utils/i18n-util.js +12 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +298 -628
- package/dist/es/components/runtime/utils/page-init-util.js +134 -368
- package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +49 -84
- package/dist/es/components/runtime/utils/tree-utils.js +18 -36
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +37 -132
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +54 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -169
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +208 -439
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +63 -226
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +168 -512
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +23 -125
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
- 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-runtime.vue2.js +38 -127
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +311 -800
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +251 -592
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +43 -115
- 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-runtime.vue2.js +56 -215
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +44 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -98
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +54 -200
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +69 -239
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +28 -98
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +22 -59
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +52 -173
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -249
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +34 -174
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +66 -189
- 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-runtime.vue2.js +91 -243
- 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 +82 -261
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +41 -129
- 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 +22 -107
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -252
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +19 -46
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +22 -49
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +21 -58
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +233 -708
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/package.json +74 -73
|
@@ -1,95 +1,60 @@
|
|
|
1
1
|
import "agilebuilder-ui/src/utils/common-util";
|
|
2
2
|
import "agilebuilder-ui/src/utils/util";
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
|
-
import
|
|
5
|
-
import { getPermissionCodes } from "./page-init-util.js";
|
|
6
|
-
import { getEventFuncByType, getCustomFunc } from "./events/event-util.js";
|
|
7
|
-
import { $t } from "./i18n-util.js";
|
|
8
|
-
import { ExpressionEvaluator } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
eventBus.$emit(pageCode + "_open-dialog", params);
|
|
4
|
+
import t from "./eventBus.js";
|
|
5
|
+
import { getPermissionCodes as e } from "./page-init-util.js";
|
|
6
|
+
import { getEventFuncByType as i, getCustomFunc as o } from "./events/event-util.js";
|
|
7
|
+
import { $t as s } from "./i18n-util.js";
|
|
8
|
+
import { ExpressionEvaluator as n } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
9
|
+
function r(e2) {
|
|
10
|
+
const i2 = e2.pageContext && e2.pageContext.code;
|
|
11
|
+
t.$emit(i2 + "_open-dialog", e2);
|
|
13
12
|
}
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
if (!
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (pageContext.tableRuntimes && tableUuid && pageContext.tableRuntimes[tableUuid]) {
|
|
21
|
-
tableConfigure = JSON.parse(pageContext.tableRuntimes[tableUuid].configure);
|
|
22
|
-
}
|
|
23
|
-
return tableConfigure && tableConfigure.props && tableConfigure.props.dataOrigin ? tableConfigure.props.dataOrigin.tableName : null;
|
|
13
|
+
function u(t2, e2) {
|
|
14
|
+
const i2 = t2.tableName;
|
|
15
|
+
if (!e2 && i2)
|
|
16
|
+
return i2;
|
|
17
|
+
let o2;
|
|
18
|
+
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (o2 = JSON.parse(t2.tableRuntimes[e2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
|
|
24
19
|
}
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const myButtonProps = Object.assign({}, buttonConfigure.props.base);
|
|
33
|
-
if (buttonConfigure.name === "custom") {
|
|
34
|
-
myButtonProps.customControl = myButtonProps.name;
|
|
35
|
-
} else {
|
|
36
|
-
myButtonProps.elementType = "el-button";
|
|
37
|
-
}
|
|
38
|
-
if (buttonConfigure.isPermission === void 0 || buttonConfigure.isPermission + "" === "true") {
|
|
39
|
-
const functionCodes = getPermissionCodes(buttonConfigure, pageContext);
|
|
40
|
-
if (functionCodes) {
|
|
41
|
-
myButtonProps.permission = functionCodes;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
myButtonProps.label = $t(myButtonProps.title);
|
|
45
|
-
myButtonProps.sourceButton = { uuid: buttonConfigure.uuid };
|
|
46
|
-
myButtonSet["props"] = myButtonProps;
|
|
47
|
-
if (clickEventFunc !== void 0) {
|
|
48
|
-
myButtonSet["onClick"] = clickEventFunc(buttonConfigure);
|
|
49
|
-
} else {
|
|
50
|
-
const eventFunc = getEventFuncByType(pageContext, buttonConfigure.events, "click");
|
|
51
|
-
myButtonSet["onClick"] = eventFunc;
|
|
52
|
-
}
|
|
53
|
-
operations.push(myButtonSet);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function expressJump(pageContext, configure, linkPage, row) {
|
|
58
|
-
let toPage;
|
|
59
|
-
const show = linkPage == null ? void 0 : linkPage.some((item) => {
|
|
60
|
-
let canShow = false;
|
|
61
|
-
if (item.scopeFunc) {
|
|
62
|
-
const func = getCustomFunc(pageContext, item.scopeFunc);
|
|
63
|
-
if (func) {
|
|
64
|
-
const result = func.apply(func, [
|
|
65
|
-
{
|
|
66
|
-
pageContext,
|
|
67
|
-
configureObj: configure,
|
|
68
|
-
row
|
|
69
|
-
}
|
|
70
|
-
]);
|
|
71
|
-
if (result) {
|
|
72
|
-
canShow = true;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
} else if (item.showCondition && item.showCondition.length > 0) {
|
|
76
|
-
const result = ExpressionEvaluator.evaluate(pageContext, item.showCondition, row);
|
|
77
|
-
if (result) {
|
|
78
|
-
canShow = true;
|
|
79
|
-
}
|
|
80
|
-
} else {
|
|
81
|
-
canShow = true;
|
|
20
|
+
function l(t2, o2, n2, r2) {
|
|
21
|
+
const u2 = !(!o2.props || !o2.props.base) && o2.props.base.showOperation, l2 = o2.btnList;
|
|
22
|
+
u2 && l2 && l2.forEach((o3) => {
|
|
23
|
+
const u3 = {}, l3 = Object.assign({}, o3.props.base);
|
|
24
|
+
if ("custom" === o3.name ? l3.customControl = l3.name : l3.elementType = "el-button", void 0 === o3.isPermission || o3.isPermission + "" == "true") {
|
|
25
|
+
const i2 = e(o3, t2);
|
|
26
|
+
i2 && (l3.permission = i2);
|
|
82
27
|
}
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
|
|
28
|
+
if (l3.label = s(l3.title), l3.sourceButton = { uuid: o3.uuid }, u3.props = l3, void 0 !== r2)
|
|
29
|
+
u3.onClick = r2(o3);
|
|
30
|
+
else {
|
|
31
|
+
const e2 = i(t2, o3.events, "click");
|
|
32
|
+
u3.onClick = e2;
|
|
86
33
|
}
|
|
34
|
+
n2.push(u3);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function p(t2, e2, i2, s2) {
|
|
38
|
+
let r2;
|
|
39
|
+
const u2 = i2 == null ? void 0 : i2.some((i3) => {
|
|
40
|
+
let u3 = false;
|
|
41
|
+
if (i3.scopeFunc) {
|
|
42
|
+
const n2 = o(t2, i3.scopeFunc);
|
|
43
|
+
if (n2) {
|
|
44
|
+
n2.apply(n2, [{ pageContext: t2, configureObj: e2, row: s2 }]) && (u3 = true);
|
|
45
|
+
}
|
|
46
|
+
} else if (i3.showCondition && i3.showCondition.length > 0) {
|
|
47
|
+
n.evaluate(t2, i3.showCondition, s2) && (u3 = true);
|
|
48
|
+
} else
|
|
49
|
+
u3 = true;
|
|
50
|
+
if (u3)
|
|
51
|
+
return r2 = i3, true;
|
|
87
52
|
});
|
|
88
|
-
return { show, toPage };
|
|
53
|
+
return { show: u2, toPage: r2 };
|
|
89
54
|
}
|
|
90
55
|
export {
|
|
91
|
-
expressJump,
|
|
92
|
-
getOperationButtons,
|
|
93
|
-
getTableNameByTableUuid,
|
|
94
|
-
popupToPage
|
|
56
|
+
p as expressJump,
|
|
57
|
+
l as getOperationButtons,
|
|
58
|
+
u as getTableNameByTableUuid,
|
|
59
|
+
r as popupToPage
|
|
95
60
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getBaseUrl, getRealRestApiPath } from "./common-util.js";
|
|
2
|
-
import
|
|
1
|
+
import { getBaseUrl as i, getRealRestApiPath as e } from "./common-util.js";
|
|
2
|
+
import t from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import "./eventBus.js";
|
|
4
|
-
import { getPermissionCodes } from "./page-init-util.js";
|
|
4
|
+
import { getPermissionCodes as o } from "./page-init-util.js";
|
|
5
5
|
import "agilebuilder-ui/src/utils/common-util";
|
|
6
6
|
import "agilebuilder-ui/src/utils/util";
|
|
7
7
|
import "element-plus";
|
|
@@ -16,44 +16,26 @@ import "./page-store.js";
|
|
|
16
16
|
import "agilebuilder-ui/src/utils/i18n-util";
|
|
17
17
|
import "vue-i18n";
|
|
18
18
|
import "async-validator";
|
|
19
|
-
function
|
|
20
|
-
return new Promise((
|
|
19
|
+
function r(r2, s, a, l, u) {
|
|
20
|
+
return new Promise((a2, l2) => {
|
|
21
21
|
var _a, _b;
|
|
22
|
-
if (
|
|
23
|
-
if (((_b =
|
|
24
|
-
const backendUrl =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
pageCode: pageContext.code,
|
|
31
|
-
pageVersion: pageContext.version,
|
|
32
|
-
tableName: pageContext.tableName,
|
|
33
|
-
systemCode,
|
|
34
|
-
functionCode: functionCodes,
|
|
35
|
-
beanName: pageContext.beanName
|
|
36
|
-
};
|
|
37
|
-
if (loadParams) {
|
|
38
|
-
Object.assign(param, loadParams);
|
|
39
|
-
}
|
|
40
|
-
http.post(path, param).then((data) => {
|
|
41
|
-
resolve(data);
|
|
22
|
+
if (s && ((_a = s.props.dataOrigin) == null ? void 0 : _a.optionValueSetType))
|
|
23
|
+
if ("beanName" === ((_b = s.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
|
|
24
|
+
const l3 = r2.backendUrl, m = r2.systemCode, p = o(s, r2);
|
|
25
|
+
let n = i(l3, r2.isTest) + "/dsc/commons/load-tree-node";
|
|
26
|
+
n = e(n, m, l3, r2.isTest);
|
|
27
|
+
const c = { pageCode: r2.code, pageVersion: r2.version, tableName: r2.tableName, systemCode: m, functionCode: p, beanName: r2.beanName };
|
|
28
|
+
u && Object.assign(c, u), t.post(n, c).then((i2) => {
|
|
29
|
+
a2(i2);
|
|
42
30
|
});
|
|
43
31
|
} else {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
if (designProperty && designProperty.staticData) {
|
|
47
|
-
resolve(designProperty.staticData);
|
|
48
|
-
} else {
|
|
49
|
-
resolve([]);
|
|
50
|
-
}
|
|
32
|
+
const i2 = (s.runtime ? s.runtime : {}).props;
|
|
33
|
+
i2 && i2.staticData ? a2(i2.staticData) : a2([]);
|
|
51
34
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
35
|
+
else
|
|
36
|
+
a2([]);
|
|
55
37
|
});
|
|
56
38
|
}
|
|
57
39
|
export {
|
|
58
|
-
getMenuTreeData
|
|
40
|
+
r as getMenuTreeData
|
|
59
41
|
};
|
|
@@ -1,78 +1,22 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, Fragment, createTextVNode, toDisplayString, createCommentVNode, createBlock } from "vue";
|
|
2
|
-
import { SuperIcon } from "agilebuilder-ui";
|
|
3
|
-
import { handleAfterInitEvent, handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
pageContext: {},
|
|
10
|
-
configure: {}
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const props = __props;
|
|
14
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
15
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
16
|
-
const runtimeStyle = runtimeInfo.style;
|
|
17
|
-
const runtimeClass = runtimeInfo.class;
|
|
18
|
-
function isDisable() {
|
|
19
|
-
return designProperty.value.state === "disabled" || isButtongLoading();
|
|
20
|
-
}
|
|
21
|
-
function isButtongLoading() {
|
|
22
|
-
return props.pageContext.canClick !== void 0 && props.pageContext.clickUuid !== void 0 ? !props.pageContext.canClick && props.pageContext.clickUuid === props.configure.uuid : false;
|
|
23
|
-
}
|
|
24
|
-
const componentRef = ref(null);
|
|
25
|
-
onMounted(() => {
|
|
26
|
-
nextTick(() => {
|
|
27
|
-
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
28
|
-
componentRef: componentRef.value,
|
|
29
|
-
entity: props.pageContext.entity.data,
|
|
30
|
-
pageData: props.pageContext.entity.page
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
return (_ctx, _cache) => {
|
|
35
|
-
const _component_el_button = resolveComponent("el-button");
|
|
36
|
-
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
37
|
-
createVNode(_component_el_button, {
|
|
38
|
-
ref_key: "componentRef",
|
|
39
|
-
ref: componentRef,
|
|
40
|
-
disabled: isDisable(),
|
|
41
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
42
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
43
|
-
type: designProperty.value.type,
|
|
44
|
-
size: designProperty.value.size,
|
|
45
|
-
text: designProperty.value.text,
|
|
46
|
-
round: designProperty.value.round,
|
|
47
|
-
plain: designProperty.value.plain,
|
|
48
|
-
loading: isButtongLoading(),
|
|
49
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
50
|
-
}, {
|
|
51
|
-
default: withCtx(() => [
|
|
52
|
-
designProperty.value.title && designProperty.value.iconPosition == "right" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
53
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)) + " ", 1),
|
|
54
|
-
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
55
|
-
createTextVNode(" ")
|
|
56
|
-
], 64)) : createCommentVNode("", true)
|
|
57
|
-
], 64)) : createCommentVNode("", true),
|
|
58
|
-
designProperty.value.iconType && designProperty.value.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
59
|
-
key: 1,
|
|
60
|
-
iconType: designProperty.value.iconType,
|
|
61
|
-
iconValue: designProperty.value.iconValue
|
|
62
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
63
|
-
designProperty.value.title && designProperty.value.iconPosition != "right" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
64
|
-
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
65
|
-
createTextVNode(" ")
|
|
66
|
-
], 64)) : createCommentVNode("", true),
|
|
67
|
-
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
68
|
-
], 64)) : createCommentVNode("", true)
|
|
69
|
-
]),
|
|
70
|
-
_: 1
|
|
71
|
-
}, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain", "loading"])
|
|
72
|
-
]);
|
|
73
|
-
};
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as i, resolveComponent as l, openBlock as a, createElementBlock as o, createVNode as u, normalizeClass as c, unref as p, normalizeStyle as r, withCtx as s, Fragment as v, createTextVNode as g, toDisplayString as d, createCommentVNode as y, createBlock as f } from "vue";
|
|
2
|
+
import { SuperIcon as m } from "agilebuilder-ui";
|
|
3
|
+
import { handleAfterInitEvent as x, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
5
|
+
const b = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
6
|
+
const V2 = e2, T = V2.configure.runtime ? V2.configure.runtime : {}, _ = t(T.props ? T.props : {}), h = T.style, z = T.class;
|
|
7
|
+
function j() {
|
|
8
|
+
return void 0 !== V2.pageContext.canClick && void 0 !== V2.pageContext.clickUuid && (!V2.pageContext.canClick && V2.pageContext.clickUuid === V2.configure.uuid);
|
|
74
9
|
}
|
|
75
|
-
|
|
10
|
+
const P = t(null);
|
|
11
|
+
return n(() => {
|
|
12
|
+
i(() => {
|
|
13
|
+
x(null, V2.pageContext, V2.configure, { componentRef: P.value, entity: V2.pageContext.entity.data, pageData: V2.pageContext.entity.page });
|
|
14
|
+
});
|
|
15
|
+
}), (e3, t2) => {
|
|
16
|
+
const n2 = l("el-button");
|
|
17
|
+
return a(), o("span", b, [u(n2, { ref_key: "componentRef", ref: P, disabled: "disabled" === _.value.state || j(), class: c(p(z)), style: r(p(h)), type: _.value.type, size: _.value.size, text: _.value.text, round: _.value.round, plain: _.value.plain, loading: j(), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: s(() => [_.value.title && "right" == _.value.iconPosition ? (a(), o(v, { key: 0 }, [g(d(p(C)(_.value.title)) + " ", 1), _.value.iconValue ? (a(), o(v, { key: 0 }, [g(" ")], 64)) : y("", true)], 64)) : y("", true), _.value.iconType && _.value.iconValue ? (a(), f(p(m), { key: 1, iconType: _.value.iconType, iconValue: _.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), _.value.title && "right" != _.value.iconPosition ? (a(), o(v, { key: 2 }, [_.value.iconValue ? (a(), o(v, { key: 0 }, [g(" ")], 64)) : y("", true), g(" " + d(p(C)(_.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain", "loading"])]);
|
|
18
|
+
};
|
|
19
|
+
} });
|
|
76
20
|
export {
|
|
77
|
-
|
|
21
|
+
V as default
|
|
78
22
|
};
|
package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
CHANGED
|
@@ -1,49 +1,17 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
-
const runtimeStyle = runtimeInfo.style;
|
|
14
|
-
const runtimeClass = runtimeInfo.class;
|
|
15
|
-
const componentRef = ref(null);
|
|
16
|
-
onMounted(() => {
|
|
17
|
-
nextTick(() => {
|
|
18
|
-
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
19
|
-
componentRef: componentRef.value,
|
|
20
|
-
entity: props.pageContext.entity.data,
|
|
21
|
-
pageData: props.pageContext.entity.page
|
|
22
|
-
});
|
|
23
|
-
});
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u, openBlock as r, createBlock as a, normalizeClass as i, unref as l, normalizeStyle as p, withCtx as s, createElementBlock as g, Fragment as c, renderList as f } from "vue";
|
|
2
|
+
import m from "../../object-render.vue.js";
|
|
3
|
+
import { handleAfterInitEvent as x } from "../../../../utils/events/event-util.js";
|
|
4
|
+
const y = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
5
|
+
const y2 = e2, C = y2.configure.runtime ? y2.configure.runtime : {}, d = C.style, v = C.class, _ = t(null);
|
|
6
|
+
return n(() => {
|
|
7
|
+
o(() => {
|
|
8
|
+
x(null, y2.pageContext, y2.configure, { componentRef: _.value, entity: y2.pageContext.entity.data, pageData: y2.pageContext.entity.page });
|
|
24
9
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
31
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
32
|
-
}, {
|
|
33
|
-
default: withCtx(() => [
|
|
34
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
35
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
36
|
-
key: element.uuid,
|
|
37
|
-
pageContext: _ctx.pageContext,
|
|
38
|
-
configure: element
|
|
39
|
-
}, null, 8, ["pageContext", "configure"]);
|
|
40
|
-
}), 128))
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
}, 8, ["class", "style"]);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
});
|
|
10
|
+
}), (e3, t2) => {
|
|
11
|
+
const n2 = u("el-button-group");
|
|
12
|
+
return r(), a(n2, { ref_key: "componentRef", ref: _, class: i(l(v)), style: p(l(d)) }, { default: s(() => [(r(true), g(c, null, f(e3.configure.items, (t3, n3) => (r(), a(m, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
|
|
13
|
+
};
|
|
14
|
+
} });
|
|
47
15
|
export {
|
|
48
|
-
|
|
16
|
+
y as default
|
|
49
17
|
};
|
|
@@ -1,137 +1,42 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { ArrowDown } from "@element-plus/icons-vue";
|
|
3
|
-
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent, handleEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
props: {
|
|
10
|
-
|
|
11
|
-
configure:
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const valueType = dataOrigin.optionValueSetType;
|
|
22
|
-
if (valueType == "variable") {
|
|
23
|
-
listOptions = computed(() => {
|
|
24
|
-
let options;
|
|
25
|
-
const menuValues = formatVariableValue(props.pageContext, designProperty.value.menuField);
|
|
26
|
-
if (menuValues && Array.isArray(menuValues)) {
|
|
27
|
-
options = menuValues;
|
|
28
|
-
for (let i = 0; i < options.length; i++) {
|
|
29
|
-
const option = options[i];
|
|
30
|
-
if (!option.label) {
|
|
31
|
-
option.label = i + 1;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
} else {
|
|
35
|
-
const strs = (menuValues ? menuValues + "" : "").trim().split(",");
|
|
36
|
-
options = [];
|
|
37
|
-
for (let str of strs) {
|
|
38
|
-
options.push({
|
|
39
|
-
value: str,
|
|
40
|
-
label: str
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return options;
|
|
45
|
-
});
|
|
46
|
-
} else {
|
|
47
|
-
listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
48
|
-
}
|
|
49
|
-
function visibleChange(isVisible) {
|
|
50
|
-
if (isVisible) {
|
|
51
|
-
handleFormEvent(isVisible, props.pageContext, props.configure, "menuShow");
|
|
52
|
-
} else {
|
|
53
|
-
handleFormEvent(isVisible, props.pageContext, props.configure, "menuHidden");
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u, openBlock as i, createBlock as a, normalizeClass as r, unref as p, normalizeStyle as s, withCtx as c, createVNode as g, createElementBlock as f, Fragment as m, renderList as d, createTextVNode as v, toDisplayString as y } from "vue";
|
|
2
|
+
import { ArrowDown as b } from "@element-plus/icons-vue";
|
|
3
|
+
import { formatVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as k, handleEvent as x, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
|
+
const h2 = e2, j = h2.configure.runtime ? h2.configure.runtime : {}, T = j.style, A = j.class, B = t(j.props ? j.props : {});
|
|
8
|
+
let O = null;
|
|
9
|
+
const R = (h2.configure.props && h2.configure.props.dataOrigin ? h2.configure.props.dataOrigin : {}).optionValueSetType;
|
|
10
|
+
function S(e3) {
|
|
11
|
+
_(e3, h2.pageContext, h2.configure, e3 ? "menuShow" : "menuHidden");
|
|
12
|
+
}
|
|
13
|
+
O = "variable" == R ? l(() => {
|
|
14
|
+
let e3;
|
|
15
|
+
const t2 = C(h2.pageContext, B.value.menuField);
|
|
16
|
+
if (t2 && Array.isArray(t2)) {
|
|
17
|
+
e3 = t2;
|
|
18
|
+
for (let t3 = 0; t3 < e3.length; t3++) {
|
|
19
|
+
const l2 = e3[t3];
|
|
20
|
+
l2.label || (l2.label = t3 + 1);
|
|
54
21
|
}
|
|
22
|
+
} else {
|
|
23
|
+
const l2 = (t2 ? t2 + "" : "").trim().split(",");
|
|
24
|
+
e3 = [];
|
|
25
|
+
for (let t3 of l2)
|
|
26
|
+
e3.push({ value: t3, label: t3 });
|
|
55
27
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
pageData: props.pageContext.entity.page
|
|
63
|
-
});
|
|
64
|
-
});
|
|
28
|
+
return e3;
|
|
29
|
+
}) : t(B.value.options ? B.value.options : []);
|
|
30
|
+
const V = t(null);
|
|
31
|
+
return n(() => {
|
|
32
|
+
o(() => {
|
|
33
|
+
k(null, h2.pageContext, h2.configure, { componentRef: V.value, entity: h2.pageContext.entity.data, pageData: h2.pageContext.entity.page });
|
|
65
34
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
72
|
-
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
73
|
-
return openBlock(), createBlock(_component_el_dropdown, {
|
|
74
|
-
ref_key: "componentRef",
|
|
75
|
-
ref: componentRef,
|
|
76
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
77
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
78
|
-
placement: designProperty.value.placement,
|
|
79
|
-
"split-button": designProperty.value.splitButton,
|
|
80
|
-
disabled: designProperty.value.state === "disabled",
|
|
81
|
-
type: designProperty.value.buttonType,
|
|
82
|
-
size: designProperty.value.size,
|
|
83
|
-
trigger: designProperty.value.trigger,
|
|
84
|
-
onVisibleChange: visibleChange
|
|
85
|
-
}, {
|
|
86
|
-
dropdown: withCtx(() => [
|
|
87
|
-
createVNode(_component_el_dropdown_menu, null, {
|
|
88
|
-
default: withCtx(() => [
|
|
89
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(listOptions), (item, index) => {
|
|
90
|
-
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
91
|
-
key: item,
|
|
92
|
-
onClick: ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick", { menuItem: item })
|
|
93
|
-
}, {
|
|
94
|
-
default: withCtx(() => [
|
|
95
|
-
createTextVNode(toDisplayString(unref($t)(item.label)), 1)
|
|
96
|
-
]),
|
|
97
|
-
_: 2
|
|
98
|
-
}, 1032, ["onClick"]);
|
|
99
|
-
}), 128))
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
})
|
|
103
|
-
]),
|
|
104
|
-
default: withCtx(() => [
|
|
105
|
-
designProperty.value.triggerElement === "button" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
106
|
-
!designProperty.value.splitButton ? (openBlock(), createBlock(_component_el_button, {
|
|
107
|
-
key: 0,
|
|
108
|
-
size: designProperty.value.size,
|
|
109
|
-
type: designProperty.value.buttonType,
|
|
110
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick"))
|
|
111
|
-
}, {
|
|
112
|
-
default: withCtx(() => [
|
|
113
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(designProperty.value.title), 1))
|
|
117
|
-
], 64)) : (openBlock(), createBlock(_component_el_text, { key: 1 }, {
|
|
118
|
-
default: withCtx(() => [
|
|
119
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)) + " ", 1),
|
|
120
|
-
createVNode(_component_el_icon, null, {
|
|
121
|
-
default: withCtx(() => [
|
|
122
|
-
createVNode(unref(ArrowDown))
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
})
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
}))
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
});
|
|
35
|
+
}), (e3, t2) => {
|
|
36
|
+
const l2 = u("el-button"), n2 = u("el-icon"), o2 = u("el-text"), C2 = u("el-dropdown-item"), k2 = u("el-dropdown-menu"), _2 = u("el-dropdown");
|
|
37
|
+
return i(), a(_2, { ref_key: "componentRef", ref: V, class: r(p(A)), style: s(p(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [g(k2, null, { default: c(() => [(i(true), f(m, null, d(p(O), (t3, l3) => (i(), a(C2, { key: t3, onClick: (l4) => p(x)(l4, e3.pageContext, e3.configure, "menuClick", { menuItem: t3 }) }, { default: c(() => [v(y(p(w)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: c(() => ["button" === B.value.triggerElement ? (i(), f(m, { key: 0 }, [B.value.splitButton ? (i(), f("span", z, y(B.value.title), 1)) : (i(), a(l2, { key: 0, size: B.value.size, type: B.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: c(() => [v(y(p(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (i(), a(o2, { key: 1 }, { default: c(() => [v(y(p(w)(B.value.title)) + " ", 1), g(n2, null, { default: c(() => [g(p(b))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
38
|
+
};
|
|
39
|
+
} });
|
|
135
40
|
export {
|
|
136
|
-
|
|
41
|
+
h as default
|
|
137
42
|
};
|
package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock } from "vue";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
__name: "exportpdf-runtime",
|
|
5
|
-
props: {
|
|
6
|
-
pageContext: {},
|
|
7
|
-
configure: {}
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
return (_ctx, _cache) => {
|
|
11
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
12
|
-
configure: _ctx.configure,
|
|
13
|
-
pageContext: _ctx.pageContext
|
|
14
|
-
}, null, 8, ["configure", "pageContext"]);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
});
|
|
1
|
+
import { defineComponent as e, openBlock as t, createBlock as o } from "vue";
|
|
2
|
+
import n from "../button/button-runtime.vue2.js";
|
|
3
|
+
const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (e3, r2) => (t(), o(n, { configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"])) });
|
|
18
4
|
export {
|
|
19
|
-
|
|
5
|
+
r as default
|
|
20
6
|
};
|