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

View File

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