This commit is contained in:
xielue 2023-11-16 17:54:18 +08:00
parent 003d6b2298
commit f5a0002177
2 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,15 @@
<template>
<div>
<div v-if="showType == 'divider'">
<a-divider orientation="left">{{ header }}</a-divider>
</div>
<div v-else>
<textarea v-if="isTextarea" readonly class="readonlytext readonlytext-textarea" :value="valueShow" style="height: 60px;"></textarea>
<input v-else readonly autocomplete="off" class="readonlytext" type="text" :value="valueShow" />
</div>
</div>
</template>
@ -19,6 +27,8 @@ export default {
value: {
type: [String,Number,Object]
},
showType:String,
header:String,
params: Object,
},
data () {

View File

@ -476,7 +476,7 @@ export default {
let groupName = item.category.name;
if(groupName && !groupNames.filter(a=>a == groupName).length){
this.options.formOptions2.items.push({ title: groupName, span: 24, itemRender: { type:"MkFormInputShow" },titleColon:false });
this.options.formOptions2.items.push({ span: 24, itemRender: { name:"MkFormInputShow" ,props:{ showType:"divider",header:groupName } },showTitle:false });
groupNames.push(groupName);
}