@jiaozhiye/qm-design-react 1.8.28 → 1.8.30

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.
@@ -119,7 +119,7 @@ declare class QmForm extends Component<IProps, IState> {
119
119
  getViewValue(fieldName: string): string;
120
120
  setExpandHandle(collapse: boolean): void;
121
121
  createInputFocus(): void;
122
- getFormItemLabel(label: string | IFormItem): string;
122
+ getFormItemLabel(label: React.ReactNode | IFormItem): string;
123
123
  getBlockDerivedItems(): Pick<IFormItem, "label" | "fieldName">[][];
124
124
  getFormItemDisplay({ type, fieldName }: {
125
125
  type: any;
@@ -160,7 +160,7 @@ declare class QmForm extends Component<IProps, IState> {
160
160
  UPLOAD_FILE(option: IFormItem): JSXElement;
161
161
  UPLOAD_IMG(option: IFormItem): JSXElement;
162
162
  TINYMCE(option: IFormItem): JSXElement;
163
- renderFormLabel(label: IFormItem | string): string | React.JSX.Element | null;
163
+ renderFormLabel(label: React.ReactNode | IFormItem): React.ReactNode;
164
164
  renderFormItemExtra(option: IFormItem['extra'] & {
165
165
  fieldName: string;
166
166
  }): React.JSX.Element;
@@ -90,7 +90,7 @@ export type IAuthConfig = {
90
90
  export type IFormItem = {
91
91
  type: IFormItemType;
92
92
  fieldName: string;
93
- label?: string | IFormItem;
93
+ label?: React.ReactNode | IFormItem;
94
94
  tooltip?: string;
95
95
  labelWidth?: number | string;
96
96
  hidden?: boolean;
@@ -18,6 +18,8 @@ export declare const deepGetPath: (arr: any[], value: string) => string[] | unde
18
18
  export declare const formatNumber: (value: string | number) => string;
19
19
  export declare const parserNumber: (value: string) => string;
20
20
  export declare const secretFormat: (value: string | number | undefined, type: string) => string;
21
+ export declare const isValidLabel: (label: any) => boolean;
22
+ export declare const getTitleFromNode: (vNode: React.ReactNode) => string;
21
23
  export declare const createShConfig: (data: any, fieldName: string, createFetch: IFetchFnMaker, multiple?: boolean) => {
22
24
  name?: string | undefined;
23
25
  getServerConfig?: import("./types").IFetchFn | undefined;