zy-react-library 1.2.35 → 1.2.37
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.
|
@@ -176,15 +176,8 @@ export type FormOptionCustomRender<O extends boolean = false, C extends boolean
|
|
|
176
176
|
* 表单配置项
|
|
177
177
|
*/
|
|
178
178
|
export type FormOption
|
|
179
|
-
=
|
|
180
|
-
|
|
181
|
-
| FormOptionDefault<true, false>
|
|
182
|
-
| { [K in keyof FORM_ITEM_RENDER_TYPE_MAP]: FormOptionByRender<K, false, false> }[keyof FORM_ITEM_RENDER_TYPE_MAP]
|
|
183
|
-
| { [K in keyof FORM_ITEM_RENDER_TYPE_MAP]: FormOptionByRender<K, false, true> }[keyof FORM_ITEM_RENDER_TYPE_MAP]
|
|
184
|
-
| { [K in keyof FORM_ITEM_RENDER_TYPE_MAP]: FormOptionByRender<K, true, false> }[keyof FORM_ITEM_RENDER_TYPE_MAP]
|
|
185
|
-
| FormOptionCustomRender<false, false>
|
|
186
|
-
| FormOptionCustomRender<false, true>
|
|
187
|
-
| FormOptionCustomRender<true, false>;
|
|
179
|
+
= { [K in keyof FORM_ITEM_RENDER_TYPE_MAP]: FormOptionByRender<K, false, false> }[keyof FORM_ITEM_RENDER_TYPE_MAP]
|
|
180
|
+
;
|
|
188
181
|
|
|
189
182
|
/**
|
|
190
183
|
* FormItemsRenderer 组件属性
|
|
@@ -20,7 +20,7 @@ export declare const FORM_ITEM_RENDER_ENUM: {
|
|
|
20
20
|
/** 映射为 antd InputNumber */
|
|
21
21
|
NUMBER: "number";
|
|
22
22
|
/** 映射为 antd InputNumber */
|
|
23
|
-
INTEGER: "
|
|
23
|
+
INTEGER: "integer";
|
|
24
24
|
/** 映射为 antd Select */
|
|
25
25
|
SELECT: "select";
|
|
26
26
|
/** 映射为 antd Radio.Group */
|
|
@@ -52,6 +52,7 @@ export interface FORM_ITEM_RENDER_TYPE_MAP {
|
|
|
52
52
|
textarea: TextAreaProps;
|
|
53
53
|
inputNumber: InputNumberProps;
|
|
54
54
|
number: InputNumberProps;
|
|
55
|
+
integer: InputNumberProps;
|
|
55
56
|
select: SelectProps;
|
|
56
57
|
radio: RadioProps;
|
|
57
58
|
checkbox: CheckboxProps;
|