@nocobase/client 0.14.0-alpha.7 → 0.15.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/.dumirc.ts +95 -35
  2. package/docs/index.md +1 -0
  3. package/es/application/Application.d.ts +7 -2
  4. package/es/application/PluginManager.d.ts +2 -1
  5. package/es/application/PluginSettingsManager.d.ts +49 -0
  6. package/es/application/components/defaultComponents.d.ts +1 -0
  7. package/es/application/index.d.ts +1 -0
  8. package/es/application/utils/remotePlugins.d.ts +2 -2
  9. package/es/block-provider/BlockProvider.d.ts +12 -1
  10. package/es/block-provider/FormBlockProvider.d.ts +8 -1
  11. package/es/block-provider/TableSelectorProvider.d.ts +1 -0
  12. package/es/block-provider/TemplateBlockProvider.d.ts +7 -0
  13. package/es/block-provider/hooks/index.d.ts +10 -0
  14. package/es/block-provider/hooks/useFormActiveFields.d.ts +5 -0
  15. package/es/block-provider/hooks/useParsedFilter.d.ts +6 -0
  16. package/es/collection-manager/Configuration/DeleteCollectionAction.d.ts +18 -0
  17. package/es/collection-manager/Configuration/index.d.ts +1 -0
  18. package/es/collection-manager/action-hooks.d.ts +3 -0
  19. package/es/filter-provider/FilterProvider.d.ts +5 -0
  20. package/es/flag-provider/FlagProvider.d.ts +8 -0
  21. package/es/index.mjs +16538 -15287
  22. package/es/locale/en_US.d.ts +3 -0
  23. package/es/locale/es_ES.d.ts +1 -0
  24. package/es/locale/fr_FR.d.ts +1 -0
  25. package/es/locale/ja_JP.d.ts +1 -0
  26. package/es/locale/pt_BR.d.ts +2 -0
  27. package/es/locale/ru_RU.d.ts +1 -0
  28. package/es/locale/tr_TR.d.ts +1 -0
  29. package/es/locale/uk_UA.d.ts +1 -0
  30. package/es/locale/zh_CN.d.ts +4 -0
  31. package/es/pm/PluginSetting.d.ts +1 -51
  32. package/es/pm/index.d.ts +1 -0
  33. package/es/pm/style.d.ts +1 -1
  34. package/es/record-provider/index.d.ts +1 -0
  35. package/es/schema-component/antd/action/Action.Designer.d.ts +1 -1
  36. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfAction.d.ts +8 -0
  37. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.d.ts +7 -0
  38. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfModal.d.ts +7 -0
  39. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.d.ts +7 -0
  40. package/es/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.d.ts +1 -0
  41. package/es/schema-component/antd/action/hooks/useSetAriaLabelForModal.d.ts +1 -0
  42. package/es/schema-component/antd/action/hooks/useSetAriaLabelForPopover.d.ts +1 -0
  43. package/es/schema-component/antd/action/index.d.ts +4 -0
  44. package/es/schema-component/antd/action/utils.d.ts +1 -2
  45. package/es/schema-component/antd/appends-tree-select/AppendsTreeSelect.d.ts +1 -0
  46. package/es/schema-component/antd/association-field/AssociationSelect.d.ts +1 -0
  47. package/es/schema-component/antd/association-field/hooks.d.ts +14 -0
  48. package/es/schema-component/antd/auto-complete/AutoComplete.d.ts +1 -1
  49. package/es/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.d.ts +7 -0
  50. package/es/schema-component/antd/card-item/CardItem.d.ts +8 -1
  51. package/es/schema-component/antd/date-picker/util.d.ts +1 -1
  52. package/es/schema-component/antd/form-item/hooks/useLazyLoadAssociationFieldOfForm.d.ts +4 -1
  53. package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.d.ts +8 -0
  54. package/es/schema-component/antd/form-v2/utils.d.ts +1 -1
  55. package/es/schema-component/antd/input/Input.d.ts +1 -0
  56. package/es/schema-component/antd/page/hooks/useIsBlockInPage.d.ts +6 -0
  57. package/es/schema-component/antd/password/utils.d.ts +1 -1
  58. package/es/schema-component/antd/variable/VariableSelect.d.ts +3 -1
  59. package/es/schema-component/common/utils/uitls.d.ts +1 -2
  60. package/es/schema-initializer/buttons/BlockInitializers.d.ts +0 -1
  61. package/es/schema-initializer/buttons/CalendarActionInitializers.d.ts +0 -1
  62. package/es/schema-initializer/buttons/CalendarFormActionInitializers.d.ts +1 -26
  63. package/es/schema-initializer/buttons/DetailsActionInitializers.d.ts +0 -1
  64. package/es/schema-initializer/buttons/FilterFormActionInitializers.d.ts +0 -1
  65. package/es/schema-initializer/buttons/FormActionInitializers.d.ts +4 -97
  66. package/es/schema-initializer/buttons/GanttActionInitializers.d.ts +0 -1
  67. package/es/schema-initializer/buttons/GridCardActionInitializers.d.ts +21 -19
  68. package/es/schema-initializer/buttons/KanbanActionInitializers.d.ts +0 -1
  69. package/es/schema-initializer/buttons/ListActionInitializers.d.ts +21 -19
  70. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +1 -27
  71. package/es/schema-initializer/buttons/SubTableActionInitializers.d.ts +0 -1
  72. package/es/schema-initializer/buttons/TableActionInitializers.d.ts +0 -1
  73. package/es/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.d.ts +7 -0
  74. package/es/schema-initializer/index.d.ts +1 -1
  75. package/es/schema-initializer/types.d.ts +1 -0
  76. package/es/schema-initializer/utils.d.ts +0 -1
  77. package/es/schema-settings/LinkageRules/index.d.ts +4 -0
  78. package/es/schema-settings/SchemaSettings.d.ts +14 -3
  79. package/es/schema-settings/VariableInput/hooks/useParentRecordVariable.d.ts +12 -0
  80. package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +2 -2
  81. package/es/schema-settings/hooks/useGetAriaLabelOfDesigner.d.ts +7 -0
  82. package/es/schema-settings/hooks/useIsAllowToSetDefaultValue.d.ts +3 -7
  83. package/es/schema-settings/hooks/useParseDataScopeFilter.d.ts +4 -2
  84. package/es/variables/constants.d.ts +1 -1
  85. package/es/variables/hooks/useLocalVariables.d.ts +0 -5
  86. package/lib/index.js +16528 -15277
  87. package/lib/locale/en_US.js +4 -1
  88. package/lib/locale/es_ES.js +1 -0
  89. package/lib/locale/fr_FR.js +1 -0
  90. package/lib/locale/ja_JP.js +2 -1
  91. package/lib/locale/pt_BR.js +3 -1
  92. package/lib/locale/ru_RU.js +1 -0
  93. package/lib/locale/tr_TR.js +1 -0
  94. package/lib/locale/uk_UA.js +1 -0
  95. package/lib/locale/zh_CN.js +5 -1
  96. package/package.json +7 -7
  97. package/contributing.md +0 -61
  98. package/es/schema-component/antd/form-item/hooks/useLazyLoadAssociationFieldOfSubForm.d.ts +0 -5
