怎么配置才能让身份证照片在新增中不显示??找了好久
// 新增、编辑
const Upsert = useUpsert({
items: [
// 分组
{
type: "tabs",
props: {
type: "card",
labels: [
{
label: "基础",
value: "base"
},
{
label: "其他",
value: "other"
}
]
}
},
{
label: "头像",
prop: "avatar",
group: "base",
component: {
name: "cl-upload"
}
},
// 动态值
() => {
return {
label: "姓名",
prop: "name",
required: true,
group: "base",
component: {
name: "el-input"
}
};
},
{
label: "年龄",
group: "base",
prop: "age",
component: {
name: "el-input-number"
}
},
{
label: "职业",
prop: "occupation",
group: "other",
component: {
name: "el-tree-select",
props: {
data: dict.get("occupation"),
checkStrictly: true
}
}
},
{
label: "身份证照片",
prop: "idCardPic",
group: "other",
component: {
name: "cl-upload",
props: {
isSpace: true,
size: [200, 300]
}
}
}
],
// 插件
plugins: [
// 自动聚焦
setFocus("name")
]
});
没太理解你的问题,你是想展示身份证照片这个功能,但不想这个功能里有照片吗?