mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
commit:修复bug
This commit is contained in:
@@ -170,6 +170,13 @@ const uploadWidgetImpl = reactive(
|
||||
|
||||
const getDisabledStatus = () => {
|
||||
if (form().isEdit) return true;
|
||||
let formWidgetAuth: ANY_OBJECT | null = null;
|
||||
if (form().formAuth) {
|
||||
formWidgetAuth = form().formAuth();
|
||||
if (formWidgetAuth != null) {
|
||||
formWidgetAuth = formWidgetAuth.pc[pps.widget.variableName];
|
||||
}
|
||||
}
|
||||
return props.widget.props.disabled;
|
||||
};
|
||||
|
||||
|
||||
@@ -355,9 +355,13 @@ const getWidgetProps = computed(() => {
|
||||
});
|
||||
|
||||
const getDisabledStatus = () => {
|
||||
const formWidgetAuth: ANY_OBJECT | null = form().formAuth
|
||||
? form().formAuth().pc[pps.widget.variableName]
|
||||
: null;
|
||||
let formWidgetAuth: ANY_OBJECT | null = null;
|
||||
if (form().formAuth) {
|
||||
formWidgetAuth = form().formAuth();
|
||||
if (formWidgetAuth != null) {
|
||||
formWidgetAuth = formWidgetAuth.pc[pps.widget.variableName];
|
||||
}
|
||||
}
|
||||
if (formWidgetAuth && formWidgetAuth.disabled) return true;
|
||||
return pps.widget.props.disabled;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user