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/LICENSE +21 -21
- package/lib/three-trees-ui.common.js +225 -199
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +225 -199
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/CustomDialog/src/customDialog.vue +3 -0
- package/packages/Preview/src/FrameViewer.vue +4 -1
- package/packages/Preview/src/main.vue +5 -5
- package/packages/Table/src/Table.vue +3 -6
- package/src/mixins/onlineSubtable.js +3 -0
package/package.json
CHANGED
|
@@ -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-
|
|
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.$
|
|
868
|
-
|
|
869
|
-
|
|
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
|