package/.dumirc.ts CHANGED
@@ -1,18 +1,6 @@
1
- import { defineConfig } from 'dumi';
2
- import { defineThemeConfig } from 'dumi-theme-nocobase'
3
1
  import { getUmiConfig } from '@nocobase/devtools/umiConfig';
4
- import fs from 'fs';
5
- import path from 'path';
6
-
7
- const contributingPath = path.resolve(__dirname, './contributing.md');
8
- const docsContributingPath = path.resolve(__dirname, './docs/contributing.md');
9
-
10
- // check if the target path already exists, and remove it if it does
11
- if (fs.existsSync(docsContributingPath)) {
12
- fs.unlinkSync(docsContributingPath);
13
- }
14
-
15
- fs.copyFileSync(contributingPath, docsContributingPath);
2
+ import { defineConfig } from 'dumi';
3
+ import { defineThemeConfig } from 'dumi-theme-nocobase';
16
4
 
17
5
  const umiConfig = getUmiConfig();
18
6
 
@@ -23,34 +11,106 @@ export default defineConfig({
23
11
  },
24
12
  resolve: {
25
13
  atomDirs: [
26
- { type: 'component', dir: 'src' },
27
- { type: 'component', dir: 'src/schema-component/antd' },
28
- { type: 'component', dir: 'src/route-switch/antd' },
29
- ]
14
+ { type: 'api', dir: 'src' },
15
+ { type: 'api', dir: 'src/schema-component/antd' },
16
+ { type: 'api', dir: 'src/route-switch/antd' },
17
+ ],
30
18
  },
