@next-bricks/form 0.25.1 → 0.25.3
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/dist/chunks/99.757bce73.js.map +1 -1
- package/dist/chunks/eo-auto-complete.25b50fa1.js.map +1 -1
- package/dist/chunks/eo-checkbox.2594caeb.js.map +1 -1
- package/dist/chunks/eo-date-picker.79c1149e.js.map +1 -1
- package/dist/chunks/eo-dynamic-form-item.177ce7ae.js.map +1 -1
- package/dist/chunks/eo-form-item.357bac07.js.map +1 -1
- package/dist/chunks/eo-form.ab288dca.js.map +1 -1
- package/dist/chunks/eo-icon-select.f036f288.js.map +1 -1
- package/dist/chunks/eo-input.caaece99.js.map +1 -1
- package/dist/chunks/eo-radio.d3cea3c4.js.map +1 -1
- package/dist/chunks/eo-search.a6bee464.js.map +1 -1
- package/dist/chunks/eo-select.6c6535be.js.map +1 -1
- package/dist/chunks/eo-submit-buttons.33292cc5.js.map +1 -1
- package/dist/chunks/eo-switch.69038e4d.js.map +1 -1
- package/dist/chunks/eo-textarea.8d1dfe37.js.map +1 -1
- package/dist/chunks/eo-time-picker.43856cc4.js.map +1 -1
- package/dist/chunks/eo-time-range-picker.e55c7aa6.js.map +1 -1
- package/dist/chunks/eo-upload-file.7e78315a.js.map +1 -1
- package/dist/chunks/eo-upload-image.23589bea.js.map +1 -1
- package/dist/manifest.json +42 -19
- package/dist-types/auto-complete/index.d.ts +6 -3
- package/dist-types/checkbox/index.d.ts +2 -1
- package/dist-types/date-picker/index.d.ts +4 -2
- package/dist-types/dynamic-form-item/index.d.ts +4 -3
- package/dist-types/form/index.d.ts +3 -2
- package/dist-types/form-item/index.d.ts +5 -3
- package/dist-types/general-switch/index.d.ts +5 -4
- package/dist-types/icon-select/index.d.ts +5 -3
- package/dist-types/index.d.ts +0 -1
- package/dist-types/input/index.d.ts +2 -1
- package/dist-types/radio/index.d.ts +3 -2
- package/dist-types/search/index.d.ts +5 -3
- package/dist-types/select/index.d.ts +3 -2
- package/dist-types/submit-buttons/index.d.ts +5 -4
- package/dist-types/textarea/calculateAutoSizeStyle.d.ts +2 -1
- package/dist-types/textarea/index.d.ts +3 -2
- package/dist-types/time-picker/index.d.ts +6 -4
- package/dist-types/time-range-picker/index.d.ts +5 -3
- package/dist-types/upload/Upload.d.ts +1 -1
- package/dist-types/upload/upload-file/index.d.ts +5 -3
- package/dist-types/upload/upload-image/index.d.ts +5 -3
- package/package.json +2 -2
|
@@ -26,7 +26,9 @@ interface EoDatePickerProps extends Omit<InternalStateDatePickerProps, "value" |
|
|
|
26
26
|
onOk?: (value: string) => void;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* 日期选择器
|
|
30
|
+
* @author zhendonghuang
|
|
31
|
+
* @category form-input-basic
|
|
30
32
|
*/
|
|
31
33
|
export declare class EoDatePicker extends FormItemElementBase {
|
|
32
34
|
#private;
|
|
@@ -86,7 +88,7 @@ export declare class EoDatePicker extends FormItemElementBase {
|
|
|
86
88
|
* 输入框样式
|
|
87
89
|
*/
|
|
88
90
|
accessor inputBoxStyle: CSSProperties | undefined;
|
|
89
|
-
render(): JSX.Element;
|
|
91
|
+
render(): React.JSX.Element;
|
|
90
92
|
}
|
|
91
93
|
export declare function InternalStateDatePicker(props: InternalStateDatePickerProps): React.ReactElement;
|
|
92
94
|
export declare function EoDatePickerComponent(props: EoDatePickerProps): React.ReactElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import type { Form } from "../form/index.js";
|
|
3
3
|
import type { FormItemProps } from "../form-item/index.jsx";
|
|
4
4
|
import { UseBrickConf } from "@next-core/types";
|
|
@@ -29,6 +29,7 @@ export declare const getRealValue: (property: boolean | ((...args: any[]) => boo
|
|
|
29
29
|
/**
|
|
30
30
|
* 动态表单
|
|
31
31
|
* @author sailor
|
|
32
|
+
* @category form-input-basic
|
|
32
33
|
*/
|
|
33
34
|
declare class DynamicFormItem extends FormItemElementBase {
|
|
34
35
|
#private;
|
|
@@ -73,7 +74,7 @@ declare class DynamicFormItem extends FormItemElementBase {
|
|
|
73
74
|
*/
|
|
74
75
|
accessor useBrick: UseBrickConf | undefined;
|
|
75
76
|
handleDynamicFormChange: (values: DynamicFormValuesItem[]) => void;
|
|
76
|
-
render(): JSX.Element;
|
|
77
|
+
render(): React.JSX.Element;
|
|
77
78
|
}
|
|
78
|
-
export declare function DynamicFormItemComponent(props: DynamicFormItemProps): JSX.Element;
|
|
79
|
+
export declare function DynamicFormItemComponent(props: DynamicFormItemProps): React.JSX.Element;
|
|
79
80
|
export { DynamicFormItem };
|
|
@@ -21,6 +21,7 @@ export interface FormMapEvents {
|
|
|
21
21
|
* 表单构件
|
|
22
22
|
* @author sailor
|
|
23
23
|
* @slot - 表单内容
|
|
24
|
+
* @category form-input-basic
|
|
24
25
|
*/
|
|
25
26
|
declare class Form extends ReactNextElement implements FormProps, AbstractForm {
|
|
26
27
|
#private;
|
|
@@ -73,7 +74,7 @@ declare class Form extends ReactNextElement implements FormProps, AbstractForm {
|
|
|
73
74
|
* 重置表单校验状态方法
|
|
74
75
|
*/
|
|
75
76
|
resetValidateState(): void;
|
|
76
|
-
render(): JSX.Element;
|
|
77
|
+
render(): React.JSX.Element;
|
|
77
78
|
}
|
|
78
79
|
interface FormComponentProps extends FormProps {
|
|
79
80
|
formStyle?: React.CSSProperties;
|
|
@@ -83,5 +84,5 @@ interface FormComponentProps extends FormProps {
|
|
|
83
84
|
onValidateSuccess?: () => void;
|
|
84
85
|
onValidateError?: () => void;
|
|
85
86
|
}
|
|
86
|
-
export declare function FormComponent({ layout, formStyle, }: FormComponentProps): JSX.Element;
|
|
87
|
+
export declare function FormComponent({ layout, formStyle, }: FormComponentProps): React.JSX.Element;
|
|
87
88
|
export { Form, FormProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { AbstractForm, FormItemElementBase, MessageBody, ColProps } from "@next-shared/form";
|
|
3
3
|
import type { Form } from "../form/index.jsx";
|
|
4
4
|
import type { ComponentSize, Layout } from "../interface.js";
|
|
@@ -39,6 +39,8 @@ export interface FormItemProps {
|
|
|
39
39
|
/**
|
|
40
40
|
* 通用输入框构件
|
|
41
41
|
* @author sailor
|
|
42
|
+
* @slot - 表单项内容
|
|
43
|
+
* @category form-input-basic
|
|
42
44
|
*/
|
|
43
45
|
declare class FormItem extends FormItemElementBase implements FormItemProps {
|
|
44
46
|
accessor formElement: Form | undefined;
|
|
@@ -82,7 +84,7 @@ declare class FormItem extends FormItemElementBase implements FormItemProps {
|
|
|
82
84
|
* 值变化时是否主动出发校验
|
|
83
85
|
*/
|
|
84
86
|
accessor needValidate: boolean | undefined;
|
|
85
|
-
render(): JSX.Element | null;
|
|
87
|
+
render(): React.JSX.Element | null;
|
|
86
88
|
}
|
|
87
89
|
export { FormItem };
|
|
88
|
-
export declare function FormItemComponent(props: FormItemProps): JSX.Element;
|
|
90
|
+
export declare function FormItemComponent(props: FormItemProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "@next-core/theme";
|
|
3
3
|
import { FormItemElementBase } from "@next-shared/form";
|
|
4
4
|
import type { FormItemProps } from "../form-item/index.js";
|
|
@@ -16,8 +16,9 @@ interface SwitchProps extends FormItemProps {
|
|
|
16
16
|
unCheckedIcon?: GeneralIconProps;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 开关
|
|
20
20
|
* @author zhendonghuang
|
|
21
|
+
* @category form-input-basic
|
|
21
22
|
*/
|
|
22
23
|
export declare class GeneralSwitch extends FormItemElementBase {
|
|
23
24
|
#private;
|
|
@@ -58,7 +59,7 @@ export declare class GeneralSwitch extends FormItemElementBase {
|
|
|
58
59
|
*/
|
|
59
60
|
accessor unCheckedIcon: GeneralIconProps | undefined;
|
|
60
61
|
handleSwitch: (value: boolean) => void;
|
|
61
|
-
render(): JSX.Element;
|
|
62
|
+
render(): React.JSX.Element;
|
|
62
63
|
}
|
|
63
|
-
export declare function GeneralSwitchComponent(props: SwitchProps): JSX.Element;
|
|
64
|
+
export declare function GeneralSwitchComponent(props: SwitchProps): React.JSX.Element;
|
|
64
65
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { FormItemElementBase } from "@next-shared/form";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
import type { FormItemProps } from "../form-item/index.js";
|
|
@@ -16,6 +16,8 @@ export interface IconSelectProps {
|
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* 图标选择构件
|
|
19
|
+
* @author nlicro
|
|
20
|
+
* @category form-input-basic
|
|
19
21
|
*/
|
|
20
22
|
export declare class IconSelect extends FormItemElementBase implements IconSelectProps {
|
|
21
23
|
#private;
|
|
@@ -44,10 +46,10 @@ export declare class IconSelect extends FormItemElementBase implements IconSelec
|
|
|
44
46
|
*/
|
|
45
47
|
accessor message: Record<string, string> | undefined;
|
|
46
48
|
handleChange: (value?: Icon) => void;
|
|
47
|
-
render(): JSX.Element;
|
|
49
|
+
render(): React.JSX.Element;
|
|
48
50
|
}
|
|
49
51
|
interface IconSelectComponentProps extends FormItemProps, IconSelectProps {
|
|
50
52
|
onChange?: (value?: Icon) => void;
|
|
51
53
|
}
|
|
52
|
-
export declare function IconSelectComponent(props: IconSelectComponentProps): JSX.Element;
|
|
54
|
+
export declare function IconSelectComponent(props: IconSelectComponentProps): React.JSX.Element;
|
|
53
55
|
export {};
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -40,6 +40,7 @@ export interface InputEventsMap {
|
|
|
40
40
|
* @slot addonAfter - 输入框后置标签
|
|
41
41
|
* @slot prefix - 输入框前缀图标
|
|
42
42
|
* @slot suffix - 输入框后缀图标
|
|
43
|
+
* @category form-input-basic
|
|
43
44
|
*/
|
|
44
45
|
export declare class Input extends FormItemElementBase {
|
|
45
46
|
#private;
|
|
@@ -151,7 +152,7 @@ export declare class Input extends FormItemElementBase {
|
|
|
151
152
|
*/
|
|
152
153
|
accessor validator: ((value: any) => MessageBody) | undefined;
|
|
153
154
|
renderCallback: (ref: RCInputRef) => void;
|
|
154
|
-
render(): JSX.Element;
|
|
155
|
+
render(): React.JSX.Element;
|
|
155
156
|
}
|
|
156
157
|
export interface RCInputProps extends InputProps {
|
|
157
158
|
onInputChange?: (value: string) => void;
|
|
@@ -37,6 +37,7 @@ export interface RadioEventsMapping {
|
|
|
37
37
|
/**
|
|
38
38
|
* 通用单选构件
|
|
39
39
|
* @author sailor
|
|
40
|
+
* @category form-input-basic
|
|
40
41
|
*/
|
|
41
42
|
declare class Radio extends FormItemElementBase {
|
|
42
43
|
#private;
|
|
@@ -97,11 +98,11 @@ declare class Radio extends FormItemElementBase {
|
|
|
97
98
|
label: string;
|
|
98
99
|
value: any;
|
|
99
100
|
}) => void;
|
|
100
|
-
render(): JSX.Element;
|
|
101
|
+
render(): React.JSX.Element;
|
|
101
102
|
}
|
|
102
103
|
interface RadioComponentProps extends RadioProps, FormItemProps {
|
|
103
104
|
onChange?: (value: any) => void;
|
|
104
105
|
optionsChange?: (options: any, name: string) => void;
|
|
105
106
|
}
|
|
106
|
-
export declare function RadioComponent(props: RadioComponentProps): JSX.Element;
|
|
107
|
+
export declare function RadioComponent(props: RadioComponentProps): React.JSX.Element;
|
|
107
108
|
export { Radio };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
export interface SearchProps {
|
|
@@ -19,6 +19,8 @@ export interface SearchEventsMap {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* 搜索框
|
|
22
|
+
* @author nlicro
|
|
23
|
+
* @category form-input-basic
|
|
22
24
|
*/
|
|
23
25
|
export declare class GeneralSearch extends ReactNextElement implements SearchProps {
|
|
24
26
|
#private;
|
|
@@ -46,12 +48,12 @@ export declare class GeneralSearch extends ReactNextElement implements SearchPro
|
|
|
46
48
|
* 默认延迟时间
|
|
47
49
|
*/
|
|
48
50
|
accessor debounceTime: number;
|
|
49
|
-
render(): JSX.Element;
|
|
51
|
+
render(): React.JSX.Element;
|
|
50
52
|
}
|
|
51
53
|
interface SearchComponentProps extends SearchProps {
|
|
52
54
|
onSearch?: (value: string) => void;
|
|
53
55
|
onChange?: (value: string) => void;
|
|
54
56
|
onDebouncedChange?: (value: string) => void;
|
|
55
57
|
}
|
|
56
|
-
export declare function GeneralSearchComponent(props: SearchComponentProps): JSX.Element;
|
|
58
|
+
export declare function GeneralSearchComponent(props: SearchComponentProps): React.JSX.Element;
|
|
57
59
|
export {};
|
|
@@ -39,6 +39,7 @@ export interface SelectProps extends FormItemProps {
|
|
|
39
39
|
/**
|
|
40
40
|
* 通用下拉选择构件
|
|
41
41
|
* @author sailorshe
|
|
42
|
+
* @category form-input-basic
|
|
42
43
|
*/
|
|
43
44
|
declare class Select extends FormItemElementBase {
|
|
44
45
|
#private;
|
|
@@ -119,7 +120,7 @@ declare class Select extends FormItemElementBase {
|
|
|
119
120
|
private _handleOptionsChange;
|
|
120
121
|
handleSearch: (value: string) => void;
|
|
121
122
|
handleFocus: () => void;
|
|
122
|
-
render(): JSX.Element;
|
|
123
|
+
render(): React.JSX.Element;
|
|
123
124
|
}
|
|
124
|
-
export declare function SelectComponent(props: SelectProps): JSX.Element;
|
|
125
|
+
export declare function SelectComponent(props: SelectProps): React.JSX.Element;
|
|
125
126
|
export { Select };
|
|
@@ -13,8 +13,9 @@ interface SubmitButtonsProps extends FormItemProps {
|
|
|
13
13
|
onCancelClick?: (event: React.MouseEvent) => void;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @author
|
|
16
|
+
* 表单提交按钮
|
|
17
|
+
* @author zhendonghuang
|
|
18
|
+
* @category form-input-basic
|
|
18
19
|
*/
|
|
19
20
|
declare class SubmitButtons extends FormItemElementBase {
|
|
20
21
|
#private;
|
|
@@ -45,7 +46,7 @@ declare class SubmitButtons extends FormItemElementBase {
|
|
|
45
46
|
accessor cancelType: ButtonType | undefined;
|
|
46
47
|
private _handleSubmitClick;
|
|
47
48
|
private _handleCancelClick;
|
|
48
|
-
render(): JSX.Element;
|
|
49
|
+
render(): React.JSX.Element;
|
|
49
50
|
}
|
|
50
|
-
export declare function ButtonsComponent(props: SubmitButtonsProps): JSX.Element;
|
|
51
|
+
export declare function ButtonsComponent(props: SubmitButtonsProps): React.JSX.Element;
|
|
51
52
|
export { SubmitButtons };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react"
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
/// <reference types="trusted-types" />
|
|
3
4
|
export default function calculateAutoSizeStyle(uiTextNode: HTMLTextAreaElement, minRows?: number | null, maxRows?: number | null): React.CSSProperties;
|
|
@@ -21,6 +21,7 @@ interface TextareaProps extends FormItemProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* 通用多行文本输入框构件
|
|
23
23
|
* @author sailor
|
|
24
|
+
* @category form-input-basic
|
|
24
25
|
*/
|
|
25
26
|
declare class Textarea extends FormItemElementBase {
|
|
26
27
|
#private;
|
|
@@ -77,7 +78,7 @@ declare class Textarea extends FormItemElementBase {
|
|
|
77
78
|
*/
|
|
78
79
|
accessor textareaStyle: React.CSSProperties | undefined;
|
|
79
80
|
handleInputChange: (value: string) => void;
|
|
80
|
-
render(): JSX.Element;
|
|
81
|
+
render(): React.JSX.Element;
|
|
81
82
|
}
|
|
82
|
-
export declare function TextareaComponent(props: TextareaProps): JSX.Element;
|
|
83
|
+
export declare function TextareaComponent(props: TextareaProps): React.JSX.Element;
|
|
83
84
|
export { Textarea };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "@next-core/theme";
|
|
3
3
|
import { FormItemElementBase } from "@next-shared/form";
|
|
4
4
|
import type { FormItemProps } from "../form-item/index.jsx";
|
|
@@ -13,7 +13,9 @@ interface EoTimePickerProps extends FormItemProps {
|
|
|
13
13
|
onOpenChange?: (flag: boolean, value: string) => void;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 时间选择器
|
|
17
|
+
* @author zhendonghuang
|
|
18
|
+
* @category form-input-basic
|
|
17
19
|
*/
|
|
18
20
|
export declare class EoTimePicker extends FormItemElementBase {
|
|
19
21
|
#private;
|
|
@@ -49,7 +51,7 @@ export declare class EoTimePicker extends FormItemElementBase {
|
|
|
49
51
|
* 透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)
|
|
50
52
|
*/
|
|
51
53
|
accessor configProps: Partial<TimePickerProps> | undefined;
|
|
52
|
-
render(): JSX.Element;
|
|
54
|
+
render(): React.JSX.Element;
|
|
53
55
|
}
|
|
54
|
-
export declare function EoTimePickerComponent(props: EoTimePickerProps): JSX.Element;
|
|
56
|
+
export declare function EoTimePickerComponent(props: EoTimePickerProps): React.JSX.Element;
|
|
55
57
|
export {};
|
|
@@ -29,7 +29,9 @@ export interface EoTimeRangePickerProps extends FormItemProps {
|
|
|
29
29
|
}
|
|
30
30
|
type RealTimeRangePickerProps = Omit<EoTimeRangePickerProps, keyof FormItemProps>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* 时间区间选择器
|
|
33
|
+
* @author zhendonghuang
|
|
34
|
+
* @category form-input-basic
|
|
33
35
|
*/
|
|
34
36
|
export declare class EoTimeRangePicker extends FormItemElementBase {
|
|
35
37
|
#private;
|
|
@@ -73,8 +75,8 @@ export declare class EoTimeRangePicker extends FormItemElementBase {
|
|
|
73
75
|
unequal: (value: TimeRange) => string;
|
|
74
76
|
startTimeRequired: (value: TimeRange) => string;
|
|
75
77
|
endTimeRequired: (value: TimeRange) => string;
|
|
76
|
-
render(): JSX.Element;
|
|
78
|
+
render(): React.JSX.Element;
|
|
77
79
|
}
|
|
78
80
|
export declare function RealTimeRangePicker(props: RealTimeRangePickerProps): React.ReactElement;
|
|
79
|
-
export declare function EoTimeRangePickerComponent(props: EoTimeRangePickerProps): JSX.Element;
|
|
81
|
+
export declare function EoTimeRangePickerComponent(props: EoTimeRangePickerProps): React.JSX.Element;
|
|
80
82
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import type { ButtonProps } from "@next-bricks/basic/button";
|
|
3
3
|
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
4
4
|
import { FormItemElementBase } from "@next-shared/form";
|
|
@@ -28,6 +28,8 @@ export interface UploadFileProps {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* 上传文件
|
|
31
|
+
* @author nlicro
|
|
32
|
+
* @category form-input-basic
|
|
31
33
|
*/
|
|
32
34
|
export declare class EoUploadFile extends FormItemElementBase implements UploadFileProps {
|
|
33
35
|
#private;
|
|
@@ -109,10 +111,10 @@ export declare class EoUploadFile extends FormItemElementBase implements UploadF
|
|
|
109
111
|
*/
|
|
110
112
|
accessor uploadName: string;
|
|
111
113
|
handleChange: (fileDataList: FileData[]) => void;
|
|
112
|
-
render(): JSX.Element;
|
|
114
|
+
render(): React.JSX.Element;
|
|
113
115
|
}
|
|
114
116
|
interface UploadFileComponentProps extends UploadFileProps, FormItemProps {
|
|
115
117
|
onChange?: (fileDataList: FileData[]) => void;
|
|
116
118
|
}
|
|
117
|
-
export declare function EoUploadFileComponent(props: UploadFileComponentProps): JSX.Element;
|
|
119
|
+
export declare function EoUploadFileComponent(props: UploadFileComponentProps): React.JSX.Element;
|
|
118
120
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "@next-core/theme";
|
|
3
3
|
import { FormItemElementBase } from "@next-shared/form";
|
|
4
4
|
import type { FormItemProps } from "../../form-item/index.js";
|
|
@@ -15,6 +15,8 @@ export interface UploadImageProps {
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* 上传图片构件
|
|
18
|
+
* @author nlicro
|
|
19
|
+
* @category form-input-basic
|
|
18
20
|
*/
|
|
19
21
|
export declare class UploadImage extends FormItemElementBase implements UploadImageProps {
|
|
20
22
|
#private;
|
|
@@ -51,10 +53,10 @@ export declare class UploadImage extends FormItemElementBase implements UploadIm
|
|
|
51
53
|
*/
|
|
52
54
|
accessor message: Record<string, string> | undefined;
|
|
53
55
|
handleChange: (imageList: ImageData[]) => void;
|
|
54
|
-
render(): JSX.Element;
|
|
56
|
+
render(): React.JSX.Element;
|
|
55
57
|
}
|
|
56
58
|
interface UploadImageComponentProps extends UploadImageProps, FormItemProps {
|
|
57
59
|
onChange?: (imageList: ImageData[]) => void;
|
|
58
60
|
}
|
|
59
|
-
export declare function UploadImageComponent(props: UploadImageComponentProps): JSX.Element;
|
|
61
|
+
export declare function UploadImageComponent(props: UploadImageComponentProps): React.JSX.Element;
|
|
60
62
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.3",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"@next-core/build-next-bricks": "^1.15.1",
|
|
38
38
|
"@next-core/test-next": "^1.0.11"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "d649b3489b123aaa283c3ada33a7dc76522fda04"
|
|
41
41
|
}
|