@fecp/designer 5.3.11 → 5.3.13
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/es/designer.css +267 -267
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/packages/designer/src/components/ValueSelector.vue.mjs +190 -0
- package/es/packages/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +4 -3
- package/es/packages/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/packages/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +2 -2
- package/es/packages/designer/src/packages/form/index.vue.mjs +2 -13
- package/es/packages/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/packages/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/packages/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +1 -1
- package/es/packages/designer/src/packages/table/property/customBtn.vue.mjs +10 -0
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +11 -2
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +4 -3
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +41 -9
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +2 -2
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +29 -3
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +21 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +13 -7
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +0 -1
- package/es/packages/vue/src/utils/parseRouteParams.mjs +1 -1
- package/lib/designer.css +267 -267
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/packages/designer/src/components/ValueSelector.vue.js +190 -0
- package/lib/packages/designer/src/layout/aside/HiddenFieldDialog.vue.js +4 -3
- package/lib/packages/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/packages/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +2 -2
- package/lib/packages/designer/src/packages/form/index.vue.js +1 -12
- package/lib/packages/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/packages/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/packages/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +1 -1
- package/lib/packages/designer/src/packages/table/property/customBtn.vue.js +10 -0
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +11 -2
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +4 -3
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +41 -9
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +2 -2
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +29 -3
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +21 -2
- package/lib/packages/vue/src/components/table/Table.vue.js +13 -7
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +0 -1
- package/lib/packages/vue/src/utils/parseRouteParams.js +1 -1
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ const index$c = require("../forms/multipleSelection/index.js");
|
|
|
25
25
|
const index$e = require("../forms/date/index.js");
|
|
26
26
|
const index$d = require("../forms/number/index.js");
|
|
27
27
|
const common = require("../../utils/common.js");
|
|
28
|
+
const parseFilterConfig = require("../../utils/parseFilterConfig.js");
|
|
28
29
|
;/* empty css */
|
|
29
30
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
30
31
|
const index = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/icon/index.js");
|
|
@@ -81,6 +82,10 @@ const _sfc_main = {
|
|
|
81
82
|
readOnly: {
|
|
82
83
|
type: Boolean,
|
|
83
84
|
default: false
|
|
85
|
+
},
|
|
86
|
+
hiddenFormData: {
|
|
87
|
+
type: Object,
|
|
88
|
+
default: {}
|
|
84
89
|
}
|
|
85
90
|
},
|
|
86
91
|
emits: ["click", "search"],
|
|
@@ -101,9 +106,23 @@ const _sfc_main = {
|
|
|
101
106
|
activeTab.value = ((_b = (_a = dynamicConfig.value) == null ? void 0 : _a.tabConfigs) == null ? void 0 : _b.length) > 0 ? (_c = dynamicConfig.value) == null ? void 0 : _c.tabActive : "";
|
|
102
107
|
return ((_d = dynamicConfig.value) == null ? void 0 : _d.tabConfigs) || [];
|
|
103
108
|
});
|
|
109
|
+
const fieldsData = vue.computed(() => {
|
|
110
|
+
var _a, _b;
|
|
111
|
+
return [
|
|
112
|
+
...((_a = props.localConfig) == null ? void 0 : _a.fieldsData) || [],
|
|
113
|
+
...((_b = props.localConfig) == null ? void 0 : _b.hiddenFields) || []
|
|
114
|
+
];
|
|
115
|
+
});
|
|
104
116
|
const rightButtons = vue.computed(() => {
|
|
105
117
|
var _a;
|
|
106
|
-
return ((_a = props.localConfig) == null ? void 0 : _a.customBtns.right) || []
|
|
118
|
+
return (((_a = props.localConfig) == null ? void 0 : _a.customBtns.right) || []).filter((item) => {
|
|
119
|
+
if (!item.showCondition) return true;
|
|
120
|
+
return parseFilterConfig.checkFilterMatch(
|
|
121
|
+
item.showCondition,
|
|
122
|
+
props.hiddenFormData,
|
|
123
|
+
fieldsData.value
|
|
124
|
+
);
|
|
125
|
+
});
|
|
107
126
|
});
|
|
108
127
|
const getBtnIcon = (btnType) => {
|
|
109
128
|
const iconMap = {
|
|
@@ -433,5 +452,5 @@ const _sfc_main = {
|
|
|
433
452
|
};
|
|
434
453
|
}
|
|
435
454
|
};
|
|
436
|
-
const DynamicQuery = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
455
|
+
const DynamicQuery = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-bb55debf"]]);
|
|
437
456
|
exports.default = DynamicQuery;
|
|
@@ -50,6 +50,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
50
50
|
type: String,
|
|
51
51
|
default: ""
|
|
52
52
|
},
|
|
53
|
+
titleMode: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ""
|
|
56
|
+
},
|
|
53
57
|
// 表格数据
|
|
54
58
|
tableData: {
|
|
55
59
|
type: Array,
|
|
@@ -570,19 +574,21 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
570
574
|
"custom-btns": localConfig.value.customBtns,
|
|
571
575
|
localConfig: localConfig.value,
|
|
572
576
|
readonly: __props.readonly,
|
|
573
|
-
isSubTable: __props.
|
|
574
|
-
onClick: handleCustomBtnClick
|
|
575
|
-
|
|
577
|
+
isSubTable: __props.titleMode == "label",
|
|
578
|
+
onClick: handleCustomBtnClick,
|
|
579
|
+
hiddenFormData: hiddenFormData.value
|
|
580
|
+
}, null, 8, ["custom-btns", "localConfig", "readonly", "isSubTable", "hiddenFormData"])
|
|
576
581
|
], 64)) : vue.createCommentVNode("", true),
|
|
577
582
|
localConfig.value.queryConfig.mode == "dynamic" ? (vue.openBlock(), vue.createBlock(DynamicQuery.default, {
|
|
578
583
|
key: 1,
|
|
579
584
|
readonly: __props.readonly,
|
|
580
|
-
isSubTable: __props.
|
|
585
|
+
isSubTable: __props.titleMode == "label",
|
|
581
586
|
localConfig: localConfig.value,
|
|
582
587
|
"fields-data": fieldsData.value,
|
|
583
588
|
onSearch: handleFilterSearch,
|
|
584
|
-
onClick: handleCustomBtnClick
|
|
585
|
-
|
|
589
|
+
onClick: handleCustomBtnClick,
|
|
590
|
+
hiddenFormData: hiddenFormData.value
|
|
591
|
+
}, null, 8, ["readonly", "isSubTable", "localConfig", "fields-data", "hiddenFormData"])) : vue.createCommentVNode("", true),
|
|
586
592
|
vue.createElementVNode("div", _hoisted_1, [
|
|
587
593
|
vue.createVNode(vue.unref(index$1.VxeTable), {
|
|
588
594
|
ref_key: "tableRef",
|
|
@@ -647,5 +653,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
647
653
|
};
|
|
648
654
|
}
|
|
649
655
|
});
|
|
650
|
-
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
656
|
+
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fa5e2171"]]);
|
|
651
657
|
exports.default = _Table;
|
|
@@ -539,7 +539,6 @@ async function handleDialog(node, data, fields, context) {
|
|
|
539
539
|
const dialogList = context.localConfig.dialogs || [];
|
|
540
540
|
dialog = dialogList.find((item) => item.id == (basic == null ? void 0 : basic.dialogId));
|
|
541
541
|
dialog.subFormMode = basic.subFormMode;
|
|
542
|
-
dialog.selectionMode = basic.selectionMode;
|
|
543
542
|
}
|
|
544
543
|
if (!dialog) {
|
|
545
544
|
console.error("ui-dialog: 未找到匹配的弹层配置," + (basic == null ? void 0 : basic.dialogId));
|
|
@@ -10,7 +10,7 @@ function parseSingleParamValue(value, data, fields) {
|
|
|
10
10
|
}
|
|
11
11
|
const type = value.type;
|
|
12
12
|
if (type === "field") {
|
|
13
|
-
const field = fields.find((f) => f.id
|
|
13
|
+
const field = fields.find((f) => f.id == value.value);
|
|
14
14
|
if (field) {
|
|
15
15
|
return data[field.fieldName];
|
|
16
16
|
}
|