全局设置disabled 下 ,upload不生效
1025946443 opened this issue · comments
R_sun commented
大佬 formcreate 全局设置disabled 为true下,upload子组件disabled不生效,其他子组件disabled生效
单独为upload中props下设置disabled=true可以生效
{
"type": "col",
"props": {
"span": 24
},
"children": [
{
"type": "input",
"field": "residentialAddress",
"title": "居住地址",
"value": null,
"_fc_drag_tag": "input",
"hidden": false,
"display": true,
"props": {
"type": "textarea",
"placeholder": "请输入居住地址",
},
"$required": "居住地址不能为空",
}
],
"_fc_drag_tag": "col",
"hidden": false,
"display": true
},
{
type: "upload",
field: "attachment",
title: "图片上传",
value: [],
info: "",
props: {
action: fileUrl,
limit: 80,
onSuccess: (res, file) => {
file[file.length - 1].url = res.response.data
},
syncDisabled: true,
},
itemMounted: (api) => {
console.log(api)
}
}
formcreate 全局设置disabled 为true下 upload子组件不能点击+上传图片
FormCreate commented
formCreate组件没有disabled这个配置, 可以通过api.disabled方法操作禁用状态
R_sun commented
感谢