@nocobase/client 1.4.19 → 1.4.21
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.
- package/es/application/Application.d.ts +1 -0
- package/es/index.mjs +2528 -2470
- package/es/schema-component/antd/upload/placeholder.d.ts +1 -1
- package/es/schema-component/common/utils/uitls.d.ts +0 -6
- package/es/schema-settings/VariableInput/hooks/useRecordVariable.d.ts +7 -0
- package/lib/index.js +131 -134
- package/lib/locale/zh-CN.js +2 -0
- package/package.json +5 -5
|
@@ -29,11 +29,5 @@ export declare const conditionAnalyses: ({ ruleGroup, variables, localVariables,
|
|
|
29
29
|
*/
|
|
30
30
|
variableNameOfLeftCondition?: string;
|
|
31
31
|
}) => Promise<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* 转化成变量字符串,方便解析出值
|
|
34
|
-
* @param targetField
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
export declare function targetFieldToVariableString(targetField: string[], variableName?: string): string;
|
|
38
32
|
export declare function getRenderContent(templateEngine: any, content: any, variables: any, localVariables: any, defaultParse: any): Promise<any>;
|
|
39
33
|
export {};
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import { Schema } from '@formily/json-schema';
|
|
10
|
+
import { FC } from 'react';
|
|
10
11
|
import { CollectionFieldOptions_deprecated } from '../../../collection-manager';
|
|
11
12
|
interface Props {
|
|
12
13
|
collectionField?: CollectionFieldOptions_deprecated;
|
|
@@ -16,6 +17,12 @@ interface Props {
|
|
|
16
17
|
/** 消费变量值的字段 */
|
|
17
18
|
targetFieldSchema?: Schema;
|
|
18
19
|
}
|
|
20
|
+
interface CurrentRecordContextProps {
|
|
21
|
+
recordData: any;
|
|
22
|
+
collectionName: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const CurrentRecordContextProvider: FC<CurrentRecordContextProps>;
|
|
25
|
+
export declare const useCurrentRecord: () => CurrentRecordContextProps;
|
|
19
26
|
/**
|
|
20
27
|
* @deprecated
|
|
21
28
|
* 该 hook 已废弃,请使用 `useCurrentRecordVariable` 代替
|