mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
perf: 优化移动端编辑任务详情
This commit is contained in:
parent
f3f65fa99e
commit
c589d5e0a5
@ -43,7 +43,7 @@
|
|||||||
transfer>
|
transfer>
|
||||||
<div :style="{userSelect:operateVisible ? 'none' : 'auto', height: operateStyles.height}"></div>
|
<div :style="{userSelect:operateVisible ? 'none' : 'auto', height: operateStyles.height}"></div>
|
||||||
<DropdownMenu slot="list">
|
<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="operateLink" @click.native="onLinkPreview">{{ $L('打开链接') }}</DropdownItem>
|
||||||
<DropdownItem v-if="operateImg" @click.native="onImagePreview">{{ $L('查看图片') }}</DropdownItem>
|
<DropdownItem v-if="operateImg" @click.native="onImagePreview">{{ $L('查看图片') }}</DropdownItem>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
@ -138,6 +138,10 @@
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
editTitle: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
@ -516,10 +520,10 @@
|
|||||||
this.editorT = null;
|
this.editorT = null;
|
||||||
//
|
//
|
||||||
if (this.windowTouch) {
|
if (this.windowTouch) {
|
||||||
this.$nextTick(() => {
|
setTimeout(() => {
|
||||||
this.updateTouchContent();
|
this.updateTouchContent();
|
||||||
this.$emit('on-blur');
|
this.$emit('on-blur');
|
||||||
});
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -142,6 +142,7 @@
|
|||||||
:plugins="taskPlugins"
|
:plugins="taskPlugins"
|
||||||
:options="taskOptions"
|
:options="taskOptions"
|
||||||
:option-full="taskOptionFull"
|
:option-full="taskOptionFull"
|
||||||
|
:edit-title="$L('编辑描述')"
|
||||||
:placeholder="$L('详细描述...')"
|
:placeholder="$L('详细描述...')"
|
||||||
scroll-hide-operate-class-name="task-modal"
|
scroll-hide-operate-class-name="task-modal"
|
||||||
@on-blur="updateBlur('content')"
|
@on-blur="updateBlur('content')"
|
||||||
@ -573,7 +574,7 @@ export default {
|
|||||||
menubar: 'file edit view',
|
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',
|
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]',
|
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,
|
dialogDrag: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user