@jiaozhiye/qm-design-react 1.5.16 → 1.5.17

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,7 +1,7 @@
1
1
  /// <reference types="lodash" />
2
2
  import React, { Component } from 'react';
3
3
  import { IFieldData } from './types';
4
- import type { IFormProps, IFormData, IFormItem, IExtraData, IViewData, IExpandData } from './types';
4
+ import type { IFormProps, IFormData, IFormItem, IExtraData, IViewData, IExpandData, IFieldAuthItem } from './types';
5
5
  import type { JSXElement, ValueOf, IDict } from '../../_utils/types';
6
6
  import type { FormProps } from '../../antd';
7
7
  declare type IProps = FormProps & IFormProps;
@@ -76,6 +76,7 @@ declare class QmForm extends Component<IProps, IState> {
76
76
  private _initialValues;
77
77
  private _initialOthers;
78
78
  private _initialExtras;
79
+ private _fieldAuth;
79
80
  private wrapperRef;
80
81
  private formRef;
81
82
  state: IState;
@@ -121,6 +122,7 @@ declare class QmForm extends Component<IProps, IState> {
121
122
  fieldName: any;
122
123
  }): boolean;
123
124
  formatFormValue(values: IFormData): IFormData;
125
+ setFieldAuth(key: string, value: IFieldAuthItem): void;
124
126
  createFormAuth(): Promise<void>;
125
127
  INPUT(option: IFormItem): JSXElement;
126
128
  RANGE_INPUT(option: IFormItem): JSXElement;
@@ -24,6 +24,11 @@ export declare type IFieldsDefine = {
24
24
  displayKey?: string;
25
25
  extraKey?: string;
26
26
  };
27
+ export declare type IFieldAuthItem = {
28
+ visible: number;
29
+ disabled?: number;
30
+ secretName?: string;
31
+ };
27
32
  export declare type IDateType = 'date' | 'datetime' | 'exactdate' | 'week' | 'month' | 'quarter' | 'year';
28
33
  export declare enum EDateType {
29
34
  'date' = "date",