mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 14:31:00 +08:00
fix(仪表板、数据大屏): 修复双击仪表板配置标题可进入编辑问题
This commit is contained in:
committed by
xuwei-fit2cloud
parent
08e0939dfd
commit
181677978b
@@ -104,17 +104,19 @@ const closeEditComponentName = () => {
|
||||
}
|
||||
|
||||
const editComponentName = () => {
|
||||
componentNameEdit.value = true
|
||||
if (isViewTitle.value) {
|
||||
inputComponentName.value.name = view.value.title
|
||||
inputComponentName.value.id = view.value.id
|
||||
} else {
|
||||
inputComponentName.value.name = element.value.name
|
||||
inputComponentName.value.id = element.value.id
|
||||
if (element.value?.id || view.value?.id) {
|
||||
componentNameEdit.value = true
|
||||
if (isViewTitle.value) {
|
||||
inputComponentName.value.name = view.value.title
|
||||
inputComponentName.value.id = view.value.id
|
||||
} else {
|
||||
inputComponentName.value.name = element.value.name
|
||||
inputComponentName.value.id = element.value.id
|
||||
}
|
||||
nextTick(() => {
|
||||
componentNameInputAttr.value.focus()
|
||||
})
|
||||
}
|
||||
nextTick(() => {
|
||||
componentNameInputAttr.value.focus()
|
||||
})
|
||||
}
|
||||
|
||||
const onComponentNameChange = () => {
|
||||
|
||||
@@ -344,6 +344,7 @@ onUnmounted(() => {
|
||||
:title="t('visualization.dashboard_configuration')"
|
||||
:width="420"
|
||||
aside-position="right"
|
||||
side-name="canvas"
|
||||
class="left-sidebar"
|
||||
>
|
||||
<DbCanvasAttr></DbCanvasAttr>
|
||||
|
||||
Reference in New Issue
Block a user