forked from github/dataease
refactor(数据大屏): 优化大屏组件修改名称时样式与大屏不匹配问题
This commit is contained in:
parent
8e0510db50
commit
32aa6c1c56
@ -1512,9 +1512,13 @@ const drop = (ev: MouseEvent, type = 'xAxis') => {
|
||||
</div>
|
||||
<div v-if="!canvasCollapse.chartAreaCollapse" style="width: 240px" class="view-panel-row">
|
||||
<el-row class="editor-title">
|
||||
<span class="name-area" @dblclick="editComponentName" id="component-name">{{
|
||||
view.title
|
||||
}}</span>
|
||||
<span
|
||||
class="name-area"
|
||||
:class="{ 'component-name-dark': themes === 'dark' }"
|
||||
@dblclick="editComponentName"
|
||||
id="component-name"
|
||||
>{{ view.title }}</span
|
||||
>
|
||||
</el-row>
|
||||
|
||||
<el-row style="height: calc(100vh - 110px); overflow-y: auto">
|
||||
@ -2890,6 +2894,7 @@ const drop = (ev: MouseEvent, type = 'xAxis') => {
|
||||
<XpackComponent ref="openHandler" jsname="L2NvbXBvbmVudC9lbWJlZGRlZC1pZnJhbWUvT3BlbkhhbmRsZXI=" />
|
||||
<Teleport v-if="componentNameEdit" :to="'#component-name'">
|
||||
<input
|
||||
:effect="themes"
|
||||
width="100%"
|
||||
@change="onComponentNameChange"
|
||||
ref="componentNameInput"
|
||||
@ -4020,4 +4025,19 @@ span {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.component-name-dark {
|
||||
input {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
color: @dv-canvas-main-font-color;
|
||||
background-color: #050e21;
|
||||
outline: none;
|
||||
border: 1px solid #295acc;
|
||||
border-radius: 4px;
|
||||
padding: 0 4px;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user