three-trees-ui 1.0.94 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-trees-ui",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -33,9 +33,7 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "element-resize-detector": "^1.2.3",
36
- "v-viewer": "^1.7.4",
37
- "vee-validate": "2.1.7",
38
- "viewerjs": "^1.11.7"
36
+ "vee-validate": "2.1.7"
39
37
  },
40
38
  "peerDependencies": {
41
39
  "axios": "^0.21.1",
@@ -11,7 +11,7 @@
11
11
  class="hontent-custom-dialog"
12
12
  @opened="afterOpen"
13
13
  >
14
- <el-container :style="style" style="overflow: auto">
14
+ <el-scrollbar class="hotent-custom-scrollbar">
15
15
  <!-- 组合对话框树 -->
16
16
  <el-aside
17
17
  v-if="customDialog.style == 2"
@@ -318,6 +318,7 @@
318
318
  :prop="field.field"
319
319
  :label="field.comment"
320
320
  :width="field.width || ''"
321
+ show-overflow-tooltip
321
322
  ></el-table-column>
322
323
  </el-table>
323
324
  </el-main>
@@ -426,7 +427,7 @@
426
427
  </div>
427
428
  </el-card>
428
429
  </div>
429
- </el-container>
430
+ </el-scrollbar>
430
431
  <span slot="footer" class="dialog-footer" style="text-align: center">
431
432
  <el-button size="small" type="primary" @click="dialogConfirm">
432
433
  确认
@@ -2435,7 +2436,7 @@
2435
2436
  @media (max-width: 1280px) {
2436
2437
  .el-dialog {
2437
2438
  width: 96% !important;
2438
- margin-top: 2vh !important;
2439
+ margin: auto !important;
2439
2440
  }
2440
2441
  }
2441
2442
  .el-dialog__wrapper {
@@ -2447,8 +2448,9 @@
2447
2448
  }
2448
2449
 
2449
2450
  .el-dialog {
2450
- height: 90%;
2451
+ max-height: 90%;
2451
2452
  min-height: 400px;
2453
+ margin: auto !important;
2452
2454
  }
2453
2455
  .el-dialog__body .el-container {
2454
2456
  height: 100% !important;
@@ -2673,6 +2675,17 @@
2673
2675
 
2674
2676
  <style lang="scss">
2675
2677
  .hontent-custom-dialog {
2678
+ display: flex;
2679
+ align-items: center;
2680
+ justify-content: center;
2681
+ .el-dialog__body {
2682
+ overflow: hidden;
2683
+ }
2684
+ .hotent-custom-scrollbar {
2685
+ height: 100%;
2686
+ display: flex;
2687
+ }
2688
+
2676
2689
  #container {
2677
2690
  display: flex; /*中间弹性盒布局*/
2678
2691
  flex-wrap: nowrap; /*排列不下时不换行*/
@@ -2710,7 +2723,7 @@
2710
2723
  font-size: 16px;
2711
2724
  }
2712
2725
  .el-dialog__footer {
2713
- padding: 20px 24px 0px;
2726
+ padding: 20px;
2714
2727
  }
2715
2728
  }
2716
2729
  </style>
@@ -4,13 +4,13 @@
4
4
  <loading v-if="loading" />
5
5
  <div
6
6
  v-else-if="contentType.indexOf('image') > -1"
7
- v-viewer="{ movable: false }"
8
7
  class="frame-viewer__img"
9
8
  >
10
- <img
9
+ <el-image
10
+ style="width: 100px; height: 100px"
11
11
  :src="dataSrc"
12
- :style="{ height: utils.isMobile() ? 'auto' : '100%' }"
13
- />
12
+ :preview-src-list="[dataSrc]"
13
+ ></el-image>
14
14
  </div>
15
15
  <iframe
16
16
  v-else
@@ -31,8 +31,6 @@
31
31
  import watermark from './watermark'
32
32
  import { createObjectURL } from '../../../src/util/brower.js'
33
33
  import utils from '../../../src/utils.js'
34
- import 'viewerjs/dist/viewer.css'
35
- import { directive as viewer } from 'v-viewer'
36
34
 
37
35
  export default {
38
36
  name: 'FrameViewer',
@@ -74,6 +72,7 @@
74
72
  loading: false,
75
73
  contentType: '',
76
74
  utils,
75
+ srcList: [],
77
76
  }
78
77
  },
79
78
  mounted() {