fix: remove UpdateMode
This commit is contained in:
parent
9b1c02b63c
commit
b86193c349
@ -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,
|
||||||
@ -102,8 +100,8 @@ function ButtonEditor(props) {
|
|||||||
default: fieldSchema?.['x-component-props']?.danger
|
default: fieldSchema?.['x-component-props']?.danger
|
||||||
? 'danger'
|
? 'danger'
|
||||||
: fieldSchema?.['x-component-props']?.type === 'primary'
|
: fieldSchema?.['x-component-props']?.type === 'primary'
|
||||||
? 'primary'
|
? 'primary'
|
||||||
: 'default',
|
: 'default',
|
||||||
enum: [
|
enum: [
|
||||||
{ value: 'default', label: '{{t("Default")}}' },
|
{ value: 'default', label: '{{t("Default")}}' },
|
||||||
{ value: 'primary', label: '{{t("Highlight")}}' },
|
{ value: 'primary', label: '{{t("Highlight")}}' },
|
||||||
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user