zydx-plus 1.32.230 → 1.32.232
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
|
@@ -360,7 +360,7 @@ export default {
|
|
|
360
360
|
readOnlyPage() { // 只读分页
|
|
361
361
|
this.htmlArr = []
|
|
362
362
|
const data = document.querySelectorAll('.editing-cont')[0].childNodes[0].childNodes
|
|
363
|
-
this.wit = document.getElementsByClassName('editor-content')[0].offsetWidth
|
|
363
|
+
this.wit = document.getElementsByClassName('editor-content')[0].offsetWidth + 20
|
|
364
364
|
if(this.wit > 900) this.wit = 900
|
|
365
365
|
let max = this.wit * 1.4 - 200
|
|
366
366
|
let pHeight = 0
|
|
@@ -823,6 +823,7 @@ export default {
|
|
|
823
823
|
</script>
|
|
824
824
|
|
|
825
825
|
<style scoped>
|
|
826
|
+
|
|
826
827
|
:deep(.ProseMirror-separator) {
|
|
827
828
|
display: none !important;
|
|
828
829
|
}
|
|
@@ -852,8 +853,10 @@ export default {
|
|
|
852
853
|
background-color: #fff;
|
|
853
854
|
box-sizing: border-box;
|
|
854
855
|
position: relative;
|
|
855
|
-
border:
|
|
856
|
-
|
|
856
|
+
border-bottom: 10px solid #e5e5e5;
|
|
857
|
+
}
|
|
858
|
+
.read-only-page:last-child{
|
|
859
|
+
border-bottom: 0;
|
|
857
860
|
}
|
|
858
861
|
|
|
859
862
|
.read-only-p {
|
|
@@ -865,6 +868,9 @@ export default {
|
|
|
865
868
|
line-height: 24px;
|
|
866
869
|
text-align: justify;
|
|
867
870
|
}
|
|
871
|
+
:deep(.text){
|
|
872
|
+
text-indent: 2em;
|
|
873
|
+
}
|
|
868
874
|
|
|
869
875
|
.read-only-a {
|
|
870
876
|
position: absolute;
|
|
@@ -957,7 +963,11 @@ label {
|
|
|
957
963
|
font-size: 12px;
|
|
958
964
|
font-weight: 400;
|
|
959
965
|
}
|
|
960
|
-
|
|
966
|
+
.read-only-down{
|
|
967
|
+
background-color: #e5e5e5;
|
|
968
|
+
height: 10px;
|
|
969
|
+
width: 100%;
|
|
970
|
+
}
|
|
961
971
|
:deep(.ProseMirror) p.is-editor-empty:first-child::before {
|
|
962
972
|
content: attr(data-placeholder);
|
|
963
973
|
float: left;
|
|
@@ -1050,7 +1060,6 @@ li {
|
|
|
1050
1060
|
|
|
1051
1061
|
.editor-content {
|
|
1052
1062
|
margin: 10px;
|
|
1053
|
-
border: 1px solid rgba(204, 204, 204, 1);
|
|
1054
1063
|
max-height: 900px;
|
|
1055
1064
|
overflow: auto;
|
|
1056
1065
|
}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
<div class="tip-title" v-html="title"></div>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="tip-boxContent">
|
|
10
|
-
<div class="tap-p">
|
|
11
|
-
<div class="tip-title2" v-if="type === 'text'"
|
|
12
|
-
:style="{'text-align': (
|
|
10
|
+
<div class="tap-p" ref="tapP">
|
|
11
|
+
<div class="tip-title2" ref="tipTitle" v-if="type === 'text'"
|
|
12
|
+
:style="{'text-align': (middles)? 'center': 'left', 'text-indent': indent? '2em': '0' }" v-html="promptContent"></div>
|
|
13
13
|
<div class="tip-img" v-if="type === 'img'">
|
|
14
14
|
<img :src="url" alt=""/>
|
|
15
15
|
</div>
|
|
@@ -101,7 +101,9 @@ export default {
|
|
|
101
101
|
return {
|
|
102
102
|
tip: false,
|
|
103
103
|
tipYear: false,
|
|
104
|
-
fileName: ''
|
|
104
|
+
fileName: '',
|
|
105
|
+
middles: this.middle,
|
|
106
|
+
indent: false
|
|
105
107
|
}
|
|
106
108
|
},
|
|
107
109
|
props: {
|
|
@@ -170,6 +172,16 @@ export default {
|
|
|
170
172
|
}
|
|
171
173
|
}
|
|
172
174
|
},
|
|
175
|
+
mounted() {
|
|
176
|
+
this.$nextTick(() => {
|
|
177
|
+
if(this.type === 'text') {
|
|
178
|
+
if(this.$refs.tapP.offsetHeight > 25) {
|
|
179
|
+
this.middles = false
|
|
180
|
+
this.indent = true
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
})
|
|
184
|
+
},
|
|
173
185
|
methods: {
|
|
174
186
|
checkboxTao(index) {
|
|
175
187
|
this.checkboxArr[index].checked = !this.checkboxArr[index].checked
|