mirror of
https://github.com/dataease/dataease.git
synced 2026-06-11 15:27:02 +08:00
fix(图表): 修复图表预览界面双击可以修改标题
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user