fix: remove UpdateMode

This commit is contained in:
chenos 2023-12-18 21:01:32 +08:00
parent 9b1c02b63c
commit b86193c349

View File

@ -1,5 +1,5 @@
import { ArrayTable } from '@formily/antd-v5'; 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 { ISchema, connect, mapProps, useField, useFieldSchema, useForm, useFormEffects } from '@formily/react';
import { isValid, uid } from '@formily/shared'; import { isValid, uid } from '@formily/shared';
import { Alert, Tree as AntdTree, ModalProps } from 'antd'; import { Alert, Tree as AntdTree, ModalProps } from 'antd';
@ -22,13 +22,11 @@ import {
SchemaSettingsLinkageRules, SchemaSettingsLinkageRules,
SchemaSettingsModalItem, SchemaSettingsModalItem,
SchemaSettingsRemove, SchemaSettingsRemove,
SchemaSettingsSelectItem,
SchemaSettingsSwitchItem, SchemaSettingsSwitchItem,
} from '../../../schema-settings/SchemaSettings'; } from '../../../schema-settings/SchemaSettings';
import { DefaultValueProvider } from '../../../schema-settings/hooks/useIsAllowToSetDefaultValue'; import { DefaultValueProvider } from '../../../schema-settings/hooks/useIsAllowToSetDefaultValue';
import { useLinkageAction } from './hooks'; import { useLinkageAction } from './hooks';
import { requestSettingsSchema } from './utils'; import { requestSettingsSchema } from './utils';
import { Field } from '@formily/core';
const Tree = connect( const Tree = connect(
AntdTree, 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', name: 'secondConFirm',
Component: SecondConFirm, Component: SecondConFirm,