zydx-plus 1.33.422 → 1.33.424
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
|
@@ -90,7 +90,7 @@ export default defineComponent({
|
|
|
90
90
|
let style = {color:this.active_state[idx] ? this.activeColor:disabled?'#717171': '#000000'}
|
|
91
91
|
let btn = h(
|
|
92
92
|
<button
|
|
93
|
-
class={this.active_state[idx] ? 'z-button z-active theme-text' : 'z-button'}
|
|
93
|
+
class={this.active_state[idx] ? 'z-button z-active theme-text' : disabled ? 'z-button disabled' : 'z-button'}
|
|
94
94
|
data-id={data_id}
|
|
95
95
|
onClick={() => { onClick(); ignore ? () => null : trackClick(idx) }
|
|
96
96
|
}
|
|
@@ -908,7 +908,10 @@ export default {
|
|
|
908
908
|
Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
|
|
909
909
|
},
|
|
910
910
|
customInsert(res, insertFn) {
|
|
911
|
-
|
|
911
|
+
setTimeout(() => {
|
|
912
|
+
console.log('uploadImage100');
|
|
913
|
+
insertFn('http://192.168.5.213:8888' + res.data)
|
|
914
|
+
},100)
|
|
912
915
|
},
|
|
913
916
|
onSuccess(file, res) {
|
|
914
917
|
console.log('图片上传成功', file, res)
|
|
@@ -2529,13 +2532,16 @@ export default {
|
|
|
2529
2532
|
}
|
|
2530
2533
|
if (v === 'uploadImage') {
|
|
2531
2534
|
up.customInsert(res, (data) => {
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2535
|
+
setTimeout(() => {
|
|
2536
|
+
console.log('uploadImage100');
|
|
2537
|
+
const cla = this.randomId()
|
|
2538
|
+
const html = `<p class="imgCont ${cla}"><img src="${data}" alt="" /></p>`
|
|
2539
|
+
this.editor.chain().focus().insertContentAt(this.selection(), html).run()
|
|
2540
|
+
if (this.selection() <= 6 && this.selection() > 2) this.selectionClass2(cla)
|
|
2541
|
+
if (this.selectionClass(cla)) {
|
|
2542
|
+
this.editor.chain().focus().insertContentAt(this.selection(), '<p></p>').run()
|
|
2543
|
+
}
|
|
2544
|
+
},100)
|
|
2539
2545
|
})
|
|
2540
2546
|
}
|
|
2541
2547
|
up.onSuccess(file, res) // 上传成功回调
|
|
@@ -692,7 +692,8 @@ export default {
|
|
|
692
692
|
})
|
|
693
693
|
},
|
|
694
694
|
upload(e, v) { // 上传文件
|
|
695
|
-
|
|
695
|
+
console.log('ssdfasf');
|
|
696
|
+
const file = e.target.files[0]
|
|
696
697
|
if (this.uploadType) {
|
|
697
698
|
if (v === 'uploadAtt') {
|
|
698
699
|
file.active = true
|
|
@@ -724,14 +725,17 @@ export default {
|
|
|
724
725
|
e.target.value = ''
|
|
725
726
|
},
|
|
726
727
|
imgHtml(data) { // 插入图片
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
this.
|
|
734
|
-
|
|
728
|
+
setTimeout(() => {
|
|
729
|
+
console.log('uploadImage100');
|
|
730
|
+
const url = this.uploadImage.url + data
|
|
731
|
+
const cla = this.randomId()
|
|
732
|
+
const html = `<p class="imgCont ${cla}"><img src="${url}" alt="" width=""/></p>`
|
|
733
|
+
this.editor.chain().focus().insertContentAt(this.selection(), html).run()
|
|
734
|
+
if (this.selection() <= 6 && this.selection() > 2) this.selectionClass2(cla)
|
|
735
|
+
if (this.selectionClass(cla)) {
|
|
736
|
+
this.editor.chain().focus().insertContentAt(this.selection(), '<p></p>').run()
|
|
737
|
+
}
|
|
738
|
+
}, 100)
|
|
735
739
|
},
|
|
736
740
|
// selectImg(cla) {
|
|
737
741
|
// this.$nextTick(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="list-tree">
|
|
3
3
|
<div class="list-cont" v-if="list.length > 0">
|
|
4
|
-
<div class="list-li"
|
|
4
|
+
<div :class="{'list-li':true, 'theme-text': active === index}"
|
|
5
5
|
:style="{'border-bottom': (link)? '1px solid #ccc': '0', 'color': (active === index)? activeColor : '#333'}"
|
|
6
6
|
@click="listTap(item,index)" v-for="(item,index) in list" :key="index">
|
|
7
7
|
<div class="list-title">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
(angleBrackets) ? '》' : ''
|
|
12
12
|
}}</span> -->
|
|
13
13
|
<span :style="{'font-size': column[0].fontSize + 'px', 'font-weight': column[0].fontWeight}" v-html="(index + 1) + '.' + (angleBrackets ? '《' : '') + item[column[0].label] + (angleBrackets ? '》' : '')"></span>
|
|
14
|
-
<button v-if="delShow" @click="del(item)"
|
|
14
|
+
<button v-if="delShow" @click="del(item)" v-html="delText"></button>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="list-cont" v-if="open">
|
|
17
17
|
<div class="list-li-cont">
|
|
@@ -117,7 +117,8 @@ export default {
|
|
|
117
117
|
white-space: nowrap;
|
|
118
118
|
text-overflow: ellipsis;
|
|
119
119
|
height: 30px;
|
|
120
|
-
font-size:
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
font-weight: bold;
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
.list-title > button {
|