fix: remove UpdateMode
This commit is contained in:
parent
9b1c02b63c
commit
b86193c349
@ -1,5 +1,5 @@
|
||||
import { ArrayTable } from '@formily/antd-v5';
|
||||
import { onFieldValueChange } from '@formily/core';
|
||||
import { Field, onFieldValueChange } from '@formily/core';
|
||||
import { ISchema, connect, mapProps, useField, useFieldSchema, useForm, useFormEffects } from '@formily/react';
|
||||
import { isValid, uid } from '@formily/shared';
|
||||
import { Alert, Tree as AntdTree, ModalProps } from 'antd';
|
||||
@ -22,13 +22,11 @@ import {
|
||||
SchemaSettingsLinkageRules,
|
||||
SchemaSettingsModalItem,
|
||||
SchemaSettingsRemove,
|
||||
SchemaSettingsSelectItem,
|
||||
SchemaSettingsSwitchItem,
|
||||
} from '../../../schema-settings/SchemaSettings';
|
||||
import { DefaultValueProvider } from '../../../schema-settings/hooks/useIsAllowToSetDefaultValue';
|
||||
import { useLinkageAction } from './hooks';
|
||||
import { requestSettingsSchema } from './utils';
|
||||
import { Field } from '@formily/core';
|
||||
|
||||
const Tree = connect(
|
||||
AntdTree,
|
||||
@ -696,17 +694,6 @@ export const actionSettingsItems: SchemaSettingOptions['items'] = [
|
||||
};
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'updateMode',
|
||||
Component: UpdateMode,
|
||||
useVisible() {
|
||||
const fieldSchema = useFieldSchema();
|
||||
const isUpdateModePopupAction = ['customize:bulkUpdate', 'customize:bulkEdit'].includes(
|
||||
fieldSchema['x-action'],
|
||||
);
|
||||
return isUpdateModePopupAction;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'secondConFirm',
|
||||
Component: SecondConFirm,
|
||||
|
Loading…
Reference in New Issue
Block a user