31
19
  themeConfig: defineThemeConfig({
32
20
  title: 'NocoBase',
33
21
  logo: 'https://www.nocobase.com/images/logo.png',
34
22
  github: 'https://github.com/nocobase/nocobase',
35
23
  footer: 'nocobase | Copyright © 2022',
36
- sidebarGroupModePath: ['/components'],
24
+ // sidebarGroupModePath: ['/components'],
37
25
  nav: [
38
26
  {
39
- title: 'Intro',
40
- link: '/intro',
27
+ title: 'API',
28
+ link: '/apis/application',
41
29
  },
42
- {
43
- title: 'Client',
44
- link: '/components/acl',
45
- },
46
- {
47
- title: 'Develop',
48
- link: '/develop',
49
- },
50
- {
51
- title: 'Contributing',
52
- link: '/contributing',
53
- }
54
- ]
55
- })
30
+ ],
31
+ sidebarEnhance: {
32
+ '/apis': [
33
+ {
34
+ title: 'Core',
35
+ type: 'group',
36
+ children: [
37
+ {
38
+ title: 'Application',
39
+ children: [
40
+ {
41
+ title: 'Application',
42
+ link: '/apis/application',
43
+ },
44
+ {
45
+ title: 'APIClient',
46
+ link: '/apis/api-client',
47
+ },
48
+ {
49
+ title: 'PluginSettingsManager',
50
+ link: '#',
51
+ },
52
+ ],
53
+ },
54
+ {
55
+ title: 'UI schema designer',
56
+ children: [
57
+ {
58
+ title: 'SchemaComponent',
59
+ link: '#',
60
+ },
61
+ {
62
+ title: 'SchemaInitializer',
63
+ link: '#',
64
+ },
65
+ {
66
+ title: 'SchemaSettings',
67
+ link: '#',
68
+ },
69
+ {
70
+ title: 'DNDContext & DragHandler',
71
+ link: '#',
72
+ },
73
+ ],
74
+ },
75
+ {
76
+ title: 'Collection Manager',
77
+ link: '#',
78
+ },
79
+ {
80
+ title: 'BlockProvider',
81
+ link: '#',
82
+ },
83
+ {
84
+ title: 'RecordProvider',
85
+ link: '#',
86
+ },
87
+ ],
88
+ },
89
+ {
90
+ title: 'React components',
91
+ type: 'group',
92
+ children: [
93
+ {
94
+ title: 'Board',
95
+ link: '#',
96
+ },
97
+ {
98
+ title: 'Icon',
99
+ link: '#',
100
+ },
101
+ ],
102
+ },
103
+ {
104
+ title: 'Schema components',
105
+ type: 'group',
106
+ children: [
107
+ {
108
+ title: 'Input',
109
+ link: '#',
110
+ },
111
+ ],
112
+ },
113
+ ],
114
+ },
115
+ }),
56
116
  });
package/docs/index.md ADDED
@@ -0,0 +1 @@
1
+ <Navigate replace to="/apis/application"></Navigate>
@@ -1,12 +1,13 @@
1
1
  import { APIClientOptions } from '@nocobase/sdk';
2
2
  import { i18n as i18next } from 'i18next';
3
3
  import React, { ComponentType, ReactElement } from 'react';
4
- import { APIClient } from '../api-client';
5
- import type { Plugin } from './Plugin';
6
4
  import { PluginManager, PluginType } from './PluginManager';
7
5
  import { ComponentTypeAndString, RouterManager, RouterOptions } from './RouterManager';
8
6
  import { WebSocketClient, WebSocketClientOptions } from './WebSocketClient';
7
+ import { PluginSettingsManager } from './PluginSettingsManager';
8
+ import { APIClient } from '../api-client';
9
9
  import type { RequireJS } from './utils/requirejs';
