fix: 修改bug

This commit is contained in:
100011797 2023-07-07 18:29:47 +08:00
parent 9eacdb2687
commit 2e50b866f0
4 changed files with 16 additions and 10 deletions

View File

@ -3,20 +3,25 @@
<div class="tag-box" ref="box">
<div v-for="(item, i) in value" :key="item.id" ref="tags">
<div v-if="i != _index" class="tag">
{{ item.name }}
{{ item?.name }}
</div>
<div
v-else
class="tag-ellipsis"
:style="
i === _index
? {
width: `${offWidth}px`,
}
? (offWidth
? {
width: `${offWidth}px`,
}
: {
background: 'none',
color: 'white',
})
: {}
"
>
{{ item.name }}
{{ offWidth ? item?.name : '...' }}
</div>
</div>
</div>
@ -45,7 +50,7 @@ const onResize = ({ width }: { width: number }) => {
const val = item?.offsetWidth - (total - width);
if (total >= width) {
_index.value = i;
offWidth.value = val;
offWidth.value = val > 40 ? val : 0;
break;
}
}

View File

@ -193,6 +193,7 @@ onUnmounted(() => {
justify-content: space-between;
align-items: center;
height: 100%;
gap: 12px;
.person-header-item-info {
display: flex;
width: calc(100% - 380px);

View File

@ -20,8 +20,8 @@ const AliyunVoice = () => {
<div> 使</div>
<h2>2</h2>
<div> </div>
<h2> 3ID</h2>
<div> ID标识</div>
<h2> 3ID/ID</h2>
<div> /ID标识</div>
<h2> 4</h2>
<div> </div>
<div>使</div>

View File

@ -430,7 +430,7 @@
>
<template #label>
<span>
模板ID
{{ formData.template.templateType === 'voice' ? '语音ID' : '模板ID' }}
<j-tooltip
title="阿里云内部分配的唯一ID标识"
>
@ -953,7 +953,7 @@ const formRules = {
}
],
calledShowNumbers: [
{ required: true, message: '请输入被叫显号' },
// { required: true, message: '' },
{ max: 64, message: '最多可输入64个字符' },
{
validator(_rule: Rule, value: string) {