Commit e213bb29 authored by zhengke's avatar zhengke

撤销 图层 左侧文字修改

parent 459fe125
......@@ -10,14 +10,12 @@
>{{item.label}}</div>
</div>
<template v-if="mode==1">
<Divider />
<div class="row items-center">
<div class="col">图层名称:</div>
<el-input style="width:60%;" v-model="layerName" @input="updateLayerName"></el-input>
</div>
<el-input v-if="layerName&&(layerName=='title'||layerName=='dinner'||layerName=='hotel')" type="textarea" autosize style="width:100%;" v-model="contentStr" @input="updateContentStr"></el-input>
</template>
<Divider v-if="mode==1" />
<div v-if="mode==1" class="row items-center">
<div class="col">图层名称:</div>
<el-input style="width:60%;" v-model="layerName" @input="updateLayerName"></el-input>
</div>
<ElementDataMapping v-if="mode==0||mode==2"></ElementDataMapping>
......@@ -525,7 +523,7 @@ const orderedListPanelVisible = ref(false)
const indentLeftPanelVisible = ref(false)
const indentRightPanelVisible = ref(false)
const layerName = ref(handleElement.value?.layerName??'')
const contentStr = ref(handleElement.value?.contentStr??'')
const bulletListStyleTypeOption = ref(['disc', 'circle', 'square'])
const orderedListStyleTypeOption = ref(['decimal', 'lower-roman', 'upper-roman', 'lower-alpha', 'upper-alpha', 'lower-greek'])
......@@ -683,9 +681,7 @@ const updateLink = (link?: string) => {
const updateLayerName = (e:any)=>{
updateElement({ layerName: e })
}
const updateContentStr = (e:any)=>{
updateElement({ contentStr: e,content: e })
}
const initMapping = ()=>{
if(handleElement.value && !handleElement.value.dataMapping && 'TemplateDataSource' in handleElement.value && handleElement.value.TemplateDataSource){
if(handleElement.value.TemplateDataSource.index!=null && handleElement.value.TemplateDataSource.Content){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment