Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-04-21 01:25:02 +00:00
commit 813be720de
2 changed files with 14 additions and 1 deletions

View File

@ -100,6 +100,14 @@ export const ValueDynamicComponent = (props: ValueDynamicComponentProps) => {
.ant-checkbox-wrapper {
margin-left: 50%;
}
.ant-select-selector {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.ant-picker {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
`}
>
{React.createElement(DynamicComponent, {

View File

@ -34,7 +34,12 @@ export const useValues = (options) => {
const dataIndex = field.data?.targetFields;
const option = (dataIndex && findOption(dataIndex, options)) || {};
const operators = option?.operators || [];
field.data.operators = operators;
field.data.operators = operators?.filter((v) => {
if (dataIndex.length > 1) {
return v.value !== 'value';
}
return true;
});
field.data.schema = option?.schema;
};
useEffect(value2data, [logic]);