微信小程序使用vant-weapp组件库出现的bug:
property "value" of "miniprogram_npm/@vant/weapp/field/index" received type-uncompatible value: expected <String> but get null value. Use empty string instead.
原因是未在js/data下定义value:""
如:
wxml:
<van-field
value="{{ experiment }}"
clearable
label="试验名称/编号"
placeholder="请输入试验名称/编号(选填)"
bind:click-icon="onClickIcon"
/>
js:
data: {
experiment : '',
},