chore: update layout component's style to solve the problem of style dislocation at mobile device; 🐶

This commit is contained in:
iczer
2020-06-28 20:24:08 +08:00
parent db25716d9d
commit 6208acc477
7 changed files with 47 additions and 85 deletions

View File

@@ -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])]
)
}