fix(接口场景): 修复拖拽样式异常的缺陷&删除冗余popover

--bug=1038282 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038282
This commit is contained in:
teukkk 2024-04-08 17:58:40 +08:00 committed by 刘瑞斌
parent abe1d9624d
commit a9510c1f81
3 changed files with 23 additions and 47 deletions

View File

@ -53,29 +53,15 @@
size="mini"
@change="() => handleFormChange(record, rowIndex, item)"
/>
<a-popover
<MsTagsInput
v-else-if="item.inputType === 'tags'"
position="tl"
:disabled="record[item.dataIndex as string].length === 0"
class="ms-params-input-popover"
>
<template #content>
<div class="ms-form-table-popover-title">
{{ t('common.tag') }}
</div>
<div class="ms-form-table-popover-value">
<MsTagsGroup is-string-tag :tag-list="record[item.dataIndex as string]" />
</div>
</template>
<MsTagsInput
v-model:model-value="record[item.dataIndex as string]"
:max-tag-count="1"
input-class="ms-form-table-input"
size="mini"
@change="() => handleFormChange(record, rowIndex, item)"
@clear="() => handleFormChange(record, rowIndex, item)"
/>
</a-popover>
v-model:model-value="record[item.dataIndex as string]"
:max-tag-count="1"
input-class="ms-form-table-input"
size="mini"
@change="() => handleFormChange(record, rowIndex, item)"
@clear="() => handleFormChange(record, rowIndex, item)"
/>
<a-switch
v-else-if="item.inputType === 'switch'"
v-model:model-value="record[item.dataIndex as string]"
@ -165,7 +151,6 @@
import type { MsTableColumnData } from '@/components/pure/ms-table/type';
import useTable from '@/components/pure/ms-table/useTable';
import MsTableMoreAction from '@/components/pure/ms-table-more-action/index.vue';
import MsTagsGroup from '@/components/pure/ms-tag/ms-tag-group.vue';
import MsTagsInput from '@/components/pure/ms-tags-input/index.vue';
import { useI18n } from '@/hooks/useI18n';

View File

@ -170,4 +170,9 @@
}
</script>
<style lang="less" scoped></style>
<style lang="less" scoped>
// arco-input-tag-mirrorrelative
:deep(.arco-input-tag) {
position: relative;
}
</style>

View File

@ -265,29 +265,15 @@
</template>
<!-- 标签 -->
<template #tag="{ record, columnConfig, rowIndex }">
<a-popover
position="tl"
:disabled="(record[columnConfig.dataIndex as string]||[]).length === 0"
class="ms-params-input-popover"
>
<template #content>
<div class="param-popover-title">
{{ t('common.tag') }}
</div>
<div class="param-popover-value">
<MsTagsGroup is-string-tag :tag-list="record[columnConfig.dataIndex as string]" />
</div>
</template>
<MsTagsInput
v-model:model-value="record[columnConfig.dataIndex as string]"
:disabled="props.disabledExceptParam"
:max-tag-count="2"
input-class="ms-form-table-input"
size="mini"
@change="() => addTableLine(rowIndex)"
@clear="() => addTableLine(rowIndex)"
/>
</a-popover>
<MsTagsInput
v-model:model-value="record[columnConfig.dataIndex as string]"
:disabled="props.disabledExceptParam"
:max-tag-count="2"
input-class="ms-form-table-input"
size="mini"
@change="() => addTableLine(rowIndex)"
@clear="() => addTableLine(rowIndex)"
/>
</template>
<!-- 描述 -->
<template #description="{ record, columnConfig, rowIndex }">