mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix(图表): 修复表格分组设置界面未选择表头单元格状态下右键菜单无法点击
This commit is contained in:
@@ -192,6 +192,8 @@ const renderTable = (chart: ChartObj) => {
|
||||
}
|
||||
//只有一个cell,并且colIndex为-1,那就是组合的,显示取消分组按钮和重命名按钮
|
||||
if (activeColumns?.length === 1 && curCell.getMeta().colIndex === -1) {
|
||||
s2.interaction.clearState()
|
||||
s2.interaction.selectHeaderCell({ cell: curCell })
|
||||
const cancelBtn = document.createElement('span')
|
||||
groupMenuContainer.appendChild(cancelBtn)
|
||||
cancelBtn.innerText = t('chart.cancel_group')
|
||||
|
||||
@@ -16,7 +16,7 @@ import { storeToRefs } from 'pinia'
|
||||
import TableHeaderGroupConfig from './TableHeaderGroupConfig.vue'
|
||||
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
const { mobileInPc } = storeToRefs(dvMainStore)
|
||||
const { batchOptStatus, mobileInPc } = storeToRefs(dvMainStore)
|
||||
const { t } = useI18n()
|
||||
|
||||
const props = defineProps({
|
||||
@@ -79,6 +79,7 @@ const changeHeaderGroupConfig = (headerGroupConfig: ChartTableHeaderAttr['header
|
||||
|
||||
const enableGroupConfig = computed(() => {
|
||||
return (
|
||||
!batchOptStatus.value &&
|
||||
showProperty('headerGroup') &&
|
||||
state.tableHeaderForm.headerGroup &&
|
||||
state.tableHeaderForm.showTableHeader !== false
|
||||
@@ -742,7 +743,7 @@ onMounted(() => {
|
||||
</el-checkbox>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="showProperty('headerGroup')"
|
||||
v-if="!batchOptStatus && showProperty('headerGroup')"
|
||||
class="form-item"
|
||||
:class="'form-item-' + themes"
|
||||
:disabled="!state.tableHeaderForm.showTableHeader"
|
||||
|
||||
Reference in New Issue
Block a user