@fecp/designer 5.3.12 → 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.
@@ -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-cc8f1fb6"]]);
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.isSubTable,
574
- onClick: handleCustomBtnClick
575
- }, null, 8, ["custom-btns", "localConfig", "readonly", "isSubTable"])
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.isSubTable,
585
+ isSubTable: __props.titleMode == "label",
581
586
  localConfig: localConfig.value,
582
587
  "fields-data": fieldsData.value,
583
588
  onSearch: handleFilterSearch,
584
- onClick: handleCustomBtnClick
585
- }, null, 8, ["readonly", "isSubTable", "localConfig", "fields-data"])) : vue.createCommentVNode("", true),
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-be17662c"]]);
656
+ const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fa5e2171"]]);
651
657
  exports.default = _Table;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.3.12",
3
+ "version": "5.3.13",
4
4
  "main": "lib/packages/designer/index.js",
5
5
  "module": "es/packages/designer/index.mjs",
6
6
  "files": [