perf: 优化 form label 位置

This commit is contained in:
ibuler
2022-03-17 20:29:58 +08:00
committed by 老广
parent b3752ba867
commit cc513c96f5

View File

@@ -1,7 +1,7 @@
<template>
<ElFormRender
ref="form"
:class="mobile? 'mobile' : ''"
:class="mobile? 'mobile' : 'desktop'"
:content="fields"
:form="basicForm"
:label-position="labelPosition"
@@ -74,7 +74,7 @@ export default {
return this.$store.state.app.device === 'mobile'
},
labelPosition() {
return this.mobile ? 'top' : 'left'
return this.mobile ? 'top' : 'right'
}
},
methods: {