super-page-runtime 2.1.62 → 2.1.64

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.
@@ -0,0 +1 @@
1
+ export declare const $t: (key: string, ...args: any[]) => any;
@@ -4,6 +4,7 @@ import "agilebuilder-ui/src/utils/request";
4
4
  import eventBus from "./eventBus.js";
5
5
  import { getPermissionCodes } from "./page-init-util.js";
6
6
  import { getEventFuncByType } from "./events/event-util.js";
7
+ import { $t } from "./i18n-util.js";
7
8
  function popupToPage(params) {
8
9
  const pageCode = params.pageContext && params.pageContext.code;
9
10
  console.log("弹框显示页面--popupToPage====params=", params);
@@ -39,7 +40,7 @@ function getOperationButtons(pageContext, configure, operations, clickEventFunc)
39
40
  myButtonProps.permission = functionCodes;
40
41
  }
41
42
  }
42
- myButtonProps.label = myButtonProps.title;
43
+ myButtonProps.label = $t(myButtonProps.title);
43
44
  myButtonProps.sourceButton = { uuid: buttonConfigure.uuid };
44
45
  myButtonSet["props"] = myButtonProps;
45
46
  if (clickEventFunc !== void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.62",
3
+ "version": "2.1.64",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",