mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-16 12:08:12 +00:00
no message
This commit is contained in:
parent
fa1c917b97
commit
1c3de2e889
@ -375,7 +375,7 @@
|
||||
<div class="add-button">
|
||||
<i class="taskfont"></i>
|
||||
{{$L('添加')}}
|
||||
<em v-for="item in menuList">{{$L(item.name)}}</em>
|
||||
<em>{{menuText}}</em>
|
||||
</div>
|
||||
<EDropdownMenu slot="dropdown">
|
||||
<EDropdownItem v-for="(item, key) in menuList" :key="key" :command="item.command">
|
||||
@ -733,7 +733,7 @@ export default {
|
||||
|
||||
menuList() {
|
||||
const {taskDetail} = this;
|
||||
let list = [];
|
||||
const list = [];
|
||||
if (!taskDetail.p_name) {
|
||||
list.push({
|
||||
command: 'priority',
|
||||
@ -778,6 +778,20 @@ export default {
|
||||
}
|
||||
return list;
|
||||
},
|
||||
|
||||
menuText() {
|
||||
const {menuList} = this
|
||||
let text = ''
|
||||
if (menuList.length > 0) {
|
||||
menuList.forEach((item, index) => {
|
||||
if (index > 0) {
|
||||
text += " / "
|
||||
}
|
||||
text += this.$L(item.name)
|
||||
})
|
||||
}
|
||||
return text
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
|
||||
@ -445,6 +445,16 @@
|
||||
.add {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 10px;
|
||||
.el-dropdown {
|
||||
max-width: 100%;
|
||||
.add-button {
|
||||
> em {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.add-input {
|
||||
margin-top: 6px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user