chore: update layout component's style to solve the problem of style dislocation at mobile device; 🐶
This commit is contained in:
@@ -12,10 +12,19 @@
|
||||
<script>
|
||||
const Group = {
|
||||
name: 'AStepItemGroup',
|
||||
props: {
|
||||
align: {
|
||||
type: String,
|
||||
default: 'center',
|
||||
validator(value) {
|
||||
return ['left', 'center', 'right'].indexOf(value) != -1
|
||||
}
|
||||
}
|
||||
},
|
||||
render (h) {
|
||||
return h(
|
||||
'div',
|
||||
{attrs: {style: 'text-align: center; margin-top: 8px'}},
|
||||
{attrs: {style: `text-align: ${this.align}; margin-top: 8px`}},
|
||||
[h('div', {attrs: {style: 'text-align: left; display: inline-block;'}}, [this.$slots.default])]
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user