mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
perf: 优化移动端编辑任务详情
This commit is contained in:
parent
f3f65fa99e
commit
c589d5e0a5
@ -43,7 +43,7 @@
|
||||
transfer>
|
||||
<div :style="{userSelect:operateVisible ? 'none' : 'auto', height: operateStyles.height}"></div>
|
||||
<DropdownMenu slot="list">
|
||||
<DropdownItem @click.native="onFull">{{ $L('编辑') }}</DropdownItem>
|
||||
<DropdownItem @click.native="onFull">{{ editTitle || $L('编辑') }}</DropdownItem>
|
||||
<DropdownItem v-if="operateLink" @click.native="onLinkPreview">{{ $L('打开链接') }}</DropdownItem>
|
||||
<DropdownItem v-if="operateImg" @click.native="onImagePreview">{{ $L('查看图片') }}</DropdownItem>
|
||||
</DropdownMenu>
|
||||
@ -138,6 +138,10 @@
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
editTitle: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: ''
|
||||
@ -516,10 +520,10 @@
|
||||
this.editorT = null;
|
||||
//
|
||||
if (this.windowTouch) {
|
||||
this.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
this.updateTouchContent();
|
||||
this.$emit('on-blur');
|
||||
});
|
||||
}, 100);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -142,6 +142,7 @@
|
||||
:plugins="taskPlugins"
|
||||
:options="taskOptions"
|
||||
:option-full="taskOptionFull"
|
||||
:edit-title="$L('编辑描述')"
|
||||
:placeholder="$L('详细描述...')"
|
||||
scroll-hide-operate-class-name="task-modal"
|
||||
@on-blur="updateBlur('content')"
|
||||
@ -573,7 +574,7 @@ export default {
|
||||
menubar: 'file edit view',
|
||||
valid_elements : 'a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code',
|
||||
extended_valid_elements : 'a[href|title|target=_blank]',
|
||||
toolbar: 'uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload'
|
||||
toolbar: 'uploadImages | bold italic underline | forecolor backcolor'
|
||||
},
|
||||
|
||||
dialogDrag: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user