|
|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<section @click.alt.stop="showPopover=(sample==true?false:!showPopover)" :class="{'form-field':true,'select':showPopover}"> |
|
|
|
|
|
|
|
|
<section @click.alt.stop="showPopover=(sample==true?false:!showPopover)" :class="{'form-field':true,'select':showPopover}" :style="parseFieldStyleObj()"> |
|
|
<el-row v-if="field.extType=='row'" :gutter="gutter"> |
|
|
<el-row v-if="field.extType=='row'" :gutter="gutter"> |
|
|
<template v-if="sample==true"> |
|
|
<template v-if="sample==true"> |
|
|
<el-col @click.ctrl.native.stop="doChildDelete(child,idx,field.children)" v-for="child,idx in field.children" :key="idx" :span="calcSpan(child,field)"> |
|
|
<el-col @click.ctrl.native.stop="doChildDelete(child,idx,field.children)" v-for="child,idx in field.children" :key="idx" :span="calcSpan(child,field)"> |
|
|
@ -318,6 +318,13 @@ |
|
|
}, |
|
|
}, |
|
|
onBkeyChange(field){ |
|
|
onBkeyChange(field){ |
|
|
this.$emit('bkey-change',field) |
|
|
this.$emit('bkey-change',field) |
|
|
|
|
|
}, |
|
|
|
|
|
parseFieldStyleObj(){ |
|
|
|
|
|
if(this.field.styleObj && this.field.styleObj.indexOf("{")>=0 && this.field.styleObj.indexOf("}")>0){ |
|
|
|
|
|
return JSON.parse(this.field.styleObj) |
|
|
|
|
|
}else{ |
|
|
|
|
|
return {} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
},//end method |
|
|
},//end method |
|
|
|