mooho-base-admin-plus 2.8.22 → 2.8.24

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,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.8.22",
4
+ "version": "2.8.24",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -17,7 +17,6 @@
17
17
  "axios": "^1.6.7",
18
18
  "ckeditor4-integrations-common": "^1.0.0",
19
19
  "date-fns": "^2.9.0",
20
- "default-passive-events": "^2.0.0",
21
20
  "echarts": "^5.3.2",
22
21
  "file-saver": "^2.0.2",
23
22
  "js-cookie": "^3.0.1",
@@ -3,7 +3,7 @@
3
3
  ref="modal"
4
4
  v-model="opened"
5
5
  scrollable
6
- :fullscreen="isFullscreen"
6
+ :fullscreen="isFullScreen"
7
7
  :mask-closable="maskClosable == null ? layout.maskClosable : maskClosable"
8
8
  :draggable="draggable == null ? layout.draggable : draggable"
9
9
  :sticky="true"
@@ -26,8 +26,8 @@
26
26
  </template>
27
27
  <template #close>
28
28
  <div @click.stop>
29
- <Icon v-if="!isFullscreen" style="font-size: 20px; color: #999; position: relative; top: -3px" type="ios-expand" @click="isFullscreen = !isFullscreen" />
30
- <Icon v-if="isFullscreen" style="font-size: 20px; color: #999; position: relative; top: -3px" type="ios-contract" @click="isFullscreen = !isFullscreen" />
29
+ <Icon v-if="!isFullScreen" style="font-size: 20px; color: #999; position: relative; top: -3px" type="ios-expand" @click="setFullScreen(true)" />
30
+ <Icon v-if="isFullScreen" style="font-size: 20px; color: #999; position: relative; top: -3px" type="ios-contract" @click="setFullScreen(false)" />
31
31
  <Icon type="ios-close" @click="clickClose()" />
32
32
  </div>
33
33
  </template>
@@ -157,7 +157,7 @@
157
157
  data() {
158
158
  return {
159
159
  opened: false,
160
- isFullscreen: false,
160
+ isFullScreen: false,
161
161
  tableView: {},
162
162
  param: {}
163
163
  };
@@ -616,6 +616,12 @@
616
616
  * 点击单元格时触发
617
617
  */
618
618
  this.$emit('on-cell-click', row, column, data, event);
619
+ },
620
+ setFullScreen(isFullScreen) {
621
+ console.log('setFullScreen', isFullScreen);
622
+ this.$refs.table.isMaxHight = isFullScreen;
623
+
624
+ this.isFullScreen = isFullScreen;
619
625
  }
620
626
  }
621
627
  };
@@ -161,6 +161,7 @@
161
161
  :placeholder="column.description"
162
162
  @on-change="onDataChange(rowData(row, index), column)"
163
163
  @on-blur="onBlur(rowData(row, index), column)"
164
+ @click.stop
164
165
  />
165
166
  </template>
166
167
  <template v-else-if="column.controlType === 'TextArea'">
@@ -174,6 +175,7 @@
174
175
  :rows="column.controlHeight / 20"
175
176
  :maxlength="column.maxLength"
176
177
  :placeholder="column.description"
178
+ @click.stop
177
179
  />
178
180
  </template>
179
181
  <template v-else-if="column.controlType === 'NumberInput'">
@@ -191,6 +193,7 @@
191
193
  :min="column.minValue"
192
194
  @on-change="onDataChange(rowData(row, index), column)"
193
195
  @on-blur="onBlur(rowData(row, index), column)"
196
+ @click.stop
194
197
  />
195
198
  </template>
196
199
  <template v-else-if="column.controlType === 'Select'">
@@ -204,6 +207,7 @@
204
207
  :placeholder="column.description"
205
208
  :transfer="true"
206
209
  @on-change="selected => onSelectDataChange(rowData(row, index), column, selected)"
210
+ @click.stop
207
211
  >
208
212
  <Option v-for="item in getDataSource(rowData(row, index), column)" :key="item.id" :value="item.id">{{ item.name }}</Option>
209
213
  </Select>
@@ -220,6 +224,7 @@
220
224
  :placeholder="column.description"
221
225
  :transfer="true"
222
226
  @on-change="selected => onSelectDataChange(rowData(row, index), column, selected)"
227
+ @click.stop
223
228
  >
224
229
  <Option v-for="item in getDataSource(rowData(row, index), column)" :key="item.id" :value="item.id">{{ item.name }}</Option>
225
230
  </Select>
@@ -274,6 +279,7 @@
274
279
  :param="getParam(rowData(row, index), column, parentData)"
275
280
  :controlWidth="column.controlWidth == null ? null : column.controlWidth - 8"
276
281
  @on-change="selected => onSelectDataChange(rowData(row, index), column, selected)"
282
+ @click.stop
277
283
  ></dialog-select>
278
284
  </template>
279
285
  <template v-else-if="column.controlType === 'MultiDialogSelect'">
@@ -289,6 +295,7 @@
289
295
  :param="getParam(rowData(row, index), column, parentData)"
290
296
  :controlWidth="column.controlWidth == null ? null : column.controlWidth - 8"
291
297
  @on-change="selected => onSelectDataChange(rowData(row, index), column, selected)"
298
+ @click.stop
292
299
  ></dialog-select>
293
300
  </template>
294
301
  <template v-else-if="column.controlType === 'SelectWithOther'">
@@ -312,6 +319,7 @@
312
319
  :placeholder="column.description"
313
320
  :transfer="true"
314
321
  @on-change="selected => onSelectDataChange(rowData(row, index), column, selected)"
322
+ @click.stop
315
323
  >