10
+ import type { Plugin } from './Plugin';
10
11
  declare global {
11
12
  interface Window {
12
13
  define: RequireJS['define'];
@@ -26,6 +27,7 @@ export interface ApplicationOptions {
26
27
  scopes?: Record<string, any>;
27
28
  router?: RouterOptions;
28
29
  devDynamicImport?: DevDynamicImport;
30
+ loadRemotePlugins?: boolean;
29
31
  }
30
32
  export declare class Application {
31
33
  protected options: ApplicationOptions;
@@ -37,6 +39,7 @@ export declare class Application {
37
39
  apiClient: APIClient;
38
40
  components: Record<string, ComponentType>;
39
41
  pm: PluginManager;
42
+ pluginSettingsManager: PluginSettingsManager;
40
43
  devDynamicImport: DevDynamicImport;
41
44
  requirejs: RequireJS;
42
45
  notification: any;
@@ -44,10 +47,12 @@ export declare class Application {
44
47
  maintained: boolean;
45
48
  maintaining: boolean;
46
49
  error: any;
50
+ get pluginManager(): PluginManager;
47
51
  constructor(options?: ApplicationOptions);
48
52
  private initRequireJs;
49
53
  private addDefaultProviders;
50
54
  private addReactRouterComponents;
55
+ private addRoutes;
51
56
  getComposeProviders(): React.FC;
52
57
  use<T = any>(component: ComponentType, props?: T): number;
53
58
  addProvider<T = any>(component: ComponentType, props?: T): number;
@@ -14,11 +14,12 @@ export type PluginData = {
14
14
  };
15
15
  export declare class PluginManager {
16
16
  protected _plugins: PluginType[];
17
+ protected loadRemotePlugins: boolean;
17
18
  protected app: Application;
18
19
  protected pluginInstances: Map<typeof Plugin, Plugin>;
19
20
  protected pluginsAliases: Record<string, Plugin>;
20
21
  private initPlugins;
21
- constructor(_plugins: PluginType[], app: Application);
22
+ constructor(_plugins: PluginType[], loadRemotePlugins: boolean, app: Application);
22
23
  init(_plugins: PluginType[]): Promise<void>;
23
24
  private initStaticPlugins;
24
25
  private initRemotePlugins;
@@ -0,0 +1,49 @@
1
+ import type { Application } from './Application';
2
+ import type { RouteType } from './RouterManager';
3
+ export declare const ADMIN_SETTINGS_KEY = "admin.settings.";
4
+ export declare const ADMIN_SETTINGS_PATH = "/admin/settings/";
5
+ export declare const SNIPPET_PREFIX = "pm.";
6
+ export interface PluginSettingsManagerSettingOptionsType {
7
+ title: string;
8
+ Component: RouteType['Component'];
9
+ icon?: string;
10
+ /**
11
+ * sort, the smaller the number, the higher the priority
12
+ * @default 0
13
+ */
14
+ sort?: number;
15
+ isBookmark?: boolean;
16
+ aclSnippet?: string;
17
+ [index: string]: any;
18
+ }
19
+ export interface PluginSettingsPageType {
20
+ label?: string;
21
+ title: string;
22
+ key: string;
23
+ icon: any;
24
+ path: string;
25
+ sort?: number;
26
+ name?: string;
27
+ pluginName?: string;
28
+ isBookmark?: boolean;
29
+ children?: PluginSettingsPageType[];
30
+ [index: string]: any;
31
+ }
32
+ export declare class PluginSettingsManager {
33
+ protected app: Application;
34
+ protected settings: Record<string, PluginSettingsManagerSettingOptionsType>;
35
+ protected aclSnippets: string[];
36
+ constructor(app: Application);
37
+ setAclSnippets(aclSnippets: string[]): void;
38
+ getAclSnippet(name: string): string;
39
+ getRouteName(name: string): string;
40
+ getRoutePath(name: string): string;
41
+ add(name: string, options: PluginSettingsManagerSettingOptionsType): void;
42
+ remove(name: string): void;
43
+ hasAuth(name: string): boolean;
44
+ getSetting(name: string): PluginSettingsManagerSettingOptionsType;
45
+ has(name: string): boolean;
46
+ get(name: string, filterAuth?: boolean): PluginSettingsPageType;
47
+ getList(filterAuth?: boolean): PluginSettingsPageType[];
48
+ getAclSnippets(): string[];
49
+ }
@@ -5,4 +5,5 @@ export declare const defaultAppComponents: {
5
5
  AppError: React.FC<{
6
6
  error: Error;
7
7
  }>;
8
+ AppNotFound: React.FC;
8
9
  };
@@ -3,3 +3,4 @@ export * from './hooks';
3
3
  export * from './Plugin';
4
4
  export * from './RouterManager';
5
5
  export * from './utils';
6
+ export * from './PluginSettingsManager';
@@ -4,11 +4,11 @@ import type { RequireJS } from './requirejs';
4
4
  import type { DevDynamicImport } from '../Application';
5
5
  export declare function defineDevPlugins(plugins: Record<string, typeof Plugin>): void;
6
6
  export declare function definePluginClient(packageName: string): void;
7
- export declare function getRemotePlugins(requirejs: any, pluginData?: PluginData[]): Promise<Array<typeof Plugin>>;
7
+ export declare function getRemotePlugins(requirejs: any, pluginData?: PluginData[]): Promise<Array<[string, typeof Plugin]>>;
8
8
  interface GetPluginsOption {
9
9
  requirejs: RequireJS;
10
10
  pluginData: PluginData[];
11
11
  devDynamicImport?: DevDynamicImport;
12
12
  }
13
- export declare function getPlugins(options: GetPluginsOption): Promise<Array<typeof Plugin>>;
13
+ export declare function getPlugins(options: GetPluginsOption): Promise<Array<[string, typeof Plugin]>>;
14
14
  export {};
@@ -27,7 +27,18 @@ export declare const useBlockRequestContext: () => {
27
27
  updateAssociationValues?: any[];
28
28
  };
29
29
  export declare const RenderChildrenWithAssociationFilter: React.FC<any>;
30
- export declare const BlockProvider: (props: any) => React.JSX.Element;
30
+ export declare const useBlockContext: () => {
31
+ /** 用以区分区块的标识 */
32
+ name: string;
33
+ };
34
+ export declare const BlockProvider: (props: {
35
+ name: string;
36
+ resource: any;
37
+ collection?: any;
38
+ association?: any;
39
+ params?: any;
40
+ children?: any;
41
+ }) => React.JSX.Element;
31
42
  export declare const useBlockAssociationContext: () => any;
32
43
  export declare const useFilterByTk: () => any;
33
44
  export declare const useSourceIdFromRecord: () => any;
@@ -1,7 +1,14 @@
1
1
  import { Schema } from '@formily/react';
2
2
  import React from 'react';
3
3
  export declare const FormBlockContext: React.Context<any>;
4
- export declare const useIsEmptyRecord: () => boolean;
4
+ /**
5
+ * 获取表单区块的类型:update 表示是表单编辑区块,create 表示是表单新增区块
6
+ * @returns
7
+ */
8
+ export declare const useFormBlockType: () => {
9
+ type: 'update' | 'create';
10
+ };
11
+ export declare const useIsDetailBlock: () => boolean;
5
12
  export declare const FormBlockProvider: (props: any) => React.JSX.Element;
6
13
  export declare const useFormBlockContext: () => any;
7
14
  export declare const useFormBlockProps: () => {
@@ -9,6 +9,7 @@ type Params = {
9
9
  export declare const TableSelectorContext: React.Context<any>;
10
10
  type TableSelectorProviderProps = {
11
11
  params: Record<string, any>;
12
+ resource: any;
12
13
  collection?: string;
13
14
  dragSort?: boolean;
14
15
  children?: any;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const useTemplateBlockContext: () => {
3
+ templateFinshed?: boolean;
4
+ onTemplateSuccess?: Function;
5
+ };
6
+ declare const TemplateBlockProvider: (props: any) => React.JSX.Element;
7
+ export { TemplateBlockProvider };
@@ -1,8 +1,18 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  export * from './useFormActiveFields';
3
+ export * from './useParsedFilter';
3
4
  export declare const usePickActionProps: () => {
4
5
  onClick(): void;
5
6
  };
7
+ export declare function getFormValues({ filterByTk, field, form, fieldNames, getField, resource, actionFields, }: {
8
+ filterByTk: any;
9
+ field: any;
10
+ form: any;
11
+ fieldNames: any;
12
+ getField: any;
13
+ resource: any;
14
+ actionFields: any[];
15
+ }): any;
6
16
  export declare const useCreateActionProps: () => {
7
17
  onClick(): Promise<void>;
8
18
  };
@@ -9,6 +9,11 @@ interface FormActiveFieldsProviderValue {
9
9
  interface ProviderProps extends Partial<FormActiveFieldsProviderValue> {
10
10
  children: React.ReactNode;
11
11
  }
12
+ /**
13
+ * 用于提供获取和更新当前表单区块中已显示出来的字段
14
+ * @param param0
15
+ * @returns
16
+ */
12
17
  export declare const FormActiveFieldsProvider: ({ children, name, getActiveFieldsName, addActiveFieldName, removeActiveFieldName, }: ProviderProps) => React.JSX.Element;
13
18
  /**
14
19
  * 用于获取和更新当前表单区块中已显示出来的字段
@@ -0,0 +1,6 @@
1
+ export declare function useParsedFilter({ filterOption, currentRecord }: {
2
+ filterOption: any;
3
+ currentRecord?: any;
4
+ }): {
5
+ filter: {};
6
+ };
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ export declare const DeleteCollection: (props: any) => React.JSX.Element;
3
+ export declare const useDestroyActionAndRefreshCM: () => {
4
+ run(): Promise<void>;
5
+ };
6
+ export declare const useBulkDestroyActionAndRefreshCM: () => {
7
+ run(): Promise<void>;
8
+ };
9
+ export declare const useDestroyAction: () => {
10
+ run(): Promise<void>;
11
+ };
12
+ export declare const useBulkDestroyAction: () => {
13
+ run(): Promise<boolean>;
14
+ };
15
+ export declare const DeleteCollectionAction: {
16
+ (props: any): React.JSX.Element;
17
+ displayName: string;
18
+ };
@@ -14,3 +14,4 @@ export * from './AddCategoryAction';
14
14
  export * from './EditCategoryAction';
15
15
  export * from './SyncFieldsAction';
16
16
  export * from './SyncSQLFieldsAction';
17
+ export * from './DeleteCollectionAction';
@@ -43,6 +43,9 @@ export declare const useSelfAndChildrenCollections: (collectionName: string) =>
43
43
  label: any;
44
44
  }[];
45
45
  export declare const useCollectionFilterOptions: (collection: any) => any[];
46
+ export declare const useCollectionFilterOptionsV2: (collection: any) => {
47
+ getFields: () => any[];
48
+ };
46
49
  export declare const useLinkageCollectionFilterOptions: (collectionName: string) => any[];
47
50
  export declare const useCollectionFieldsOptions: (collectionName: string, maxDepth?: number, excludes?: any[]) => any[];
48
51
  export declare const useFilterDataSource: (options: any) => {
@@ -40,6 +40,11 @@ export interface DataBlock {
40
40
  * @returns
41
41
  */
42
42
  export declare const FilterBlockProvider: React.FC;
43
+ /**
44
+ * 用于收集记录当前页面中的数据区块的信息
45
+ * @param param0
46
+ * @returns
47
+ */
43
48
  export declare const FilterBlockRecord: ({ children, params, }: {
44
49
  children: React.ReactNode;
45
50
  params?: {
@@ -12,6 +12,14 @@ export interface FlagProviderProps {
12
12
  * 是否存在于 `表单数据模板` 中
13
13
  */
14
14
  isInFormDataTemplate?: boolean;
15
+ /**
16
+ * 是否存在于 `子表格` 中
17
+ */
18
+ isInSubTable?: boolean;
19
+ /**
20
+ * 是否存在于 `子表单` 中
21
+ */
22
+ isInSubForm?: boolean;
15
23
  children: any;
16
24
  }
17
25
  export declare const FlagContext: React.Context<Omit<FlagProviderProps, "children">>;