<van-cell title="出库原因" required>
<van-dropdown-menu>
<van-dropdown-item value="{{ useReason }}" options="{{ useReaOption }}" />
</van-dropdown-menu>
</van-cell>
js文件
data: {
useReaOption: [
{ text: '作业', value: 0 },
{ text: '维修', value: 1 },
{ text: '其他', value: 2 }
],
useReason: 0,
},
最终效果: