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