mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
86679c4953
@ -460,7 +460,7 @@ export function Input(props: VariableInputProps) {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div style={{ flex: 1 }}>
|
<div style={{ flex: 1 }}>
|
||||||
{children && isFieldValue ? (
|
{children && (isFieldValue || !nullable) ? (
|
||||||
children
|
children
|
||||||
) : ConstantComponent ? (
|
) : ConstantComponent ? (
|
||||||
<ConstantComponent
|
<ConstantComponent
|
||||||
|
@ -83,13 +83,13 @@ export const useRemoveGridFormItem = () => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export const findTableColumn = (schema: Schema, key: string, action: string, deepth = 0) => {
|
export const findTableColumn = (schema: Schema, key: string, action: string, name: string) => {
|
||||||
return schema.reduceProperties((buf, s) => {
|
return schema.reduceProperties((buf, s) => {
|
||||||
if (s[key] === action) {
|
if (s[key] === action && (!name || s.name === name)) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
const c = s.reduceProperties((buf, s) => {
|
const c = s.reduceProperties((buf, s) => {
|
||||||
if (s[key] === action) {
|
if (s[key] === action && (!name || s.name === name)) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
return buf;
|
return buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user