+
{{ item.file.name.slice(0, item.file.name.indexOf('.')) }}
@@ -226,6 +230,7 @@
showUploadTypeDesc?: boolean; // 自定义上传类型关联于&上传于
initFileSaveTips?: string; // 上传初始文件时的提示
buttonInTitle?: boolean; // 按钮是否在标题中
+ fileNameMaxWidth?: string; // 文件名称最大宽度
}>(),
{
mode: 'remote',
diff --git a/frontend/src/views/bug-management/edit.vue b/frontend/src/views/bug-management/edit.vue
index a651b809cc..efb93649db 100644
--- a/frontend/src/views/bug-management/edit.vue
+++ b/frontend/src/views/bug-management/edit.vue
@@ -60,6 +60,7 @@
:init-file-save-tips="t('ms.upload.waiting_save')"
mode="static"
:show-delete="false"
+ :file-name-max-width="props.fileNameMaxWidth"
>
@@ -267,6 +268,7 @@
bugId?: string; // 缺陷id,不传递为创建
isDrawer?: boolean; // 是否是弹窗模式
caseType?: CaseLinkEnum; // 用例类型
+ fileNameMaxWidth?: string; // 文件名称最大宽度
fillConfig?: {
isQuickFillContent: boolean; // 是否快速填充内容
detailId: string; // 快填详情id
diff --git a/frontend/src/views/case-management/components/addDefectDrawer/index.vue b/frontend/src/views/case-management/components/addDefectDrawer/index.vue
index 6585e2b253..3183501696 100644
--- a/frontend/src/views/case-management/components/addDefectDrawer/index.vue
+++ b/frontend/src/views/case-management/components/addDefectDrawer/index.vue
@@ -5,7 +5,7 @@
:title="bugId ? t('bugManagement.editBug') : t('caseManagement.featureCase.createDefect')"
:ok-text="t('common.create')"
:ok-loading="drawerLoading"
- :width="850"
+ :width="900"
:mask-closable="true"
unmount-on-close
:show-continue="true"
@@ -37,6 +37,7 @@
:bug-id="bugId"
:case-type="props.caseType"
:fill-config="props.fillConfig"
+ file-name-max-width="200px"
@save-params="saveParams"
/>