imatrix-ui 2.7.37 → 2.7.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imatrix-ui",
3
- "version": "2.7.37",
3
+ "version": "2.7.38",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -86,13 +86,19 @@ export function openPage(pageSetting) {
86
86
  const popPageSetting = openPageParams
87
87
  const path = popPageSetting._path
88
88
  if (jumpMode === 'popup') {
89
- let jumpPageWidth = 400
90
- let jumpPageHeight = 400
89
+ let jumpPageWidth
90
+ let jumpPageHeight
91
+
91
92
  if (openPageParams.jumpPageWidth) {
92
93
  jumpPageWidth = openPageParams.jumpPageWidth
94
+ } else {
95
+ jumpPageWidth = window.innerWidth - 150
93
96
  }
97
+
94
98
  if (openPageParams.jumpPageHeight) {
95
99
  jumpPageHeight = openPageParams.jumpPageHeight
100
+ } else {
101
+ jumpPageHeight = window.innerHeight - 150
96
102
  }
97
103
  // 弹出页面
98
104
  window.open(path, '', `height=` + jumpPageHeight + `,width=` + jumpPageWidth + `,top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no`)
@@ -248,8 +254,20 @@ function jumpToPageWithFullPath(dataId, path, additionalParameterStr, jumpPage,
248
254
  }
249
255
  if (jumpMode === 'popup') {
250
256
  // 弹框
251
- const jumpPageWidth = jumpPage.jumpPageWidth
252
- const jumpPageHeight = jumpPage.jumpPageHeight
257
+ let jumpPageWidth
258
+ let jumpPageHeight
259
+
260
+ if (jumpPage.jumpPageWidth) {
261
+ jumpPageWidth = jumpPage.jumpPageWidth
262
+ } else {
263
+ jumpPageWidth = window.innerWidth - 150
264
+ }
265
+
266
+ if (jumpPage.jumpPageHeight) {
267
+ jumpPageHeight = jumpPage.jumpPageHeight
268
+ } else {
269
+ jumpPageHeight = window.innerHeight - 150
270
+ }
253
271
  const features = 'height=' + jumpPageHeight + ', width=' + jumpPageWidth + ', top=0, left=0, toolbar=no, menubar=no,' +
254
272
  'scrollbars=no,resizable=no, location=no, status=no' // 设置新窗口的特性
255
273
  window.open(path, 'newW', features) // 打开新窗口