no message

This commit is contained in:
kuaifan 2024-06-01 17:24:07 +08:00
parent 7c4c7eea9c
commit b58de926b2
2 changed files with 10 additions and 2 deletions

View File

@ -141,6 +141,10 @@ export default {
readOnlyFull: { readOnlyFull: {
default: null default: null
}, },
readOnlyImagePreview: {
type: Boolean,
default: true
},
autoSize: { autoSize: {
type: Boolean, type: Boolean,
default: false default: false
@ -326,7 +330,7 @@ export default {
} }
}, { }, {
type: 'menuitem', type: 'menuitem',
text: this.$L('浏览已上传图片'), text: this.$L('浏览图片空间'),
onAction: () => { onAction: () => {
this.$refs.myUpload.browsePicture(); this.$refs.myUpload.browsePicture();
} }
@ -346,7 +350,7 @@ export default {
} }
}, { }, {
type: 'menuitem', type: 'menuitem',
text: this.$L('浏览已上传图片'), text: this.$L('浏览图片空间'),
onAction: () => { onAction: () => {
this.$refs.myUpload.browsePicture(); this.$refs.myUpload.browsePicture();
} }
@ -615,6 +619,9 @@ export default {
}, },
addClickEvent({target}, isFull) { addClickEvent({target}, isFull) {
if (!this.readOnlyImagePreview) {
return;
}
target.getBody().addEventListener('click', (e) => { target.getBody().addEventListener('click', (e) => {
if (isFull) { if (isFull) {
const readOnly = this.readOnlyFull === null ? this.readOnly : this.readOnlyFull; const readOnly = this.readOnlyFull === null ? this.readOnly : this.readOnlyFull;

View File

@ -10,6 +10,7 @@
:placeholderFull="placeholderFull" :placeholderFull="placeholderFull"
:readOnly="windowTouch" :readOnly="windowTouch"
:readOnlyFull="false" :readOnlyFull="false"
:readOnlyImagePreview="false"
@on-blur="onBlur" @on-blur="onBlur"
@on-editor-init="onEditorInit" @on-editor-init="onEditorInit"
@on-transfer-change="onTransferChange" @on-transfer-change="onTransferChange"