hlyc-web-pack 3.6.67 → 3.6.69
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.
- package/lib/GenerateForm/index.d.ts +11 -2
- package/lib/index.js +12 -7
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RadioChangeEvent } from 'antd';
|
|
2
|
+
import { RadioChangeEvent, InputNumberProps } from 'antd';
|
|
3
3
|
import { RowProps } from 'antd/es/row';
|
|
4
4
|
import { ColProps } from 'antd/es/col';
|
|
5
5
|
import { FormProps, Rule, FormItemProps } from 'antd/es/form';
|
|
@@ -14,6 +14,7 @@ import { CheckboxValueType } from 'antd/es/checkbox/Group';
|
|
|
14
14
|
import { DataNode, DefaultValueType } from 'rc-tree-select/es/interface';
|
|
15
15
|
import { FormInstance } from 'rc-field-form/es/interface';
|
|
16
16
|
import { DatePickerProps, RangePickerProps } from 'antd/es/date-picker';
|
|
17
|
+
import { TimeRangePickerProps } from 'antd/es/time-picker';
|
|
17
18
|
import { AnyObjectType, SelectType } from '../brother/typings';
|
|
18
19
|
import './index.less';
|
|
19
20
|
export interface DefaultOptionType {
|
|
@@ -43,24 +44,30 @@ interface UnionType {
|
|
|
43
44
|
remoteConfig?: FormListType['remoteConfig'];
|
|
44
45
|
datePickerConfig?: FormListType['datePickerConfig'];
|
|
45
46
|
rangePickerConfig?: FormListType['rangePickerConfig'];
|
|
47
|
+
timeRangePickerConfig?: FormListType['timeRangePickerConfig'];
|
|
46
48
|
timePickerConfig?: FormListType['timePickerConfig'];
|
|
47
49
|
rules?: FormListType['rules'];
|
|
48
50
|
}
|
|
49
51
|
export declare type FormListType = {
|
|
50
52
|
colProps?: ColProps;
|
|
51
53
|
visible?: boolean;
|
|
52
|
-
componentName: 'Input' | 'HideInput' | 'TextArea' | 'AutoComplete' | 'Select' | 'Multiple' | 'MultipleTag' | 'RemoteSearch' | 'DatePicker' | 'RangePicker' | 'TimePicker' | 'Switch' | 'Radio' | 'Checkbox' | 'TreeSelect' | 'Union' | 'RegionSelection' | 'Rate' | 'Null';
|
|
54
|
+
componentName: 'Input' | 'InputNumber' | 'HideInput' | 'TextArea' | 'AutoComplete' | 'Select' | 'Multiple' | 'MultipleTag' | 'RemoteSearch' | 'DatePicker' | 'RangePicker' | 'TimeRangePicker' | 'TimePicker' | 'Switch' | 'Radio' | 'Checkbox' | 'TreeSelect' | 'Union' | 'RegionSelection' | 'Rate' | 'Null';
|
|
53
55
|
name?: string;
|
|
54
56
|
label?: string | React.ReactNode;
|
|
55
57
|
dependencies?: (string | number)[];
|
|
56
58
|
placeholder?: string;
|
|
57
59
|
rangePickerPlaceholder?: [string, string];
|
|
60
|
+
timeRangePickerPlaceholder?: [string, string];
|
|
58
61
|
disabled?: boolean;
|
|
59
62
|
maxLength?: number;
|
|
60
63
|
valuePropName?: string;
|
|
61
64
|
inputConfig?: inputConfig;
|
|
65
|
+
inputNumberConfig?: InputNumberProps & {
|
|
66
|
+
alignRight?: boolean;
|
|
67
|
+
};
|
|
62
68
|
datePickerConfig?: DatePickerProps;
|
|
63
69
|
rangePickerConfig?: RangePickerProps;
|
|
70
|
+
timeRangePickerConfig?: TimeRangePickerProps;
|
|
64
71
|
timePickerConfig?: TimePickerProps;
|
|
65
72
|
unionConfig?: {
|
|
66
73
|
unionItems: UnionType[];
|
|
@@ -95,6 +102,7 @@ export declare type FormListType = {
|
|
|
95
102
|
rows?: number;
|
|
96
103
|
rules?: Rule[];
|
|
97
104
|
inputChange?: (e: React.ChangeEvent<HTMLInputElement>, other?: any) => void;
|
|
105
|
+
inputNumberChange?: InputNumberProps['onChange'];
|
|
98
106
|
inputEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
99
107
|
textAreaChange?: (e: React.ChangeEvent<HTMLTextAreaElement>, other?: any) => void;
|
|
100
108
|
autoCompleteChange?: (e: string, other?: any) => void;
|
|
@@ -103,6 +111,7 @@ export declare type FormListType = {
|
|
|
103
111
|
remoteSearchChange?: (e: string, other?: any) => void;
|
|
104
112
|
datePickerChange?: PickerSharedProps<any>['onChange'];
|
|
105
113
|
rangePickerChange?: RangePickerSharedProps<any>['onChange'];
|
|
114
|
+
timeRangePickerChange?: RangePickerSharedProps<any>['onChange'];
|
|
106
115
|
timePickerChange?: PickerSharedProps<any>['onChange'];
|
|
107
116
|
switchChange?: (e: boolean, other?: any) => void;
|
|
108
117
|
radioChange?: (e: RadioChangeEvent, other?: any) => void;
|