super-page-designer 2.2.88 → 2.2.89-sit5
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/design/utils/assemblys-config.js +8 -9
- package/dist/es/components/design/utils/common-util.d.ts +1 -0
- package/dist/es/components/design/utils/common-util.js +14 -9
- package/dist/es/components/design/utils/page-table-util.js +9 -9
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +24 -24
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +16 -16
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +27 -27
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +47 -47
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +5 -108
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +97 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +5 -4
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr.vue2.js +6 -6
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +148 -5
- package/dist/es/components/design/views/design/view/view-design-display.vue2.js +2 -148
- package/dist/es/style.css +1357 -147
- package/package.json +4 -4
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
|
@@ -1,110 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const A = { key: 0 }, L = { class: "amb-component-popover-left-menu-main" }, E = ["onClick"], T = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, j = ["title"], q = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "medium" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: q2 }) {
|
|
6
|
-
const M = q2, R = e2, $ = [{ value: "ElementUI", label: "ElementUI" }, { value: "custom", label: "自定义" }];
|
|
7
|
-
l(false);
|
|
8
|
-
const B = {}, D = l({}), F = l(R.iconType);
|
|
9
|
-
F.value || (F.value = $[0].value);
|
|
10
|
-
const G = l("");
|
|
11
|
-
G.value = R.iconValue, l([]);
|
|
12
|
-
const H = l({}), J = l(""), K = l(), Q = l([]);
|
|
13
|
-
let W;
|
|
14
|
-
function X() {
|
|
15
|
-
"custom" == F.value ? Z() : Y();
|
|
16
|
-
}
|
|
17
|
-
function Y() {
|
|
18
|
-
const e3 = H.value.elementUIOptions.filter((e4) => !J.value || e4.label.toLowerCase().includes(J.value.toLowerCase()) || e4.value.toLowerCase().includes(J.value.toLowerCase()));
|
|
19
|
-
D.value.currentPage || (D.value.currentPage = 1), D.value.pageSize || (D.value.pageSize = 50);
|
|
20
|
-
let l2 = D.value.currentPage;
|
|
21
|
-
const a2 = D.value.pageSize;
|
|
22
|
-
let t2 = (l2 - 1) * a2;
|
|
23
|
-
t2 + 2 > e3.length && (t2 = 0, l2 = 1);
|
|
24
|
-
const o2 = [];
|
|
25
|
-
for (let l3 = t2; l3 < t2 + a2 && l3 < e3.length; l3++) o2.push(e3[l3]);
|
|
26
|
-
D.value.currentPage = l2, D.value.total = e3.length, Q.value = o2;
|
|
27
|
-
}
|
|
28
|
-
function Z() {
|
|
29
|
-
const e3 = { query: J.value, pageSize: D.value && D.value.pageSize ? D.value.pageSize : 50, pageNo: D.value && D.value.pageNo ? D.value.pageNo : 1 };
|
|
30
|
-
J.value, N.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", e3).then((e4) => {
|
|
31
|
-
const l2 = e4.data ? e4.data : [], a2 = [];
|
|
32
|
-
for (let e5 of l2) a2.push({ value: e5.iconName, label: e5.iconName });
|
|
33
|
-
H.value.customOptions = a2, "custom" == F.value && (D.value.pageSize = e4.size, D.value.currentPage = e4.page, D.value.total = e4.total, Q.value = a2);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
a(J, () => {
|
|
37
|
-
W && clearTimeout(W), W = setTimeout(function() {
|
|
38
|
-
"custom" == F.value ? (D.value.pageNo = 1, Z()) : (D.value.pageNo = 1, Y());
|
|
39
|
-
}, 300);
|
|
40
|
-
}), t(() => {
|
|
41
|
-
W && clearTimeout(W);
|
|
42
|
-
});
|
|
43
|
-
const ee = o(() => {
|
|
44
|
-
let e3 = 185;
|
|
45
|
-
return "custom" == F.value && (e3 = 170), e3;
|
|
46
|
-
}), le = o(() => {
|
|
47
|
-
const e3 = {};
|
|
48
|
-
return "custom" == F.value && (e3.width = "200px"), e3;
|
|
49
|
-
});
|
|
50
|
-
function ae(e3) {
|
|
51
|
-
e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), F.value = e3;
|
|
52
|
-
let l2 = B[F.value];
|
|
53
|
-
var a2;
|
|
54
|
-
l2 || (l2 = { currentPage: 1, pageSize: 50, total: 0 }, B[F.value] = l2), D.value = l2, "ElementUI" === (a2 = F.value) ? Y() : "custom" === a2 && Z();
|
|
55
|
-
}
|
|
56
|
-
function te() {
|
|
57
|
-
var _a, _b;
|
|
58
|
-
(_b = (_a = K.value) == null ? void 0 : _a.hide) == null ? void 0 : _b.call(_a);
|
|
59
|
-
}
|
|
60
|
-
function oe() {
|
|
61
|
-
G.value = "", M("update:modelValue", "", ""), K.value.hide();
|
|
62
|
-
}
|
|
63
|
-
function ue() {
|
|
64
|
-
if (J.value = J.value.trim(), !J.value) return void ElMessage.warning("请输入图标名!");
|
|
65
|
-
const e3 = H.value.customOptions || [];
|
|
66
|
-
let l2 = false;
|
|
67
|
-
for (let a3 of e3) if (a3.value === J.value) {
|
|
68
|
-
l2 = true;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
F.value = "custom", G.value = J.value;
|
|
72
|
-
const a2 = J.value;
|
|
73
|
-
if (J.value = "", M("update:modelValue", F.value, G.value), K.value.hide(), !l2) {
|
|
74
|
-
const e4 = { iconName: a2 };
|
|
75
|
-
N.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
|
|
76
|
-
"custom" == F.value && Z();
|
|
77
|
-
}).catch((e5) => {
|
|
78
|
-
ElMessage.warning("保存图标失败!");
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const ne = l();
|
|
83
|
-
function ie() {
|
|
84
|
-
k(() => {
|
|
85
|
-
!function() {
|
|
86
|
-
if (!H.value.elementUIOptions) {
|
|
87
|
-
if (!window.temp_Icon_Options) {
|
|
88
|
-
const e3 = [];
|
|
89
|
-
for (const [l2, a2] of Object.entries(O)) e3.push({ value: l2, label: l2, component: a2 });
|
|
90
|
-
e3.sort(function(e4, l2) {
|
|
91
|
-
const a2 = e4.value, t2 = l2.value;
|
|
92
|
-
return a2.localeCompare(t2);
|
|
93
|
-
}), window.temp_Icon_Options = e3;
|
|
94
|
-
}
|
|
95
|
-
H.value.elementUIOptions = window.temp_Icon_Options;
|
|
96
|
-
}
|
|
97
|
-
}(), ae(F.value);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
return (l2, a2) => {
|
|
101
|
-
const t2 = u("el-icon"), o2 = u("el-input"), k2 = u("el-button"), O2 = u("el-tooltip"), N2 = u("el-col"), q3 = u("el-empty"), R2 = u("el-tag"), B2 = u("el-table-column"), H2 = u("el-table"), W2 = u("el-pagination"), Y2 = u("el-row"), Z2 = u("el-popover");
|
|
102
|
-
return e2.showLabel ? (r(), n("span", A, s(G.value), 1)) : (r(), i(Z2, { key: 1, ref_key: "popoverRef", ref: K, "popper-class": "amb-component-popover-main", trigger: "click", width: 400 }, { reference: c(() => [p(o2, { readonly: "", size: "small", onClick: ie, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => G.value = e3), placeholder: "请选择" }, { suffix: c(() => [y(p(t2, { style: { cursor: "pointer" }, onClick: x(oe, ["stop"]) }, { default: c(() => [p(v(U))]), _: 1 }, 512), [[h, G.value]])]), _: 1 }, 8, ["modelValue"])]), default: c(() => [p(Y2, null, { default: c(() => [p(O2, { effect: "dark", content: "关闭", placement: "top-end" }, { default: c(() => [p(k2, { type: "text", class: "amb-component-popover-close-btn", icon: v(C), onClick: te }, null, 8, ["icon"])]), _: 1 }), p(N2, { span: 8 }, { default: c(() => [m("div", L, [(r(), n(d, null, f($, (e3) => m("div", { class: g(["amb-popover-menu-item", e3.value == F.value ? "is-active" : ""]), onClick: (l3) => ae(e3.value) }, [p(t2, null, { default: c(() => [y(p(v(S), null, null, 512), [[h, e3.value == F.value]])]), _: 2 }, 1024), m("span", null, s(e3.label), 1)], 10, E)), 64))])]), _: 1 }), F.value ? (r(), i(N2, { key: 1, span: 16, style: { "padding-left": "10px" } }, { default: c(() => [p(o2, { size: "small", modelValue: J.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => J.value = e3), placeholder: "搜索", "suffix-icon": v(P), style: w([{ "margin-bottom": "5px", height: "25px" }, le.value]) }, null, 8, ["modelValue", "suffix-icon", "style"]), y(p(k2, { style: { float: "right" }, onClick: ue, size: "small", type: "primary", icon: v(V), circle: "" }, null, 8, ["icon"]), [[h, "custom" == F.value]]), y(m("div", T, [p(t2, null, { default: c(() => [p(v(I))]), _: 1 }), a2[6] || (a2[6] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), a2[7] || (a2[7] = b(" ")), p(O2, null, { content: c(() => a2[4] || (a2[4] = [b(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), b(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: c(() => [p(R2, { type: "primary" }, { default: c(() => a2[5] || (a2[5] = [b("更多")])), _: 1 })]), _: 1 })], 512), [[h, "custom" == F.value]]), p(H2, { ref_key: "tableRef", ref: ne, height: ee.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: Q.value }, { default: c(() => [p(B2, { width: "65" }, { default: c((e3) => [p(k2, { type: "default", size: "small", onClick: (l3) => {
|
|
103
|
-
return a3 = e3.row, G.value = a3.value, M("update:modelValue", F.value, G.value), void K.value.hide();
|
|
104
|
-
var a3;
|
|
105
|
-
} }, { default: c(() => a2[8] || (a2[8] = [b(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), p(B2, { label: "名称", prop: "value", width: "120" }, { default: c((e3) => [m("span", { style: { "text-align": "left" }, title: e3.row.value }, s(e3.row.value), 9, j)]), _: 1 }), p(B2, { label: "图标" }, { default: c((e3) => [e3.row.component ? (r(), i(z(e3.row.component), { key: 0, style: { width: "20px" } })) : _("", true)]), _: 1 })]), _: 1 }, 8, ["height", "data"]), p(W2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": D.value.currentPage, "onUpdate:currentPage": a2[2] || (a2[2] = (e3) => D.value.currentPage = e3), "page-size": D.value.pageSize, "onUpdate:pageSize": a2[3] || (a2[3] = (e3) => D.value.pageSize = e3), size: l2.small, "pager-count": 3, layout: "pager,total", total: D.value.total, onCurrentChange: X }, null, 8, ["current-page", "page-size", "size", "total"])]), _: 1 })) : (r(), i(N2, { key: 0, span: 16 }, { default: c(() => [p(q3, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 })]), _: 1 }, 512));
|
|
106
|
-
};
|
|
107
|
-
} });
|
|
1
|
+
import o from "./common-icon-bind.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const i = e(o, [["__scopeId", "data-v-9141191b"]]);
|
|
108
5
|
export {
|
|
109
|
-
|
|
6
|
+
i as default
|
|
110
7
|
};
|
|
@@ -1,4 +1,99 @@
|
|
|
1
|
-
import o from "
|
|
1
|
+
import { defineComponent as e, ref as l, computed as o, resolveComponent as a, resolveDirective as n, createElementBlock as t, createBlock as u, openBlock as i, toDisplayString as c, withCtx as s, createVNode as p, unref as v, createElementVNode as r, Fragment as m, renderList as d, normalizeClass as f, withDirectives as g, vShow as y, createCommentVNode as b, createTextVNode as w, withModifiers as h, nextTick as _ } from "vue";
|
|
2
|
+
import { Close as k, Check as x, Search as I, Plus as V, InfoFilled as C, CircleClose as A } from "@element-plus/icons-vue";
|
|
3
|
+
import * as O from "@element-plus/icons";
|
|
4
|
+
import $ from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
const U = { key: 0 }, z = { class: "amb-component-popover-left-menu-main" }, P = ["onClick"], j = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, E = { key: 2 }, S = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, T = { class: "amb-component-popover-icon-grid" }, L = ["onClick"], N = { key: 4, style: { "text-align": "right" } }, q = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "medium" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: q2 }) {
|
|
6
|
+
const M = q2, B = e2, R = [{ value: "ElementUI", label: "ElementUI" }, { value: "ambIcon", label: "Amb图标库" }, { value: "custom", label: "自定义" }];
|
|
7
|
+
l(false);
|
|
8
|
+
const D = l(1), F = l(B.iconType);
|
|
9
|
+
F.value || (F.value = R[0].value);
|
|
10
|
+
const G = l("");
|
|
11
|
+
G.value = B.iconValue;
|
|
12
|
+
const H = l({}), J = l(""), K = l(), Q = l(false), W = l([]), X = o(() => {
|
|
13
|
+
let e3 = W.value ?? [];
|
|
14
|
+
return J.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
|
|
15
|
+
var _a;
|
|
16
|
+
return (_a = e5.toLowerCase()) == null ? void 0 : _a.includes(J.value.toLowerCase());
|
|
17
|
+
}))), e3.slice(0, 50 * D.value);
|
|
18
|
+
}), Y = () => {
|
|
19
|
+
D.value++;
|
|
20
|
+
};
|
|
21
|
+
async function Z() {
|
|
22
|
+
Q.value = true;
|
|
23
|
+
try {
|
|
24
|
+
const e3 = (await $.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 })).data ?? [], l2 = [];
|
|
25
|
+
for (let o2 of e3) l2.push({ value: o2.iconName, label: o2.iconName });
|
|
26
|
+
H.value.customOptions = l2, "custom" == F.value && (W.value = l2);
|
|
27
|
+
} catch (e3) {
|
|
28
|
+
}
|
|
29
|
+
Q.value = false;
|
|
30
|
+
}
|
|
31
|
+
function ee(e3) {
|
|
32
|
+
var l2;
|
|
33
|
+
D.value = 1, W.value = [], e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), F.value = e3, "ElementUI" === (l2 = F.value) ? W.value = H.value.elementUIOptions : "custom" === l2 ? Z() : ["ambIcon"].includes(l2) && async function() {
|
|
34
|
+
var _a, _b, _c;
|
|
35
|
+
try {
|
|
36
|
+
Q.value = true;
|
|
37
|
+
let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
|
|
38
|
+
((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}/iconfont.json`);
|
|
39
|
+
const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [], font_family: n2 } = l3;
|
|
40
|
+
W.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
41
|
+
} catch (e4) {
|
|
42
|
+
}
|
|
43
|
+
Q.value = false;
|
|
44
|
+
}();
|
|
45
|
+
}
|
|
46
|
+
function le() {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
(_b = (_a = K.value) == null ? void 0 : _a.hide) == null ? void 0 : _b.call(_a);
|
|
49
|
+
}
|
|
50
|
+
function oe() {
|
|
51
|
+
G.value = "", M("update:modelValue", "", ""), K.value.hide();
|
|
52
|
+
}
|
|
53
|
+
function ae() {
|
|
54
|
+
if (J.value = J.value.trim(), !J.value) return void ElMessage.warning("请输入图标名!");
|
|
55
|
+
const e3 = H.value.customOptions || [];
|
|
56
|
+
let l2 = false;
|
|
57
|
+
for (let o3 of e3) if (o3.value === J.value) {
|
|
58
|
+
l2 = true;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
F.value = "custom", G.value = J.value;
|
|
62
|
+
const o2 = J.value;
|
|
63
|
+
if (J.value = "", M("update:modelValue", F.value, G.value), K.value.hide(), !l2) {
|
|
64
|
+
const e4 = { iconName: o2 };
|
|
65
|
+
$.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
|
|
66
|
+
"custom" == F.value && Z();
|
|
67
|
+
}).catch((e5) => {
|
|
68
|
+
ElMessage.warning("保存图标失败!");
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function ne() {
|
|
73
|
+
_(() => {
|
|
74
|
+
!function() {
|
|
75
|
+
if (!H.value.elementUIOptions) {
|
|
76
|
+
if (!window.temp_Icon_Options) {
|
|
77
|
+
const e3 = [];
|
|
78
|
+
for (const [l2, o2] of Object.entries(O)) e3.push({ value: l2, label: l2, component: o2 });
|
|
79
|
+
e3.sort(function(e4, l2) {
|
|
80
|
+
const o2 = e4.value, a2 = l2.value;
|
|
81
|
+
return o2.localeCompare(a2);
|
|
82
|
+
}), window.temp_Icon_Options = e3;
|
|
83
|
+
}
|
|
84
|
+
H.value.elementUIOptions = window.temp_Icon_Options;
|
|
85
|
+
}
|
|
86
|
+
}(), ee(F.value);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return l(), (l2, o2) => {
|
|
90
|
+
const _2 = a("el-icon"), O2 = a("el-input"), $2 = a("el-button"), q3 = a("el-tooltip"), B2 = a("el-scrollbar"), D2 = a("el-col"), H2 = a("el-empty"), Z2 = a("el-tag"), te = a("SuperIcon"), ue = a("el-row"), ie = a("el-popover"), ce = n("loading"), se = n("infinite-scroll");
|
|
91
|
+
return e2.showLabel ? (i(), t("span", U, c(G.value), 1)) : (i(), u(ie, { key: 1, ref_key: "popoverRef", ref: K, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [p(O2, { readonly: "", size: "small", onClick: ne, modelValue: G.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => G.value = e3), placeholder: "请选择" }, { suffix: s(() => [g(p(_2, { style: { cursor: "pointer" }, onClick: h(oe, ["stop"]) }, { default: s(() => [p(v(A))]), _: 1 }, 512), [[y, G.value]])]), _: 1 }, 8, ["modelValue"])]), default: s(() => [p(ue, null, { default: s(() => [p(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [p($2, { type: "text", class: "amb-component-popover-close-btn", icon: v(k), onClick: le }, null, 8, ["icon"])]), _: 1 }), p(D2, { span: 8 }, { default: s(() => [r("div", z, [p(B2, { "max-height": "100%" }, { default: s(() => [(i(), t(m, null, d(R, (e3) => r("div", { class: f(["amb-popover-menu-item", e3.value == F.value ? "is-active" : ""]), onClick: (l3) => ee(e3.value) }, [p(_2, null, { default: s(() => [g(p(v(x), null, null, 512), [[y, e3.value == F.value]])]), _: 2 }, 1024), r("span", null, c(e3.label), 1)], 10, P)), 64))]), _: 1 })])]), _: 1 }), p(D2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [F.value ? b("", true) : (i(), u(H2, { key: 0, description: "请选择类型", "image-size": 80 })), F.value ? (i(), t("div", j, [p(O2, { modelValue: J.value, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => J.value = e3), placeholder: "搜索", size: "default", "prefix-icon": v(I), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(F.value) && J.value && !X.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [p($2, { type: "primary", circle: "", icon: v(V), onClick: ae }, null, 8, ["icon"])]), _: 1 })) : b("", true)])) : b("", true), ["custom"].includes(F.value) ? (i(), t("div", E, [p(_2, null, { default: s(() => [p(v(C))]), _: 1 }), o2[4] || (o2[4] = r("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), o2[5] || (o2[5] = w(" ")), p(q3, null, { content: s(() => o2[2] || (o2[2] = [w(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), r("br", null, null, -1), w(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: s(() => [p(Z2, { type: "primary" }, { default: s(() => o2[3] || (o2[3] = [w("更多")])), _: 1 })]), _: 1 })])) : b("", true), F.value ? g((i(), t("div", S, [X.value.length || Q.value ? b("", true) : (i(), u(H2, { key: 0, description: "没有相关图标", "image-size": 80 })), r("div", T, [(i(true), t(m, null, d(X.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [r("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
|
|
92
|
+
return o3 = e3, G.value = o3.value, M("update:modelValue", F.value, G.value), void K.value.hide();
|
|
93
|
+
var o3;
|
|
94
|
+
} }, [p(te, { iconType: F.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, L)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ce, Q.value], [se, Y]]) : b("", true), F.value ? (i(), t("div", N, c(X.value.length) + " / " + c(W.value.length), 1)) : b("", true)]), _: 1 })]), _: 1 })]), _: 1 }, 512));
|
|
95
|
+
};
|
|
96
|
+
} });
|
|
2
97
|
export {
|
|
3
|
-
|
|
98
|
+
q as default
|
|
4
99
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as f, createElementBlock as m, Fragment as v, renderList as y, normalizeClass as b, toDisplayString as V } from "vue";
|
|
2
|
-
import O from "../../form/common/dataorigin-input-table.
|
|
2
|
+
import O from "../../form/common/dataorigin-input-table.vue2.js";
|
|
3
3
|
import { Codemirror as _ } from "vue-codemirror";
|
|
4
4
|
import C from "../../workflow/component/combination.vue.js";
|
|
5
5
|
import S from "./return-set-table.vue.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as t, createElementBlock as a, openBlock as n, createVNode as o, createElementVNode as l, unref as u, isRef as r, withDirectives as i, createBlock as s, vShow as g } from "vue";
|
|
2
2
|
import p from "./table-attr-base.vue.js";
|
|
3
3
|
import c from "./table-attr-advanced.vue.js";
|
|
4
4
|
import f from "./table-attr-style.vue.js";
|
|
5
5
|
import m from "../component/attr-header.vue.js";
|
|
6
6
|
import b from "./table-attr-event.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import v from "../../form/common/attr-header.vue.js";
|
|
8
|
+
import d from "./tablecolumn-attr-base.vue.js";
|
|
9
9
|
import D from "./tablecolumn-attr-style.vue.js";
|
|
10
10
|
import j from "./tablecolumn-attr-event.vue.js";
|
|
11
11
|
import y from "../../../../utils/eventBus.js";
|
|
12
|
-
const C = { key: 0, class: "amb-design-attr-content" }, V = { class: "amb-design-attr-list" },
|
|
12
|
+
const C = { key: 0, class: "amb-design-attr-content" }, V = { class: "amb-design-attr-list" }, h = { key: 1, class: "amb-design-attr-content" }, k = { class: "amb-design-attr-list" }, x = e({ __name: "table-attr", props: { pageDesign: { type: Object, default: () => {
|
|
13
13
|
} }, configure: { type: Object, default: () => ({ title: "Text", props: { type: "input-text" } }) } }, setup(e2) {
|
|
14
|
-
var _a, _b, _c, _d, _e, _f
|
|
15
|
-
const
|
|
16
|
-
((_c = (_b = (_a =
|
|
17
|
-
let
|
|
18
|
-
const O =
|
|
14
|
+
var _a, _b, _c, _d, _e, _f;
|
|
15
|
+
const x2 = e2;
|
|
16
|
+
void 0 === ((_c = (_b = (_a = x2.configure) == null ? void 0 : _a.props) == null ? void 0 : _b.base) == null ? void 0 : _c.columnEditable) && (x2.configure.props.base.columnEditable = false), void 0 === ((_f = (_e = (_d = x2.configure) == null ? void 0 : _d.props) == null ? void 0 : _e.base) == null ? void 0 : _f.isMobileCard) && (x2.configure.props.base.isMobileCard = true);
|
|
17
|
+
let E = t("base");
|
|
18
|
+
const O = t({}), M = t({});
|
|
19
19
|
return y.$on("selectColumn", (e3) => {
|
|
20
20
|
O.value = e3.columnData, M.value = e3.tableConfigure;
|
|
21
|
-
}), (
|
|
21
|
+
}), (t2, y2) => Object.keys(O.value).length > 0 ? (n(), a("div", C, [o(v, { modelValue: u(E), "onUpdate:modelValue": y2[0] || (y2[0] = (e3) => r(E) ? E.value = e3 : E = e3), showEvent: "" }, null, 8, ["modelValue"]), l("div", V, [i((n(), s(d, { key: O.value.uuid, pageDesign: e2.pageDesign, configure: O.value, tableConfigure: M.value }, null, 8, ["pageDesign", "configure", "tableConfigure"])), [[g, "base" === u(E)]]), i(o(D, { configure: O.value, pageDesign: e2.pageDesign, tableConfigure: e2.configure }, null, 8, ["configure", "pageDesign", "tableConfigure"]), [[g, "style" === u(E)]]), i(o(j, { configure: O.value }, null, 8, ["configure"]), [[g, "event" === u(E)]])])])) : (n(), a("div", h, [o(m, { modelValue: u(E), "onUpdate:modelValue": y2[1] || (y2[1] = (e3) => r(E) ? E.value = e3 : E = e3) }, null, 8, ["modelValue"]), l("div", k, [i(o(p, { pageDesign: e2.pageDesign, configure: e2.configure }, null, 8, ["pageDesign", "configure"]), [[g, "base" === u(E)]]), i(o(c, { pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: M.value }, null, 8, ["pageDesign", "configure", "tableConfigure"]), [[g, "advanced" === u(E)]]), i(o(f, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"]), [[g, "style" === u(E)]]), i(o(b, { configure: e2.configure }, null, 8, ["configure"]), [[g, "event" === u(E)]])])]));
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
x as default
|
|
25
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o, createBlock as t, openBlock as n, withCtx as i, createVNode as u, createCommentVNode as r, createElementVNode as s, createTextVNode as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o, createBlock as t, openBlock as n, withCtx as i, createVNode as u, createCommentVNode as r, createElementVNode as s, createTextVNode as m, unref as p, withDirectives as d, createElementBlock as f, Fragment as c, renderList as g, vShow as b } from "vue";
|
|
2
2
|
import { Setting as y, Search as V } from "@element-plus/icons-vue";
|
|
3
3
|
import { getListComponentOptions as v } from "../../../../utils/assemblys-config.js";
|
|
4
4
|
import C from "../component/querySetting.vue.js";
|
|
@@ -11,6 +11,7 @@ import T from "../component/variate-select.vue.js";
|
|
|
11
11
|
import "@element-plus/icons";
|
|
12
12
|
import "agilebuilder-ui/src/utils/request";
|
|
13
13
|
import { queryTableFields as S, tableResetConfigIndo as H } from "../../../../utils/page-table-util.js";
|
|
14
|
+
/* empty css */
|
|
14
15
|
import N from "../../common/common-i18n-key-input.vue.js";
|
|
15
16
|
import j from "../../form/common/hyperlink-mult-config.vue.js";
|
|
16
17
|
import q from "../../common/common-function-code.vue.js";
|
|
@@ -87,10 +88,10 @@ const E = { style: { padding: "8px 0px 0px 0px" } }, P = { class: "amb-design-at
|
|
|
87
88
|
function se(e3) {
|
|
88
89
|
R2.configure.props.base.defaultValue = e3;
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function me() {
|
|
91
92
|
k.$emit("reloadTable-" + R2.tableConfigure.uuid);
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function pe(e3) {
|
|
94
95
|
fe(R2.tableConfigure.props.groupHeaders);
|
|
95
96
|
}
|
|
96
97
|
function de(e3) {
|
|
@@ -112,7 +113,7 @@ const E = { style: { padding: "8px 0px 0px 0px" } }, P = { class: "amb-design-at
|
|
|
112
113
|
}
|
|
113
114
|
return (a2, l2) => {
|
|
114
115
|
const D2 = o("el-input"), x2 = o("el-form-item"), U2 = o("el-radio"), k2 = o("el-radio-group"), S2 = o("el-switch"), H2 = o("el-option"), F2 = o("el-select"), R3 = o("el-icon"), I2 = o("el-collapse-item"), W2 = o("el-input-number"), Q2 = o("el-button"), J2 = o("el-checkbox"), K2 = o("el-checkbox-group"), Y2 = o("el-col"), ee2 = o("el-collapse"), le2 = o("el-form");
|
|
115
|
-
return n(), t(le2, { "label-width": "80px", size: "small" }, { default: i(() => [u(ee2, { modelValue: B.value, "onUpdate:modelValue": l2[48] || (l2[48] = (e3) => B.value = e3), style: { "margin-top": "6px" } }, { default: i(() => [u(I2, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", E, [u(x2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.uuid, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.uuid = a3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), Z.value ? r("", true) : (n(), t(x2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: i(() => [u(T, { showDynamicColumn: true, showPlaceholder: true, prop: e2.configure.props.base.prop, "onUpdate:prop": l2[1] || (l2[1] = (a3) => e2.configure.props.base.prop = a3), propType: e2.configure.props.base.propType, "onUpdate:propType": l2[2] || (l2[2] = (a3) => e2.configure.props.base.propType = a3), tableConfigure: e2.tableConfigure, onChange: de }, null, 8, ["prop", "propType", "tableConfigure"])]), _: 1 })), u(x2, { label: "标题", class: "amb-design-attr-item" }, { default: i(() => [u(N, { modelValue: e2.configure.props.base.name, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.base.name = a3), onChange: me, disabled: "$index" === e2.configure.props.base.prop || "$selection" === e2.configure.props.base.prop }, null, 8, ["modelValue", "disabled"])]), _: 1 }), u(x2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: i(() => [u(q, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), u(x2, { label: "显示顺序", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.base.displayOrder, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.displayOrder = a3), modelModifiers: { number: true }, onBlur: pe, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), Z.value ? r("", true) : (n(), t(x2, { key: 1, label: "是否显示 ", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.visible, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.visible = a3), class: "ml-4", onChange: re }, { default: i(() => [u(U2, { value: true }, { default: i(() => l2[49] || (l2[49] = [p("是")])), _: 1 }), u(U2, { value: false }, { default: i(() => l2[50] || (l2[50] = [p("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), Z.value ? r("", true) : (n(), t(x2, { key: 2, label: "是否导出", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.base.exportable, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.base.exportable = a3) }, null, 8, ["modelValue"])]), _: 1 })), Z.value ? r("", true) : (n(), t(x2, { key: 3, label: "查询设置", class: "amb-design-attr-item" }, { default: i(() => [s("div", P, [u(F2, { modelValue: e2.configure.props.base.querySettingName, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.base.querySettingName = a3) }, { default: i(() => [u(H2, { label: "不查询", value: "no" }), u(H2, { label: "普通查询", value: "normal" }), u(H2, { label: "高级查询", value: "advanced" })]), _: 1 }, 8, ["modelValue"]), "normal" === e2.configure.props.base.querySettingName || "advanced" === e2.configure.props.base.querySettingName ? (n(), t(R3, { key: 0, style: { "margin-left": "10px" }, onClick: l2[8] || (l2[8] = (e3) => oe.value = true) }, { default: i(() => [u(m(y))]), _: 1 })) : r("", true)])]), _: 1 })), Z.value || "normal" !== e2.configure.props.base.querySettingName && "advanced" !== e2.configure.props.base.querySettingName || "STRING" !== e2.configure.props.base.propType ? r("", true) : (n(), t(x2, { key: 4, label: "匹配方式", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.base.queryMatching, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.base.queryMatching = a3), clearable: "" }, { default: i(() => [u(H2, { label: "全匹配", value: "all" }), u(H2, { label: "左匹配", value: "left" }), u(H2, { label: "右匹配", value: "right" }), u(H2, { label: "精确查询", value: "exactQuery" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), Z.value ? r("", true) : (n(), t(x2, { key: 5, label: "是否合计", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.base.total, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.base.total = a3) }, null, 8, ["modelValue"])]), _: 1 })), Z.value ? r("", true) : (n(), t(x2, { key: 6, label: "是否筛选", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.base.filterable, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.base.filterable = a3) }, null, 8, ["modelValue"])]), _: 1 }))])]), _: 1 }), Z.value || "dynamicColumnSelect" == e2.configure.props.base.prop ? r("", true) : (n(), t(_, { key: 0, configure: e2.configure, isTable: true, isDynamicColumn: "dynamicColumnSelect" === e2.configure.props.base.prop, remote: true }, null, 8, ["configure", "isDynamicColumn"])), u(M, { operationColumn: Z.value, configure: e2.configure, tableConfigure: e2.tableConfigure, pageDesign: e2.pageDesign }, null, 8, ["operationColumn", "configure", "tableConfigure", "pageDesign"]), Z.value ? r("", true) : (n(), t(I2, { key: 1, title: "行编辑设置", name: "editLine", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", A, [u(x2, { label: "是否编辑", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { onChange: ie, modelValue: e2.configure.props.editLine.editable, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.editLine.editable = a3) }, null, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "默认值", class: "amb-design-attr-item" }, { default: i(() => [u(h, { modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": se }, null, 8, ["modelValue"])]), _: 1 }), e2.configure.props.editLine.editable ? (n(), t(x2, { key: 0, label: "组件类型", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.name = a3), placeholder: "请选择", onChange: ue }, { default: i(() => [(n(true), f(c, null, g(m(v)(), (e3) => (n(), t(H2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), d(u(x2, { label: "文件uuid", class: "amb-design-attr-item" }, { default: i(() => [u(T, { prop: e2.configure.props.format.fileUuid, "onUpdate:prop": l2[14] || (l2[14] = (a3) => e2.configure.props.format.fileUuid = a3), tableConfigure: e2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 }, 512), [[b, e2.configure.props.editLine.editable && "file-upload" === e2.configure.name]]), d(u(x2, { label: "自定义控件名称", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.base.customComponent, "onUpdate:modelValue": l2[15] || (l2[15] = (a3) => e2.configure.props.base.customComponent = a3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.editLine.editable && "custom" === e2.configure.name]])])]), _: 1 })), Z.value ? r("", true) : (n(), t(I2, { key: 2, title: "格式设置", name: "formatting", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", O, [u(x2, { label: "格式化分类", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.format.type, "onUpdate:modelValue": l2[16] || (l2[16] = (a3) => e2.configure.props.format.type = a3), clearable: "", placeholder: "请选择" }, { default: i(() => [u(H2, { label: "数值", value: "number" }), u(H2, { label: "货币", value: "currency" }), u(H2, { label: "日期", value: "date" }), u(H2, { label: "时间", value: "time" }), u(H2, { label: "百分比", value: "percent" }), u(H2, { label: "自定义控件", value: "customControl" }), u(H2, { label: "超链接", value: "hyperlinks" }), u(H2, { label: "图标/标签", value: "icon" }), u(H2, { label: "附件控件", value: "files" }), u(H2, { label: "富文本", value: "richEditor" }), u(H2, { label: "脱敏组件", value: "secretInfo" }), u(H2, { label: "自定义方法", value: "custom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "number" === e2.configure.props.format.type || "currency" === e2.configure.props.format.type || "percent" === e2.configure.props.format.type ? (n(), t(x2, { key: 0, label: "小数位数", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.decimalDigit, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.format.decimalDigit = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "number" === e2.configure.props.format.type ? (n(), t(x2, { key: 1, label: "科学计数", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.format.scientific, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.format.scientific = a3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "number" === e2.configure.props.format.type && e2.configure.props.format.scientific ? (n(), t(x2, { key: 2, label: "计数位数", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.scientificNum, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.format.scientificNum = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "number" === e2.configure.props.format.type ? (n(), t(x2, { key: 3, label: "千位分隔符", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.format.thousandsSeparator, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.format.thousandsSeparator = a3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "number" === e2.configure.props.format.type ? (n(), t(x2, { key: 4, label: "数值符号", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.symbol, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.format.symbol = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "currency" === e2.configure.props.format.type ? (n(), t(x2, { key: 5, label: "货币符号", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.format.currencySymbol, "onUpdate:modelValue": l2[22] || (l2[22] = (a3) => e2.configure.props.format.currencySymbol = a3), placeholder: "Select" }, { default: i(() => [u(H2, { label: "$", value: "$" }), u(H2, { label: "¥", value: "¥" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), "date" === e2.configure.props.format.type ? (n(), t(x2, { key: 6, label: "日期类型", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.format.dataType, "onUpdate:modelValue": l2[23] || (l2[23] = (a3) => e2.configure.props.format.dataType = a3), placeholder: "Select" }, { default: i(() => [u(H2, { label: "yyyy-m-d", value: "yyyy-m-d" }), u(H2, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }), u(H2, { label: "yyyy-m", value: "yyyy-m" }), u(H2, { label: "m-d", value: "m-d" }), u(H2, { label: "yyyy", value: "yyyy" }), u(H2, { label: "yyyy年m月d日", value: "yyyy年m月d日" }), u(H2, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }), u(H2, { label: "yyyy年m月", value: "yyyy年m月" }), u(H2, { label: "m月d日", value: "m月d日" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), "time" === e2.configure.props.format.type ? (n(), t(x2, { key: 7, label: "时间类型", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.format.timeType, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.format.timeType = a3), placeholder: "Select" }, { default: i(() => [u(H2, { label: "HH:mm", value: "HH:mm" }), u(H2, { label: "HH:mm:ss", value: "HH:mm:ss" }), u(H2, { label: "HH时mm分", value: "HH时mm分" }), u(H2, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }), u(H2, { label: "hh:mm", value: "hh:mm" }), u(H2, { label: "hh:mm:ss", value: "hh:mm:ss" }), u(H2, { label: "hh时mm分", value: "hh时mm分" }), u(H2, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), "customControl" === e2.configure.props.format.type ? (n(), t(x2, { key: 8, label: "自定义控件", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": l2[25] || (l2[25] = (a3) => e2.configure.props.format.customControl = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "hyperlinks" === e2.configure.props.format.type ? (n(), t(j, { key: 9, pageDesign: e2.pageDesign, linkPage: e2.configure.props.linkPage, "onUpdate:linkPage": l2[26] || (l2[26] = (a3) => e2.configure.props.linkPage = a3), tableConfigure: e2.tableConfigure, isDialog: false }, null, 8, ["pageDesign", "linkPage", "tableConfigure"])) : r("", true), "icon" === e2.configure.props.format.type ? (n(), t(L, { key: 10, setting: e2.configure.props.format }, null, 8, ["setting"])) : r("", true), "custom" === e2.configure.props.format.type ? (n(), t(x2, { key: 11, label: "自定义方法", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": l2[27] || (l2[27] = (a3) => e2.configure.props.format.customControl = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 12, label: "是否多选", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.format.multiple, "onUpdate:modelValue": l2[28] || (l2[28] = (a3) => e2.configure.props.format.multiple = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 13, label: "文件类型", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.accept, "onUpdate:modelValue": l2[29] || (l2[29] = (a3) => e2.configure.props.format.accept = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 14, label: "文件限制(M)", class: "amb-design-attr-item" }, { default: i(() => [u(W2, { modelValue: e2.configure.props.format.limitFileSize, "onUpdate:modelValue": l2[30] || (l2[30] = (a3) => e2.configure.props.format.limitFileSize = a3), min: 1 }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type && e2.configure.props.format.multiple ? (n(), t(x2, { key: 15, label: "选择数据表" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.childAnnexDataTableCode, "onUpdate:modelValue": l2[31] || (l2[31] = (a3) => e2.configure.props.format.childAnnexDataTableCode = a3), onClick: a2.openSelectDataTable, clearable: "" }, { append: i(() => [u(Q2, { type: "default", icon: m(V), onClick: a2.openSelectDataTable }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "onClick"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 16, label: "展示名字段", class: "amb-design-attr-item" }, { default: i(() => [u(T, { prop: e2.configure.props.format.showName, "onUpdate:prop": l2[32] || (l2[32] = (a3) => e2.configure.props.format.showName = a3), tableConfigure: e2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 17, label: "服务器字段", class: "amb-design-attr-item" }, { default: i(() => [u(T, { prop: e2.configure.props.format.serverName, "onUpdate:prop": l2[33] || (l2[33] = (a3) => e2.configure.props.format.serverName = a3), tableConfigure: e2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : r("", true)])]), _: 1 })), u(I2, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", $, [u(x2, { label: "固定列", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.listColumnFixed, "onUpdate:modelValue": l2[34] || (l2[34] = (a3) => e2.configure.props.base.listColumnFixed = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[51] || (l2[51] = [p("否")])), _: 1 }), u(U2, { value: "left" }, { default: i(() => l2[52] || (l2[52] = [p("居左")])), _: 1 }), u(U2, { value: "right" }, { default: i(() => l2[53] || (l2[53] = [p("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), Z.value ? r("", true) : (n(), t(x2, { key: 0, label: "是否排序", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.sortable, "onUpdate:modelValue": l2[35] || (l2[35] = (a3) => e2.configure.props.base.sortable = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: true }, { default: i(() => l2[54] || (l2[54] = [p("是")])), _: 1 }), u(U2, { value: false }, { default: i(() => l2[55] || (l2[55] = [p("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), u(x2, { label: "列宽", class: "amb-design-attr-item" }, { default: i(() => [u(W2, { style: { width: "100%" }, modelValue: e2.configure.props.base.columnWidth, "onUpdate:modelValue": l2[36] || (l2[36] = (a3) => e2.configure.props.base.columnWidth = a3), precision: 1 }, null, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "标题对齐", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.alignTitle, "onUpdate:modelValue": l2[37] || (l2[37] = (a3) => e2.configure.props.base.alignTitle = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: "left" }, { default: i(() => l2[56] || (l2[56] = [p("居左")])), _: 1 }), u(U2, { value: "center" }, { default: i(() => l2[57] || (l2[57] = [p("居中")])), _: 1 }), u(U2, { value: "right" }, { default: i(() => l2[58] || (l2[58] = [p("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "内容对齐", class: "amb-design-attr-item-linefeed-two" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.alignContent, "onUpdate:modelValue": l2[38] || (l2[38] = (a3) => e2.configure.props.base.alignContent = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: "left" }, { default: i(() => l2[59] || (l2[59] = [p("居左")])), _: 1 }), u(U2, { value: "center" }, { default: i(() => l2[60] || (l2[60] = [p("居中")])), _: 1 }), u(U2, { value: "right" }, { default: i(() => l2[61] || (l2[61] = [p("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), !Z.value && e2.configure.props.editLine.editable ? (n(), t(I2, { key: 3, title: "校验", name: "verification", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", G, [u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(J2, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": l2[39] || (l2[39] = (a3) => e2.configure.props.verification.required = a3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), u(K2, { modelValue: e2.configure.props.verification.type, "onUpdate:modelValue": l2[40] || (l2[40] = (a3) => e2.configure.props.verification.type = a3) }, { default: i(() => [u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(J2, { label: "整形", value: "int" }), u(J2, { label: "数字", value: "number" }), u(J2, { label: "布尔", value: "boolean" })]), _: 1 }), u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(J2, { label: "字符串", value: "text" }), u(J2, { label: "邮件", value: "mail" }), u(J2, { label: "网址", value: "ip" })]), _: 1 }), u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(J2, { label: "单精度", value: "float" }), u(J2, { label: "十六进制", value: "hex" })]), _: 1 })]), _: 1 }, 8, ["modelValue"]), u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(Y2, { span: 8 }, { default: i(() => [u(J2, { modelValue: e2.configure.props.verification.verifyRegex, "onUpdate:modelValue": l2[41] || (l2[41] = (a3) => e2.configure.props.verification.verifyRegex = a3), label: "正则", value: "regex" }, null, 8, ["modelValue"])]), _: 1 }), u(Y2, { span: 14 }, { default: i(() => [u(D2, { modelValue: e2.configure.props.verification.regex, "onUpdate:modelValue": l2[42] || (l2[42] = (a3) => e2.configure.props.verification.regex = a3), class: "mx-4", "controls-position": "right", placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(Y2, { span: 8 }, { default: i(() => [u(J2, { label: "自定义", value: "custom" })]), _: 1 }), u(Y2, { span: 14 }, { default: i(() => [u(Q2, { type: "default" }, { default: i(() => l2[62] || (l2[62] = [p("自定义逻辑")])), _: 1 }), u(Q2, { type: "default", icon: m(V), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })) : r("", true), Z.value ? r("", true) : (n(), t(I2, { key: 4, title: "用户自定义", name: "userDefined", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", z, [u(x2, { label: "可自定义", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.defined, "onUpdate:modelValue": l2[43] || (l2[43] = (a3) => e2.configure.props.definition.defined = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[63] || (l2[63] = [p("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[64] || (l2[64] = [p("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "自定义导出", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.definedExport, "onUpdate:modelValue": l2[44] || (l2[44] = (a3) => e2.configure.props.definition.definedExport = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[65] || (l2[65] = [p("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[66] || (l2[66] = [p("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "自定义合并", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.definedMerge, "onUpdate:modelValue": l2[45] || (l2[45] = (a3) => e2.configure.props.definition.definedMerge = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[67] || (l2[67] = [p("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[68] || (l2[68] = [p("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "自定义位置", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.definedPosition, "onUpdate:modelValue": l2[46] || (l2[46] = (a3) => e2.configure.props.definition.definedPosition = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[69] || (l2[69] = [p("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[70] || (l2[70] = [p("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "自定义冻结", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.definedFixed, "onUpdate:modelValue": l2[47] || (l2[47] = (a3) => e2.configure.props.definition.definedFixed = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[71] || (l2[71] = [p("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[72] || (l2[72] = [p("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 })), oe.value ? (n(), t(C, { key: 5, querySetting: e2.configure.props.querySetting, onAdd: ne, onClose: te }, null, 8, ["querySetting"])) : r("", true), u(w, { ref_key: "selectTableDialog", ref: X, onSelectTable: ae, systemCode: e2.configure.systemCode, systemVersion: e2.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
116
|
+
return n(), t(le2, { "label-width": "80px", size: "small" }, { default: i(() => [u(ee2, { modelValue: B.value, "onUpdate:modelValue": l2[48] || (l2[48] = (e3) => B.value = e3), style: { "margin-top": "6px" } }, { default: i(() => [u(I2, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", E, [u(x2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.uuid, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.uuid = a3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), Z.value ? r("", true) : (n(), t(x2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: i(() => [u(T, { showDynamicColumn: true, showPlaceholder: true, prop: e2.configure.props.base.prop, "onUpdate:prop": l2[1] || (l2[1] = (a3) => e2.configure.props.base.prop = a3), propType: e2.configure.props.base.propType, "onUpdate:propType": l2[2] || (l2[2] = (a3) => e2.configure.props.base.propType = a3), tableConfigure: e2.tableConfigure, onChange: de }, null, 8, ["prop", "propType", "tableConfigure"])]), _: 1 })), u(x2, { label: "标题", class: "amb-design-attr-item" }, { default: i(() => [u(N, { modelValue: e2.configure.props.base.name, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.base.name = a3), onChange: pe, disabled: "$index" === e2.configure.props.base.prop || "$selection" === e2.configure.props.base.prop }, null, 8, ["modelValue", "disabled"])]), _: 1 }), u(x2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: i(() => [u(q, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), u(x2, { label: "显示顺序", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.base.displayOrder, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.displayOrder = a3), modelModifiers: { number: true }, onBlur: me, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), Z.value ? r("", true) : (n(), t(x2, { key: 1, label: "是否显示 ", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.visible, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.visible = a3), class: "ml-4", onChange: re }, { default: i(() => [u(U2, { value: true }, { default: i(() => l2[49] || (l2[49] = [m("是")])), _: 1 }), u(U2, { value: false }, { default: i(() => l2[50] || (l2[50] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), Z.value ? r("", true) : (n(), t(x2, { key: 2, label: "是否导出", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.base.exportable, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.base.exportable = a3) }, null, 8, ["modelValue"])]), _: 1 })), Z.value ? r("", true) : (n(), t(x2, { key: 3, label: "查询设置", class: "amb-design-attr-item" }, { default: i(() => [s("div", P, [u(F2, { modelValue: e2.configure.props.base.querySettingName, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.base.querySettingName = a3) }, { default: i(() => [u(H2, { label: "不查询", value: "no" }), u(H2, { label: "普通查询", value: "normal" }), u(H2, { label: "高级查询", value: "advanced" })]), _: 1 }, 8, ["modelValue"]), "normal" === e2.configure.props.base.querySettingName || "advanced" === e2.configure.props.base.querySettingName ? (n(), t(R3, { key: 0, style: { "margin-left": "10px" }, onClick: l2[8] || (l2[8] = (e3) => oe.value = true) }, { default: i(() => [u(p(y))]), _: 1 })) : r("", true)])]), _: 1 })), Z.value || "normal" !== e2.configure.props.base.querySettingName && "advanced" !== e2.configure.props.base.querySettingName || "STRING" !== e2.configure.props.base.propType ? r("", true) : (n(), t(x2, { key: 4, label: "匹配方式", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.base.queryMatching, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.base.queryMatching = a3), clearable: "" }, { default: i(() => [u(H2, { label: "全匹配", value: "all" }), u(H2, { label: "左匹配", value: "left" }), u(H2, { label: "右匹配", value: "right" }), u(H2, { label: "精确查询", value: "exactQuery" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), Z.value ? r("", true) : (n(), t(x2, { key: 5, label: "是否合计", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.base.total, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.base.total = a3) }, null, 8, ["modelValue"])]), _: 1 })), Z.value ? r("", true) : (n(), t(x2, { key: 6, label: "是否筛选", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.base.filterable, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.base.filterable = a3) }, null, 8, ["modelValue"])]), _: 1 }))])]), _: 1 }), Z.value || "dynamicColumnSelect" == e2.configure.props.base.prop ? r("", true) : (n(), t(_, { key: 0, configure: e2.configure, isTable: true, isDynamicColumn: "dynamicColumnSelect" === e2.configure.props.base.prop, remote: true }, null, 8, ["configure", "isDynamicColumn"])), u(M, { operationColumn: Z.value, configure: e2.configure, tableConfigure: e2.tableConfigure, pageDesign: e2.pageDesign }, null, 8, ["operationColumn", "configure", "tableConfigure", "pageDesign"]), Z.value ? r("", true) : (n(), t(I2, { key: 1, title: "行编辑设置", name: "editLine", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", A, [u(x2, { label: "是否编辑", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { onChange: ie, modelValue: e2.configure.props.editLine.editable, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.editLine.editable = a3) }, null, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "默认值", class: "amb-design-attr-item" }, { default: i(() => [u(h, { modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": se }, null, 8, ["modelValue"])]), _: 1 }), e2.configure.props.editLine.editable ? (n(), t(x2, { key: 0, label: "组件类型", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.name = a3), placeholder: "请选择", onChange: ue }, { default: i(() => [(n(true), f(c, null, g(p(v)(), (e3) => (n(), t(H2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), d(u(x2, { label: "文件uuid", class: "amb-design-attr-item" }, { default: i(() => [u(T, { prop: e2.configure.props.format.fileUuid, "onUpdate:prop": l2[14] || (l2[14] = (a3) => e2.configure.props.format.fileUuid = a3), tableConfigure: e2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 }, 512), [[b, e2.configure.props.editLine.editable && "file-upload" === e2.configure.name]]), d(u(x2, { label: "自定义控件名称", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.base.customComponent, "onUpdate:modelValue": l2[15] || (l2[15] = (a3) => e2.configure.props.base.customComponent = a3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.editLine.editable && "custom" === e2.configure.name]])])]), _: 1 })), Z.value ? r("", true) : (n(), t(I2, { key: 2, title: "格式设置", name: "formatting", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", O, [u(x2, { label: "格式化分类", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.format.type, "onUpdate:modelValue": l2[16] || (l2[16] = (a3) => e2.configure.props.format.type = a3), clearable: "", placeholder: "请选择" }, { default: i(() => [u(H2, { label: "数值", value: "number" }), u(H2, { label: "货币", value: "currency" }), u(H2, { label: "日期", value: "date" }), u(H2, { label: "时间", value: "time" }), u(H2, { label: "百分比", value: "percent" }), u(H2, { label: "自定义控件", value: "customControl" }), u(H2, { label: "超链接", value: "hyperlinks" }), u(H2, { label: "图标/标签", value: "icon" }), u(H2, { label: "附件控件", value: "files" }), u(H2, { label: "富文本", value: "richEditor" }), u(H2, { label: "脱敏组件", value: "secretInfo" }), u(H2, { label: "自定义方法", value: "custom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "number" === e2.configure.props.format.type || "currency" === e2.configure.props.format.type || "percent" === e2.configure.props.format.type ? (n(), t(x2, { key: 0, label: "小数位数", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.decimalDigit, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.format.decimalDigit = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "number" === e2.configure.props.format.type ? (n(), t(x2, { key: 1, label: "科学计数", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.format.scientific, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.format.scientific = a3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "number" === e2.configure.props.format.type && e2.configure.props.format.scientific ? (n(), t(x2, { key: 2, label: "计数位数", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.scientificNum, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.format.scientificNum = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "number" === e2.configure.props.format.type ? (n(), t(x2, { key: 3, label: "千位分隔符", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.format.thousandsSeparator, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.format.thousandsSeparator = a3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "number" === e2.configure.props.format.type ? (n(), t(x2, { key: 4, label: "数值符号", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.symbol, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.format.symbol = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "currency" === e2.configure.props.format.type ? (n(), t(x2, { key: 5, label: "货币符号", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.format.currencySymbol, "onUpdate:modelValue": l2[22] || (l2[22] = (a3) => e2.configure.props.format.currencySymbol = a3), placeholder: "Select" }, { default: i(() => [u(H2, { label: "$", value: "$" }), u(H2, { label: "¥", value: "¥" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), "date" === e2.configure.props.format.type ? (n(), t(x2, { key: 6, label: "日期类型", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.format.dataType, "onUpdate:modelValue": l2[23] || (l2[23] = (a3) => e2.configure.props.format.dataType = a3), placeholder: "Select" }, { default: i(() => [u(H2, { label: "yyyy-m-d", value: "yyyy-m-d" }), u(H2, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }), u(H2, { label: "yyyy-m", value: "yyyy-m" }), u(H2, { label: "m-d", value: "m-d" }), u(H2, { label: "yyyy", value: "yyyy" }), u(H2, { label: "yyyy年m月d日", value: "yyyy年m月d日" }), u(H2, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }), u(H2, { label: "yyyy年m月", value: "yyyy年m月" }), u(H2, { label: "m月d日", value: "m月d日" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), "time" === e2.configure.props.format.type ? (n(), t(x2, { key: 7, label: "时间类型", class: "amb-design-attr-item" }, { default: i(() => [u(F2, { modelValue: e2.configure.props.format.timeType, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.format.timeType = a3), placeholder: "Select" }, { default: i(() => [u(H2, { label: "HH:mm", value: "HH:mm" }), u(H2, { label: "HH:mm:ss", value: "HH:mm:ss" }), u(H2, { label: "HH时mm分", value: "HH时mm分" }), u(H2, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }), u(H2, { label: "hh:mm", value: "hh:mm" }), u(H2, { label: "hh:mm:ss", value: "hh:mm:ss" }), u(H2, { label: "hh时mm分", value: "hh时mm分" }), u(H2, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), "customControl" === e2.configure.props.format.type ? (n(), t(x2, { key: 8, label: "自定义控件", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": l2[25] || (l2[25] = (a3) => e2.configure.props.format.customControl = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "hyperlinks" === e2.configure.props.format.type ? (n(), t(j, { key: 9, pageDesign: e2.pageDesign, linkPage: e2.configure.props.linkPage, "onUpdate:linkPage": l2[26] || (l2[26] = (a3) => e2.configure.props.linkPage = a3), tableConfigure: e2.tableConfigure, isDialog: false }, null, 8, ["pageDesign", "linkPage", "tableConfigure"])) : r("", true), "icon" === e2.configure.props.format.type ? (n(), t(L, { key: 10, setting: e2.configure.props.format }, null, 8, ["setting"])) : r("", true), "custom" === e2.configure.props.format.type ? (n(), t(x2, { key: 11, label: "自定义方法", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": l2[27] || (l2[27] = (a3) => e2.configure.props.format.customControl = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 12, label: "是否多选", class: "amb-design-attr-item" }, { default: i(() => [u(S2, { modelValue: e2.configure.props.format.multiple, "onUpdate:modelValue": l2[28] || (l2[28] = (a3) => e2.configure.props.format.multiple = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 13, label: "文件类型", class: "amb-design-attr-item" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.accept, "onUpdate:modelValue": l2[29] || (l2[29] = (a3) => e2.configure.props.format.accept = a3) }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 14, label: "文件限制(M)", class: "amb-design-attr-item" }, { default: i(() => [u(W2, { modelValue: e2.configure.props.format.limitFileSize, "onUpdate:modelValue": l2[30] || (l2[30] = (a3) => e2.configure.props.format.limitFileSize = a3), min: 1 }, null, 8, ["modelValue"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type && e2.configure.props.format.multiple ? (n(), t(x2, { key: 15, label: "选择数据表" }, { default: i(() => [u(D2, { modelValue: e2.configure.props.format.childAnnexDataTableCode, "onUpdate:modelValue": l2[31] || (l2[31] = (a3) => e2.configure.props.format.childAnnexDataTableCode = a3), onClick: a2.openSelectDataTable, clearable: "" }, { append: i(() => [u(Q2, { type: "default", icon: p(V), onClick: a2.openSelectDataTable }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "onClick"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 16, label: "展示名字段", class: "amb-design-attr-item" }, { default: i(() => [u(T, { prop: e2.configure.props.format.showName, "onUpdate:prop": l2[32] || (l2[32] = (a3) => e2.configure.props.format.showName = a3), tableConfigure: e2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : r("", true), "files" === e2.configure.props.format.type ? (n(), t(x2, { key: 17, label: "服务器字段", class: "amb-design-attr-item" }, { default: i(() => [u(T, { prop: e2.configure.props.format.serverName, "onUpdate:prop": l2[33] || (l2[33] = (a3) => e2.configure.props.format.serverName = a3), tableConfigure: e2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : r("", true)])]), _: 1 })), u(I2, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", $, [u(x2, { label: "固定列", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.listColumnFixed, "onUpdate:modelValue": l2[34] || (l2[34] = (a3) => e2.configure.props.base.listColumnFixed = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[51] || (l2[51] = [m("否")])), _: 1 }), u(U2, { value: "left" }, { default: i(() => l2[52] || (l2[52] = [m("居左")])), _: 1 }), u(U2, { value: "right" }, { default: i(() => l2[53] || (l2[53] = [m("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), Z.value ? r("", true) : (n(), t(x2, { key: 0, label: "是否排序", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.sortable, "onUpdate:modelValue": l2[35] || (l2[35] = (a3) => e2.configure.props.base.sortable = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: true }, { default: i(() => l2[54] || (l2[54] = [m("是")])), _: 1 }), u(U2, { value: false }, { default: i(() => l2[55] || (l2[55] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), u(x2, { label: "列宽", class: "amb-design-attr-item" }, { default: i(() => [u(W2, { style: { width: "100%" }, modelValue: e2.configure.props.base.columnWidth, "onUpdate:modelValue": l2[36] || (l2[36] = (a3) => e2.configure.props.base.columnWidth = a3), precision: 1 }, null, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "标题对齐", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.alignTitle, "onUpdate:modelValue": l2[37] || (l2[37] = (a3) => e2.configure.props.base.alignTitle = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: "left" }, { default: i(() => l2[56] || (l2[56] = [m("居左")])), _: 1 }), u(U2, { value: "center" }, { default: i(() => l2[57] || (l2[57] = [m("居中")])), _: 1 }), u(U2, { value: "right" }, { default: i(() => l2[58] || (l2[58] = [m("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "内容对齐", class: "amb-design-attr-item-linefeed-two" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.base.alignContent, "onUpdate:modelValue": l2[38] || (l2[38] = (a3) => e2.configure.props.base.alignContent = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: "left" }, { default: i(() => l2[59] || (l2[59] = [m("居左")])), _: 1 }), u(U2, { value: "center" }, { default: i(() => l2[60] || (l2[60] = [m("居中")])), _: 1 }), u(U2, { value: "right" }, { default: i(() => l2[61] || (l2[61] = [m("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), !Z.value && e2.configure.props.editLine.editable ? (n(), t(I2, { key: 3, title: "校验", name: "verification", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", G, [u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(J2, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": l2[39] || (l2[39] = (a3) => e2.configure.props.verification.required = a3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), u(K2, { modelValue: e2.configure.props.verification.type, "onUpdate:modelValue": l2[40] || (l2[40] = (a3) => e2.configure.props.verification.type = a3) }, { default: i(() => [u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(J2, { label: "整形", value: "int" }), u(J2, { label: "数字", value: "number" }), u(J2, { label: "布尔", value: "boolean" })]), _: 1 }), u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(J2, { label: "字符串", value: "text" }), u(J2, { label: "邮件", value: "mail" }), u(J2, { label: "网址", value: "ip" })]), _: 1 }), u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(J2, { label: "单精度", value: "float" }), u(J2, { label: "十六进制", value: "hex" })]), _: 1 })]), _: 1 }, 8, ["modelValue"]), u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(Y2, { span: 8 }, { default: i(() => [u(J2, { modelValue: e2.configure.props.verification.verifyRegex, "onUpdate:modelValue": l2[41] || (l2[41] = (a3) => e2.configure.props.verification.verifyRegex = a3), label: "正则", value: "regex" }, null, 8, ["modelValue"])]), _: 1 }), u(Y2, { span: 14 }, { default: i(() => [u(D2, { modelValue: e2.configure.props.verification.regex, "onUpdate:modelValue": l2[42] || (l2[42] = (a3) => e2.configure.props.verification.regex = a3), class: "mx-4", "controls-position": "right", placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), u(x2, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [u(Y2, { span: 8 }, { default: i(() => [u(J2, { label: "自定义", value: "custom" })]), _: 1 }), u(Y2, { span: 14 }, { default: i(() => [u(Q2, { type: "default" }, { default: i(() => l2[62] || (l2[62] = [m("自定义逻辑")])), _: 1 }), u(Q2, { type: "default", icon: p(V), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })) : r("", true), Z.value ? r("", true) : (n(), t(I2, { key: 4, title: "用户自定义", name: "userDefined", class: "amb-design-attr-group-header" }, { default: i(() => [s("div", z, [u(x2, { label: "可自定义", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.defined, "onUpdate:modelValue": l2[43] || (l2[43] = (a3) => e2.configure.props.definition.defined = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[63] || (l2[63] = [m("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[64] || (l2[64] = [m("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "自定义导出", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.definedExport, "onUpdate:modelValue": l2[44] || (l2[44] = (a3) => e2.configure.props.definition.definedExport = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[65] || (l2[65] = [m("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[66] || (l2[66] = [m("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "自定义合并", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.definedMerge, "onUpdate:modelValue": l2[45] || (l2[45] = (a3) => e2.configure.props.definition.definedMerge = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[67] || (l2[67] = [m("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[68] || (l2[68] = [m("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "自定义位置", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.definedPosition, "onUpdate:modelValue": l2[46] || (l2[46] = (a3) => e2.configure.props.definition.definedPosition = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[69] || (l2[69] = [m("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[70] || (l2[70] = [m("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "自定义冻结", class: "amb-design-attr-item" }, { default: i(() => [u(k2, { modelValue: e2.configure.props.definition.definedFixed, "onUpdate:modelValue": l2[47] || (l2[47] = (a3) => e2.configure.props.definition.definedFixed = a3), class: "ml-4" }, { default: i(() => [u(U2, { value: false }, { default: i(() => l2[71] || (l2[71] = [m("否")])), _: 1 }), u(U2, { value: true }, { default: i(() => l2[72] || (l2[72] = [m("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 })), oe.value ? (n(), t(C, { key: 5, querySetting: e2.configure.props.querySetting, onAdd: ne, onClose: te }, null, 8, ["querySetting"])) : r("", true), u(w, { ref_key: "selectTableDialog", ref: X, onSelectTable: ae, systemCode: e2.configure.systemCode, systemVersion: e2.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
116
117
|
};
|
|
117
118
|
} });
|
|
118
119
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as y, normalizeClass as v } from "vue";
|
|
2
|
-
import V from "./dataorigin-input-table.
|
|
2
|
+
import V from "./dataorigin-input-table.vue2.js";
|
|
3
3
|
import g from "./condition.vue.js";
|
|
4
4
|
import S from "./row-ul-li.vue.js";
|
|
5
5
|
import "uuid";
|
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
-
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
-
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
-
function y() {
|
|
6
|
-
if (_.value.length > 0) {
|
|
7
|
-
let e3 = "";
|
|
8
|
-
_.value.forEach((l2) => {
|
|
9
|
-
e3 = e3 + l2.name + ",";
|
|
10
|
-
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
-
} else b.value = false;
|
|
12
|
-
}
|
|
13
|
-
function S(e3) {
|
|
14
|
-
_.value = e3;
|
|
15
|
-
}
|
|
16
|
-
function w() {
|
|
17
|
-
b.value = true;
|
|
18
|
-
}
|
|
19
|
-
return a(() => c.modelValue, (e3) => {
|
|
20
|
-
g.value = e3;
|
|
21
|
-
}), (e3, l2) => {
|
|
22
|
-
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
-
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
-
};
|
|
25
|
-
} });
|
|
1
|
+
import t from "./dataorigin-input-table.vue2.js";
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
t as default
|
|
28
4
|
};
|
package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import t from "
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
+
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
+
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
+
function y() {
|
|
6
|
+
if (_.value.length > 0) {
|
|
7
|
+
let e3 = "";
|
|
8
|
+
_.value.forEach((l2) => {
|
|
9
|
+
e3 = e3 + l2.name + ",";
|
|
10
|
+
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
+
} else b.value = false;
|
|
12
|
+
}
|
|
13
|
+
function S(e3) {
|
|
14
|
+
_.value = e3;
|
|
15
|
+
}
|
|
16
|
+
function w() {
|
|
17
|
+
b.value = true;
|
|
18
|
+
}
|
|
19
|
+
return a(() => c.modelValue, (e3) => {
|
|
20
|
+
g.value = e3;
|
|
21
|
+
}), (e3, l2) => {
|
|
22
|
+
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
+
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
v as default
|
|
4
28
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as l, watch as a, resolveComponent as t, crea
|
|
|
2
2
|
import { getUuidv4 as d } from "../../../../utils/common-util.js";
|
|
3
3
|
import p from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import { getModelOptionsByFields as m } from "../../../../utils/page-table-util.js";
|
|
5
|
-
const s = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, c = e({ __name: "parameter-table", props: { data: { type: Array, default: () => [] }, tableConfigure: { type: Object, default: () => [] } }, emits: ["dataChange"], setup(e2, { emit: c2 }) {
|
|
5
|
+
const s = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, c = e({ __name: "parameter-table", props: { data: { type: Array, default: () => [] }, tableConfigure: { type: Object, default: () => [] } }, emits: ["dataChange", "update:data"], setup(e2, { emit: c2 }) {
|
|
6
6
|
const f = e2, v = c2, g = l(null);
|
|
7
7
|
function b() {
|
|
8
8
|
f.tableConfigure && (g.value = m(f.tableConfigure.modelFields));
|
|
@@ -27,8 +27,8 @@ const s = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
27
27
|
return h.value = f.data, h.value && 0 != h.value.length || h.value.push({ uuid: d(), paramValue: "", paramName: "" }), a(() => h.value, (e3) => {
|
|
28
28
|
if (e3 && e3.length > 0) {
|
|
29
29
|
const l2 = e3.filter((e4) => "" !== e4.paramName);
|
|
30
|
-
v("dataChange", l2);
|
|
31
|
-
} else v("dataChange", []);
|
|
30
|
+
v("dataChange", l2), v("update:data", l2);
|
|
31
|
+
} else v("dataChange", []), v("update:data", []);
|
|
32
32
|
}, { deep: true }), (e3, l2) => {
|
|
33
33
|
const a2 = t("Top"), d2 = t("el-icon"), m2 = t("Bottom"), c3 = t("el-table-column"), f2 = t("el-input"), v2 = t("Plus"), b2 = t("Delete"), V = t("el-table");
|
|
34
34
|
return u(), o(V, { data: h.value, "row-key": "uuid", style: { width: "100%" } }, { default: r(() => [n(c3, { label: "", width: "32" }, { default: r((e4) => [i("div", s, [n(d2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e5) {
|