Today, when I was developing Weex, I found a problem. I wonder if it is unique to me.
if a parent class ( row-wrapper
) css has this attribute:
flex-direction: row;
causes the input
tag element width of other subclasses to be zero all the time.
PS: is fine on the web side. If you use the weex-playground debugging tool to open it on the mobile phone, it will not display normally. Is there a partner who has the same problem?
<template>
<div class="row-wrapper">
<input type="text"/>
<text>textdemo</text>
</div>
</template>
<script>
export default {
name: "login",
data () {
return {
}
}
}
</script>
<style scoped>
.row-wrapper {
flex-direction: row;
}
</style>