fix(接口场景): 修复拖拽样式异常的缺陷&删除冗余popover
--bug=1038282 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038282
This commit is contained in:
parent
abe1d9624d
commit
a9510c1f81
|
@ -53,29 +53,15 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
@change="() => handleFormChange(record, rowIndex, item)"
|
@change="() => handleFormChange(record, rowIndex, item)"
|
||||||
/>
|
/>
|
||||||
<a-popover
|
<MsTagsInput
|
||||||
v-else-if="item.inputType === 'tags'"
|
v-else-if="item.inputType === 'tags'"
|
||||||
position="tl"
|
v-model:model-value="record[item.dataIndex as string]"
|
||||||
:disabled="record[item.dataIndex as string].length === 0"
|
:max-tag-count="1"
|
||||||
class="ms-params-input-popover"
|
input-class="ms-form-table-input"
|
||||||
>
|
size="mini"
|
||||||
<template #content>
|
@change="() => handleFormChange(record, rowIndex, item)"
|
||||||
<div class="ms-form-table-popover-title">
|
@clear="() => handleFormChange(record, rowIndex, item)"
|
||||||
{{ 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>
|
|
||||||
<a-switch
|
<a-switch
|
||||||
v-else-if="item.inputType === 'switch'"
|
v-else-if="item.inputType === 'switch'"
|
||||||
v-model:model-value="record[item.dataIndex as string]"
|
v-model:model-value="record[item.dataIndex as string]"
|
||||||
|
@ -165,7 +151,6 @@
|
||||||
import type { MsTableColumnData } from '@/components/pure/ms-table/type';
|
import type { MsTableColumnData } from '@/components/pure/ms-table/type';
|
||||||
import useTable from '@/components/pure/ms-table/useTable';
|
import useTable from '@/components/pure/ms-table/useTable';
|
||||||
import MsTableMoreAction from '@/components/pure/ms-table-more-action/index.vue';
|
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 MsTagsInput from '@/components/pure/ms-tags-input/index.vue';
|
||||||
|
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
|
|
|
@ -170,4 +170,9 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped></style>
|
<style lang="less" scoped>
|
||||||
|
// arco-input-tag-mirror会导致表格拖拽问题,故需要加上relative
|
||||||
|
:deep(.arco-input-tag) {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -265,29 +265,15 @@
|
||||||
</template>
|
</template>
|
||||||
<!-- 标签 -->
|
<!-- 标签 -->
|
||||||
<template #tag="{ record, columnConfig, rowIndex }">
|
<template #tag="{ record, columnConfig, rowIndex }">
|
||||||
<a-popover
|
<MsTagsInput
|
||||||
position="tl"
|
v-model:model-value="record[columnConfig.dataIndex as string]"
|
||||||
:disabled="(record[columnConfig.dataIndex as string]||[]).length === 0"
|
:disabled="props.disabledExceptParam"
|
||||||
class="ms-params-input-popover"
|
:max-tag-count="2"
|
||||||
>
|
input-class="ms-form-table-input"
|
||||||
<template #content>
|
size="mini"
|
||||||
<div class="param-popover-title">
|
@change="() => addTableLine(rowIndex)"
|
||||||
{{ t('common.tag') }}
|
@clear="() => addTableLine(rowIndex)"
|
||||||
</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>
|
|
||||||
</template>
|
</template>
|
||||||
<!-- 描述 -->
|
<!-- 描述 -->
|
||||||
<template #description="{ record, columnConfig, rowIndex }">
|
<template #description="{ record, columnConfig, rowIndex }">
|
||||||
|
|
Loading…
Reference in New Issue