@nocobase/client 1.8.3 → 1.8.5
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 +4 -4
- package/es/collection-manager/templates/sql.d.ts +1 -1
- package/es/collection-manager/templates/view.d.ts +1 -1
- package/es/flag-provider/FlagProvider.d.ts +5 -0
- package/es/index.mjs +1250 -1217
- package/es/schema-component/antd/fieldset/Fieldset.d.ts +10 -0
- package/es/schema-component/antd/fieldset/index.d.ts +9 -0
- package/es/schema-component/antd/index.d.ts +1 -0
- package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +3 -1
- package/es/variables/VariableScope.d.ts +1 -1
- package/lib/index.js +68 -64
- package/package.json +5 -5
|
@@ -69,14 +69,14 @@ interface Variable {
|
|
|
69
69
|
/** Unique identifier of the variable */
|
|
70
70
|
name: string;
|
|
71
71
|
/** Variable configuration options */
|
|
72
|
-
useOption: () =>
|
|
72
|
+
useOption: () => {
|
|
73
73
|
option: VariableOption;
|
|
74
74
|
visible?: boolean;
|
|
75
|
-
}
|
|
75
|
+
};
|
|
76
76
|
/** Variable context */
|
|
77
|
-
useCtx: () =>
|
|
77
|
+
useCtx: () => any | ((param: {
|
|
78
78
|
variableName: string;
|
|
79
|
-
}) => Promise<any>)
|
|
79
|
+
}) => Promise<any>);
|
|
80
80
|
}
|
|
81
81
|
export declare class Application {
|
|
82
82
|
protected options: ApplicationOptions;
|
|
@@ -44,6 +44,11 @@ export interface FlagProviderProps {
|
|
|
44
44
|
* 是否存在于变量选择器中
|
|
45
45
|
*/
|
|
46
46
|
isInXButton?: boolean;
|
|
47
|
+
isInMobileDrawer?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 是否是联动规则左侧变量
|
|
50
|
+
*/
|
|
51
|
+
isLeftVariable?: boolean;
|
|
47
52
|
}
|
|
48
53
|
export declare const FlagContext: React.Context<Omit<FlagProviderProps, "children">>;
|
|
49
54
|
export declare const FlagProvider: FC<FlagProviderProps>;
|