fix(测试计划): 修复评论组件内容清空可发布&修复测试计划用例小卡片对齐方式
This commit is contained in:
parent
10a7d2a382
commit
969e7716ab
|
@ -41,7 +41,6 @@
|
|||
:popup-visible="selectVisible"
|
||||
class="w-[240px]"
|
||||
:default-value="innerProject"
|
||||
allow-search
|
||||
:placeholder="t('common.pleaseSelect')"
|
||||
@popup-visible-change="changeProjectHandler"
|
||||
>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
></a-textarea>
|
||||
<div class="mt-4 flex flex-row justify-end gap-[12px]">
|
||||
<a-button @click="cancelClick">{{ t('common.cancel') }}</a-button>
|
||||
<a-button type="primary" :disabled="!currentContent" @click="publish">{{ t('common.publish') }}</a-button>
|
||||
<a-button type="primary" :disabled="isDisabled" @click="publish">{{ t('common.publish') }}</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -102,6 +102,11 @@
|
|||
window.removeEventListener('keydown', handleGlobalKeyDown);
|
||||
});
|
||||
|
||||
const isDisabled = computed(() => {
|
||||
// 此处如果富文本输入内容后就算手动清空,还是会触发文本行内容为<p style=""></p>
|
||||
return !currentContent.value || currentContent.value === '<p style=""></p>';
|
||||
});
|
||||
|
||||
defineExpose({
|
||||
isActive,
|
||||
});
|
||||
|
|
|
@ -1580,7 +1580,7 @@
|
|||
color: var(--color-text-4);
|
||||
}
|
||||
.popover-value-td {
|
||||
@apply font-medium;
|
||||
@apply text-right font-medium;
|
||||
|
||||
padding-top: 8px;
|
||||
color: var(--color-text-1);
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
color: var(--color-text-4);
|
||||
}
|
||||
.popover-value-td {
|
||||
@apply font-medium;
|
||||
@apply text-right font-medium;
|
||||
|
||||
padding-top: 8px;
|
||||
color: var(--color-text-1);
|
||||
|
|
|
@ -66,7 +66,7 @@ export default {
|
|||
'testPlan.testPlanIndex.TotalCases': 'Total use cases',
|
||||
'testPlan.testPlanIndex.functionalUseCase': 'case',
|
||||
'testPlan.testPlanIndex.apiCase': 'Api use case',
|
||||
'testPlan.testPlanIndex.apiScenarioCase': 'Api scenario use cases',
|
||||
'testPlan.testPlanIndex.apiScenarioCase': 'Scenario use cases',
|
||||
'testPlan.testPlanIndex.scheduledTask': 'stop and delete scheduled tasks, ',
|
||||
'testPlan.testPlanIndex.operateWithCaution': 'please operate with caution!',
|
||||
'testPlan.testPlanIndex.deleteArchivedPlan': 'After the program has been archived, delete data unrecoverable,',
|
||||
|
|
|
@ -64,7 +64,7 @@ export default {
|
|||
'testPlan.testPlanIndex.TotalCases': '用例总数',
|
||||
'testPlan.testPlanIndex.functionalUseCase': '功能用例',
|
||||
'testPlan.testPlanIndex.apiCase': '接口用例',
|
||||
'testPlan.testPlanIndex.apiScenarioCase': '接口场景用例',
|
||||
'testPlan.testPlanIndex.apiScenarioCase': '场景用例',
|
||||
'testPlan.testPlanIndex.scheduledTask': '定时任务停止并删除,',
|
||||
'testPlan.testPlanIndex.operateWithCaution': '请谨慎操作!',
|
||||
'testPlan.testPlanIndex.deleteArchivedPlan': '计划 已归档,删除后数据不可恢复,',
|
||||
|
|
Loading…
Reference in New Issue