mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
no message
This commit is contained in:
parent
7c4c7eea9c
commit
b58de926b2
@ -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;
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user