hlyc-web-pack 3.4.9 → 3.5.11

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.
@@ -5,6 +5,7 @@ import { ColProps } from 'antd/es/col';
5
5
  import { FormProps, Rule, FormItemProps } from 'antd/es/form';
6
6
  import { RangePickerSharedProps } from 'rc-picker/lib/RangePicker';
7
7
  import { PickerSharedProps } from 'rc-picker/lib/Picker';
8
+ import { TimePickerProps } from 'antd/es/time-picker';
8
9
  import { RateProps } from 'antd/es/rate';
9
10
  import { TreeSelectProps } from 'antd/es/tree-select';
10
11
  import { SelectProps } from 'antd/es/select';
@@ -25,18 +26,28 @@ export interface DefaultOptionType {
25
26
  }
26
27
  declare type remoteValueType = string | undefined;
27
28
  declare type remotePromiseType = (value: remoteValueType, other?: any) => Promise<SelectType[]>;
29
+ declare type inputConfig = {
30
+ prefix?: React.ReactNode;
31
+ suffix?: React.ReactNode;
32
+ addonAfter?: React.ReactNode;
33
+ addonBefore?: React.ReactNode;
34
+ inputMode?: 'text' | 'password' | 'email' | 'url' | 'number' | 'range' | 'Date pickers' | 'search' | 'color';
35
+ };
28
36
  interface UnionType {
29
37
  componentName: 'Input' | 'Select' | 'DatePicker' | 'RemoteSearch';
30
- name: string;
31
- placeholder?: string;
32
- selectData?: SelectType[];
38
+ name: FormListType['name'];
39
+ placeholder?: FormListType['placeholder'];
40
+ selectData?: FormListType['selectData'];
41
+ inputConfig?: FormListType['inputConfig'];
33
42
  remoteConfig?: FormListType['remoteConfig'];
34
- rules?: Rule[];
43
+ datePickerConfig?: FormListType['datePickerConfig'];
44
+ rangePickerConfig?: FormListType['rangePickerConfig'];
45
+ rules?: FormListType['rules'];
35
46
  }
36
47
  export declare type FormListType = {
37
48
  colProps?: ColProps;
38
49
  visible?: boolean;
39
- componentName: 'Input' | 'HideInput' | 'TextArea' | 'AutoComplete' | 'Select' | 'Multiple' | 'RemoteSearch' | 'DatePicker' | 'RangePicker' | 'Switch' | 'Radio' | 'Checkbox' | 'TreeSelect' | 'Union' | 'RegionSelection' | 'Rate';
50
+ componentName: 'Input' | 'HideInput' | 'TextArea' | 'AutoComplete' | 'Select' | 'Multiple' | 'RemoteSearch' | 'DatePicker' | 'RangePicker' | 'TimePicker' | 'Switch' | 'Radio' | 'Checkbox' | 'TreeSelect' | 'Union' | 'RegionSelection' | 'Rate';
40
51
  name?: string;
41
52
  label?: string | React.ReactNode;
42
53
  dependencies?: (string | number)[];
@@ -45,15 +56,10 @@ export declare type FormListType = {
45
56
  disabled?: boolean;
46
57
  maxLength?: number;
47
58
  valuePropName?: string;
48
- inputConfig?: {
49
- prefix?: React.ReactNode;
50
- suffix?: React.ReactNode;
51
- addonAfter?: React.ReactNode;
52
- addonBefore?: React.ReactNode;
53
- inputMode?: 'text' | 'password' | 'email' | 'url' | 'number' | 'range' | 'Date pickers' | 'search' | 'color';
54
- };
59
+ inputConfig?: inputConfig;
55
60
  datePickerConfig?: DatePickerProps;
56
61
  rangePickerConfig?: RangePickerProps;
62
+ timePickerConfig?: TimePickerProps;
57
63
  unionConfig?: {
58
64
  unionItems: UnionType[];
59
65
  divide?: string;
@@ -94,6 +100,7 @@ export declare type FormListType = {
94
100
  remoteSearchChange?: (e: string, other?: any) => void;
95
101
  datePickerChange?: PickerSharedProps<any>['onChange'];
96
102
  rangePickerChange?: RangePickerSharedProps<any>['onChange'];
103
+ timePickerChange?: PickerSharedProps<any>['onChange'];
97
104
  switchChange?: (e: boolean, other?: any) => void;
98
105
  radioChange?: (e: RadioChangeEvent, other?: any) => void;
99
106
  checkboxChange?: (e: CheckboxValueType[], other?: any) => void;