Commit a782ea72 authored by zhengke's avatar zhengke

图层 左侧修改文字

parent 417ae17d
...@@ -10,12 +10,14 @@ ...@@ -10,12 +10,14 @@
>{{item.label}}</div> >{{item.label}}</div>
</div> </div>
<Divider v-if="mode==1" /> <template v-if="mode==1">
<div v-if="mode==1" class="row items-center"> <Divider />
<div class="col">图层名称:</div> <div class="row items-center">
<el-input style="width:60%;" v-model="layerName" @input="updateLayerName"></el-input> <div class="col">图层名称:</div>
</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>
<ElementDataMapping v-if="mode==0||mode==2"></ElementDataMapping> <ElementDataMapping v-if="mode==0||mode==2"></ElementDataMapping>
...@@ -523,7 +525,7 @@ const orderedListPanelVisible = ref(false) ...@@ -523,7 +525,7 @@ const orderedListPanelVisible = ref(false)
const indentLeftPanelVisible = ref(false) const indentLeftPanelVisible = ref(false)
const indentRightPanelVisible = ref(false) const indentRightPanelVisible = ref(false)
const layerName = ref(handleElement.value?.layerName??'') const layerName = ref(handleElement.value?.layerName??'')
const contentStr = ref(handleElement.value?.contentStr??'')
const bulletListStyleTypeOption = ref(['disc', 'circle', 'square']) const bulletListStyleTypeOption = ref(['disc', 'circle', 'square'])
const orderedListStyleTypeOption = ref(['decimal', 'lower-roman', 'upper-roman', 'lower-alpha', 'upper-alpha', 'lower-greek']) const orderedListStyleTypeOption = ref(['decimal', 'lower-roman', 'upper-roman', 'lower-alpha', 'upper-alpha', 'lower-greek'])
...@@ -681,7 +683,9 @@ const updateLink = (link?: string) => { ...@@ -681,7 +683,9 @@ const updateLink = (link?: string) => {
const updateLayerName = (e:any)=>{ const updateLayerName = (e:any)=>{
updateElement({ layerName: e }) updateElement({ layerName: e })
} }
const updateContentStr = (e:any)=>{
updateElement({ contentStr: e,content: e })
}
const initMapping = ()=>{ const initMapping = ()=>{
if(handleElement.value && !handleElement.value.dataMapping && 'TemplateDataSource' in handleElement.value && handleElement.value.TemplateDataSource){ if(handleElement.value && !handleElement.value.dataMapping && 'TemplateDataSource' in handleElement.value && handleElement.value.TemplateDataSource){
if(handleElement.value.TemplateDataSource.index!=null && handleElement.value.TemplateDataSource.Content){ 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