fix(图表): 修复图表预览界面双击可以修改标题

This commit is contained in:
wisonic-s
2026-05-27 17:31:15 +08:00
committed by wisonic-s
parent 01725ddf28
commit 13ca50f8ea
2 changed files with 8 additions and 1 deletions

View File

@@ -559,6 +559,8 @@ onMounted(() => {
"
:min="0"
:max="100"
:step="1"
:precision="0"
@change="changeTableCell('tableColumnFreezeHead')"
/>
</el-form-item>
@@ -580,6 +582,8 @@ onMounted(() => {
"
:min="0"
:max="100"
:step="1"
:precision="0"
@change="changeTableCell('tableRowFreezeHead')"
/>
</el-form-item>

View File

@@ -938,8 +938,11 @@ const chartAreaShow = computed(() => {
const titleInputRef = ref()
const titleEditStatus = ref(false)
const titleEditable = computed(() => {
return ['canvas', 'canvasDataV'].includes(showPosition.value) && !props.disabled
})
function changeEditTitle() {
if (!props.active || mobileInPc.value) {
if (!titleEditable.value || !props.active || mobileInPc.value) {
return
}
if (!titleEditStatus.value) {