@unicom-cloud/ui 0.8.84 → 0.8.85
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/AutoComplete.js +1 -1
- package/Calendar.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Form.js +13 -13
- package/List.js +1 -1
- package/Mentions.js +1 -1
- package/Pagination.js +1 -1
- package/Radio.js +1 -1
- package/Select.js +1 -1
- package/Space.js +2 -2
- package/Table.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Typography.js +1 -1
- package/auto-complete/index.js +1 -1
- package/calendar/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/index.js +2 -2
- package/chunk/BP4igg_F.js +213 -0
- package/chunk/{DO3k0z6J.js → DSXeBMp3.js} +11 -9
- package/color-picker/Panel.js +1 -1
- package/color-picker/index.js +1 -1
- package/development/index.js +1 -1
- package/form/Form.js +14 -158
- package/form/FormList.js +3 -2
- package/form/index.js +57 -56
- package/icons/file.js +67 -0
- package/index.js +288 -283
- package/list/index.js +1 -1
- package/mentions/index.js +1 -1
- package/package.json +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/radio/Group.js +1 -1
- package/radio/GroupBlock.js +1 -1
- package/radio/Radio.js +1 -1
- package/radio/index.js +2 -2
- package/select/Option.js +1 -1
- package/select/Select.js +1 -1
- package/select/index.js +2 -2
- package/select/util.js +1 -1
- package/space/index.js +135 -83
- package/space-/index.js +92 -0
- package/space-/interface.js +1 -0
- package/{space → space-}/toArray.js +2 -2
- package/style.css +1 -1
- package/table/Table.js +1 -1
- package/table/index.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +1 -1
- package/tree/index.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +1 -1
- package/tree-select/index.js +2 -2
- package/trigger/index.js +83 -83
- package/types/common/icons/file/index.d.ts +4 -0
- package/types/common/icons/file/interface.d.ts +20 -0
- package/types/common/space/index.d.ts +5 -0
- package/types/common/space/interface.d.ts +32 -0
- package/types/common/utils/color.d.ts +1 -0
- package/types/common/utils/computeScrollIntoView.d.ts +1 -0
- package/types/common/utils/index.d.ts +40 -0
- package/types/common/utils/is.d.ts +1 -1
- package/types/common/utils/math.d.ts +1 -0
- package/types/common/utils/reactTransitionGroup.d.ts +1 -0
- package/types/common/utils/tree.d.ts +1 -0
- package/types/common/utils/tween.d.ts +1 -0
- package/types/common/utils/uuid.d.ts +1 -0
- package/types/common/utils/validate.d.ts +1 -0
- package/types/pc/cascader/base/node.d.ts +1 -1
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +5 -5
- package/types/pc/form/hook/useForm.d.ts +5 -0
- package/types/pc/form/index.d.ts +3 -2
- package/types/pc/icons/file/index.d.ts +4 -0
- package/types/pc/icons/file/interface.d.ts +7 -0
- package/types/pc/index.d.ts +3 -0
- package/types/pc/space/index.d.ts +3 -5
- package/types/pc/space/interface.d.ts +5 -33
- package/types/pc/space-/index.d.ts +6 -0
- package/types/pc/space-/interface.d.ts +38 -0
- package/types/pc/space-/toArray.d.ts +3 -0
- package/types/pc/table/interface.d.ts +3 -1
- package/types/pc/table/util.d.ts +1 -1
- package/typography/Ellipsis.js +4 -2
- package/typography/index.js +1 -1
- package/version/index.js +1 -1
- package/form/useForm.js +0 -53
- package/types/pc/form/useForm.d.ts +0 -4
- package/types/pc/space/toArray.d.ts +0 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type SpaceGap = 'mini' | 'small' | 'medium' | 'large' | number;
|
|
3
|
+
/**
|
|
4
|
+
* @title Space
|
|
5
|
+
*/
|
|
6
|
+
export interface SpaceProps {
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
className?: string | string[];
|
|
9
|
+
/**
|
|
10
|
+
* @zh 间距方向
|
|
11
|
+
* @en The space direction
|
|
12
|
+
* @defaultValue horizontal
|
|
13
|
+
*/
|
|
14
|
+
direction?: 'vertical' | 'horizontal';
|
|
15
|
+
/**
|
|
16
|
+
* @zh 间距。
|
|
17
|
+
* @en The space gap.
|
|
18
|
+
* @defaultValue small
|
|
19
|
+
*/
|
|
20
|
+
gap?: SpaceGap | SpaceGap[];
|
|
21
|
+
/**
|
|
22
|
+
* @zh 环绕类型的间距,用于折行的场景。
|
|
23
|
+
* @en Whether to wrap line automatic
|
|
24
|
+
*/
|
|
25
|
+
wrap?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @zh 设置分隔符
|
|
28
|
+
* @en Set separator
|
|
29
|
+
* @version 2.22.0
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uiColor as color } from "@unicom-cloud/tinycolor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { compute, default as computeScrollIntoView, default, } from '@unicom-cloud/compute-scroll-into-view';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export * from './caseName';
|
|
2
|
+
export * from './className';
|
|
3
|
+
export * from './color';
|
|
4
|
+
export * from './computeScrollIntoView';
|
|
5
|
+
export * from './constant';
|
|
6
|
+
export * from './copy';
|
|
7
|
+
export * from './dayjs';
|
|
8
|
+
export * from './dom';
|
|
9
|
+
export * from './fileToURL';
|
|
10
|
+
export * from './fillNBSP';
|
|
11
|
+
export * from './getHighlightText';
|
|
12
|
+
export * from './getHotkeyHandler';
|
|
13
|
+
export * from './getStringLength';
|
|
14
|
+
export * from './include';
|
|
15
|
+
export * from './is';
|
|
16
|
+
export * from './lodash';
|
|
17
|
+
export * from './math';
|
|
18
|
+
export * from './mergedToString';
|
|
19
|
+
export * from './mergeProps';
|
|
20
|
+
export * from './omit';
|
|
21
|
+
export * from './pad';
|
|
22
|
+
export * from './pick';
|
|
23
|
+
export * from './PqbCSSTransition';
|
|
24
|
+
export * from './reactDOM';
|
|
25
|
+
export * from './reactTransitionGroup';
|
|
26
|
+
export * from './saveAs';
|
|
27
|
+
export * from './screenfull';
|
|
28
|
+
export * from './scrollIntoView';
|
|
29
|
+
export * from './setDarkTheme';
|
|
30
|
+
export * from './setPrimaryColor';
|
|
31
|
+
export * from './style';
|
|
32
|
+
export * from './throttleByRaf';
|
|
33
|
+
export * from './tinycolor';
|
|
34
|
+
export * from './tree';
|
|
35
|
+
export * from './tween';
|
|
36
|
+
export * from './type';
|
|
37
|
+
export * from './uuid';
|
|
38
|
+
export * from './validate';
|
|
39
|
+
export * from './warning';
|
|
40
|
+
export { keyboardCode } from './keyboardCode';
|
|
@@ -11,7 +11,7 @@ declare const isClassComponent: (element: any) => boolean;
|
|
|
11
11
|
declare const isDOMElement: (element: any) => boolean;
|
|
12
12
|
declare const isReact18: boolean;
|
|
13
13
|
declare const isReact19: boolean;
|
|
14
|
-
declare const isForwardRefReact: (object: any) =>
|
|
14
|
+
declare const isForwardRefReact: (object: any) => boolean;
|
|
15
15
|
declare const supportRef: (element: any) => boolean;
|
|
16
16
|
declare const isSupportRef: (element: any) => boolean;
|
|
17
17
|
export { isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBlob, isBoolean, isBuffer, isClassComponent, isColor, isColor2, isDate, isDayjs, isDOMElement, isElement, isEmpty, isEmptyArray, isEmptyObject, isEmptyReactNode, isEmptyValue, isEqual, isEqualWith, isError, isExist, isFile, isFinite, isForwardRefReact, isFunction, isInteger, isJSON, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPromise, isReact18, isReact19, isReactAsyncMode, isReactComponent, isReactConcurrentMode, isReactContextConsumer, isReactContextProvider, isReactElement, isReactForwardRef, isReactFragment, isReactLazy, isReactMemo, isReactPortal, isReactProfiler, isReactStrictMode, isReactSuspense, isReactValidElementType, isReadableByteStreamControllerSupported, isReadableStream, isReadableStreamDefaultControllerSupported, isReadableStreamSupported, isReadableStreamSymbolAsyncIteratorSupported, isRegExp, isSafeInteger, isSet, isString, isSupportRef, isSymbol, isTypedArray, isUndefined, isValidColor, isWeakMap, isWeakSet, isWindow, supportRef, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { add, default, div, divide, default as math, minus, multiply, plus, subtract, times, } from '@unicom-cloud/utils/math';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CSSTransition, default, default as reactTransitionGroup, ReplaceTransition, SwitchTransition, Transition, TransitionGroup, } from '@unicom-cloud/react-transition-group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, findNodeBy, getChildWithParentBy, getItemBy, getItemBy2, getItemBy3, getItemByID, getLabelFromDictionaryByValue, default as tree, } from '@unicom-cloud/utils/tree';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, easing, default as tween } from '@unicom-cloud/tween';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { v4 as uuid, v4 as uuidv4 } from 'uuid';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DefaultValidateMessage, Schema, default as validate, } from '@unicom-cloud/validate';
|
|
@@ -60,7 +60,7 @@ declare class Node<T extends NodeProps<T>> {
|
|
|
60
60
|
* @param ignoreDisabled 是否忽略节点禁用设置选中状态,一般在初始化设置选中状态时传参为true
|
|
61
61
|
*/
|
|
62
62
|
private _setNodeChildrenChecked;
|
|
63
|
-
getSelfChildrenValue: () =>
|
|
63
|
+
getSelfChildrenValue: () => any[];
|
|
64
64
|
updateHalfState: (checked: boolean) => void;
|
|
65
65
|
setCheckedProperty: (checked: boolean) => void;
|
|
66
66
|
setCheckedState: (checked: boolean) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RangePickerHandle } from './interface';
|
|
2
|
-
declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils
|
|
2
|
+
declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & import("react").RefAttributes<RangePickerHandle>>;
|
|
3
3
|
export default PickerComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FormListProps, KeyType } from './interface';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
displayName: string;
|
|
5
|
-
}
|
|
6
|
-
export default
|
|
2
|
+
declare function FormList<SubFieldValue = unknown, SubFieldKey extends KeyType = string, FieldKey extends KeyType = string>(props: FormListProps<SubFieldValue, SubFieldKey, FieldKey>): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
|
+
declare namespace FormList {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default FormList;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FormInstance, KeyType } from '../interface';
|
|
2
|
+
export declare function getFormInstance<FormData = unknown, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(): FormInstance<FormData, FieldValue, FieldKey>;
|
|
3
|
+
type SetForm = () => void;
|
|
4
|
+
declare function useForm<FormData = unknown, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(form?: FormInstance<FormData, FieldValue, FieldKey>): [FormInstance<FormData, FieldValue, FieldKey>, SetForm];
|
|
5
|
+
export default useForm;
|
package/types/pc/form/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import FormItem from './FormItem';
|
|
|
5
5
|
import FormList from './FormList';
|
|
6
6
|
import FormProvider from './FormProvider';
|
|
7
7
|
import useFormContext from './hook/useContext';
|
|
8
|
+
import useForm, { getFormInstance } from './hook/useForm';
|
|
8
9
|
import useFormState from './hook/useState';
|
|
9
10
|
import useWatch from './hook/useWatch';
|
|
10
|
-
import useForm from './useForm';
|
|
11
11
|
export type { FormInstance, FormItemProps, FormProps, FormProviderProps };
|
|
12
12
|
type RefForm = typeof Form;
|
|
13
13
|
export interface FormComponent extends RefForm {
|
|
@@ -15,11 +15,12 @@ export interface FormComponent extends RefForm {
|
|
|
15
15
|
List: typeof FormList;
|
|
16
16
|
Control: typeof FormControl;
|
|
17
17
|
Provider: typeof FormProvider;
|
|
18
|
+
getFormInstance: typeof getFormInstance;
|
|
18
19
|
useForm: typeof useForm;
|
|
19
20
|
useFormContext: typeof useFormContext;
|
|
20
21
|
useWatch: typeof useWatch;
|
|
21
22
|
useFormState: typeof useFormState;
|
|
22
23
|
}
|
|
23
24
|
declare const FormComp: FormComponent;
|
|
24
|
-
export { FormControl, FormItem, FormList, FormProvider, useForm, useFormContext, useFormState, useWatch, };
|
|
25
|
+
export { FormControl, FormItem, FormList, FormProvider, getFormInstance, useForm, useFormContext, useFormState, useWatch, };
|
|
25
26
|
export default FormComp;
|
package/types/pc/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { default as Empty } from './empty';
|
|
|
28
28
|
export { default as Form, FormControl, FormItem, FormList, FormProvider, useForm, useFormContext, useFormState, useWatch, } from './form';
|
|
29
29
|
export { Col, default as Grid, GridItem, Row } from './grid';
|
|
30
30
|
export { addFromIconFontCn, default as Icon, IconContext, useIconProps, } from './icon';
|
|
31
|
+
export { default as IconFile } from './icons/file';
|
|
31
32
|
export { default as Image, ImagePreview, ImagePreviewGroup } from './image';
|
|
32
33
|
export { default as Input, InputButton, InputGroup, InputPassword, InputSearch, InputTextArea, TextArea, } from './input';
|
|
33
34
|
export { default as InputNumber } from './input-number';
|
|
@@ -107,6 +108,8 @@ export type { SkeletonImageProps, SkeletonProps, SkeletonTextProps, } from './sk
|
|
|
107
108
|
export { default as Slider } from './slider';
|
|
108
109
|
export type { SliderProps } from './slider/interface';
|
|
109
110
|
export { default as Space, SpaceVertical } from './space';
|
|
111
|
+
export { default as Space_, SpaceVertical as SpaceVertical_ } from './space-';
|
|
112
|
+
export type { SpaceProps as SpaceProps_ } from './space-/interface';
|
|
110
113
|
export type { SpaceProps } from './space/interface';
|
|
111
114
|
export { default as SpeechSynthesis } from './speech-synthesis';
|
|
112
115
|
export { default as Spin } from './spin';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare const Space:
|
|
4
|
-
declare const SpaceVertical: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
|
|
1
|
+
import { SpaceVertical } from '../../common/space';
|
|
2
|
+
import { SpaceProps } from './interface';
|
|
3
|
+
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
|
|
5
4
|
export { SpaceVertical };
|
|
6
5
|
export default Space;
|
|
7
|
-
export type { SpaceProps, SpaceSize };
|
|
@@ -1,38 +1,10 @@
|
|
|
1
|
-
import { CSSProperties
|
|
2
|
-
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { SpaceGap, SpaceProps as SpaceProps_ } from '../../common/space/interface';
|
|
3
|
+
export type { SpaceGap };
|
|
3
4
|
/**
|
|
4
5
|
* @title Space
|
|
5
6
|
*/
|
|
6
|
-
export interface SpaceProps {
|
|
7
|
+
export interface SpaceProps extends SpaceProps_ {
|
|
7
8
|
style?: CSSProperties;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @zh 对齐方式
|
|
11
|
-
* @en Alignment of items
|
|
12
|
-
*/
|
|
13
|
-
align?: 'start' | 'end' | 'center' | 'baseline';
|
|
14
|
-
/**
|
|
15
|
-
* @zh 间距方向
|
|
16
|
-
* @en The space direction
|
|
17
|
-
* @defaultValue horizontal
|
|
18
|
-
*/
|
|
19
|
-
direction?: 'vertical' | 'horizontal';
|
|
20
|
-
/**
|
|
21
|
-
* @zh 尺寸。( `2.15.0` 开始支持数组形式 )
|
|
22
|
-
* @en The space size. ( Array format add in `2.15.0` )
|
|
23
|
-
* @defaultValue small
|
|
24
|
-
*/
|
|
25
|
-
size?: SpaceSize | SpaceSize[];
|
|
26
|
-
/**
|
|
27
|
-
* @zh 环绕类型的间距,用于折行的场景。
|
|
28
|
-
* @en Whether to wrap line automatic
|
|
29
|
-
*/
|
|
30
|
-
wrap?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @zh 设置分隔符
|
|
33
|
-
* @en Set separator
|
|
34
|
-
* @version 2.22.0
|
|
35
|
-
*/
|
|
36
|
-
split?: ReactNode;
|
|
37
|
-
children?: ReactNode;
|
|
9
|
+
size?: SpaceGap | SpaceGap[];
|
|
38
10
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SpaceProps, SpaceSize } from './interface';
|
|
2
|
+
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
|
|
3
|
+
declare const SpaceVertical: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
|
|
4
|
+
export { SpaceVertical };
|
|
5
|
+
export default Space;
|
|
6
|
+
export type { SpaceProps, SpaceSize };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type SpaceSize = 'mini' | 'small' | 'medium' | 'large' | number;
|
|
3
|
+
/**
|
|
4
|
+
* @title Space
|
|
5
|
+
*/
|
|
6
|
+
export interface SpaceProps {
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
className?: string | string[];
|
|
9
|
+
/**
|
|
10
|
+
* @zh 对齐方式
|
|
11
|
+
* @en Alignment of items
|
|
12
|
+
*/
|
|
13
|
+
align?: 'start' | 'end' | 'center' | 'baseline';
|
|
14
|
+
/**
|
|
15
|
+
* @zh 间距方向
|
|
16
|
+
* @en The space direction
|
|
17
|
+
* @defaultValue horizontal
|
|
18
|
+
*/
|
|
19
|
+
direction?: 'vertical' | 'horizontal';
|
|
20
|
+
/**
|
|
21
|
+
* @zh 尺寸。( `2.15.0` 开始支持数组形式 )
|
|
22
|
+
* @en The space size. ( Array format add in `2.15.0` )
|
|
23
|
+
* @defaultValue small
|
|
24
|
+
*/
|
|
25
|
+
size?: SpaceSize | SpaceSize[];
|
|
26
|
+
/**
|
|
27
|
+
* @zh 环绕类型的间距,用于折行的场景。
|
|
28
|
+
* @en Whether to wrap line automatic
|
|
29
|
+
*/
|
|
30
|
+
wrap?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @zh 设置分隔符
|
|
33
|
+
* @en Set separator
|
|
34
|
+
* @version 2.22.0
|
|
35
|
+
*/
|
|
36
|
+
split?: ReactNode;
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
}
|
|
@@ -452,7 +452,9 @@ export interface ColumnProps<T = unknown> {
|
|
|
452
452
|
* @zh 自定义单元格显示的内容
|
|
453
453
|
* @en Customize the content displayed in the cell
|
|
454
454
|
*/
|
|
455
|
-
render?: (col: any, item: T, index: number
|
|
455
|
+
render?: (col: any, item: T, index: number, column: InternalColumnProps | undefined, other: {
|
|
456
|
+
[key: string]: unknown;
|
|
457
|
+
}) => unknown;
|
|
456
458
|
/**
|
|
457
459
|
* @zh 当单元格内容为空时,显示占位符,优先级低于 `render`。
|
|
458
460
|
* @en When the cell content is empty, a placeholder is displayed, and the priority is lower than `render`.
|
package/types/pc/table/util.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare function px2Number(width: number | string): number | string;
|
|
|
3
3
|
export declare function getScrollBarHeight(ele: HTMLElement | null): number;
|
|
4
4
|
export declare function getScrollBarWidth(ele: HTMLElement | null): number;
|
|
5
5
|
export declare function isChildrenNotEmpty(record: any, field: string): number | false;
|
|
6
|
-
export declare function deepCloneData(data: any, childrenColumnName: any):
|
|
6
|
+
export declare function deepCloneData(data: any, childrenColumnName: any): any[];
|
|
7
7
|
export declare function getOriginData(data: any): any;
|
|
8
8
|
export declare function getSelectedKeys(record: any, checked: any, checkedRowKeys: never[] | undefined, _indeterminateKeys: never[] | undefined, getRowKey: any, childrenColumnName: any, checkConnected: any): {
|
|
9
9
|
selectedRowKeys: never[];
|
package/typography/Ellipsis.js
CHANGED
|
@@ -51,7 +51,7 @@ import "../chunk/DEuVgCzp.js";
|
|
|
51
51
|
import "../affix/index.js";
|
|
52
52
|
import "../alert/index.js";
|
|
53
53
|
import "../anchor/Anchor.js";
|
|
54
|
-
import { E as
|
|
54
|
+
import { E as pr } from "../chunk/DSXeBMp3.js";
|
|
55
55
|
import "../avatar/index.js";
|
|
56
56
|
import "../back-top/index.js";
|
|
57
57
|
import "../badge/index.js";
|
|
@@ -71,6 +71,7 @@ import "../dropdown/index.js";
|
|
|
71
71
|
import "../form/index.js";
|
|
72
72
|
import "../grid/index.js";
|
|
73
73
|
import "../icon/index.js";
|
|
74
|
+
import "../icons/file.js";
|
|
74
75
|
import "../image/Image.js";
|
|
75
76
|
import "../input/Input.js";
|
|
76
77
|
import "../input-tag/InputTag.js";
|
|
@@ -90,6 +91,7 @@ import "../result/index.js";
|
|
|
90
91
|
import "../skeleton/index.js";
|
|
91
92
|
import "../slider/index.js";
|
|
92
93
|
import "../space/index.js";
|
|
94
|
+
import "../space-/index.js";
|
|
93
95
|
import "../speech-synthesis/index.js";
|
|
94
96
|
import "../spin/index.js";
|
|
95
97
|
import "../statistic/index.js";
|
|
@@ -107,5 +109,5 @@ import "../verification-code/VerificationCode.js";
|
|
|
107
109
|
import "../watermark/Watermark.js";
|
|
108
110
|
import "../chunk/CIRG541s.js";
|
|
109
111
|
export {
|
|
110
|
-
|
|
112
|
+
pr as default
|
|
111
113
|
};
|
package/typography/index.js
CHANGED
package/version/index.js
CHANGED
package/form/useForm.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { useRef as r } from "react";
|
|
2
|
-
import s from "./store.js";
|
|
3
|
-
function a() {
|
|
4
|
-
const e = new s();
|
|
5
|
-
return {
|
|
6
|
-
getFieldsValue: e.getFieldsValue,
|
|
7
|
-
getFieldValue: e.getFieldValue,
|
|
8
|
-
getFieldError: e.getFieldError,
|
|
9
|
-
getFieldsError: e.getFieldsError,
|
|
10
|
-
getTouchedFields: e.getTouchedFields,
|
|
11
|
-
getFields: e.getFields,
|
|
12
|
-
getInitialValues: e.getInitialValues,
|
|
13
|
-
setInitialValues: e.setInitialValues,
|
|
14
|
-
setInitialValue: e.setInitialValue,
|
|
15
|
-
setFieldValue: e.setFieldValue,
|
|
16
|
-
setFieldsValue: e.setFieldsValue,
|
|
17
|
-
setFields: e.setFields,
|
|
18
|
-
resetFields: e.resetFields,
|
|
19
|
-
clearFields: e.clearFields,
|
|
20
|
-
submit: e.submit,
|
|
21
|
-
validate: e.validate,
|
|
22
|
-
scrollToField: () => {
|
|
23
|
-
},
|
|
24
|
-
getFieldsState: e.getFieldsState,
|
|
25
|
-
getInnerMethods: (t) => {
|
|
26
|
-
const i = {};
|
|
27
|
-
return t && [
|
|
28
|
-
"registerField",
|
|
29
|
-
"registerWatcher",
|
|
30
|
-
"registerStateWatcher",
|
|
31
|
-
"registerFormWatcher",
|
|
32
|
-
"innerSetInitialValues",
|
|
33
|
-
"innerSetInitialValue",
|
|
34
|
-
"innerSetCallbacks",
|
|
35
|
-
"innerSetFieldValue",
|
|
36
|
-
"innerGetStore",
|
|
37
|
-
"innerGetStoreStatus",
|
|
38
|
-
"innerGetFieldValue",
|
|
39
|
-
"innerCollectFormState"
|
|
40
|
-
].map((l) => {
|
|
41
|
-
i[l] = e[l];
|
|
42
|
-
}), i;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function u(e) {
|
|
47
|
-
const t = r(e);
|
|
48
|
-
return t.current || (e ? t.current = e : t.current = a()), [t.current];
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
u as default,
|
|
52
|
-
a as getFormInstance
|
|
53
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { FormInstance, KeyType } from './interface';
|
|
2
|
-
export declare function getFormInstance<FormData = any, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(): FormInstance<FormData, FieldValue, FieldKey>;
|
|
3
|
-
declare function useForm<FormData = any, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(form?: FormInstance<FormData, FieldValue, FieldKey>): [FormInstance<FormData, FieldValue, FieldKey>];
|
|
4
|
-
export default useForm;
|