hlyc-web-pack 3.5.0 → 3.5.12

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';
@@ -33,18 +34,21 @@ declare type inputConfig = {
33
34
  inputMode?: 'text' | 'password' | 'email' | 'url' | 'number' | 'range' | 'Date pickers' | 'search' | 'color';
34
35
  };
35
36
  interface UnionType {
36
- componentName: 'Input' | 'Select' | 'DatePicker' | 'RemoteSearch';
37
- name: string;
38
- placeholder?: string;
39
- selectData?: SelectType[];
40
- inputConfig?: inputConfig;
37
+ componentName: 'Input' | 'Select' | 'DatePicker' | 'TimePicker' | 'RemoteSearch';
38
+ name: FormListType['name'];
39
+ placeholder?: FormListType['placeholder'];
40
+ selectData?: FormListType['selectData'];
41
+ inputConfig?: FormListType['inputConfig'];
41
42
  remoteConfig?: FormListType['remoteConfig'];
42
- rules?: Rule[];
43
+ datePickerConfig?: FormListType['datePickerConfig'];
44
+ rangePickerConfig?: FormListType['rangePickerConfig'];
45
+ timePickerConfig?: FormListType['timePickerConfig'];
46
+ rules?: FormListType['rules'];
43
47
  }
44
48
  export declare type FormListType = {
45
49
  colProps?: ColProps;
46
50
  visible?: boolean;
47
- componentName: 'Input' | 'HideInput' | 'TextArea' | 'AutoComplete' | 'Select' | 'Multiple' | 'RemoteSearch' | 'DatePicker' | 'RangePicker' | 'Switch' | 'Radio' | 'Checkbox' | 'TreeSelect' | 'Union' | 'RegionSelection' | 'Rate';
51
+ componentName: 'Input' | 'HideInput' | 'TextArea' | 'AutoComplete' | 'Select' | 'Multiple' | 'RemoteSearch' | 'DatePicker' | 'RangePicker' | 'TimePicker' | 'Switch' | 'Radio' | 'Checkbox' | 'TreeSelect' | 'Union' | 'RegionSelection' | 'Rate';
48
52
  name?: string;
49
53
  label?: string | React.ReactNode;
50
54
  dependencies?: (string | number)[];
@@ -56,6 +60,7 @@ export declare type FormListType = {
56
60
  inputConfig?: inputConfig;
57
61
  datePickerConfig?: DatePickerProps;
58
62
  rangePickerConfig?: RangePickerProps;
63
+ timePickerConfig?: TimePickerProps;
59
64
  unionConfig?: {
60
65
  unionItems: UnionType[];
61
66
  divide?: string;
@@ -96,6 +101,7 @@ export declare type FormListType = {
96
101
  remoteSearchChange?: (e: string, other?: any) => void;
97
102
  datePickerChange?: PickerSharedProps<any>['onChange'];
98
103
  rangePickerChange?: RangePickerSharedProps<any>['onChange'];
104
+ timePickerChange?: PickerSharedProps<any>['onChange'];
99
105
  switchChange?: (e: boolean, other?: any) => void;
100
106
  radioChange?: (e: RadioChangeEvent, other?: any) => void;
101
107
  checkboxChange?: (e: CheckboxValueType[], other?: any) => void;