@fecp/designer 5.5.95 → 5.5.96

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.
@@ -1,4 +1,4 @@
1
- const version = "5.5.95";
1
+ const version = "5.5.96";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -238,6 +238,15 @@ async function handleConfirm(node, data, fields, context) {
238
238
  }
239
239
  }
240
240
  async function handleMessage(node, data, fields, context) {
241
+ var _a;
242
+ const metadata = context.metadata || {};
243
+ const isApproval = ((_a = metadata == null ? void 0 : metadata.item) == null ? void 0 : _a.isApproval) || false;
244
+ if (isApproval) {
245
+ return {
246
+ success: true,
247
+ message: "审批按钮的消息不显示"
248
+ };
249
+ }
241
250
  if (node.basic) {
242
251
  const messageType = node.basic.messageType || "info";
243
252
  const message = node.basic.message || "操作成功";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.95";
3
+ const version = "5.5.96";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -240,6 +240,15 @@ async function handleConfirm(node, data, fields, context) {
240
240
  }
241
241
  }
242
242
  async function handleMessage(node, data, fields, context) {
243
+ var _a;
244
+ const metadata = context.metadata || {};
245
+ const isApproval = ((_a = metadata == null ? void 0 : metadata.item) == null ? void 0 : _a.isApproval) || false;
246
+ if (isApproval) {
247
+ return {
248
+ success: true,
249
+ message: "审批按钮的消息不显示"
250
+ };
251
+ }
243
252
  if (node.basic) {
244
253
  const messageType = node.basic.messageType || "info";
245
254
  const message = node.basic.message || "操作成功";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.5.95",
3
+ "version": "5.5.96",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [