This commit is contained in:
parent
003d6b2298
commit
f5a0002177
|
|
@ -1,7 +1,15 @@
|
|||
<template>
|
||||
<div>
|
||||
<textarea v-if="isTextarea" readonly class="readonlytext readonlytext-textarea" :value="valueShow" style="height: 60px;"></textarea>
|
||||
<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 () {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue