@acuteinfo/common-base 1.2.66 → 1.2.67

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.
@@ -1,4 +1,5 @@
1
1
  import { DependentValuesType } from "packages/form";
2
+ import { CSSProperties } from "react";
2
3
  export type Merge<A, B> = {
3
4
  [K in keyof A]: K extends keyof B ? B[K] : A[K];
4
5
  } & B extends infer O ? {
@@ -12,6 +13,7 @@ export interface OptionsProps {
12
13
  label: string;
13
14
  value: any;
14
15
  disabled?: boolean;
16
+ style?: CSSProperties;
15
17
  }
16
18
  export interface dependentOptionsFn {
17
19
  (optionsFn?: DependentValuesType, formName?: string): OptionsProps[] | Promise<OptionsProps[]>;
@@ -44,6 +44,8 @@ export interface GridConfigType {
44
44
  maxWidth?: number;
45
45
  minWidth?: number;
46
46
  };
47
+ showUserCode?: boolean;
48
+ setScreenCode?: boolean;
47
49
  }
48
50
  export interface HeaderFilterType {
49
51
  accessor: string;
@@ -216,6 +216,8 @@ export interface GridConfigType {
216
216
  * Set false to prevent auto fetch api for server grid
217
217
  */
218
218
  autoFetch?: boolean;
219
+ showUserCode?: boolean;
220
+ setScreenCode?: boolean;
219
221
  }
220
222
  export interface GridMetaDataType {
221
223
  columns: GridColumnType[];
@@ -41,6 +41,7 @@ export interface FormMetaDataType {
41
41
  * @default false
42
42
  */
43
43
  showUserCode?: boolean;
44
+ setScreenCode?: boolean;
44
45
  resetFieldOnUnmount: boolean;
45
46
  validationRun: "onBlur" | "onChange" | "all";
46
47
  render: FormRenderConfigType;