t***@163.com
t***@163.com
  • 发布:2019-07-04 12:43
  • 更新:2019-07-04 12:43
  • 阅读:739

【报Bug】input控件在电脑chrome中能够正常渲染,但是在微信小程序中不渲染出来

分类:uni-app

详细问题描述

input控件在电脑chrome中能够正常渲染,但是在微信小程序中不渲染出来

[内容]

重现步骤

<view class="uni-list" v-if="question.questiontype == 'BLANK'">  
<!--这里把input放在label中或者单独放,在chrome都能正常渲染,但是在小程序中渲染不出来-->  
  <label class="uni-list-cell tpw-choice-wrapper" v-for="answer in answersforthequestion(question.id)" :key="answer.id">  
    <input @input = "oninput()" :disabled = "disableAnswer" v-model="answer.name" class="tpw-anwser-input"></input>  
  </label>  
<!--把input放在radiogroup中可以在chrome和小程序正常渲染出来-->  
  <radio-group @change="radioChange" >  
    <label class="uni-list-cell tpw-choice-wrapper" v-for="answer in answersforthequestion(question.id)" :key="answer.id">  
        <radio :value="String(answer.id)" class="tpw-choice">{{ answer.value }} </radio>  
        <input @input = "oninput()" :disabled = "disableQuestion" v-model="answer.name" class="tpw-anwser-input"></input>  
        </label>  
  </radio-group>  
</view>

预计应该是v-for造成的问题。去掉v-for是可以的。

[iOS版本号]
IOS12.3.1
[手机型号]
IPHONEX
[模拟器型号]

[QQ]
81426752

2019-07-04 12:43 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复