three-trees-ui 1.0.54 → 1.0.56

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.54",
3
+ "version": "1.0.56",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -1094,6 +1094,9 @@
1094
1094
  this.$el,
1095
1095
  'data-index'
1096
1096
  )
1097
+ if (!thisIndex) {
1098
+ thisIndex = utils.getSubScopeElAndIndex(this.$parent.$el).index
1099
+ }
1097
1100
  parentIndex = utils.getSomeAttributeFromParentElement(
1098
1101
  this.$parent.$parent.$el,
1099
1102
  'data-index'
@@ -3,8 +3,8 @@
3
3
  <div class="frame-container__body">
4
4
  <loading v-if="loading" />
5
5
  <div
6
- class="frame-viewer__img"
7
6
  v-else-if="contentType.indexOf('image') > -1"
7
+ class="frame-viewer__img"
8
8
  >
9
9
  <img
10
10
  :src="dataSrc"
@@ -103,6 +103,9 @@
103
103
 
104
104
  console.log('createObjectURL(new Blob([data]))')
105
105
  }
106
+ if (this.mode === 'pdf') {
107
+ this.dataSrc += '#toolbar=0'
108
+ }
106
109
  })
107
110
  .catch((err) => {
108
111
  this.$emit('preview-error', err)
@@ -12,16 +12,16 @@
12
12
  <loading v-if="loading" />
13
13
  <fill-page v-if="errorMessage" type="2" :tip="errorMessage" />
14
14
  <!-- 预览pdf.word等文件格式 -->
15
- <pdf-viewer
15
+ <!-- <pdf-viewer
16
16
  v-else-if="mode == 'pdf'"
17
17
  :src="src"
18
18
  :headers="headerVal"
19
19
  :watermark="watermark"
20
20
  :watermark-options="watermarkOptions"
21
21
  @preview-error="handlePreviewErr"
22
- />
22
+ /> -->
23
23
  <frame-viewer
24
- v-else-if="mode == 'html' || mode == 'picture'"
24
+ v-if="mode == 'pdf' || mode == 'html' || mode == 'picture'"
25
25
  :src="src"
26
26
  :mode="mode"
27
27
  :headers="headerVal"
@@ -164,14 +164,14 @@
164
164
  }
165
165
  },
166
166
  computed: {
167
- headerVal: function () {
167
+ headerVal: function() {
168
168
  return this.headers
169
169
  ? this.headers
170
170
  : this.$requestConfig.header
171
171
  ? this.$requestConfig.header()
172
172
  : null
173
173
  },
174
- titleVal: function () {
174
+ titleVal: function() {
175
175
  return this.tempTitle ? this.tempTitle : this.title
176
176
  },
177
177
  },
@@ -862,13 +862,10 @@
862
862
  this.$refs.toolbarContainer.clientHeight) ||
863
863
  0
864
864
 
865
- // templatePreview 中 nopagination 为 true,且有自定义的分页控件 占用 65
866
865
  const paginationPanelHeight =
867
- this.$route.name === 'TemplatePreview' && this.nopagination
868
- ? 65
869
- : (this.$refs.paginationPanel &&
870
- this.$refs.paginationPanel.clientHeight) ||
871
- 0
866
+ (this.$refs.paginationPanel &&
867
+ this.$refs.paginationPanel.clientHeight) ||
868
+ 0
872
869
  // 下外边距
873
870
  const searchPanelBottom = searchPanelHeight > 0 ? 18 : 0
874
871
  const toolbarPanelBottom = toolbarPanelHeight > 0 ? 18 : 0
@@ -105,6 +105,9 @@ export default {
105
105
  if (newOne.id_) {
106
106
  delete newOne.id_
107
107
  }
108
+ if (newOne.id) {
109
+ delete newOne.id
110
+ }
108
111
  if (newOne.sub_row_readonly) {
109
112
  delete newOne.sub_row_readonly
110
113
  }