|
|
@ -415,12 +415,13 @@ const testPage = (val:any) =>{ |
|
|
:class="config.className" |
|
|
:class="config.className" |
|
|
:label="getLabel(data.item as FormItem)" |
|
|
:label="getLabel(data.item as FormItem)" |
|
|
:rules="itemRules" |
|
|
:rules="itemRules" |
|
|
|
|
|
class="rlabel" |
|
|
> |
|
|
> |
|
|
<template #label v-if="config.help"> |
|
|
<template #label v-if="config.help"> |
|
|
<span :style="getFormItemLableStyle(configStyle)">{{ getLabel(data.item) }}</span> |
|
|
<span :style="getFormItemLableStyle(configStyle)">{{ getLabel(data.item) }}</span> |
|
|
<Tooltips :content="config.help" /> |
|
|
<Tooltips :content="config.help" /> |
|
|
</template> |
|
|
</template> |
|
|
<template #label v-else> |
|
|
<template #label v-else> |
|
|
<span :style="getFormItemLableStyle(configStyle)" >{{ getLabel(data.item) }}</span> |
|
|
<span :style="getFormItemLableStyle(configStyle)" >{{ getLabel(data.item) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
<!-- {{ data.type }} --> |
|
|
<!-- {{ data.type }} --> |
|
|
@ -474,5 +475,13 @@ const testPage = (val:any) =>{ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</template> |
|
|
</template> |
|
|
<style lang='scss' scoped> |
|
|
<style lang='scss' scoped> |
|
|
|
|
|
.rlabel{ |
|
|
|
|
|
label{ |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
:deep .el-form-item__label{ |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
max-width: 150px; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|