super-page-designer 2.2.90 → 2.2.91-sit11
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/index.d.ts +2 -1
- package/dist/es/components/design/utils/assemblys-config.js +6 -7
- 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 +23 -21
- 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/style-table.vue.js +19 -19
- 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.d.ts +31 -0
- 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 +111 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +7 -6
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +11 -11
- 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 +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- 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 +18 -18
- 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/assemblys/form/dept-tree/depttree-autoset.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +46 -46
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +23 -23
- package/dist/es/index.d.ts +1 -2
- package/dist/es/index.js +2 -0
- package/dist/es/style.css +553 -239
- package/package.json +5 -5
- package/dist/es/components/design/index.js +0 -4
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o, createBlock as i, openBlock as t, withCtx as u, createVNode as s, createElementVNode as n, createElementBlock as r, Fragment as d, renderList as p, unref as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o, createBlock as i, openBlock as t, withCtx as u, createVNode as s, createElementVNode as n, createElementBlock as r, Fragment as d, renderList as p, unref as c, createTextVNode as m, withDirectives as f, createCommentVNode as b, vShow as g } from "vue";
|
|
2
2
|
import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import "../../../../../../stores/page-store.js";
|
|
4
4
|
/* empty css */
|
|
@@ -14,41 +14,41 @@ import "../../../../../../stores/statistics-table-store.js";
|
|
|
14
14
|
import { getTableConfigByTableUuid as h } from "../../../../utils/page-table-util.js";
|
|
15
15
|
import k from "../../common/common-i18n-key-input.vue.js";
|
|
16
16
|
import P from "../../chart/statistical-table/component/link-table.vue.js";
|
|
17
|
-
const j = { style: { padding: "8px 0px 0px 0px" } }, D = { style: { padding: "8px 0px 0px 0px" } },
|
|
18
|
-
const
|
|
19
|
-
|
|
17
|
+
const j = { style: { padding: "8px 0px 0px 0px" } }, D = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8px 0px 0px 0px" } }, w = { style: { padding: "8px 0px 0px 0px" } }, z = e({ __name: "button-attr-base", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
18
|
+
const z2 = e2, E = a(["base", "appearance", "otherSettings", "linkPage"]), F = a({}), q = a([]), C = a(R()), A = a(false);
|
|
19
|
+
z2.configure.props.base.templateFiles && z2.configure.props.base.templateFiles.forEach((e3) => {
|
|
20
20
|
q.value.push(e3.templateUuid);
|
|
21
|
-
}), void 0 ===
|
|
21
|
+
}), void 0 === z2.configure.props.base.isEnableRequired && (z2.configure.props.base.isEnableRequired = true), !z2.configure.props.linkPage || z2.configure.props.linkPage instanceof Array || (z2.configure.props.linkPage = [{ linkPage: z2.configure.props.linkPage }]), A.value = true;
|
|
22
22
|
const N = a([]);
|
|
23
|
-
function
|
|
24
|
-
q.value.length > 0 ? (
|
|
25
|
-
|
|
26
|
-
})) :
|
|
23
|
+
function I() {
|
|
24
|
+
q.value.length > 0 ? (z2.configure.props.base.templateFiles || (z2.configure.props.base.templateFiles = []), F.value.filter((e3) => q.value.includes(e3.uuid)).forEach((e3) => {
|
|
25
|
+
z2.configure.props.base.templateFiles.push({ templateName: e3.fileName, templateUuid: e3.uuid });
|
|
26
|
+
})) : z2.configure.props.base.templateFiles = [];
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return h(
|
|
28
|
+
function R() {
|
|
29
|
+
return h(z2.pageDesign, z2.configure);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
const a2 =
|
|
31
|
+
function S(e3) {
|
|
32
|
+
const a2 = R();
|
|
33
33
|
C.value = a2;
|
|
34
34
|
}
|
|
35
35
|
return l(() => {
|
|
36
36
|
!function() {
|
|
37
37
|
var _a;
|
|
38
|
-
const e3 = (_a =
|
|
39
|
-
_.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/template-management/list/${
|
|
40
|
-
|
|
38
|
+
const e3 = (_a = z2.pageDesign) == null ? void 0 : _a.systemVersion;
|
|
39
|
+
_.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/template-management/list/${z2.pageDesign.systemCode}?publishVersion=${e3}`, {}).then((e4) => {
|
|
40
|
+
F.value = e4.data;
|
|
41
41
|
});
|
|
42
|
-
}(),
|
|
42
|
+
}(), z2.pageDesign.tableUuids && z2.pageDesign.tableUuids.length > 0 && (N.value = z2.pageDesign.tableUuids);
|
|
43
43
|
}), (a2, l2) => {
|
|
44
|
-
const _2 = o("el-option"), h2 = o("el-select"),
|
|
45
|
-
return t(), i(K, { "label-width": "80px", size: "small" }, { default: u(() => [s(J, { modelValue:
|
|
46
|
-
|
|
47
|
-
}(e3, a3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), f(s(
|
|
48
|
-
|
|
49
|
-
}(e3)) }, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : b("", true)])]), _: 1 }), s(B, { title: "其他设置", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: u(() => [n("div",
|
|
44
|
+
const _2 = o("el-option"), h2 = o("el-select"), R2 = o("el-form-item"), $ = o("el-input"), M = o("el-radio"), O = o("el-radio-group"), B = o("el-collapse-item"), G = o("el-radio-button"), H = o("el-switch"), J = o("el-collapse"), K = o("el-form");
|
|
45
|
+
return t(), i(K, { "label-width": "80px", size: "small" }, { default: u(() => [s(J, { modelValue: E.value, "onUpdate:modelValue": l2[25] || (l2[25] = (e3) => E.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [s(B, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", j, [s(R2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.name = a3), placeholder: "请选择" }, { default: u(() => [(t(true), r(d, null, p(c(V)(), (e3) => (t(), i(_2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [s($, { modelValue: e2.configure.uuid, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.uuid = a3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), s(R2, { label: "自定义编码", class: "amb-design-attr-item" }, { default: u(() => [s($, { modelValue: e2.configure.code, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.code = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), i(y, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), s(R2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [s(k, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.base.title = a3) }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "尺寸", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.size = a3), class: "ml-4" }, { default: u(() => [s(M, { value: "large" }, { default: u(() => l2[26] || (l2[26] = [m("大")])), _: 1 }), s(M, { value: "default" }, { default: u(() => l2[27] || (l2[27] = [m("中")])), _: 1 }), s(M, { value: "small" }, { default: u(() => l2[28] || (l2[28] = [m("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.state = a3), class: "ml-4" }, { default: u(() => [s(M, { value: "default" }, { default: u(() => l2[29] || (l2[29] = [m("普通")])), _: 1 }), s(M, { value: "disabled" }, { default: u(() => l2[30] || (l2[30] = [m("禁用")])), _: 1 }), s(M, { value: "hidden" }, { default: u(() => l2[31] || (l2[31] = [m("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s(B, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", D, [s(R2, { label: "按钮类型", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: e2.configure.props.base.type, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.base.type = a3), class: "ml-4", clearable: "" }, { default: u(() => [s(_2, { label: "primary", value: "primary" }), s(_2, { label: "success", value: "success" }), s(_2, { label: "warning", value: "warning" }), s(_2, { label: "danger", value: "danger" }), s(_2, { label: "info", value: "info" }), s(_2, { label: "default", value: "default" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "图标", class: "amb-design-attr-item" }, { default: u(() => [(t(), i(v, { key: e2.configure.uuid, iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.iconValue, "onUpdate:modelValue": l2[7] || (l2[7] = (e3, a3) => function(e4, a4) {
|
|
46
|
+
z2.configure.props.base.iconType = e4, z2.configure.props.base.iconValue = a4, a4 || (z2.configure.props.base.isTextIcon = false);
|
|
47
|
+
}(e3, a3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), f(s(R2, { label: "图标位置", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.iconPosition, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.base.iconPosition = a3), class: "ml-4" }, { default: u(() => [s(G, { value: "left" }, { default: u(() => l2[32] || (l2[32] = [m("标题前")])), _: 1 }), s(G, { value: "right" }, { default: u(() => l2[33] || (l2[33] = [m("标题后")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.iconValue]]), s(R2, { label: "文字按钮", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.text, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.base.text = a3), disabled: !!e2.configure.props.base.plain || !!e2.configure.props.base.plain, "inline-prompt": "", "active-icon": c(x), "inactive-icon": c(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), e2.configure.props.base.text ? (t(), i(R2, { key: 0, label: "图标按钮", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isTextIcon, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.base.isTextIcon = a3), disabled: !e2.configure.props.base.iconValue, "inline-prompt": "", "active-icon": c(x), "inactive-icon": c(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 })) : b("", true), s(R2, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.plain, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.base.plain = a3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": c(x), "inactive-icon": c(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(R2, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.round, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.base.round = a3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": c(x), "inactive-icon": c(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(R2, { label: "加载状态", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.loading, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.base.loading = a3), class: "ml-4" }, { default: u(() => [s(M, { value: true }, { default: u(() => l2[34] || (l2[34] = [m("是")])), _: 1 }), s(M, { value: false }, { default: u(() => l2[35] || (l2[35] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "默认聚焦", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.focus, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.base.focus = a3), class: "ml-4" }, { default: u(() => [s(M, { value: true }, { default: u(() => l2[36] || (l2[36] = [m("是")])), _: 1 }), s(M, { value: false }, { default: u(() => l2[37] || (l2[37] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "原生type", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.originalType, "onUpdate:modelValue": l2[15] || (l2[15] = (a3) => e2.configure.props.base.originalType = a3), class: "ml-4", disabled: !!e2.configure.props.base.text }, { default: u(() => [s(M, { value: "button" }, { default: u(() => l2[38] || (l2[38] = [m("button")])), _: 1 }), s(M, { value: "submit" }, { default: u(() => l2[39] || (l2[39] = [m("submit")])), _: 1 }), s(M, { value: "reset" }, { default: u(() => l2[40] || (l2[40] = [m("reset")])), _: 1 })]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 })])]), _: 1 }), s(B, { title: "跳转配置", name: "linkPage", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", T, [A.value ? (t(), i(P, { key: 0, pageDesign: e2.pageDesign, paramTypes: ["data", "task", "page", "request", "row"], data: e2.configure.props.linkPage, configure: e2.configure, tableConfigure: C.value, onDataChange: l2[16] || (l2[16] = (e3) => function(e4) {
|
|
48
|
+
z2.configure.props.linkPage = e4;
|
|
49
|
+
}(e3)) }, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : b("", true)])]), _: 1 }), s(B, { title: "其他设置", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", w, [s(R2, { label: "回填赋值", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isNeedValueMapping, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.base.isNeedValueMapping = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "权限保护", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isPermission, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.base.isPermission = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "是否异步", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isAsync, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.base.isAsync = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "必填验证", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isEnableRequired, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.base.isEnableRequired = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "逻辑删除", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isSafeDelete, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.base.isSafeDelete = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "模板路径", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: q.value, "onUpdate:modelValue": l2[22] || (l2[22] = (e3) => q.value = e3), filterable: "", multiple: "", onChange: I }, { default: u(() => [(t(true), r(d, null, p(F.value, (e3) => (t(), i(_2, { key: e3.uuid, label: e3.fileName, value: e3.uuid }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "执行条件", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: e2.configure.props.base.conditionsForExecution, "onUpdate:modelValue": l2[23] || (l2[23] = (a3) => e2.configure.props.base.conditionsForExecution = a3) }, { default: u(() => [s(_2, { label: "无限制", value: "any" }), s(_2, { label: "选单行", value: "one" }), s(_2, { label: "选多行(包括单行)", value: "more" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "对应表格", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: e2.configure.props.base.tableUuid, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.base.tableUuid = a3), clearable: "", filterable: "", "allow-create": "", onChange: S }, { default: u(() => [(t(true), r(d, null, p(N.value, (e3) => (t(), i(_2, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
50
50
|
};
|
|
51
51
|
} });
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
z as default
|
|
54
54
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as t, openBlock as n, normalizeStyle as o, normalizeClass as a, withCtx as s, createElementBlock as c, createCommentVNode as r, Fragment as p, createTextVNode as v, toDisplayString as y, unref as g } from "vue";
|
|
2
2
|
import { SuperIcon as d } from "agilebuilder-ui";
|
|
3
3
|
import { caculateDetailComponentStyle as f, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
|
|
4
|
-
import { batchUpdatePermissions as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
l(
|
|
10
|
-
f(
|
|
4
|
+
import { batchUpdatePermissions as T } from "../../../../utils/page-permission-util.js";
|
|
5
|
+
const V = e({ __name: "button-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
|
|
6
|
+
const V2 = e2;
|
|
7
|
+
V2.configure.runtime || (V2.configure.runtime = {});
|
|
8
|
+
const b = i({}), k = i(""), x = i({}), z = i({});
|
|
9
|
+
l(V2.configure.style, () => {
|
|
10
|
+
f(V2.configure, b, k, x), V2.configure.runtime.style = b.value, V2.configure.runtime.class = k.value, V2.configure.runtime.headerStyle = x.value;
|
|
11
11
|
}, { immediate: true });
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
return l(
|
|
15
|
-
m(
|
|
16
|
-
let e4 =
|
|
12
|
+
const P = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
|
|
13
|
+
let h = P.title;
|
|
14
|
+
return l(V2.configure.props, (e3, i2) => {
|
|
15
|
+
m(V2.configure, z), function() {
|
|
16
|
+
let e4 = V2.configure.props ? V2.configure.props : {};
|
|
17
17
|
const i3 = e4.base ? e4.base : {}, l2 = {};
|
|
18
|
-
i3.type && (l2.type = i3.type), i3.text && (l2.text = true), i3.plain && (l2.plain = true), i3.round && (l2.round = true), i3.iconType && i3.iconValue && (l2.iconType = i3.iconType, l2.iconValue = i3.iconValue, l2.iconPosition = i3.iconPosition), Object.assign(
|
|
19
|
-
}(),
|
|
18
|
+
i3.type && (l2.type = i3.type), i3.text && (l2.text = true), i3.plain && (l2.plain = true), i3.round && (l2.round = true), l2.isTextIcon = i3.isTextIcon, i3.iconType && i3.iconValue && (l2.iconType = i3.iconType, l2.iconValue = i3.iconValue, l2.iconPosition = i3.iconPosition), Object.assign(z.value, l2);
|
|
19
|
+
}(), P.title !== h && V2.pageDesign && (T(V2.configure, V2.pageDesign), h = P.title), V2.configure.runtime.props = z.value;
|
|
20
20
|
}, { immediate: true }), (e3, i2) => {
|
|
21
21
|
const l2 = u("el-link"), f2 = u("el-button");
|
|
22
|
-
return
|
|
22
|
+
return z.value.text ? (n(), t(l2, { key: 0, disabled: "disabled" === z.value.state, class: a(k.value), style: o(b.value), type: z.value.type, size: z.value.size }, { default: s(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (n(), c(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (n(), c(p, { key: 0 }, [v(" ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (n(), t(g(d), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (n(), c(p, { key: 2 }, [z.value.iconValue ? (n(), c(p, { key: 0 }, [v(" ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (n(), t(f2, { key: 1, disabled: "disabled" === z.value.state, class: a(k.value), style: o(b.value), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain }, { default: s(() => [z.value.title && "right" == z.value.iconPosition ? (n(), c(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (n(), c(p, { key: 0 }, [v(" ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (n(), t(g(d), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition ? (n(), c(p, { key: 2 }, [z.value.iconValue ? (n(), c(p, { key: 0 }, [v(" ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
V as default
|
|
27
27
|
};
|
package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js
CHANGED
|
@@ -9,17 +9,17 @@ const k = e({ __name: "exportpdf-design", props: { pageDesign: {}, configure: {}
|
|
|
9
9
|
l(k2.configure.style, () => {
|
|
10
10
|
f(k2.configure, V, T, z), k2.configure.runtime.style = V.value, k2.configure.runtime.class = T.value, k2.configure.runtime.headerStyle = z.value;
|
|
11
11
|
}, { immediate: true });
|
|
12
|
-
const
|
|
13
|
-
let
|
|
12
|
+
const x = k2.configure.props && k2.configure.props.base ? k2.configure.props.base : {};
|
|
13
|
+
let j = x.title;
|
|
14
14
|
return l(k2.configure.props, (e3, i2) => {
|
|
15
15
|
m(k2.configure, h), function() {
|
|
16
16
|
let e4 = k2.configure.props ? k2.configure.props : {};
|
|
17
17
|
const i3 = e4.base ? e4.base : {}, l2 = e4.dropdown ? e4.dropdown : {};
|
|
18
18
|
Object.assign(h.value, l2), Object.assign(h.value, i3);
|
|
19
|
-
}(),
|
|
19
|
+
}(), x.title !== j && k2.pageDesign && (b(k2.configure, k2.pageDesign), j = x.title), k2.configure.runtime.props = h.value;
|
|
20
20
|
}, { immediate: true }), (e3, i2) => {
|
|
21
21
|
const l2 = u("el-link"), f2 = u("el-button");
|
|
22
|
-
return h.value.text ? (t(), a(l2, { key: 0, disabled: "disabled" === h.value.state, class: n(T.value), style: o(V.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (t(), a(f2, { key: 1, disabled: "disabled" === h.value.state, class: n(T.value), style: o(V.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
|
|
22
|
+
return h.value.text ? (t(), a(l2, { key: 0, disabled: "disabled" === h.value.state, class: n(T.value), style: o(V.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (t(), a(f2, { key: 1, disabled: "disabled" === h.value.state, class: n(T.value), style: o(V.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js
CHANGED
|
@@ -10,16 +10,16 @@ const k = e({ __name: "printlabel-design", props: { pageDesign: {}, configure: {
|
|
|
10
10
|
f(k2.configure, V, T, z), k2.configure.runtime.style = V.value, k2.configure.runtime.class = T.value, k2.configure.runtime.headerStyle = z.value;
|
|
11
11
|
}, { immediate: true });
|
|
12
12
|
const j = k2.configure.props && k2.configure.props.base ? k2.configure.props.base : {};
|
|
13
|
-
let
|
|
13
|
+
let x = j.title;
|
|
14
14
|
return l(k2.configure.props, (e3, i2) => {
|
|
15
15
|
m(k2.configure, h), function() {
|
|
16
16
|
let e4 = k2.configure.props ? k2.configure.props : {};
|
|
17
17
|
const i3 = e4.base ? e4.base : {}, l2 = e4.dropdown ? e4.dropdown : {};
|
|
18
18
|
Object.assign(h.value, l2), Object.assign(h.value, i3);
|
|
19
|
-
}(), j.title !==
|
|
19
|
+
}(), j.title !== x && k2.pageDesign && (b(k2.configure, k2.pageDesign), x = j.title), k2.configure.runtime.props = h.value;
|
|
20
20
|
}, { immediate: true }), (e3, i2) => {
|
|
21
21
|
const l2 = u("el-link"), f2 = u("el-button");
|
|
22
|
-
return h.value.text ? (t(), a(l2, { key: 0, disabled: "disabled" === h.value.state, class: o(T.value), style: n(V.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (t(), a(f2, { key: 1, disabled: "disabled" === h.value.state, class: o(T.value), style: n(V.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
|
|
22
|
+
return h.value.text ? (t(), a(l2, { key: 0, disabled: "disabled" === h.value.state, class: o(T.value), style: n(V.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (t(), a(f2, { key: 1, disabled: "disabled" === h.value.state, class: o(T.value), style: n(V.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v(" ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./data-origin.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = o(a, [["__scopeId", "data-v-4f7aa99a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -5,7 +5,6 @@ import C from "../../../form/common/data-origin-service-in.vue.js";
|
|
|
5
5
|
import w from "../../../common/page-permission-select.vue.js";
|
|
6
6
|
import T from "./row-colmun.vue.js";
|
|
7
7
|
import { queryServiceReturnFields as h } from "../../../../../utils/page-service-util.js";
|
|
8
|
-
import "uuid";
|
|
9
8
|
import { tableField as k } from "../../../../../../../stores/table-store.js";
|
|
10
9
|
import R from "../../../common/common-variable-bind.vue.js";
|
|
11
10
|
import { getCustomFuncs as U } from "../../../../../utils/page-event-util.js";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as u, Fragment as n, createVNode as i, createBlock as r, createCommentVNode as d, withCtx as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as u, Fragment as n, createVNode as i, createBlock as r, createCommentVNode as d, withCtx as s, renderList as p, unref as c, createTextVNode as g } from "vue";
|
|
2
2
|
import f from "./table-showcondition.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import { getCustomFuncs as
|
|
5
|
-
import "
|
|
6
|
-
import { getTableConfigByTableUuid as
|
|
7
|
-
const
|
|
8
|
-
} }, paramTypes: { type: Array, default: () => ["data", "task", "page", "request"] }, configure: { type: Object, default: () => null }, tableConfigure: { type: Object, default: () => null } }, emits: ["dataChange"], setup(e2, { emit:
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
|
|
3
|
+
import m from "../../../form/common/suffixmodule.vue.js";
|
|
4
|
+
import { getCustomFuncs as v } from "../../../../../utils/page-event-util.js";
|
|
5
|
+
import { getUuidv4 as b } from "../../../../../utils/common-util.js";
|
|
6
|
+
import { getTableConfigByTableUuid as w } from "../../../../../utils/page-table-util.js";
|
|
7
|
+
const y = e({ __name: "link-table", props: { data: { type: Array, default: () => [] }, pageDesign: { type: Object, default: () => {
|
|
8
|
+
} }, paramTypes: { type: Array, default: () => ["data", "task", "page", "request"] }, configure: { type: Object, default: () => null }, tableConfigure: { type: Object, default: () => null } }, emits: ["dataChange"], setup(e2, { emit: y2 }) {
|
|
9
|
+
const C = e2, h = y2, k = l([]);
|
|
10
|
+
C.data && (k.value = C.data);
|
|
11
|
+
const _ = l(false), D = l(C.tableConfigure);
|
|
12
|
+
function j(e3, l2) {
|
|
13
|
+
k.value.splice(l2 + 1, 0, { uuid: b(), showCondition: [], eventCallBack: "", style: {}, linkPage: {} });
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
|
|
15
|
+
const V = l({}), x = l(0);
|
|
16
|
+
function z(e3, l2) {
|
|
17
|
+
D.value = w(C.pageDesign, C.configure), V.value = e3, _.value = true, x.value = l2;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
19
|
+
function P() {
|
|
20
|
+
k.value[x.value].linkPage = V.value, _.value = false;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function T(e3) {
|
|
23
23
|
e3.row && (e3.row.showCondition = e3.data);
|
|
24
24
|
}
|
|
25
|
-
return a(() =>
|
|
26
|
-
e3.length > 0 ?
|
|
25
|
+
return a(() => k.value, (e3) => {
|
|
26
|
+
e3.length > 0 ? h("dataChange", k.value) : h("dataChange", null);
|
|
27
27
|
}, { deep: true }), (l2, a2) => {
|
|
28
|
-
const b2 = t("el-table-column"),
|
|
29
|
-
return u(), o(n, null, [i(F, { data:
|
|
30
|
-
|
|
31
|
-
}) }, { default:
|
|
32
|
-
return e3.row, a3 = e3.$index, void
|
|
28
|
+
const b2 = t("el-table-column"), w2 = t("el-option"), y3 = t("el-select"), C2 = t("el-button"), h2 = t("Plus"), x2 = t("el-icon"), U = t("Delete"), F = t("el-table"), O = t("el-dialog");
|
|
29
|
+
return u(), o(n, null, [i(F, { data: k.value, style: { width: "100%" }, "row-key": "uuid" }, { default: s(() => [i(b2, { label: "条件", width: "55", align: "center" }, { default: s((l3) => [i(f, { paramTypes: e2.paramTypes, data: l3.row.showCondition, pageDesign: e2.pageDesign, row: l3.row, tableConfigure: D.value, configure: e2.configure, "onUpdate:data": T }, null, 8, ["paramTypes", "data", "pageDesign", "row", "tableConfigure", "configure"])]), _: 1 }), i(b2, { label: "自定义条件", align: "center" }, { default: s((e3) => [i(y3, { modelValue: e3.row.scopeFunc, "onUpdate:modelValue": (l3) => e3.row.scopeFunc = l3, clearable: "", title: e3.row.scopeFunc, size: "small", placeholder: "请选择" }, { default: s(() => [(u(true), o(n, null, p(c(v)(), (e4) => (u(), r(w2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), i(b2, { prop: "value", label: "链接", width: "55", align: "center" }, { default: s((e3) => [i(C2, { type: "primary", onClick: (l3) => z(e3.row.linkPage, e3.$index) }, { default: s(() => a2[2] || (a2[2] = [g("设置")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), i(b2, { label: "操作", align: "center" }, { header: s(() => [i(x2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: a2[0] || (a2[0] = (e3) => {
|
|
30
|
+
k.value && 0 !== k.value.length ? j(0, k.value.length - 1) : (k.value = [], j(0, -1));
|
|
31
|
+
}) }, { default: s(() => [i(h2)]), _: 1 })]), default: s((e3) => [i(x2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => j(e3.row, e3.$index) }, { default: s(() => [i(h2)]), _: 2 }, 1032, ["onClick"]), i(x2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
32
|
+
return e3.row, a3 = e3.$index, void k.value.splice(a3, 1);
|
|
33
33
|
var a3;
|
|
34
|
-
} }, { default:
|
|
34
|
+
} }, { default: s(() => [i(U)]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), _.value ? (u(), r(O, { key: 0, modelValue: _.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => _.value = e3), title: "超链接设置", "before-close": P, width: "900", "append-to-body": "" }, { default: s(() => [i(m, { isDialog: true, configure: V.value, pageDesign: e2.pageDesign, tableConfigure: D.value }, null, 8, ["configure", "pageDesign", "tableConfigure"])]), _: 1 }, 8, ["modelValue"])) : d("", true)], 64);
|
|
35
35
|
};
|
|
36
36
|
} });
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
y as default
|
|
39
39
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createBlock as o, openBlock as n, withCtx as i, createCommentVNode as r, createVNode as u, createElementBlock as d, Fragment as p, renderList as s, unref as c } from "vue";
|
|
2
2
|
import f from "./table-showcondition.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import { getCustomFuncs as
|
|
5
|
-
const
|
|
3
|
+
import g from "./font-style-dialog.vue.js";
|
|
4
|
+
import { getCustomFuncs as m } from "../../../../../utils/page-event-util.js";
|
|
5
|
+
const w = e({ __name: "style-table", props: { configure: { type: Object, default: () => {
|
|
6
6
|
} }, data: { type: Array, default: () => [] }, showField: { type: Boolean, default: false }, showCondition: { type: Boolean, default: false }, paramTypes: { type: Array, default: () => ["data", "task", "page", "request", "row"] }, pageDesign: { type: Object, default: () => {
|
|
7
|
-
} } }, emits: ["dataChange"], setup(e2, { emit:
|
|
8
|
-
const
|
|
9
|
-
function
|
|
7
|
+
} } }, emits: ["dataChange"], setup(e2, { emit: w2 }) {
|
|
8
|
+
const y = e2, b = w2, h = l([]);
|
|
9
|
+
function v(e3, l2) {
|
|
10
|
+
(null == l2 || l2 < 0) && (l2 = h.value.length), h.value.splice(l2 + 1, 0, { matchingCondition: [], eventCallBack: "", style: {} });
|
|
11
|
+
}
|
|
12
|
+
function C(e3) {
|
|
10
13
|
e3.row && (e3.row.matchingCondition = e3.data);
|
|
11
14
|
}
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
}, { deep: true }), (
|
|
15
|
-
const
|
|
16
|
-
return n(), o(
|
|
17
|
-
return e3.row,
|
|
18
|
-
var
|
|
19
|
-
} }, { default: i(() => [u(
|
|
20
|
-
if (1 == b.value.length) return e4.matchingCondition = [], e4.eventCallBack = "", void (e4.style = {});
|
|
21
|
-
b.value.splice(a4, 1);
|
|
22
|
-
}(e3.row, e3.$index) }, { default: i(() => [u(_)]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
15
|
+
return y.data && Array.isArray(y.data) && (h.value = y.data), h.value && 0 != h.value.length || h.value.push({ matchingCondition: [], eventCallBack: "", style: {} }), a(() => h.value, (e3) => {
|
|
16
|
+
b("dataChange", h.value);
|
|
17
|
+
}, { deep: true }), (l2, a2) => {
|
|
18
|
+
const w3 = t("el-table-column"), y2 = t("el-option"), b2 = t("el-select"), k = t("Plus"), _ = t("el-icon"), V = t("Delete"), U = t("el-table");
|
|
19
|
+
return n(), o(U, { data: h.value, style: { width: "100%" } }, { default: i(() => [e2.showCondition ? (n(), o(w3, { key: 0, label: "条件", width: "55", align: "center" }, { default: i((l3) => [u(f, { paramTypes: e2.paramTypes, title: "匹配条件/生效条件", row: l3.row, data: l3.row.matchingCondition, pageDesign: e2.pageDesign, tableConfigure: e2.configure, "onUpdate:data": C }, null, 8, ["paramTypes", "row", "data", "pageDesign", "tableConfigure"])]), _: 1 })) : r("", true), e2.showField ? (n(), o(w3, { key: 1, label: "字段", align: "center" }, { default: i((l3) => [u(b2, { modelValue: l3.row.field, "onUpdate:modelValue": (e3) => l3.row.field = e3, multiple: "", "allow-create": "", filterable: "", placeholder: "请选择" }, { default: i(() => [(n(true), d(p, null, s(e2.configure.items, (e3, l4) => (n(), o(y2, { key: e3.uuid, label: e3.props.base.name, value: e3.props.base.prop }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })) : r("", true), u(w3, { label: "自定义条件", align: "center" }, { default: i((e3) => [u(b2, { modelValue: e3.row.scopeFunc, "onUpdate:modelValue": (l3) => e3.row.scopeFunc = l3, clearable: "", title: e3.row.scopeFunc, size: "small", placeholder: "请选择" }, { default: i(() => [(n(true), d(p, null, s(c(m)(), (e4) => (n(), o(y2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), u(w3, { label: "样式", width: "55", align: "center" }, { default: i((e3) => [(n(), o(g, { key: e3.$index, data: e3.row, "onUpdate:data": (l3) => e3.row = l3 }, null, 8, ["data", "onUpdate:data"]))]), _: 1 }), u(w3, { label: "操作", align: "center" }, { header: i((e3) => [u(_, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: a2[0] || (a2[0] = (e4) => v(0, null)) }, { default: i(() => [u(k)]), _: 1 })]), default: i((e3) => [u(_, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => v(e3.row, e3.$index) }, { default: i(() => [u(k)]), _: 2 }, 1032, ["onClick"]), u(_, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
20
|
+
return e3.row, a3 = e3.$index, void h.value.splice(a3, 1);
|
|
21
|
+
var a3;
|
|
22
|
+
} }, { default: i(() => [u(V)]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
w as default
|
|
27
27
|
};
|