是通过下面这方法用的element组件,但是这个input前置怎么设置值呀,我看用的类型里面也没有
{
field: 'userNo',
label: '用户名',
value: 'angpu',
component: 'Input',
colProps: {
span: 24,
},
componentProps: {
slots:{
prepend:{
这里怎么写?
}
},
placeholder: '请输入用户名'
}
},
因为是插槽,所以你用 字符串 或者 组件 应该都是可以的。