Skip to content

Commit

Permalink
fix: 文字展示内容过长hover补全--bug=131500439 (#3552)
Browse files Browse the repository at this point in the history
* fix: 批量导入按钮置灰问题

* fix: 展示内容过长hover补全
  • Loading branch information
Yuikill authored Oct 9, 2024
1 parent 2294879 commit 317f6e0
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
:class="['config-diff-item', { selected: props.selectedId === diffItem.id }]"
:key="diffItem.id">
<div :class="['diff-header', diffItem.diffType]">
<span class="config-name">{{ diffItem.name }}</span>
<bk-overflow-title class="config-name" type="tips">
{{ diffItem.name }}
</bk-overflow-title>
</div>
<div class="diff-content">
<div class="left-version-content">
Expand Down Expand Up @@ -154,6 +156,7 @@
line-height: 20px;
font-size: 12px;
color: #63656e;
max-width: 48%;
}
}
.diff-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
<div
class="search-wrap"
:data-placeholder="inputPlacehoder"
v-bk-tooltips="{ content: inputPlacehoder, disabled: locale === 'zh-cn' || !inputPlacehoder }"
v-bk-tooltips="{
content: inputPlacehoder,
disabled: (locale === 'zh-cn' && !isClientSearch) || !inputPlacehoder,
}"
@click="handleClickSearch">
<bk-date-picker
ref="datePickerRef"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
<slot name="currentHead">
<div class="diff-panel-head">
<div class="version-tag">{{ showPublishBtn ? t('待上线版本') : t('当前版本') }}</div>
<div class="version-name">{{ props.currentVersion.spec.name }}</div>
<bk-overflow-title class="version-name" type="tips">
{{ props.currentVersion.spec.name }}
</bk-overflow-title>
</div>
</slot>
</template>
Expand Down Expand Up @@ -270,6 +272,9 @@
background: #edf4ff;
}
}
.version-name {
max-width: 300px;
}
}
.actions-btns {
padding: 0 24px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
const isDecompression = ref(true);
const isOpenFileList = ref(true);
const fileList = ref<IUploadFileList[]>([]);
const multipleUploading = ref(false); // 是否是多个文件上传
const uploadTips = computed(() => {
if (isDecompression.value) {
Expand All @@ -108,7 +107,7 @@
watch(
() => fileList.value,
() => {
if (fileList.value.some((fileItem) => fileItem.status === 'uploading') || multipleUploading.value) {
if (fileList.value.some((fileItem) => fileItem.status === 'uploading')) {
emits('uploading', true);
} else {
emits('uploading', false);
Expand Down Expand Up @@ -234,7 +233,6 @@
};
const handleExceed = async (files: any) => {
multipleUploading.value = true;
let index = 0;
const uploadNext = async () => {
if (index < files.length) {
Expand All @@ -249,7 +247,6 @@
uploadPromises.push(uploadNext());
}
await Promise.allSettled(uploadPromises);
multipleUploading.value = false;
};
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
<template #prepend v-if="versionData.id === 0">
<render-table-tip />
</template>
<bk-table-column v-if="versionData.id === 0" :width="74" :min-width="74" :label="renderSelection">
<bk-table-column
v-if="versionData.id === 0"
:width="74"
:min-width="74"
:label="renderSelection"
:show-overflow-tooltip="false">
<template #default="{ row }">
<across-check-box
:checked="isChecked(row)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
:class="['version-item', { active: versionData.id === version.id }]"
@click="handleSelectVersion(version)">
<div :class="['dot', version.status.publish_status]"></div>
<div class="version-name">{{ version.spec.name }}</div>
<bk-overflow-title class="version-name" type="tips">
{{ version.spec.name }}
</bk-overflow-title>
<div
v-if="version.status.fully_released"
:class="['all-tag', { 'full-release': version.status.fully_release }]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
:row-class="getRowCls"
:remote-pagination="true"
:pagination="pagination"
show-overflow-tooltip
@page-limit-change="handlePageLimitChange"
@page-value-change="handlePageChange($event)">
<template #prepend>
Expand All @@ -36,18 +35,14 @@
<across-check-box :checked="isChecked(row)" :handle-change="() => handleSelectionChange(row)" />
</template>
</bk-table-column>
<bk-table-column :label="t('配置文件名')">
<bk-table-column :label="t('配置文件名')" :show-overflow-tooltip="true">
<template #default="{ row }">
<bk-overflow-title
v-if="row.spec"
type="tips"
class="config-name"
@click="handleViewConfig(row)">
<span v-if="row.spec" class="config-name" @click="handleViewConfig(row)">
{{ fileAP(row) }}
</bk-overflow-title>
</span>
</template>
</bk-table-column>
<bk-table-column :label="t('配置文件描述')" prop="spec.memo">
<bk-table-column :label="t('配置文件描述')" prop="spec.memo" :show-overflow-tooltip="true">
<template #default="{ row }">
<span v-if="row.spec">{{ row.spec.memo || '--' }}</span>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
</slot>
</div>
<div class="text">
<span class="name">{{ props.pkg.name }}</span>
<bk-overflow-title class="name" type="tips">
{{ props.pkg.name }}
</bk-overflow-title>
<span class="num">{{ props.pkg.count }}</span>
</div>
<bk-popover
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</template>
</bk-table-column>
<!-- <bk-table-column type="selection" :width="60"></bk-table-column> -->
<bk-table-column :label="t('变量名称')" width="300">
<bk-table-column :label="t('变量名称')" width="300" min-width="300">
<template #default="{ row }">
<div v-if="row.spec" class="var-name-wrapper">
<bk-overflow-title class="name-text" type="tips" :key="row.id" @click="handleEditVar(row)">
Expand Down

0 comments on commit 317f6e0

Please sign in to comment.