super-page-runtime 2.3.37 → 2.3.38-cdn1
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/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +229 -229
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.d.ts +36 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +94 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +60 -60
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +91 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -44
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +6 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +37 -29
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +78 -69
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +8 -6
- package/dist/es/style.css +94 -94
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
chartUuid: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
conditionValues: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
backendUrl: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"save-conditions": (...args: any[]) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
chartUuid: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
conditionValues: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
backendUrl: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
"onSave-conditions"?: (...args: any[]) => any;
|
|
31
|
+
}>, {
|
|
32
|
+
backendUrl: string;
|
|
33
|
+
chartUuid: string;
|
|
34
|
+
conditionValues: string;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
export default _default;
|
package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, markRaw as i, onUnmounted as n, resolveComponent as a, resolveDirective as l, withDirectives as o, createElementBlock as u, openBlock as r, createElementVNode as s, createBlock as p, createCommentVNode as c, withCtx as v, createVNode as f, Fragment as g, renderList as m, unref as d, createTextVNode as h, resolveDynamicComponent as y } from "vue";
|
|
2
|
+
import { deepCopy as C } from "../../../../utils/common-util.js";
|
|
3
|
+
import b from "agilebuilder-ui/src/utils/request";
|
|
4
|
+
import { updateOptionDatasources as k, updateChartDatasources as x, setValueForVariableName as S, setVariableValue as j, getFormPropName as O, getValueFromVariable as w } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { initPageEvents as _, isShowComponent as H } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import J from "../../object-render.vue.js";
|
|
7
|
+
import N from "../../error-render.vue.js";
|
|
8
|
+
import { getRuntimeComponentByName as U } from "../../../../utils/assemblys-config.js";
|
|
9
|
+
import { addComponentRef as V, addComponentRefByCode as A } from "../../../../utils/global-refs.js";
|
|
10
|
+
import { getDefaultValue as E, controlObjectRenderState as P } from "../../../../utils/page-init-util.js";
|
|
11
|
+
import { ElLoading as D } from "element-plus";
|
|
12
|
+
const $ = { "element-loading-text": "加载中..." }, q = { style: { overflow: "auto" }, ref: "dialogBody" }, T = e({ name: "HomeChartConditionRender", inheritAttrs: false, __name: "home-chart-condition-render", props: { chartUuid: { type: String, default: "" }, conditionValues: { type: String, default: null }, backendUrl: { type: String, default: "" } }, emits: ["save-conditions"], setup(e2, { emit: T2 }) {
|
|
13
|
+
const W = e2, z = t([]), B = t(true), I = t(false), L = t(null);
|
|
14
|
+
let R = t(null);
|
|
15
|
+
const F = t(null), G = t(false), K = t(0), M = t({}), Q = T2, X = t({});
|
|
16
|
+
function Y(e3) {
|
|
17
|
+
if (F.value = e3, e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
18
|
+
return L.value;
|
|
19
|
+
}), L.value.uuid && V(R.value, L.value.uuid, F), L.value.code) A(R.value, L.value.code, F);
|
|
20
|
+
else if (L.value.props && L.value.props.base) {
|
|
21
|
+
const e4 = L.value.props.base;
|
|
22
|
+
if (e4.prop) {
|
|
23
|
+
let t3 = e4.prop;
|
|
24
|
+
t3.startsWith("${") && (t3 = t3.substring(2, t3.length - 1)), t3.includes(".") && (t3 = t3.substring(t3.indexOf(".") + 1)), A(R.value, t3, F);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const t2 = L.value.props ? L.value.props.base : null;
|
|
28
|
+
if (t2 && t2.prop) {
|
|
29
|
+
let e4 = t2.prop;
|
|
30
|
+
e4 = O(e4), P(R.value, e4);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function Z(e3, t2 = false) {
|
|
34
|
+
let i2 = true;
|
|
35
|
+
if (W.conditionValues && !t2) {
|
|
36
|
+
const t3 = JSON.parse(W.conditionValues);
|
|
37
|
+
if (Object.keys(t3).length > 0) {
|
|
38
|
+
i2 = false;
|
|
39
|
+
for (const i3 in t3) null !== t3[i3] && void 0 !== t3[i3] && S(e3.entity, i3, t3[i3]);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (i2 && L.value.pushHomepage.initConfig) {
|
|
43
|
+
for (const t3 of L.value.pushHomepage.initConfig) if (t3.prop && t3.value) {
|
|
44
|
+
const i3 = E(e3, t3.value, "input-text", false), n2 = t3.prop.substring(2, t3.prop.length - 1).split(".");
|
|
45
|
+
null != i3 && j(e3.entity, n2, i3);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function ee() {
|
|
50
|
+
const e3 = D.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
|
|
51
|
+
x(R.value, R.value.initChartServiceConfigs, null, false).then(() => {
|
|
52
|
+
}).finally(() => {
|
|
53
|
+
e3.close();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function te() {
|
|
57
|
+
Z(R.value, true), K.value++;
|
|
58
|
+
}
|
|
59
|
+
function ie() {
|
|
60
|
+
const e3 = {};
|
|
61
|
+
R.value.variables.forEach((t2) => {
|
|
62
|
+
const i2 = "${page." + t2.name + "}";
|
|
63
|
+
e3[i2] = w(R.value.entity, i2, null);
|
|
64
|
+
}), Q("save-conditions", e3);
|
|
65
|
+
}
|
|
66
|
+
return W.chartUuid && b.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + W.chartUuid).then((e3) => {
|
|
67
|
+
var _a;
|
|
68
|
+
if (e3 && e3.designJson) {
|
|
69
|
+
L.value = {};
|
|
70
|
+
const n2 = JSON.parse(e3.designJson), a2 = window.frameElement;
|
|
71
|
+
L.value = n2.chartJson, a2 && (a2.clientHeight, L.value.runtime.common.style.pc_style.height = a2.clientHeight + "px");
|
|
72
|
+
const l2 = { isTest: true, showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: n2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: n2.beanName, initChartServiceConfigs: [n2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
|
|
73
|
+
if (z.value = ((_a = L.value.pushHomepage) == null ? void 0 : _a.searchConditions) || [], n2.variables) {
|
|
74
|
+
const e4 = l2.entity.page;
|
|
75
|
+
for (const t2 of n2.variables) t2.name && (t2.isArrayElement ? e4[t2.name] = [] : t2.defaultValue ? e4[t2.name] = t2.defaultValue : e4[t2.name] = void 0);
|
|
76
|
+
}
|
|
77
|
+
n2.initOptionConfigs && n2.initOptionConfigs.length > 0 && k(l2, n2.initOptionConfigs, void 0), Z(l2), M.value = i(U(L.value.name));
|
|
78
|
+
const o2 = t(true);
|
|
79
|
+
null == M.value && (M.value = N, o2.value = false), _(n2, l2), R.value = l2, G.value = true, X.value = JSON.parse(JSON.stringify(R.value.entity)), function(e4, t2) {
|
|
80
|
+
if (!t2 || 0 == t2.length) return;
|
|
81
|
+
e4.initChartData = {}, e4.initChartData.data = C(e4.entity.data), e4.initChartData.page = C(e4.entity.page), t2 && t2.length > 0 && x(e4, t2, null, true);
|
|
82
|
+
}(R.value, [n2.initChartServiceConfigs]);
|
|
83
|
+
} else I.value = true, B.value = false;
|
|
84
|
+
}).finally(() => {
|
|
85
|
+
B.value = false;
|
|
86
|
+
}), n(() => {
|
|
87
|
+
}), (e3, t2) => {
|
|
88
|
+
const i2 = a("el-empty"), n2 = a("el-button"), C2 = a("el-col"), b2 = a("el-form"), k2 = l("loading");
|
|
89
|
+
return o((r(), u("div", $, [s("div", q, [z.value && 0 !== z.value.length ? c("", true) : (r(), p(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), p(b2, { key: K.value }, { default: v(() => [(r(true), u(g, null, m(z.value, (e4) => (r(), p(J, { key: e4.uuid, configure: e4, pageContext: d(R) }, null, 8, ["configure", "pageContext"]))), 128)), f(C2, { span: 24, style: { "text-align": "right", margin: "10px 0" } }, { default: v(() => [f(n2, { type: "primary", onClick: ee }, { default: v(() => [...t2[0] || (t2[0] = [h("查询", -1)])]), _: 1 }), f(n2, { type: "default", onClick: te }, { default: v(() => [...t2[1] || (t2[1] = [h("重置", -1)])]), _: 1 }), f(n2, { type: "primary", onClick: ie }, { default: v(() => [...t2[2] || (t2[2] = [h("保存为默认条件", -1)])]), _: 1 })]), _: 1 })]), _: 1 })), G.value && d(H)(L.value) ? (r(), p(y(M.value), { key: 1, ref: Y, style: { width: "100%", height: "300px" }, configure: L.value, pageContext: d(R) }, null, 8, ["configure", "pageContext"])) : c("", true)], 512)])), [[k2, B.value]]);
|
|
90
|
+
};
|
|
91
|
+
} });
|
|
92
|
+
export {
|
|
93
|
+
T as default
|
|
94
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from "./tabs-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const r = t
|
|
3
|
+
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = e(t, [["__scopeId", "data-v-07e944bd"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as l, unref as u, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
|
|
2
2
|
import { ElTabs as x, ElTabPane as C } from "element-plus";
|
|
3
3
|
import T from "../../object-render.vue.js";
|
|
4
|
-
import { SuperIcon as
|
|
5
|
-
import { handleAfterInitEvent as
|
|
6
|
-
import { $t as
|
|
7
|
-
import { isPromise as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
4
|
+
import { SuperIcon as k } from "agilebuilder-ui";
|
|
5
|
+
import { handleAfterInitEvent as w, handleEvent as E } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { $t as O } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { isPromise as N } from "../../../../utils/page-helper-util.js";
|
|
8
|
+
const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
9
|
+
const _ = e2, A = n(""), I = n([]);
|
|
10
|
+
_.configure.items.forEach((e3) => {
|
|
11
11
|
e3.code || (e3.code = e3.index);
|
|
12
|
-
}),
|
|
13
|
-
const
|
|
14
|
-
function S(e3,
|
|
15
|
-
return
|
|
12
|
+
}), A.value = _.configure.props.defaultOpen ? _.configure.props.defaultOpen : 1;
|
|
13
|
+
const P = n(null), j = _.configure.runtime ? _.configure.runtime : {}, R = j.style, B = j.class, z = j.headerStyle;
|
|
14
|
+
function S(e3, n2) {
|
|
15
|
+
return E(e3, _.pageContext, _.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
|
|
16
16
|
}
|
|
17
|
-
function D(e3,
|
|
18
|
-
const
|
|
19
|
-
return
|
|
17
|
+
function D(e3, n2) {
|
|
18
|
+
const t2 = { pane: e3, ev: n2 }, o2 = e3.paneName;
|
|
19
|
+
return _.pageContext.activeTab = o2, _.pageContext.activeLabel = t2.label, _.pageContext.workflowOpinion && _.pageContext.workflowOpinion.boxInstance && (o2 === _.configure.items[0].code ? _.pageContext.workflowOpinion.boxInstance.show() : _.pageContext.workflowOpinion.boxInstance.hide()), E(o2, _.pageContext, _.configure, "tab-click", t2);
|
|
20
20
|
}
|
|
21
21
|
function F(e3) {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
22
|
+
const n2 = { paneName: e3 };
|
|
23
|
+
return _.pageContext.activeTab = e3, E(e3, _.pageContext, _.configure, "tab-change", n2);
|
|
24
24
|
}
|
|
25
25
|
function L(e3) {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
false !==
|
|
29
|
-
}) : false !==
|
|
26
|
+
const n2 = { paneName: e3 }, t2 = E(e3, _.pageContext, _.configure, "tab-remove", n2);
|
|
27
|
+
N(t2) ? t2.then((n3) => {
|
|
28
|
+
false !== n3 && U(e3);
|
|
29
|
+
}) : false !== t2 && U(e3);
|
|
30
30
|
}
|
|
31
31
|
function U(e3) {
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
const e4 =
|
|
35
|
-
e4 && void 0 !== e4.code && (
|
|
32
|
+
A.value === e3 && _.configure.items.forEach((n2, t2) => {
|
|
33
|
+
if (n2.code === e3) {
|
|
34
|
+
const e4 = _.configure.items[t2 + 1] || _.configure.items[t2 - 1];
|
|
35
|
+
e4 && void 0 !== e4.code && (A.value = e4.code);
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), I.value.includes(e3) || I.value.push(e3);
|
|
38
38
|
}
|
|
39
39
|
function q() {
|
|
40
|
-
return
|
|
40
|
+
return E(null, _.pageContext, _.configure, "tab-add");
|
|
41
41
|
}
|
|
42
|
-
function G(e3,
|
|
43
|
-
const
|
|
44
|
-
return
|
|
42
|
+
function G(e3, n2) {
|
|
43
|
+
const t2 = { paneName: e3, action: n2 };
|
|
44
|
+
return E(e3, _.pageContext, _.configure, "edit", t2);
|
|
45
45
|
}
|
|
46
46
|
function H() {
|
|
47
|
-
const e3 =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}) : false !== e3 && (
|
|
47
|
+
const e3 = E(_.configure.items, _.pageContext, _.configure, "tab-reset");
|
|
48
|
+
N(e3) ? e3.then((e4) => {
|
|
49
|
+
I.value = [];
|
|
50
|
+
}) : false !== e3 && (I.value = []);
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return t(I, (e3) => {
|
|
53
53
|
e3 && e3.length > 0 ? e3.forEach((e4) => {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
}) :
|
|
57
|
-
const
|
|
58
|
-
|
|
54
|
+
const n2 = document.getElementById("tab-" + e4);
|
|
55
|
+
n2 && (n2.style.display = "none");
|
|
56
|
+
}) : _.configure.items.forEach((e4) => {
|
|
57
|
+
const n2 = document.getElementById("tab-" + e4.code);
|
|
58
|
+
n2 && (n2.style.display = "");
|
|
59
59
|
});
|
|
60
60
|
}, { deep: true }), o(() => {
|
|
61
61
|
a(() => {
|
|
62
62
|
let e3 = [];
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}),
|
|
63
|
+
_.configure.items.forEach((n2) => {
|
|
64
|
+
n2.code && e3.push(document.getElementById("tab-" + n2.code));
|
|
65
|
+
}), w(null, _.pageContext, _.configure, { componentRef: P.value, tabsDom: e3, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
|
|
66
66
|
});
|
|
67
|
-
}),
|
|
67
|
+
}), V2({ thisRef: P, activeName: A, hiddenPanes: I, resetTab: H, hiddenTabPanes: function(e3) {
|
|
68
68
|
if (Array.isArray(e3)) {
|
|
69
|
-
const
|
|
69
|
+
const n2 = [];
|
|
70
70
|
e3.forEach((e4) => {
|
|
71
|
-
|
|
72
|
-
}),
|
|
71
|
+
I.value.includes(e4) || n2.push(e4);
|
|
72
|
+
}), n2.length > 0 && I.value.push(...n2);
|
|
73
73
|
}
|
|
74
74
|
}, showTabPanes: function(e3) {
|
|
75
75
|
Array.isArray(e3) && e3.forEach((e4) => {
|
|
76
|
-
const
|
|
77
|
-
|
|
76
|
+
const n2 = I.value.indexOf(e4);
|
|
77
|
+
n2 > -1 && I.value.splice(n2, 1);
|
|
78
78
|
});
|
|
79
79
|
}, showTabPanesOnly: function(e3) {
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
e3.includes(
|
|
83
|
-
}),
|
|
80
|
+
const n2 = [];
|
|
81
|
+
_.configure.items.forEach((t2) => {
|
|
82
|
+
e3.includes(t2.code) || n2.push(t2.code);
|
|
83
|
+
}), I.value = [...new Set(n2)];
|
|
84
84
|
}, hiddenTabPanesOnly: function(e3) {
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
e3.includes(
|
|
88
|
-
}),
|
|
89
|
-
} }), (
|
|
85
|
+
const n2 = [];
|
|
86
|
+
_.configure.items.forEach((t2) => {
|
|
87
|
+
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
|
+
}), I.value = [...new Set(n2)];
|
|
89
|
+
} }), (n2, t2) => {
|
|
90
90
|
const o2 = i("el-button");
|
|
91
|
-
return
|
|
91
|
+
return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => A.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(d, null, m(_.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(u(z)) }, y(u(O)(n3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || n3.code === A.value ? (l(true), f(d, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e2.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (l(), c(o2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
V as default
|
|
96
96
|
};
|
|
@@ -118,7 +118,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
118
118
|
const l2 = ae.value.lineEditSave, r2 = K;
|
|
119
119
|
return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
|
|
120
120
|
const i3 = { tableName: r2.props.dataOrigin.tableName };
|
|
121
|
-
V(J, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
|
|
121
|
+
V(J, l2, "/dsc/commons", false, a2, o2, e3, i3, true).then((e4) => {
|
|
122
122
|
t3(e4 ? e4.entity : {});
|
|
123
123
|
}).catch((e4) => {
|
|
124
124
|
n3(e4);
|
|
@@ -194,7 +194,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
function De(e3, t2, n2, o2, l2, i2, a2, u2) {
|
|
197
|
-
ie.value.deleteRow(l2, G, false, a2, u2);
|
|
197
|
+
ie.value.deleteRow(l2, G, false, a2, u2, n2);
|
|
198
198
|
}
|
|
199
199
|
function ye(e3) {
|
|
200
200
|
T(X, Y, e3);
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as p, normalizeStyle as s, normalizeClass as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as p, normalizeStyle as s, normalizeClass as f, unref as d, createSlots as m, withCtx as v, createElementVNode as c, toDisplayString as g } from "vue";
|
|
2
2
|
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import { handleAfterInitEvent as C, fileUploadBeforeUpload as w,
|
|
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";
|
|
5
5
|
import { FsUploadNew as P } from "agilebuilder-ui";
|
|
6
6
|
import S from "../../../../utils/eventBus.js";
|
|
7
|
-
import { $t as
|
|
8
|
-
import { addRequiredClassUtil as
|
|
9
|
-
import { getRelativeBaseUrl as
|
|
10
|
-
const
|
|
7
|
+
import { $t as j } from "../../../../utils/i18n-util.js";
|
|
8
|
+
import { addRequiredClassUtil as N } from "../../../../utils/common-util.js";
|
|
9
|
+
import { getRelativeBaseUrl as T } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
11
11
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
12
|
-
const z = e2, R = l(null), F = z.configure.runtime ? z.configure.runtime : {},
|
|
12
|
+
const z = e2, R = l(null), F = z.configure.runtime ? z.configure.runtime : {}, O = l(F.props ? F.props : {}), D = F.style, q = F.class, W = F.headerStyle, $ = F.titleExceedStyle, A = z.pageContext.entity ? z.pageContext.entity : {}, E = z.configure.props.base ? z.configure.props.base : {}, U = Y(E.prop), B = Y(E.propName);
|
|
13
13
|
let G = l({});
|
|
14
14
|
G.value.isShowWatermark = void 0 === ((_b = (_a = z.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = z.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", G.value.content = ((_e = (_d = z.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = z.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", U && U.length > 1 && t(() => z.pageContext.entity[U[0]][U[1]], (e3) => {
|
|
15
15
|
X(h(A, U));
|
|
@@ -19,7 +19,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
19
19
|
if (e3) {
|
|
20
20
|
const l2 = e3.split(",");
|
|
21
21
|
if (l2.length > 0) {
|
|
22
|
-
const e4 =
|
|
22
|
+
const e4 = T(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
|
|
23
23
|
I.post(e4, l2).then((e5) => {
|
|
24
24
|
Q.value = [];
|
|
25
25
|
const t2 = [], o2 = {};
|
|
@@ -30,7 +30,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
30
30
|
const i2 = l2[e6];
|
|
31
31
|
t2.push(o2[i2].fileName), Q.value.push({ showName: o2[i2].fileName, serverPath: i2, fileSize: o2[i2].fileSize });
|
|
32
32
|
}
|
|
33
|
-
"input" ===
|
|
33
|
+
"input" === O.value.displayType && (V.value.showName = t2.join(","), V.value.serverPath = l2.join(","));
|
|
34
34
|
}).finally(() => {
|
|
35
35
|
M.value = true;
|
|
36
36
|
});
|
|
@@ -42,7 +42,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
42
42
|
}
|
|
43
43
|
function Z(e3) {
|
|
44
44
|
z.pageContext.fileuploadInfo || (z.pageContext.fileuploadInfo = []);
|
|
45
|
-
return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label:
|
|
45
|
+
return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: j(O.value.title) }), e3.pageContext || (e3.pageContext = z.pageContext), e3.configure || (e3.configureObj = z.configure), w(e3);
|
|
46
46
|
}
|
|
47
47
|
function ee() {
|
|
48
48
|
if (z.pageContext.fileuploadInfo, z.configure.uuid, z.pageContext.fileuploadInfo && z.configure.uuid) {
|
|
@@ -54,41 +54,41 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
54
54
|
function le(e3) {
|
|
55
55
|
ee();
|
|
56
56
|
}
|
|
57
|
+
function te(e3) {
|
|
58
|
+
return b(z.pageContext, z.configure, e3);
|
|
59
|
+
}
|
|
57
60
|
X(K);
|
|
58
|
-
const
|
|
61
|
+
const oe = (e3, l2, t2) => {
|
|
59
62
|
var o2;
|
|
60
|
-
ee(),
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
k(z.pageContext, z.configure, e4);
|
|
66
|
-
}({ file: e3 }));
|
|
67
|
-
}, ie = () => {
|
|
63
|
+
ee(), ae(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, x(z.pageContext, z.configure, o2);
|
|
64
|
+
}, ie = (e3) => {
|
|
65
|
+
var l2;
|
|
66
|
+
ae(), l2 = { file: e3 }, k(z.pageContext, z.configure, l2);
|
|
67
|
+
}, ae = () => {
|
|
68
68
|
const e3 = [], l2 = [];
|
|
69
|
-
if (
|
|
70
|
-
const e4 = Q.value.length -
|
|
69
|
+
if (O.value.limit && Q.value.length > O.value.limit) {
|
|
70
|
+
const e4 = Q.value.length - O.value.limit;
|
|
71
71
|
for (let l3 = 0; l3 < e4; l3++) Q.value.shift();
|
|
72
72
|
}
|
|
73
73
|
for (let t2 = 0; t2 < Q.value.length; t2++) e3.push(Q.value[t2].showName), l2.push(Q.value[t2].serverPath);
|
|
74
74
|
y(z.pageContext.entity, U, l2.join(",")), y(z.pageContext.entity, B, e3.join(",")), l2.length > 0 && (R.value = "");
|
|
75
|
-
},
|
|
75
|
+
}, ne = l(null), ue = l(null);
|
|
76
76
|
return o(() => {
|
|
77
77
|
S.$on(J.value + "-pickFileDone", (e3) => {
|
|
78
78
|
J.value, L.value.pickFileDone(e3);
|
|
79
79
|
}), i(() => {
|
|
80
80
|
const e3 = h(A, U), l2 = { showName: h(A, B), serverPath: e3 };
|
|
81
|
-
C(l2, z.pageContext, z.configure, { formItemRef:
|
|
81
|
+
C(l2, z.pageContext, z.configure, { formItemRef: ne.value, componentRef: L.value, titleRef: ue.value, value: l2, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
|
|
82
82
|
});
|
|
83
83
|
}), a(() => {
|
|
84
84
|
S.$off(J.value + "-pickFileDone");
|
|
85
|
-
}),
|
|
86
|
-
R.value =
|
|
85
|
+
}), _2({ addRequiredClass: function() {
|
|
86
|
+
R.value = N();
|
|
87
87
|
} }), (l2, t2) => {
|
|
88
88
|
const o2 = n("el-form-item");
|
|
89
|
-
return
|
|
89
|
+
return O.value.tittleShow ? (p(), u(o2, { key: 0, ref_key: "formItemRef", ref: ne, required: O.value.required, class: f(d(q) + (R.value ? " " + R.value : "")), "label-width": O.value.labelWidth, style: s(d(D)) }, m({ default: v(() => [M.value ? (p(), u(d(P), { key: 0, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: 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": V.value, "file-list": Q.value, "system-code": e2.pageContext.systemCode, componentId: J.value, watermark: d(G), "on-success": oe, "on-remove": ie, "before-upload": Z, "on-error": le, "before-remove": te, 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"])) : r("", true)]), _: 2 }, [O.value.tittleShow ? { name: "label", fn: v(() => [c("div", { ref_key: "titleRef", ref: ue, style: s({ ...d(W), ...d($) }), class: "amb-form-item-label" }, g(d(j)(O.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : M.value ? (p(), u(d(P), { key: 1, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: 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": V.value, "file-list": Q.value, "system-code": e2.pageContext.systemCode, componentId: J.value, watermark: d(G), "on-success": oe, "on-remove": ie, "before-upload": Z, "on-error": le, "before-remove": te, 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"])) : r("", true);
|
|
90
90
|
};
|
|
91
91
|
} });
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
_ as default
|
|
94
94
|
};
|
package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as a, resolveComponent as i, createBlock as n, createCommentVNode as u, openBlock as r, normalizeStyle as p, normalizeClass as s, unref as f, createSlots as d, withCtx as c, createElementVNode as m, toDisplayString as v } from "vue";
|
|
2
|
+
import { getVariableValue as g, setVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { handleAfterInitEvent as y, fileUploadBeforeUpload as C, fileUploadBeforeDelete as x, fileUploadUploaded as w, fileUploadDeleted as b } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import k from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { FsImageUpload as I } from "agilebuilder-ui";
|
|
6
|
+
import j from "../../../../utils/eventBus.js";
|
|
7
|
+
import { $t as S } from "../../../../utils/i18n-util.js";
|
|
8
|
+
import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
|
|
9
|
+
import { getRelativeBaseUrl as T } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
11
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
12
|
+
const N = e2, O = t(null), z = N.configure.runtime ? N.configure.runtime : {}, R = t(z.props ? z.props : {}), D = z.style, F = z.class, q = z.headerStyle, W = z.titleExceedStyle, $ = N.pageContext.entity ? N.pageContext.entity : {}, A = N.configure.props.base ? N.configure.props.base : {}, E = V(A.prop), U = V(A.propName);
|
|
13
|
+
let B = t({});
|
|
14
|
+
B.value.isShowWatermark = void 0 === ((_b = (_a = N.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = N.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", B.value.content = ((_e = (_d = N.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = N.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "";
|
|
15
|
+
const G = N.pageContext.code, H = t(E ? G + "__" + E.join("__") : null), J = g($, E), K = t(null), L = t(false), M = t([]), Q = t({});
|
|
16
|
+
function V(e3) {
|
|
17
|
+
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
18
|
+
}
|
|
19
|
+
function X(e3) {
|
|
20
|
+
N.pageContext.fileuploadInfo || (N.pageContext.fileuploadInfo = []);
|
|
21
|
+
return -1 === N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid) && N.pageContext.fileuploadInfo.push({ uuid: N.configure.uuid, label: S(R.value.title) }), e3.pageContext || (e3.pageContext = N.pageContext), e3.configure || (e3.configureObj = N.configure), C(e3);
|
|
22
|
+
}
|
|
23
|
+
function Y() {
|
|
24
|
+
if (N.pageContext.fileuploadInfo, N.configure.uuid, N.pageContext.fileuploadInfo && N.configure.uuid) {
|
|
25
|
+
const e3 = N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid);
|
|
26
|
+
-1 !== e3 && N.pageContext.fileuploadInfo.splice(e3, 1);
|
|
27
|
+
}
|
|
28
|
+
N.pageContext.fileuploadInfo;
|
|
29
|
+
}
|
|
30
|
+
function Z(e3) {
|
|
31
|
+
Y();
|
|
32
|
+
}
|
|
33
|
+
function ee(e3) {
|
|
34
|
+
return e3.pageContext || (e3.pageContext = N.pageContext), e3.configure || (e3.configureObj = N.configure), x(N.pageContext, N.configure, e3);
|
|
35
|
+
}
|
|
36
|
+
!function(e3) {
|
|
37
|
+
if (e3) {
|
|
38
|
+
const t2 = e3.split(",");
|
|
39
|
+
if (t2.length > 0) {
|
|
40
|
+
const e4 = T(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
|
|
41
|
+
k.post(e4, t2).then((e5) => {
|
|
42
|
+
M.value = [];
|
|
43
|
+
const l2 = [], o2 = {};
|
|
44
|
+
e5.forEach((e6) => {
|
|
45
|
+
o2[e6.uuid] = e6;
|
|
46
|
+
});
|
|
47
|
+
for (let e6 = 0; e6 < t2.length; e6++) {
|
|
48
|
+
const a2 = t2[e6];
|
|
49
|
+
l2.push(o2[a2].fileName), M.value.push({ showName: o2[a2].fileName, serverPath: a2, fileSize: o2[a2].fileSize });
|
|
50
|
+
}
|
|
51
|
+
"input" === R.value.displayType && (Q.value.showName = l2.join(","), Q.value.serverPath = t2.join(","));
|
|
52
|
+
}).finally(() => {
|
|
53
|
+
L.value = true;
|
|
54
|
+
});
|
|
55
|
+
} else L.value = true;
|
|
56
|
+
} else M.value = [], Q.value = {}, L.value = true;
|
|
57
|
+
}(J);
|
|
58
|
+
const te = (e3, t2) => {
|
|
59
|
+
var l2;
|
|
60
|
+
Y(), oe(), l2 = { response: e3, uploadFile: t2 }, w(N.pageContext, N.configure, l2);
|
|
61
|
+
}, le = (e3) => {
|
|
62
|
+
var t2;
|
|
63
|
+
oe(), t2 = { file: e3 }, b(N.pageContext, N.configure, t2);
|
|
64
|
+
}, oe = () => {
|
|
65
|
+
const e3 = [], t2 = [];
|
|
66
|
+
if (R.value.limit && M.value.length > R.value.limit) {
|
|
67
|
+
const e4 = M.value.length - R.value.limit;
|
|
68
|
+
for (let t3 = 0; t3 < e4; t3++) M.value.shift();
|
|
69
|
+
}
|
|
70
|
+
for (let l2 = 0; l2 < M.value.length; l2++) e3.push(M.value[l2].showName), t2.push(M.value[l2].serverPath);
|
|
71
|
+
h(N.pageContext.entity, E, t2.join(",")), h(N.pageContext.entity, U, e3.join(",")), t2.length > 0 && (O.value = "");
|
|
72
|
+
}, ae = t(null), ie = t(null);
|
|
73
|
+
return l(() => {
|
|
74
|
+
j.$on(H.value + "-pickFileDone", (e3) => {
|
|
75
|
+
H.value, K.value.pickFileDone(e3);
|
|
76
|
+
}), o(() => {
|
|
77
|
+
const e3 = g($, E), t2 = { showName: g($, U), serverPath: e3 };
|
|
78
|
+
y(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 });
|
|
79
|
+
});
|
|
80
|
+
}), a(() => {
|
|
81
|
+
j.$off(H.value + "-pickFileDone");
|
|
82
|
+
}), _2({ addRequiredClass: function() {
|
|
83
|
+
O.value = P();
|
|
84
|
+
} }), (t2, l2) => {
|
|
85
|
+
const o2 = i("el-form-item");
|
|
86
|
+
return R.value.tittleShow ? (r(), n(o2, { key: 0, ref_key: "formItemRef", ref: ae, required: R.value.required, class: s(f(F) + (O.value ? " " + O.value : "")), "label-width": R.value.labelWidth, style: p(f(D)) }, d({ default: c(() => [L.value ? (r(), n(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: R.value.accept && Object.keys(R.value.accept).length > 0 ? R.value.accept : "image/*", disabled: "disabled" === R.value.state, displayType: R.value.displayType, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "sort-type": R.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.pageContext, "file-show-type": R.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true)]), _: 2 }, [R.value.tittleShow ? { name: "label", fn: c(() => [m("div", { ref_key: "titleRef", ref: ie, style: p({ ...f(q), ...f(W) }), class: "amb-form-item-label" }, v(f(S)(R.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (r(), n(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: R.value.accept, disabled: "disabled" === R.value.state, displayType: R.value.displayType, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "sort-type": R.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.pageContext, "file-show-type": R.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true);
|
|
87
|
+
};
|
|
88
|
+
} });
|
|
89
|
+
export {
|
|
90
|
+
_ as default
|
|
91
|
+
};
|