vue 如何兼容使用 小程序原生组件 #58
Closed
Comments
这种情况,select 兼容不是很好,请直接使用 picker 组件。 <template>
<div>
<picker @change="bindPickerChange" :value="index" :range="array">
<view class="picker">
当前选择:{{array[index]}}
</view>
</picker>
</div>
</template>
<script>
export default {
data () {
return {
index: 0,
array: ['A', 'B', 'C']
}
},
methods: {
bindPickerChange (e) {
console.log(e)
}
}
}
</script> |
Closed
当一个页面多个 picker 时,只有一个可用。代码如下,只有第二个 date picker 可正常使用
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用原生组件时,原生bindchange无法触发,无法获取选择值
2.使用select时,默认显示被修改,无法正常select
如何才能兼容使用呢?
The text was updated successfully, but these errors were encountered: