@nickeylin/antd-mobile-pro 2.1.3 → 2.1.4
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/cjs/components/checkbox/checkbox.d.ts +1 -1
- package/dist/cjs/components/checkbox/index.d.ts +1 -1
- package/dist/cjs/components/pro-form/pro-form.d.ts +18 -13
- package/dist/cjs/components/pro-form/pro-form.js +1 -2
- package/dist/cjs/components/tree-picker/index.d.ts +1 -1
- package/dist/cjs/components/tree-picker/tree-picker.d.ts +1 -1
- package/dist/es/components/checkbox/checkbox.d.ts +1 -1
- package/dist/es/components/checkbox/index.d.ts +1 -1
- package/dist/es/components/pro-form/pro-form.d.ts +18 -13
- package/dist/es/components/pro-form/pro-form.js +1 -5
- package/dist/es/components/tree-picker/index.d.ts +1 -1
- package/dist/es/components/tree-picker/tree-picker.d.ts +1 -1
- package/dist/umd/antd-mobile-pro.min.js +1 -1
- package/package.json +2 -2
|
@@ -17,7 +17,7 @@ declare const Checkbox: import("react").ForwardRefExoticComponent<{
|
|
|
17
17
|
onClick?: ((event: import("react").MouseEvent<HTMLLabelElement, MouseEvent>) => void) | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
className?: string | undefined;
|
|
20
|
-
style?: (import("react").CSSProperties & Partial<Record<"--
|
|
20
|
+
style?: (import("react").CSSProperties & Partial<Record<"--gap" | "--icon-size" | "--font-size", string>>) | undefined;
|
|
21
21
|
tabIndex?: number | undefined;
|
|
22
22
|
} & import("react").AriaAttributes & {
|
|
23
23
|
shape?: "circle" | "square" | undefined;
|
|
@@ -14,7 +14,7 @@ declare const Checkbox: import("react").ForwardRefExoticComponent<{
|
|
|
14
14
|
onClick?: ((event: import("react").MouseEvent<HTMLLabelElement, MouseEvent>) => void) | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
className?: string | undefined;
|
|
17
|
-
style?: (import("react").CSSProperties & Partial<Record<"--
|
|
17
|
+
style?: (import("react").CSSProperties & Partial<Record<"--gap" | "--icon-size" | "--font-size", string>>) | undefined;
|
|
18
18
|
tabIndex?: number | undefined;
|
|
19
19
|
} & import("react").AriaAttributes & {
|
|
20
20
|
shape?: "circle" | "square" | undefined;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormProps } from 'antd-mobile';
|
|
2
2
|
import { FormProps as RcFormProps } from 'rc-field-form';
|
|
3
3
|
import { ForwardedRef } from 'react';
|
|
4
4
|
import { SubmitterProps } from './default-submitter';
|
|
5
5
|
import { ProFormContextType } from './pro-form-context';
|
|
6
|
-
import ProFormItem, { ProFormItemValue } from './pro-form-item';
|
|
7
6
|
import { ProFormInstance } from './types';
|
|
8
7
|
import { useFormInstace } from './use-form-instance';
|
|
9
|
-
export type ProFormProps<Values extends object = any> = Omit<FormProps, 'onFinish' | 'onValuesChange' | 'onFinishFailed'> & Pick<RcFormProps<Values>, 'form' | 'onValuesChange' | 'onFinishFailed'> & ProFormContextType & {
|
|
8
|
+
export type ProFormProps<Values extends object = any> = Omit<FormProps, 'onFinish' | 'onValuesChange' | 'onFinishFailed' | 'form'> & Pick<RcFormProps<Values>, 'form' | 'onValuesChange' | 'onFinishFailed'> & ProFormContextType & {
|
|
10
9
|
onFinish?(values: Values): Promise<void>;
|
|
11
10
|
params?: any;
|
|
12
11
|
request?(params: any): Promise<Partial<Values>>;
|
|
@@ -16,14 +15,20 @@ export type ProFormProps<Values extends object = any> = Omit<FormProps, 'onFinis
|
|
|
16
15
|
*/
|
|
17
16
|
submitter?: false | SubmitterProps;
|
|
18
17
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
declare function ProForm<Values extends object = any>({ onFinish, params, request, initialValues, disabled, form: formProp, formRef, submitter, layout, className, childElementPosition, readonly, ...props }: ProFormProps<Values>): JSX.Element;
|
|
19
|
+
declare namespace ProForm {
|
|
20
|
+
var useForm: typeof import("rc-field-form").useForm;
|
|
21
|
+
var useWatch: typeof import("rc-field-form").useWatch;
|
|
22
|
+
var Header: import("react").FC<{
|
|
23
|
+
children?: import("react").ReactNode;
|
|
24
|
+
}>;
|
|
25
|
+
var Item: import("react").FC<import("./pro-form-item").ProFormItemProps>;
|
|
26
|
+
var ItemValue: import("react").FC<{
|
|
27
|
+
value?: import("react").ReactNode;
|
|
28
|
+
placeholder?: string | undefined;
|
|
29
|
+
readonly?: boolean | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
var Subscribe: import("react").FC<import("antd-mobile/es/components/form").FormSubscribeProps>;
|
|
32
|
+
var useFormInstance: typeof useFormInstace;
|
|
27
33
|
}
|
|
28
|
-
|
|
29
|
-
export default TypedProForm;
|
|
34
|
+
export default ProForm;
|
|
@@ -200,5 +200,4 @@ ProForm.Item = import_pro_form_item.default;
|
|
|
200
200
|
ProForm.ItemValue = import_pro_form_item.ProFormItemValue;
|
|
201
201
|
ProForm.Subscribe = import_antd_mobile.Form.Subscribe;
|
|
202
202
|
ProForm.useFormInstance = import_use_form_instance.useFormInstace;
|
|
203
|
-
var
|
|
204
|
-
var pro_form_default = TypedProForm;
|
|
203
|
+
var pro_form_default = ProForm;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import prompt from './prompt';
|
|
3
3
|
import './tree-picker.less';
|
|
4
|
-
declare const TreePicker: (<T extends import("..").TreeDataNode<object> = import("..").TreeDataNode<object>>(props: Omit<import("..").PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<import("..").TreeProps<T>, "
|
|
4
|
+
declare const TreePicker: (<T extends import("..").TreeDataNode<object> = import("..").TreeDataNode<object>>(props: Omit<import("..").PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<import("..").TreeProps<T>, "params" | "request" | "search" | "fieldNames" | "rowKey" | "dataSource"> & {
|
|
5
5
|
treeProps?: Omit<import("..").TreeProps<T>, "rowKey"> | undefined;
|
|
6
6
|
multiple?: boolean | undefined;
|
|
7
7
|
} & {
|
|
@@ -9,7 +9,7 @@ export type TreePickerProps<T extends TreeDataNode<object> = TreeDataNode<object
|
|
|
9
9
|
*/
|
|
10
10
|
multiple?: boolean;
|
|
11
11
|
} & NativeProps;
|
|
12
|
-
declare const TreePicker: <T extends TreeDataNode<object> = TreeDataNode<object>>(props: Omit<PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<TreeProps<T>, "search" | "
|
|
12
|
+
declare const TreePicker: <T extends TreeDataNode<object> = TreeDataNode<object>>(props: Omit<PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<TreeProps<T>, "search" | "fieldNames" | "request" | "params" | "rowKey" | "dataSource"> & {
|
|
13
13
|
treeProps?: Omit<TreeProps<T>, "rowKey"> | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* 启用多选时,将启用复选框禁用选择,即点击整行会选中复选框
|
|
@@ -17,7 +17,7 @@ declare const Checkbox: import("react").ForwardRefExoticComponent<{
|
|
|
17
17
|
onClick?: ((event: import("react").MouseEvent<HTMLLabelElement, MouseEvent>) => void) | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
className?: string | undefined;
|
|
20
|
-
style?: (import("react").CSSProperties & Partial<Record<"--
|
|
20
|
+
style?: (import("react").CSSProperties & Partial<Record<"--gap" | "--icon-size" | "--font-size", string>>) | undefined;
|
|
21
21
|
tabIndex?: number | undefined;
|
|
22
22
|
} & import("react").AriaAttributes & {
|
|
23
23
|
shape?: "circle" | "square" | undefined;
|
|
@@ -14,7 +14,7 @@ declare const Checkbox: import("react").ForwardRefExoticComponent<{
|
|
|
14
14
|
onClick?: ((event: import("react").MouseEvent<HTMLLabelElement, MouseEvent>) => void) | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
className?: string | undefined;
|
|
17
|
-
style?: (import("react").CSSProperties & Partial<Record<"--
|
|
17
|
+
style?: (import("react").CSSProperties & Partial<Record<"--gap" | "--icon-size" | "--font-size", string>>) | undefined;
|
|
18
18
|
tabIndex?: number | undefined;
|
|
19
19
|
} & import("react").AriaAttributes & {
|
|
20
20
|
shape?: "circle" | "square" | undefined;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormProps } from 'antd-mobile';
|
|
2
2
|
import { FormProps as RcFormProps } from 'rc-field-form';
|
|
3
3
|
import { ForwardedRef } from 'react';
|
|
4
4
|
import { SubmitterProps } from './default-submitter';
|
|
5
5
|
import { ProFormContextType } from './pro-form-context';
|
|
6
|
-
import ProFormItem, { ProFormItemValue } from './pro-form-item';
|
|
7
6
|
import { ProFormInstance } from './types';
|
|
8
7
|
import { useFormInstace } from './use-form-instance';
|
|
9
|
-
export type ProFormProps<Values extends object = any> = Omit<FormProps, 'onFinish' | 'onValuesChange' | 'onFinishFailed'> & Pick<RcFormProps<Values>, 'form' | 'onValuesChange' | 'onFinishFailed'> & ProFormContextType & {
|
|
8
|
+
export type ProFormProps<Values extends object = any> = Omit<FormProps, 'onFinish' | 'onValuesChange' | 'onFinishFailed' | 'form'> & Pick<RcFormProps<Values>, 'form' | 'onValuesChange' | 'onFinishFailed'> & ProFormContextType & {
|
|
10
9
|
onFinish?(values: Values): Promise<void>;
|
|
11
10
|
params?: any;
|
|
12
11
|
request?(params: any): Promise<Partial<Values>>;
|
|
@@ -16,14 +15,20 @@ export type ProFormProps<Values extends object = any> = Omit<FormProps, 'onFinis
|
|
|
16
15
|
*/
|
|
17
16
|
submitter?: false | SubmitterProps;
|
|
18
17
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
declare function ProForm<Values extends object = any>({ onFinish, params, request, initialValues, disabled, form: formProp, formRef, submitter, layout, className, childElementPosition, readonly, ...props }: ProFormProps<Values>): JSX.Element;
|
|
19
|
+
declare namespace ProForm {
|
|
20
|
+
var useForm: typeof import("rc-field-form").useForm;
|
|
21
|
+
var useWatch: typeof import("rc-field-form").useWatch;
|
|
22
|
+
var Header: import("react").FC<{
|
|
23
|
+
children?: import("react").ReactNode;
|
|
24
|
+
}>;
|
|
25
|
+
var Item: import("react").FC<import("./pro-form-item").ProFormItemProps>;
|
|
26
|
+
var ItemValue: import("react").FC<{
|
|
27
|
+
value?: import("react").ReactNode;
|
|
28
|
+
placeholder?: string | undefined;
|
|
29
|
+
readonly?: boolean | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
var Subscribe: import("react").FC<import("antd-mobile/es/components/form").FormSubscribeProps>;
|
|
32
|
+
var useFormInstance: typeof useFormInstace;
|
|
27
33
|
}
|
|
28
|
-
|
|
29
|
-
export default TypedProForm;
|
|
34
|
+
export default ProForm;
|
|
@@ -234,8 +234,4 @@ ProForm.Item = ProFormItem;
|
|
|
234
234
|
ProForm.ItemValue = ProFormItemValue;
|
|
235
235
|
ProForm.Subscribe = Form.Subscribe;
|
|
236
236
|
ProForm.useFormInstance = useFormInstace;
|
|
237
|
-
|
|
238
|
-
// Define proper types for the namespace properties
|
|
239
|
-
|
|
240
|
-
var TypedProForm = ProForm;
|
|
241
|
-
export default TypedProForm;
|
|
237
|
+
export default ProForm;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import prompt from './prompt';
|
|
3
3
|
import './tree-picker.less';
|
|
4
|
-
declare const TreePicker: (<T extends import("..").TreeDataNode<object> = import("..").TreeDataNode<object>>(props: Omit<import("..").PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<import("..").TreeProps<T>, "
|
|
4
|
+
declare const TreePicker: (<T extends import("..").TreeDataNode<object> = import("..").TreeDataNode<object>>(props: Omit<import("..").PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<import("..").TreeProps<T>, "params" | "request" | "search" | "fieldNames" | "rowKey" | "dataSource"> & {
|
|
5
5
|
treeProps?: Omit<import("..").TreeProps<T>, "rowKey"> | undefined;
|
|
6
6
|
multiple?: boolean | undefined;
|
|
7
7
|
} & {
|
|
@@ -9,7 +9,7 @@ export type TreePickerProps<T extends TreeDataNode<object> = TreeDataNode<object
|
|
|
9
9
|
*/
|
|
10
10
|
multiple?: boolean;
|
|
11
11
|
} & NativeProps;
|
|
12
|
-
declare const TreePicker: <T extends TreeDataNode<object> = TreeDataNode<object>>(props: Omit<PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<TreeProps<T>, "search" | "
|
|
12
|
+
declare const TreePicker: <T extends TreeDataNode<object> = TreeDataNode<object>>(props: Omit<PopupPickerMixinProps<T | T[]>, "fieldNames"> & Pick<TreeProps<T>, "search" | "fieldNames" | "request" | "params" | "rowKey" | "dataSource"> & {
|
|
13
13
|
treeProps?: Omit<TreeProps<T>, "rowKey"> | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* 启用多选时,将启用复选框禁用选择,即点击整行会选中复选框
|