Update qr task style (#62)
Co-authored-by: Germey <germey@acedata.cloud>
This commit is contained in:
1 parent
eee08eb1c2
commit
ce6274a88b
4 files changed
+17
-3
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "update qrart task style",
|
||||
"packageName": "@acedatacloud/nexior",
|
||||
"email": "germey@acedata.cloud",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -73,7 +73,6 @@ export default defineComponent({
|
||||
width: 100%;
|
||||
height: calc(100% - 50px);
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.actions {
|
||||
height: 50px;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="panel recent tasks">
|
||||
<task-preview v-for="(task, taskIndex) in tasks?.items" :key="taskIndex" :model-value="task" class="preview" />
|
||||
<p v-if="tasks?.items?.length === 0">
|
||||
<p v-if="tasks?.items?.length === 0" class="description">
|
||||
{{ $t('qrart.message.noTasks') }}
|
||||
</p>
|
||||
</div>
|
||||
@@ -27,6 +27,9 @@ export default defineComponent({
|
||||
return this.$store.state.qrart?.status?.getApplication === Status.Request;
|
||||
},
|
||||
tasks() {
|
||||
return {
|
||||
items: []
|
||||
};
|
||||
// reverse the order of the tasks.items
|
||||
return {
|
||||
...this.$store.state.qrart?.tasks,
|
||||
@@ -86,6 +89,11 @@ export default defineComponent({
|
||||
.preview {
|
||||
margin-right: 15px;
|
||||
}
|
||||
.description {
|
||||
text-align: left;
|
||||
font-size: 14px;
|
||||
color: var(--el-text-color-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -316,7 +316,7 @@
|
||||
"description": "没有可用操作时的消息"
|
||||
},
|
||||
"message.noTasks": {
|
||||
"message": "没有任务,请创建新任务",
|
||||
"message": "没有历史任务,请点击下方生成新二维码",
|
||||
"description": "没有任务时的消息"
|
||||
},
|
||||
"markerShape.square": {
|
||||
|
||||
Reference in new issue
Block a user