mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 15:39:24 +08:00
Merge branch 'develop' of github.com:nocobase/nocobase into develop
This commit is contained in:
commit
7eb5d4f759
@ -2,9 +2,7 @@
|
|||||||
"version": "1.6.0-alpha.11",
|
"version": "1.6.0-alpha.11",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"useWorkspaces": true,
|
"useWorkspaces": true,
|
||||||
"npmClientArgs": [
|
"npmClientArgs": ["--ignore-engines"],
|
||||||
"--ignore-engines"
|
|
||||||
],
|
|
||||||
"command": {
|
"command": {
|
||||||
"version": {
|
"version": {
|
||||||
"forcePublish": true,
|
"forcePublish": true,
|
||||||
|
@ -7,13 +7,16 @@
|
|||||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { useFieldSchema } from '@formily/react';
|
||||||
import { useSchemaToolbar } from '../../../application';
|
import { useSchemaToolbar } from '../../../application';
|
||||||
import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings';
|
import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings';
|
||||||
import { useCollection_deprecated } from '../../../collection-manager';
|
import { useCollection_deprecated } from '../../../collection-manager';
|
||||||
|
import { useCollection } from '../../../data-source';
|
||||||
import { ButtonEditor, RemoveButton } from '../../../schema-component/antd/action/Action.Designer';
|
import { ButtonEditor, RemoveButton } from '../../../schema-component/antd/action/Action.Designer';
|
||||||
import { SchemaSettingOpenModeSchemaItems } from '../../../schema-items';
|
import { SchemaSettingOpenModeSchemaItems } from '../../../schema-items';
|
||||||
import { SchemaSettingsLinkageRules } from '../../../schema-settings';
|
import { SchemaSettingsLinkageRules } from '../../../schema-settings';
|
||||||
import { useOpenModeContext } from '../../popup/OpenModeProvider';
|
import { useOpenModeContext } from '../../popup/OpenModeProvider';
|
||||||
|
import { useCurrentPopupRecord } from '../../variable/variablesProvider/VariablePopupRecordProvider';
|
||||||
|
|
||||||
export const customizePopupActionSettings = new SchemaSettings({
|
export const customizePopupActionSettings = new SchemaSettings({
|
||||||
name: 'actionSettings:popup',
|
name: 'actionSettings:popup',
|
||||||
@ -37,6 +40,11 @@ export const customizePopupActionSettings = new SchemaSettings({
|
|||||||
collectionName: name,
|
collectionName: name,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
useVisible() {
|
||||||
|
const { collection } = useCurrentPopupRecord() || {};
|
||||||
|
const currentCollection = useCollection();
|
||||||
|
return !collection || collection?.name === currentCollection?.name;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'openMode',
|
name: 'openMode',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user