three-trees-ui 1.0.35 → 1.0.37

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.35",
3
+ "version": "1.0.37",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -22,6 +22,7 @@
22
22
  :filterable="filterable"
23
23
  :filter-method="filterMethod"
24
24
  @clear="clear"
25
+ @visible-change="handleVisibleChange"
25
26
  >
26
27
  <el-option v-if="selectlist && selectlist.length > 0" :value="inputVal">
27
28
  <el-scrollbar style="height:100%">
@@ -119,6 +120,11 @@
119
120
  this.loadOptions()
120
121
  },
121
122
  methods: {
123
+ handleVisibleChange(val) {
124
+ if (val && !this.valueDesc) {
125
+ this.loadOptions()
126
+ }
127
+ },
122
128
  loadOptions() {
123
129
  if (this.dickey) {
124
130
  this.$requestConfig.getDictionaryByKey(this.dickey).then((resp) => {
@@ -6,7 +6,10 @@
6
6
  class="frame-viewer__img"
7
7
  v-else-if="contentType.indexOf('image') > -1"
8
8
  >
9
- <img :src="dataSrc" />
9
+ <img
10
+ :src="dataSrc"
11
+ :style="{ height: utils.isMobile() ? 'auto' : '100%' }"
12
+ />
10
13
  </div>
11
14
  <iframe
12
15
  v-else
@@ -26,6 +29,7 @@
26
29
  import Loading from './Loading.vue'
27
30
  import watermark from './watermark'
28
31
  import { createObjectURL } from '../../../src/util/brower.js'
32
+ import utils from '../../../src/utils.js'
29
33
 
30
34
  export default {
31
35
  name: 'FrameViewer',
@@ -61,6 +65,7 @@
61
65
  dataSrc: null,
62
66
  loading: false,
63
67
  contentType: '',
68
+ utils,
64
69
  }
65
70
  },
66
71
  mounted() {
@@ -158,7 +163,6 @@
158
163
  border: 0;
159
164
  img {
160
165
  max-width: 100%;
161
- height: auto;
162
166
  }
163
167
  }
164
168
  .frame-viewer__img {