mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-16 15:19:25 +00:00
perf: 优化 form label 位置
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user