fix: assign field values modal shuold support maskClosable

This commit is contained in:
katherinehhh 2024-03-11 16:52:14 +08:00
parent ef097bd450
commit ba2467c9bf
2 changed files with 4 additions and 13 deletions

View File

@ -167,7 +167,7 @@ export function AssignedFieldValues() {
<DefaultValueProvider isAllowToSetDefaultValue={() => false}>
<SchemaSettingsActionModalItem
title={t('Assign field values')}
maskClosable={false}
// maskClosable={false}
initialSchema={initialSchema}
initialValues={fieldSchema?.['x-action-settings']?.assignedValues}
modalTip={tips[actionType]}

View File

@ -1,22 +1,17 @@
import { ISchema, useField, useFieldSchema } from '@formily/react';
import { isValid, uid } from '@formily/shared';
import { ISchema, useFieldSchema } from '@formily/react';
import { isValid } from '@formily/shared';
import {
ActionDesigner,
DefaultValueProvider,
FlagProvider,
SchemaSettings,
SchemaSettingsActionModalItem,
SchemaSettingsItemGroup,
SchemaSettingsItemType,
SchemaSettingsModalItem,
SchemaSettingsSelectItem,
AssignedFieldValues,
useCompile,
useDesignable,
useSchemaToolbar,
} from '@nocobase/client';
import { useTranslation } from 'react-i18next';
import React, { useCallback, useEffect, useState } from 'react';
import React from 'react';
function UpdateMode() {
const { dn } = useDesignable();
@ -135,10 +130,6 @@ const schemaSettingsItems: SchemaSettingsItemType[] = [
{
name: 'assignFieldValues',
Component: AssignedFieldValues,
// useVisible() {
// const fieldSchema = useFieldSchema();
// return isValid(fieldSchema?.['x-action-settings']?.assignedValues);
// },
},
{
name: 'afterSuccess',