316
324
  <Option v-for="item in getDataSource(rowData(row, index), column)" :key="item.id" :value="item.id">{{ item.name }}</Option>
317
325
  <Option key="__Other" value="__Other">{{ !!(column.pattern || '').trim() ? column.pattern : $t('Front_Label_Others') }}</Option>
@@ -331,6 +339,7 @@
331
339
  :placeholder="column.description"
332
340
  @on-change="onDataChange(rowData(row, index), column)"
333
341
  @on-blur="onBlur(rowData(row, index), column)"
342
+ @click.stop
334
343
  />
335
344
  </div>
336
345
  </template>
@@ -349,6 +358,7 @@
349
358
  onDataChange(rowData(row, index), column);
350
359
  }
351
360
  "
361
+ @click.stop
352
362
  ></DatePicker>
353
363
  </template>
354
364
  <template v-else-if="column.controlType === 'DateRange'">
@@ -362,6 +372,7 @@
362
372
  :style="{ width: column.controlWidth == null ? null : column.controlWidth - 8 + 'px' }"
363
373
  :transfer="true"
364
374
  @on-change="onDataChange(rowData(row, index), column)"
375
+ @click.stop
365
376
  ></DatePicker>
366
377
  </template>
367
378
  <template v-else-if="column.controlType === 'Time'">
@@ -379,6 +390,7 @@
379
390
  onDataChange(rowData(row, index), column);
380
391
  }
381
392
  "
393
+ @click.stop
382
394
  ></TimePicker>
383
395
  </template>
384
396
  <template v-else-if="column.controlType === 'Check'">
@@ -387,6 +399,7 @@
387
399
  @update:model-value="$event => setData(rowData(row, index), column.code, $event)"
388
400
  :disabled="isReadonly(rowData(row, index), column)"
389
401
  @on-change="onDataChange(rowData(row, index), column)"
402
+ @click.stop
390
403
  />
391
404
  </template>
392
405
  <template v-else-if="column.controlType === 'Switch'">
@@ -395,6 +408,7 @@
395
408
  @update:model-value="$event => setData(rowData(row, index), column.code, $event)"
396
409
  :disabled="isReadonly(rowData(row, index), column)"
397
410
  @on-change="onDataChange(rowData(row, index), column)"
411
+ @click.stop
398
412
  />
399
413
  </template>
400
414
  <template v-else-if="column.controlType === 'Radio'">
@@ -402,6 +416,7 @@
402
416
  :model-value="parseData(rowData(row, index), column.code)"
403
417
  @update:model-value="$event => setData(rowData(row, index), column.code, $event)"
404
418
  @on-change="selected => onSelectDataChange(rowData(row, index), column, selected)"
419
+ @click.stop
405
420
  >
406
421
  <Radio v-for="item in getDataSource(rowData(row, index), column)" :key="item.id" :label="item.id" :disabled="isReadonly(rowData(row, index), column)">
407
422
  <span>{{ item.name }}</span>
@@ -413,6 +428,7 @@
413
428
  :model-value="parseArrayData(rowData(row, index), column.code)"
414
429
  @update:model-value="$event => setArrayData(rowData(row, index), column.code, $event)"
415
430
  @on-change="onDataChange(rowData(row, index), column)"
431
+ @click.stop
416
432
  >
417
433
  <Checkbox v-for="item in getDataSource(rowData(row, index), column)" :key="item.id" :label="item.id" :disabled="isReadonly(rowData(row, index), column)">
418
434
  <span>{{ item.name }}</span>
@@ -454,6 +470,7 @@
454
470
  :style="{ width: column.controlWidth == null ? null : column.controlWidth - 8 + 'px' }"
455
471
  :max="column.MaxValue"
456
472
  :min="column.MinValue"
473
+ @click.stop
457
474
  />
458
475
  <Slider
459
476
  v-if="!readonly && !column.isReadonly"
@@ -463,6 +480,7 @@
463
480
  :style="{ width: column.controlWidth == null ? null : column.controlWidth - 8 + 'px' }"
464
481
  :max="column.maxValue"
465
482
  :min="column.minValue"
483
+ @click.stop
466
484
  />
467
485
  <Input
468
486
  v-if="isReadonly(rowData(row, index), column)"
@@ -472,6 +490,7 @@
472
490
  :model-value="parseData(rowData(row, index), column.code)"
473
491
  :style="{ width: column.controlWidth == null ? '100px' : column.controlWidth + 'px' }"
474
492
  :placeholder="column.description"
493
+ @click.stop
475
494
  />
476
495
  </template>
477
496
  <template v-else-if="column.controlType === 'Placeholder'"></template>
@@ -720,6 +739,7 @@
720
739
  preview: false,
721
740
  imageUrl: null,
722
741
  isFullScreen: false,
742
+ isMaxHight: false,
723
743
  commandButtonParams: null
724
744
  };
725
745
  },
@@ -983,6 +1003,9 @@
983
1003
 
984
1004
  if (this.isFullScreen) {
985
1005
  return document.body.offsetHeight / zoom - 100 - this.$refs.filterCommand.offsetHeight / zoom;
1006
+ }
1007
+ if (this.isMaxHight) {
1008
+ return document.body.offsetHeight / zoom - 120 - this.$refs.filterCommand.offsetHeight / zoom;
986
1009
  } else {
987
1010
  return document.body.offsetHeight / zoom - 350;
988
1011
  }
package/src/index.js CHANGED
@@ -36,7 +36,7 @@ import router, { initRouter } from './router';
36
36
  import showFormat from './libs/showFormat';
37
37
 
38
38
  // 阻止Passive Event Listeners警告
39
- import 'default-passive-events';
39
+ //import 'default-passive-events';
40
40
 
41
41
  // API
42
42
  import modelApi from './api/model';