[update JTable] 按钮显示错误

This commit is contained in:
danshihao
2024-09-25 17:41:19 +08:00
parent 8b1822a661
commit 13c36cbd91
+2 -2
View File
@@ -69,9 +69,9 @@
<!-- 没有特殊判断直接渲染operationList -->
<!-- 需要更多按钮的情况 -->
<template v-if="getLineOperationList(record).length > operateMaxNum + 1">
<template v-for="(operation, index) in operSpecialJudge(record).slice(0, operateMaxNum)">
<template v-for="(operation, index) in getLineOperationList(record).slice(0, operateMaxNum)">
<a :key="index" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''" @click="operationClick(operation,record)">{{ operation.text }}</a>
<a-divider v-if="index + 1 < operSpecialJudge(record).slice(0, operateMaxNum).length" type="vertical" />
<a-divider v-if="index + 1 < getLineOperationList(record).slice(0, operateMaxNum).length" type="vertical" />
</template>
<template v-if="getLineOperationList(record).length > operateMaxNum">
<a-divider type="vertical" />